/predicate:recordfrom predicate
Durable categorized record-keeping for development walks. Manages flight-log, tech-debt, and process-feedback entries with machine-checkable contracts. Promotes scratch artifacts to ledger homes.
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.
Read when SKILL.md points to them.
Ambient — applies to every predicate-enabled walk, not campaign-only.
The RECORD primitive manages durable artifacts across three complementary
substrates. What distinguishes it from generic note-taking is the
category model: each category of durable artifact has a defined
contract (machine-checkable shape), a .ledger home, and a trigger
(when to record into it).
Who holds the pen. One writer per node-kind-and-namespace, whoever it
is (the pen law — docs/entries.md): testimony
is signed by the walker who witnessed it and committed by that walker,
append-only, into .ledger/deposits/<topic>/<signer>/; synthesis,
decision, and narrative nodes — and every promotion — are the composer's.
In a solo predicate walk there is no composer: the walker signs
everything and executes this skill directly. Two writers interleaving one
namespace is how a zettelkasten becomes a shoebox.
Each category = {contract, .ledger home, trigger}. Categories are extensible: adding a fourth later is cheap — add the contract, home, and trigger row.
| category | contract | .ledger home | trigger |
|---|---|---|---|
| flight-log | narrative; no formal contract | .ledger/log/ | at every significant step: decision, pivot, finding |
| tech-debt | skills/record/tech_debt.ncl | .ledger/tech-debt/ | when a limitation is accepted rather than fixed |
| process-feedback | skills/record/process_feedback.ncl | .ledger/process-feedback/ | when friction, a miss, an improvement, or a live process amendment is identified |
Narrative zettelkasten — linked, curated trail of how the space was explored: decisions, pivots, adjustments. NOT exhaustive; navigable graph. See Recording (continuous) and Promotion for the full flight-log model.
A first-class, machine-shaped entry for a known limitation or deferred decision — absorbs the campaign's "accepted limitations / tail" so they are trackable and actionable rather than buried in prose log entries.
Fields: id (unique), claim (falsifiable statement), location
(file:line, gate, or component), severity (critical|high|medium|low),
why_deferred, signpost (what would resolve or invalidate it).
Instance format: YAML, validated via:
nickel export <file>.yaml --apply-contract skills/record/tech_debt_apply.ncl
Trigger: when you accept a limitation rather than fix it — record
it here, not in prose. A signpost is required so the debt is not just
named but actionable.
Captures friction, missed signals, improvements, and AMENDMENTS. An AMENDMENT is the highest-stakes kind: the agent changed a live process rule and it was a good idea. This makes process changes durable rather than living only in conversation recall.
Fields: id (unique), kind
(friction|miss|improvement|amendment), context (situation that
triggered it), outcome (what changed or what it means).
Instance format: YAML, validated via:
nickel export <file>.yaml --apply-contract skills/record/process_feedback_apply.ncl
Trigger: when friction surfaces, a signal is missed, the process improved, or a live rule was amended. AMENDMENT kind requires that the rule change was nrd-approved or demonstrably beneficial — it is a record of accepted change, not a unilateral rewrite.
| substrate | role | character |
|---|---|---|
scratch | exhaustive working detail; coherent context being built | default ephemeral; sometimes a draft staged for promotion |
ledger (.ledger/) | all category homes: flight-log, tech-debt, process-feedback | curated, linked, durable; each category in its own home dir |
repo/docs/ | promoted durable artifacts (a design that graduated) | permanent |
Promotion is the combinator promote(from, to) over {scratch, ledger, repo}.
The destination is routed by purpose, not by artifact type.
At each significant step, classify the output and record it — this is a classification trigger, not a rulebook. Ask: what kind of thing just happened?
| what happened | where it goes | minimum record |
|---|---|---|
| decision / pivot / adjustment | linked ledger note (flight-log) | what, why, which [[decisions/KUs]] it changes; link to superseded/resolved notes |
| finding (new R/I/U item) | update the live R/I/U tracker; ledger note if it pivots direction | tracker entry with grounding + last_validated + signpost |
| accepted limitation | .ledger/tech-debt/<id>.yaml | tech-debt record validated against tech_debt.ncl |
| process friction / miss / improvement / amendment | .ledger/process-feedback/<id>.yaml | process-feedback record validated against process_feedback.ncl |
| working detail / draft | scratch | no ceremony; stage for promotion when ready |
Linking discipline (flight-log). Ledger notes are a zettelkasten: each note
links (supersedes, resolves, blocks, see-also) to the nodes it affects.
The ledger is a navigable graph, not a flat append log. Every-touch-commit
(Sketch Commit Discipline) keeps the graph
linear and reconstructable.
promote(from, to) routes by the artifact's purpose:
scratch → ledger, scratch → repo, ledger → repoThe "stranger" for the zero-context sensibility read is parameterized by the destination's audience. The over-strip line moves with the destination:
The artifact must conform to its destination's contract before promotion:
nickel export ... --apply-contract tech_debt_apply.nclnickel export ... --apply-contract process_feedback_apply.nclworker_ibc.ncl exportdag.nclDoes not export / does not conform → not ready. Do not proceed to Gate 2. This makes "structurally ready" machine-checkable rather than a judgment call.
A quality mechanism, not a box to tick. Read the draft as a stranger with only its stated purpose; surface everything that is only meaningful in-session:
Strip or make-explicit each; iterate until a context-free read is fully sensible.
Over-strip guard — strip only what is session-meaningful AND not needed for the stated purpose. Before stripping anything, ask:
Does a stranger with the stated purpose need this to understand / use the artifact?
Yes → keep and make explicit. "Merely discussed in session" → strip. Never strip load-bearing rationale. A sensibility read that removes rationale is a context-destroyer, not a quality pass.
Depth scales with stakes and destination:
Promotion is role-gated:
| artifact class | who may promote |
|---|---|
| testimony (deposits, assessments, findings) → ledger | the witnessing walker, signed |
| narrative / synthesis / promotion notes → ledger | the composer (solo: the walker) |
| full architecture / spec → repo/docs | architect-tier |
| doctrine edits (rules.md, ambient.md, formalism) | Reserved halt — human approval required before merge |
A worker cannot unilaterally promote to durable doctrine. On doctrine promotion, emit the draft and halt for human review before touching the destination.
After promotion:
A project (predicate-self-hosting + downstream) records its own tech-debt and
process-feedback through the project-local gate mechanism. Register a gate
script in .ledger/gates/ that validates the records:
#!/usr/bin/env bash
# .ledger/gates/10-validate-records.sh
# Validates all tech-debt and process-feedback YAML instances.
set -euo pipefail
root="${1:-}"
skill_dir="$root/skills/record"
for f in "$root/.ledger/tech-debt"/*.yaml 2>/dev/null; do
[[ -f "$f" ]] || continue
nickel export "$f" --apply-contract "$skill_dir/tech_debt_apply.ncl" >/dev/null \
|| { echo "tech-debt record failed: $f" >&2; exit 1; }
done
for f in "$root/.ledger/process-feedback"/*.yaml 2>/dev/null; do
[[ -f "$f" ]] || continue
nickel export "$f" --apply-contract "$skill_dir/process_feedback_apply.ncl" >/dev/null \
|| { echo "process-feedback record failed: $f" >&2; exit 1; }
done
The project-gates.sh runner discovers and executes this script automatically
on each commit when a walk is registered. Projects with no .ledger/gates/
directory incur zero overhead (the runner is a clean no-op).
This skeleton fleshes against the concrete R/I/U at hand. Minimum floor:
Extend selectively when not converged: add rounds to the sensibility read when the artifact is high-stakes or the over-strip risk is real; add a decorrelated reviewer when promoting doctrine; tighten the linking discipline when the ledger is the primary reconstruction surface.
The skeleton supports shape AND flexibility — it does not prevent movement. Do not inflate it into an exhaustive script.
Following P-GROUND's two-purpose principle:
The contract is the "did-they-try" floor that feeds the review; the review is where substance is judged. Do not fake a smarter contract.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
record-keeping, ledger, tech-debt, process-feedback, flight-log, decision-tracking
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