This skill should be used when the user asks to "run sentinel", "check project health", "scan for drift", "detect stale artifacts", "run perceive-decide-act cycle", or "audit pipeline state". It executes a full sentinel cycle (perceive-decide-act) with zero LLM cost to detect stale artifacts, missing files, health regression, and drift from constitution principles. Use this skill whenever the user mentions sentinel, health check, drift detection, or pipeline audit.
Run a comprehensive sentinel cycle that perceives project state, decides on findings, and acts with recommendations — all at zero LLM cost.
$ARGUMENTSYou MUST consider the user input before proceeding (if not empty).
Load constitution per constitution-loading.md (soft mode — warn if missing, proceed without).
bash scripts/sdd-sentinel.shThe script executes three phases:
Perceive (P1-P5):
Decide (D1-D6):
Act:
/sdd:* commands for each finding.specify/sentinel-last-run.json timestampDisplay findings grouped by severity:
Present the 4-factor health model:
Sentinel cycle complete!
Health: NN/100 (delta: +/-N since last run)
Findings: N critical, N warnings, N info
[Critical findings with remediation commands]
[Warning findings with suggested actions]
Next: <recommended command based on most critical finding>
- Dashboard: file://$(pwd)/.specify/dashboard.html| # | Assumption | Handling |
|---|---|---|
| 1 | Project has been initialized with /sdd:init | If no .specify/ directory, suggest init first. [EXPLICIT] |
| 2 | Sentinel runs at zero LLM cost (pure bash) | No AI inference during perceive/decide — only script execution. [EXPLICIT] |
| 3 | Health score uses 4-factor model (25 pts each) | specCoverage + testCoverage + taskCompletion + constitutionAlignment = 100. [EXPLICIT] |
| 4 | Findings are severity-classified (critical/warning/info) | Critical blocks progress; warnings suggest action; info is optional. [EXPLICIT] |
| 5 | Sentinel state persists in .specify/sentinel-last-run.json | Enables health delta tracking between runs. [EXPLICIT] |
| Scenario | Detection | Handling |
|---|---|---|
| Brand new project (no artifacts) | All perceive checks return empty | Report health 0/100 with "new project" context, suggest /sdd:01-specify. [EXPLICIT] |
| Assertion hash mismatch | P3 detects SHA-256 divergence in .feature files | Critical finding: someone modified tests without re-hashing. Suggest /sdd:04-testify. [EXPLICIT] |
| No constitution exists | P5 finds no CONSTITUTION.md | Warning: governance principles missing. Suggest /sdd:00-constitution. [EXPLICIT] |
| Stale artifacts (>30 days) | P1 detects very old modification dates | Escalate to critical if artifacts are in active feature. [INFERRED] |
| Sentinel run during active implementation | Tasks in progress, partial coverage | Filter false positives for in-progress work, only flag completed phases. [EXPLICIT] |
Good: User runs /sdd:sentinel and gets actionable findings
Sentinel cycle complete!
Health: 72/100 (delta: -3 since last run)
Findings: 1 critical, 2 warnings, 1 info
CRITICAL:
- Assertion hash mismatch in 001-user-auth/tests/features/login.feature
→ Run: /sdd:04-testify to re-hash
WARNING:
- spec.md stale (12 days since last update) in 002-api-gateway
- FR-005 has no linked test scenario
→ Run: /sdd:04-testify
INFO:
- 3 tasks completed since last sentinel run
Next: /sdd:04-testify (fix assertion integrity first)Bad: Health check without structure
x "Project looks fine" — no specific findings
x No health score or delta
x No remediation commands suggested
x No severity classificationWhy: Sentinel must provide quantified health, severity-classified findings, and specific remediation commands for each issue. [EXPLICIT]
Before marking sentinel as complete, verify: [EXPLICIT]
3eafb9b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.