ワンクリックで
monitoring-and-logging
Use when implementing structured logging, health checks, or observability
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when implementing structured logging, health checks, or observability
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | monitoring-and-logging |
| description | Use when implementing structured logging, health checks, or observability |
import logging
logger = logging.getLogger(__name__)
logger.info("skill_installed", extra={"skill_id": str(skill.id), "user_id": str(user.id)})
No print() in production paths. Use structured logging.
GET /health → {"status": "ok", "version": "1.0.0"}
Query audit_log for recent activity:
SELECT event_type, COUNT(*) FROM audit_log
WHERE created_at > now() - interval '1 hour'
GROUP BY event_type;
pg_isready)redis-cli ping)apps/api/skillhub/routers/health.pylibs/db/skillhub_db/models/audit.pydocker-compose.yml (health checks)Record browser-based feature demos as GIFs via Playwright and optionally document them in docs/features/index.md. Trigger with "Demo <feature>" or "Demo and Document <feature>".
Use when creating service modules in apps/api/skillhub/services/
Use when writing API tests in apps/api/tests/
Use when implementing division-based access control on any endpoint
Use when adding services to docker-compose.yml or creating Dockerfiles
Use when implementing error handling across the API, frontend, or MCP server