/predicate:corefrom predicate
Guides micro-execution through C.O.R.E. phases (Context, Obstacles, Resolution, Execution) with TDD verification and commit gates for incremental code changes.
Ships in predicate. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Context → Obstacles → Resolution → Execution
This workflow defines the C.O.R.E. micro-execution phase. It guides a localized plan segment through a series of discrete state transitions (Context, Obstacles, Resolution, Execution), closing each step against the Verification Dual before committing: every step carries a deterministic evaluator (the symbolic path — test, compiler, linter) that must reach $\Delta E = 0$, and each commit boundary meets the Commit Gate (§3). C.O.R.E. is the task-scale instance of the Dual's symbolic path: drive a candidate edit to its evaluator's fixed point, then authorize the change through the ledger gate.
[!IMPORTANT] C.O.R.E. maps a localized plan segment (typically 2-3 commit boundaries) and manages the execution trajectory. It is execution, not strategy: high-level planning and the exploration of design alternatives are standing dispositions — the Planning Invariants and the Sketch Principle — not steps inside this workflow. If the sequence begins exploring design alternatives or modifying the architecture, it has exited C.O.R.E. space; the walk must immediately halt.
# 1. TRAJECTORY METADATA
STATUS: [ABSORB | CLARIFY | PLAN | EXECUTE]
CONTROL_MODE: [MANUAL | AUTOMATIC] # MANUAL: halt at boundaries; AUTOMATIC: autocommit and continue if tests pass.
# 2. CONTEXT (The Initial Boundary Condition)
CTX:
GOAL: "User's objective (quoted verbatim)"
CONSTRAINTS:
- "Boundary condition 1"
FILES:
- path/to/target/file
# 3. OBSTACLES (Divergence Vectors)
# Populated in CLARIFY status; forces sequence freeze
OBSTACLES:
- "Uncertainty / contradiction 1"
# 4. TRAJECTORY PLAN (Discrete TDD Optimization Steps)
# Populated in PLAN/EXECUTE status
PLAN:
RATIONALE: "Mathematical / control rationale for this trajectory"
STEPS:
- ID: 1
INVARIANT: "Test assertion or property contract (TDD constraint)"
TEST_TARGET: "tests/test_file.py::test_name"
IMPL_TARGET: "src/file.py::function_name"
IMPL_DELTA: "Implementation edit to satisfy the invariant"
VALIDATOR: "pytest tests/test_file.py"
COMMIT: true # Marks a commit boundary
For each step in the plan, execute a local optimization loop:
INVARIANT in TEST_TARGET conforming to robust-testing instructions:
VALIDATOR to obtain the baseline error differential $\Delta E_0$. The baseline check MUST verify test failure ($\Delta E_0 \neq 0$) to confirm the test is non-trivial and does not pass on empty/unimplemented code.IMPL_TARGET to satisfy IMPL_DELTA.VALIDATOR.
CLARIFY and halt.Before concluding work at any commit boundary, contract the diff toward its fixed point. This is one loop — a contraction mapping that re-enters itself until it stops moving, not a second machine bolted onto the verification loop above. Each pass is an application of the refinement operator $R$; the loop halts at the fixed point $R(\mathbf{S}^) = \mathbf{S}^$ — the pass that finds nothing left to correct. (The full Banach contraction model is the reference content of refine; /core runs the same loop at task scale.)
Each pass:
LOOPS: 1), you must perform an explicit adversarial audit of the diff. Validate that the baseline failure check was genuine, analyze whether any hidden assumptions were left unverified, and run spatial/temporal checks to ensure no structural complexity was introduced. Document this audit in the REVIEW block under SKEPTICAL_AUDIT..ledger/log/[topic].md flight recorder to track compliance states in real-time, per the Sketch Principle. Log any dynamic shifts or refinements to the rubric goals for human reporting.At each commit boundary (or phase completion):
commit-hygiene) and the ledger gate (ledger/gate/ledger-validate.sh) authorizes the change — before executing any commit in any repository.CONTROL_MODE: AUTOMATIC (and credentials/command permissions are active):
.ledger/log/[topic].md, and commit it within the .ledger/ sub-repository.REVIEW block, JUSTIFICATION block, and conventional commit message.git add [modified files] and git commit -m "[message]" directly.CONTROL_MODE: MANUAL (or not specified):
The REVIEW block must be output as a structured YAML block containing:
REVIEW:
SCORE: 1.0 # Qualitative self-audit score [0.0 - 1.0]
ITERATIONS:
- STEP_ID: 1 # Links to the trajectory plan step ID
BASELINE_FAIL: "Verified diagnostic baseline error / test fail output"
LOOPS: 3 # Exact number of verification loops executed (1-5)
CORRECTIONS:
- LOOP: 1
ERROR: "Error output details"
CORRECTION: "Applied changes to fix"
VERIFICATION: "Pass evidence / test execution summary"
SKEPTICAL_AUDIT: "Adversarial audit detail (Mandatory if LOOPS: 1)"
FINDINGS:
- ID: F1
SEVERITY: [LOW | MEDIUM | HIGH | CRITICAL]
ACTION: "Simplicity / volatility alignment correction applied"
DETAIL: "Trace audit context"
CONTROL_MODE: AUTOMATIC run).JUSTIFICATION.DEBT and recorded in the plan's ## Technical Debt section.## Deviation Log section at commit boundaries.| Violation | Why It's Wrong |
|---|---|
| Adding fields not listed in SCHEMA_RIGIDITY | Violates grammar constraints. |
| Skipping commit message | Breaks repository history standards. |
Executing git commit without authorization | User commits manually unless CONTROL_MODE: AUTOMATIC is active and authorized. |
| Proceeding past commit boundary without human confirmation | Each boundary is a halt gate (unless CONTROL_MODE: AUTOMATIC). |
| Continuing after verification failure | Must run the Closed-Loop Verification Loop to fix, or halt if it fails to converge. |
| Proceeding past COMMIT without updating sketch | Destroys decision logs. |
| Implementing code changes without writing the test invariant first | Violates TDD constraints. |
ABSORB ──→ CLARIFY (if OBSTACLES exist)
└─→ PLAN (if no OBSTACLES remain)
CLARIFY ──→ PLAN (once OBSTACLES resolved)
PLAN ──→ EXECUTE (on "APPROVED")
└─→ CLARIFY (if new ambiguity discovered)
EXECUTE ──→ CLARIFY (if verification fails to converge)
└─→ ABORT (if target state space is unreachable)
ABSORB: Ingest input, map target attractor basin. Before leaving this state, run the DISCOVERY sub-procedure (architecture §DISCOVERY) and deposit its footprint into the active .ledger/log/[topic].md flight recorder. Scale by stakes: a trivial, localized, reversible edit need not run all five steps; a non-trivial task always does.
CLARIFY: Halt generation; emit obstacles to resolve uncertainty.
PLAN: Construct the discrete state trajectory mapping transitions to TDD targets and invariants.
EXECUTE: Formulate test invariants, check baseline, run candidate code generation, run verification, minimize the error differential, and apply commit gates.
ABORT: Halt and exit the trajectory walk when the target state space is proven unreachable.
See the canonical Invariant Translation Mapping in rules.md §1 for the full mapping between psychological heuristics and control-theoretic operations.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nrdxp/predicate --plugin predicate35 skills in this plugin
/ai-auditSOP for auditing AI-generated code.
Trigger when:
- Reviewing, refactoring, or cleaning up AI-generated code to prevent regressions or hallucinated APIs.
- Prompt contains: /ai-audit, code audit, AI cleanup, common flaws.
/api-auditProtocol for auditing API surface coherence and type safety.
Trigger when:
- Evaluating API designs, interface type safety, or design elegance.
- Prompt contains: /api-audit, API surface, API coherence, type safety.
/boundaryNormative sufficiency conditions for Initial Boundary Conditions (IBCs)
and the SOP for the cheap-tier boundary refinement loop (/boundary).
Trigger when:
- Crafting, auditing, or refining a prompt/IBC destined for an expensive
(architect-class) model or an autonomous worker dispatch.
- Evaluating whether a task frame is sufficient to bound an agent walk.
- Prompt contains: /boundary, IBC, initial boundary condition, boundary
contract, sufficiency conditions, worker prompt, prompt refinement.
Other plugins' skills for the same job