Toolverse
All skills

api-logging-guidelines

by inkeep

Best practices and guidelines for using logger in API routes. Defines appropriate logging levels, what to log, and when to avoid logging. Use when implementing or reviewing API route logging, debugging strategies, or optimizing log output.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
inkeep
Category
Backend
Views
2

About this skill

Best practices and guidelines for using logger in API routes. Defines appropriate logging levels, what to log, and when to avoid logging. Use when implementing or reviewing API route logging, debugging strategies, or optimizing log output.

How to use

  1. Zainstaluj skill w swoim projekcie agenta, importując moduł api-logging-guidelines z repozytorium inkeep.
  2. Podczas implementacji nowej trasy API zapoznaj się z tabelą poziomów logowania: ERROR dla nieoczekiwanych awarii, WARN dla problemów odwracalnych, INFO dla ważnych zdarzeń biznesowych, DEBUG dla szczegółów diagnostycznych.
  3. Sprawdź, czy middleware już loguje szczegóły żądania (metoda, ścieżka, status, czas trwania, parametry). Jeśli tak, nie duplikuj tych informacji w logach trasy.
  4. Loguj zdarzenia biznesowe o znaczeniu (np. zmiana planu użytkownika, przetworzenie płatności) oraz błędy z kontekstem (ID dzierżawcy, numer próby, URL webhooka).
  5. Podczas debugowania wykorzystaj poziom DEBUG do logowania parametrów zapytania, wyników pośrednich i trafiań do cache'u, ale nie dodawaj tych wpisów do kodu produkcyjnego.
  6. Przejrzyj istniejące trasy API pod kątem redundantnych logów i usuń duplikaty, które powtarzają informacje już dostępne w logach middleware'u.

Related skills

postgresql-psql

by timelessco

Comprehensive guide for PostgreSQL psql - the interactive terminal client for PostgreSQL. Use when connecting to PostgreSQL databases, executing queries, managing databases/tables, configuring connection options, formatting output, writing scripts, managing transactions, and

Backend
34173

patent-search

by RobThePCGuy

Advanced prior art search using the PatentsView API. Use this skill when users need to search for patents, perform prior art searches, analyze patent landscapes, or find patents by inventor, title, date range, or technical fields. Helps with patent research, freedom to operate

Backend
36218

supabase-developer

by daffy0208

Build full-stack applications with Supabase (PostgreSQL, Auth, Storage, Real-time, Edge Functions). Use when implementing authentication, database design with RLS, file storage, real-time features, or serverless functions.

Backend
78170

context-optimizer

by openclaw

Advanced context management with auto-compaction and dynamic context optimization for DeepSeek's 64k context window. Features intelligent compaction (merging, summarizing, extracting), query-aware relevance scoring, and hierarchical memory system with context archive. Logs

Backend
2964

using-superpowers

by obra

Use when starting any conversation - establishes mandatory workflows for finding and using skills, including using Skill tool before announcing usage, following brainstorming before coding, and creating TodoWrite todos for checklists

Backend
65167

openspec

by ruan-cat

OpenSpec 中文版规范助手 - 规范驱动的 AI 编程开发,帮助初始化、创建提案、编写规格、校验格式并归档变更。触发条件: 当用户提及 openspec、规范文档、需求管理、变更提案、spec-driven development 等关键词时主动调用。

Backend
27122