一键导入
observe
Scaffold observability for a project — OpenTelemetry tracing, structured logging, Grafana dashboards, alerting rules, and Docker Compose wiring.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold observability for a project — OpenTelemetry tracing, structured logging, Grafana dashboards, alerting rules, and Docker Compose wiring.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Switch model mid-session preserving thinking blocks. Used by /model command and by BRD §6.2 failover when the primary provider rate-limits or fails.
Six-phase ReAct loop (pre-check, thinking, self-critique, action, tool, post). Activates per-workflow via the thinking_level knob in config/workflows.yaml. Replaces standard ReAct for workflows where independent verification of the reasoning improves outcomes.
Mines completed sessions for repeating {tool sequence → outcome} tuples. Scores by frequency × success_rate × novelty. High-scoring tuples become "instincts" — candidate skill seeds — in instincts/pending/.
Walk-back algorithm for the Spec-Auditor subagent. Given a failure at phase N, identifies the earliest phase whose spec, if tightened, would have prevented the failure. Proposes a surgical amendment.
Sessions stored as trees (not lists). /fork creates a branch from any point; /tree navigates; /branch labels a path; /export produces HTML for review. All branches live in one session file under sessions/<project>/<session_id>.json.
Progressive context refinement for subagents. Don't dump everything; retrieve in passes. Start with a list of file paths and one-line abstracts; load full content only when the abstract proves insufficient.
| name | observe |
| description | Scaffold observability for a project — OpenTelemetry tracing, structured logging, Grafana dashboards, alerting rules, and Docker Compose wiring. |
Scaffold full observability stack tailored to the project's language and framework.
/observe
project-manifest.json exists with stack section populated by the architect.Read project-manifest.json. Extract:
stack.backend — language, framework (determines Python vs TypeScript instrumentation)stack.deployment.services — services to instrumentstack.database — for DB span instrumentationBased on stack language:
Python: Generate src/lib/telemetry.py
TypeScript: Generate src/lib/telemetry.ts
Generate src/lib/logger.py (or logger.ts):
Generate monitoring/grafana-dashboard.json:
Generate monitoring/alerts.yml:
Update docker-compose.yml:
jaeger service (all-in-one image, ports 16686/4317/4318)otel-collector service with OTLP receiver and Jaeger exporterOTEL_EXPORTER_OTLP_ENDPOINT env var on application servicesdepends_on for collector before app services