Core methodology for disciplined software development. Activates when investigating bugs, managing knowledge vaults, recovering sessions, or running quality gates. Enforces investigation journals, self-healing knowledge loops, session continuity, and gate-based verification.
From sentinelnpx claudepluginhub digistrique-solutions/sentinelThis skill uses the workspace's default tool permissions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
The core discipline framework for sustainable, high-quality software development. This skill codifies the practices that prevent context pollution, knowledge decay, and silent regressions.
Create an investigation journal immediately when:
vault/investigations/YYYY-MM-<brief-slug>.md
Examples:
vault/investigations/2026-04-auth-token-refresh.mdvault/investigations/2026-04-sse-event-ordering.md# Investigation: <Title>
**Status:** in-progress | resolved | escalated
**Area:** <module or subsystem>
**Started:** YYYY-MM-DD
**Resolved:** YYYY-MM-DD (if applicable)
## Problem Statement
<What is happening? What is expected? What is observed?>
## Attempt 1
**Hypothesis:** <What you think is wrong and why>
**What was tried:** <Exact steps taken>
**Result:** <What happened>
**Why it failed:** <Root cause of failure, not just "it didn't work">
## Attempt 2
**Hypothesis:** ...
**What was tried:** ...
**Result:** ...
**Why it failed:** ...
## Root Cause (when resolved)
<The actual root cause>
## Fix Applied (when resolved)
<What fixed it and why>
After two failed attempts on the same problem:
The knowledge vault is only useful if it is accurate. Stale information actively misleads future sessions. This protocol ensures the vault stays current.
| Entry Type | Location | When to Create |
|---|---|---|
| Gotcha | vault/gotchas/ | Non-obvious constraint or pitfall discovered |
| Decision | vault/decisions/ | Architectural choice with trade-offs |
| Investigation | vault/investigations/ | Bug with multiple attempted approaches |
| Completed Work | vault/completed/ | Significant feature or migration finished |
After completing any task that changes the codebase, run the staleness check:
Read filenames in vault/gotchas/. For each one related to the area just changed:
Read filenames in vault/decisions/. For each one related to the area just changed:
Read filenames in vault/investigations/. For each open investigation:
If the work makes a previous "Remaining Work" section obsolete, update it.
Discovery → Create gotcha file → Reference in future sessions → Fix lands → Delete gotcha
Gotchas are ephemeral by design. When the underlying issue is fixed, the gotcha becomes noise. Delete it.
Choice made → Create ADR → Reference in future decisions → Superseded → Mark as superseded (never delete)
ADRs are never deleted, only superseded. They form the historical record of why the system is shaped the way it is.
Before context compaction or session end, save critical state:
# Session State: YYYY-MM-DD
## What I Was Working On
<Current task description>
## Current Status
<Where I am in the task>
## Files Modified
<List of files changed and why>
## Key Decisions Made
<Any decisions that would be lost on compaction>
## Open Questions
<Anything unresolved>
## Next Steps
<What should happen next>
Save to: vault/session-logs/YYYY-MM-DD-<slug>.md
When resuming work after a session break:
vault/session-logs/vault/investigations/vault/gotchas/ for the area being worked onvault/decisions/ for architectural contextSeven gates that must pass before declaring work complete. Execute sequentially. If any gate fails, fix the issue before proceeding.
vault/investigations/vault/gotchas/vault/decisions/After completing work, go through each gate sequentially. If any gate fails, fix the issue before proceeding. Do not declare work complete with any gate unchecked.
If a gate cannot be satisfied (e.g., no test infrastructure for a specific area), explicitly tell the user which gate was skipped and why.
If a fix attempt fails, document it NOW, not after three more attempts. The investigation journal is your safety net against context pollution.
Never delete attempt entries from an active investigation. They record what NOT to try. This is as valuable as recording what works.
If the underlying issue is fixed, the gotcha is noise. Delete it. Do not accumulate stale warnings.
Change status to "Superseded by ADR-NNN". The historical record matters.
Periodically review the full vault for:
NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
If you haven't run the verification command in this response, you cannot claim it passes.
Never say any of these without fresh evidence in the same message: