encapsulation
This skill should be used when the user asks to \"audit plugin encapsulation\", \"check self-containment semantics\", \"find…
This skill should be used when the user asks to "verify protocols", "check consistency before commit", "validate definitions", "run pre-commit checks", "verify soundness", or wants to ensure epistemic protocol quality. Invoke explicitly with /verify for pre-commit validation.
$ npx -y skills add jongwony/epistemic-protocols --skill verify --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/verifyContext preview
The summary Claude sees to decide when to auto-load this skill.
This skill should be used when the user asks to "verify protocols", "check consistency before commit", "validate definitions", "run pre-commit checks", "verify soundness", or wants to ensure epistemic protocol quality. Invoke explicitly with /verify for pre-commit validation.
name: verify description: This skill should be used when the user asks to "verify protocols", "check consistency before commit", "validate definitions", "run pre-commit checks", "verify soundness", or wants to ensure epistemic protocol quality. Invoke explicitly with /verify for pre-commit validation. allowed-tools: Read, Grep, Glob, Bash(node *), Task, AskUserQuestion
Verify epistemic protocol consistency before commit through static checks and expert review.
Surface potential issues in protocol definitions without blocking commits. Follow Anthropic philosophy: transparency over enforcement, user agency over automation.
| Principle | Implementation | |-----------|----------------| | **Surface, don't enforce** | Present findings; user decides action | | **Zero-context scripts** | Static checks run without consuming context | | **Explicit control** | User invokes `/verify` intentionally | | **Graduated severity** | Critical / Concern / Note categorization |
Run `scripts/static-checks.js` against project root. This script executes without loading into context.
node ${SKILL_DIR}/scripts/static-checks.js ${PROJECT_ROOT}**Output format**:
{
"pass": [{ "check": "...", "file": "...", "message": "..." }],
"fail": [{ "check": "...", "file": "...", "message": "..." }],
"warn": [{ "check": "...", "file": "...", "message": "..." }]
}**Checks performed**: `scripts/static-checks.js` is the orchestrator. Its head names the layer files it runs and what each layer holds, and each layer file's `CHECKS` list is that layer's inventory. `references/verification.md` carries why the non-obvious checks exist and what to do when one fires.
Spawn parallel Task subagents for LLM-based review — one per perspective (Type Theory / Category Theory, Instruction Design, Claude Code Ecosystem). Load each subagent's prompt template from `references/review-checklists.md` (single source of truth; do not duplicate the templates here — see Review Checklists below). Each template samples the protocols changed in the current diff, falling back to a representative sample when the diff is not protocol-scoped.
All three subagents run in parallel. Collect results before proceeding.
Combine static check results with expert review findings. Categorize by severity:
| Severity | Static Check Source | LLM Review Source | |----------|--------------------|--------------------| | **Critical** | `fail` array | findings with `severity: "critical"` | | **Concern** | `warn` array (structural) | findings with `severity: "concern"` | | **Note** | `warn` array (stylistic) | findings with `severity: "note"` |
Identify convergence (all perspectives agree) and divergence (perspectives differ).
Apply Claude Code Ecosystem expert's `filtered` array to dismiss false positives from other perspectives.
Present findings via gate interaction. Format:
## Verification Results ### Critical (n issues) - [issue 1]: [location] - [description] - [issue 2]: [location] - [description] ### Concerns (n issues) - [issue 1]: [location] - [description] ### Notes (n observations) - [observation 1] ### Filtered (Claude Code context) - [filtered issue]: [reason dismissed] --- Select action:
**Options to present**: 1. **Fix critical issues** - Address critical findings before commit 2. **Review concerns** - Examine each concern individually 3. **Proceed anyway** - Commit with decision logged 4. **Cancel** - Abort verification
| Decision | Action | |----------|--------| | Fix critical | Show specific fixes, await approval for each | | Review concerns | Present concerns one by one with dismiss/address options | | Proceed anyway | Log decision, suggest commit message annotation | | Cancel | End verification, no changes |
**Commit message annotation** (if proceeding with issues):
[verify: n critical, m concerns acknowledged]
Consult `references/criteria.md` for which channel judges which kind of obligation, the severity definitions, and what review reads for.
Consult `references/review-checklists.md` for:
| Error | Response | |-------|----------| | Script execution fails | Report error, offer manual check option | | Subagent timeout | Report partial results, continue with available data | | No issues found | Confirm clean state, proceed to commit |
Most common pattern: invoke `/verify` before `/commit` command.
## Verification Results All checks passed. - Static checks: all checks pass (0 fail, 0 warn) - Type/Category review: No issues - Instruction Design review: No issues Ready to commit.
## Verification Results ### Critical (1 issue) - State machine totality: hyphegesis/skills/conduct/SKILL.md - Undefined transition for a declared input with no arm in the step function ### Concerns (2 issues) - Categorical terminology: hyphegesis/skills/conduct/SKILL.md - limit/colimit may not match intended semantics - Directive verb: hyphegesis/skills/conduct/SKILL.md - "Invoke AskUserQuestion" should be "call" ### Notes (1 observation) - Version: hyphegesis plugin.json version not bumped since last change --- How to proceed?
한국어 When AI collaboration goes off-track, you redo everything. These protocols bring the decisions that set the direction to you early — often at the plan level, before a wrong one hardens into code or other downstream work — and leave each one yours to
This skill should be used when the user asks to \"audit plugin encapsulation\", \"check self-containment semantics\", \"find…
This skill should be used when the user asks to \"formal review\", \"formal lens review\", or invokes /formal-review. A…
This skill should be used when the user asks to "run the outcome eval", "paired bare vs protocol", "which decisions did the…
This skill should be used when the user asks to "run the eval", "test whether the protocol actually works at runtime", "check…
This skill should be used when a contributor names a skill whose Lean contract is to be re-derived — a core protocol, or a…