一键导入
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 职业分类
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
| 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)