/predicate:orientfrom predicate
Installs predicate enforcement, maps repository structure and goal, and authors AGENTS.md goal-hierarchy for persistent conditioning. Use when onboarding a new project or refreshing existing orientation.
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.
Predicate is project-centric: /orient is its first contact with a
project. It engages this repository concretely — installs predicate's
enforcement, maps the repo, learns its goal, and authors the persistent
conditioning layer (the AGENTS.md goal-hierarchy) so every subsequent
walk is anchored and gated. Not an idealized formula imposed from outside;
a boundary fitted to the actual project.
Quickstart: install predicate into your harness → target a project →
run /orient.
The eight phases execute in order. Two are human seams — the walk halts and awaits human input before continuing. The others are mechanical or agent-automated.
/boundary — do not rush)Before touching the repo, invoke /boundary to
draft an IBC for the orientation work itself: what is this project, what
is known vs unknown going in, what is the desired end state of onboarding
it.
/boundary is also the authority for the AGENTS.md contract the
AUTHOR phase (phase 6) conforms to — composed here, not duplicated. The
required content (Goal, Requirements/Invariants/Constraints, Unknowns,
Operational entrypoint, Structure, Alignment-to-parent) and the soundness
invariants are defined in
/boundary §AGENTS.md.
Run bootstrap/install.sh init --project <dir>: install git hooks into .git/hooks (untracked,
auditable, removable), initialize the .ledger sub-repository, wire
project config. Idempotent — safe to re-run on an already-oriented
project.
Fan out a multi-modal sweep over the repository:
git ls-files for the file tree; directory layout.git log shape; maturity signals; areas of churn.Scale to the repo: a small project needs one pass; a large one warrants the full sweep. Stop when no new approach-relevant structure surfaces. This phase carries no goal-fit judgment and routes to cheap agents.
Enumerate predicate's own skills plus the host harness's installed skills, tools, and MCP servers available to this project. Project each for relevance to the discovered structure; do not enumerate exhaustively into context.
This phase halts. The walk does not proceed until the human confirms the goal.
From the MAP, extract a candidate goal + requirements / invariants / constraints / known-unknowns. Present the candidate to the human with:
Halt and await confirmation. Goal-fit is not self-attestable — an agent is least calibrated exactly here; the human is the goal authority. Do not proceed to NEST or AUTHOR until the goal is confirmed or corrected.
Decide which directories have a goal genuinely distinct from and in service of the root goal, and therefore warrant their own AGENTS.md.
Default: root only. Add a component AGENTS.md only when a real sub-goal exists. Every additional file is a staleness surface: it must be kept true, linked correctly, and synced at every refresh. The alignment-to-parent requirement (from the AGENTS.md contract) is the defeater substrate — a component whose goal does not serve the root is a structural fault.
/boundary)Draft the root AGENTS.md and any component files decided in NEST. Each
draft MUST conform to the AGENTS.md contract in
/boundary §AGENTS.md:
Component AGENTS.md files MUST include the alignment-to-parent section (how this component serves the root goal).
Each AGENTS.md (root and component) MUST include a Requirements / Invariants / Unknowns hierarchy for the construct it governs (P-TRACK I-T1–I-T2, primitives-spec.md §P-TRACK §"The AGENTS.md fusion"). This makes AGENTS.md the persistent anchor that every subsequent walk hydrates its live tracker from, rather than reconstructing from scratch.
Required sections per construct AGENTS.md:
## Requirements
Each item: statement, grounding (source/evidence), signpost (what defeats it).
Pruned to the minimal bounding set — requirement bloat is drift surface.
## Invariants
Each item: statement, grounding, signpost (what would violate it).
Constraints that must hold throughout; distinguished from requirements by
"must hold" vs "must be satisfied."
## Unknowns
Each item: statement, grounding (why it is not yet resolved), signpost
(the observable that would resolve or invalidate it).
Treated first-class like requirements — filed with a signpost, never
merely noted.
## Spec Pointers
Pointers to full specification sources for this construct: doc paths,
ADR links, contract file paths. Kept minimal — one pointer per
authoritative source, never prose summaries of the specs themselves.
Authoring discipline:
grounding and signpost (mirrors the
context_map.ncl Item contract; last_validated is filled in by
the walk that hydrates, not the orient author).Nest depth: add an R/I/U hierarchy to a component AGENTS.md only when the component has a genuinely distinct sub-goal (Phase 5 NEST criterion). A root-only project has one R/I/U hierarchy in its root AGENTS.md covering all constructs.
This phase halts. The persistent layer mutates only through this reconciliation — never silently.
Present each draft AGENTS.md to the human. The human reconciles
(the volatile draft → persistent sync). On approval, land files at their
target paths (root /AGENTS.md; component <dir>/AGENTS.md).
Unanswered questions from the known-unknown registry that were not resolved during ELICIT are re-presented here for prioritization, so a topic-change does not lose them.
On an already-oriented project, /orient is the sync/refresh pass.
Run it whenever the AGENTS.md hierarchy may have drifted from reality.
The refresh pass re-executes the same eight phases but MAP and SURVEY are diff-scoped (what changed since the last orientation). ELICIT surfaces drift candidates: stale claims, dead links, a parent goal a child no longer serves (a defeater), requirements that became constraints or vice versa.
RECONCILE on a refresh presents only the changed sections, not the full file. Surfaced-but-unanswered known-unknowns from prior orientations are re-presented so they are never silently dropped.
When a walk begins on an oriented project (AGENTS.md hierarchy
exists), it MUST hydrate its live context_map tracker from the
relevant construct's AGENTS.md, not from scratch. (P-TRACK I-T1–I-T2;
primitives-spec.md §P-TRACK §"The AGENTS.md fusion".)
Hydration steps:
AGENTS.md. For a component-scoped task: the component
AGENTS.md (if it exists) plus the root for alignment.id: a stable identifier (e.g. R1, I2, U3)statement: the item textkind: 'requirement, 'invariant, or 'unknowngrounding: the grounding from AGENTS.md (or the AGENTS.md
pointer itself if none is recorded: "AGENTS.md#requirements")last_validated: today's date (ISO 8601) — the hydration datesignpost: the signpost from AGENTS.mdhydration_source: "<path>#<section>" (e.g. "AGENTS.md#requirements")
— records that this item came from the persistent anchornickel export against context_map.ncl (ContextMap contract)
before the walk proceeds.Hydration is the first step of every walk on an oriented project,
before any task work. A walk that skips hydration and starts from scratch
on an oriented project violates I-T1 (absence = all-unknown-unknown). The
tracker_fresh.sh gate enforces this: a stale last_validated on a
hydration_source item signals the anchor has drifted.
Reorientation is not a scheduled re-run; it is a disposition triggered by staleness. (P-TRACK I-T3; primitives-spec.md §P-TRACK §"reorientation as an ONGOING disposition".)
A staleness trigger fires when:
tracker_fresh.sh gate reports STALE on any context-map item
(a last_validated is behind the HEAD commit date).On a staleness trigger:
tracker_fresh.sh <context-map-instance.ncl> to identify stale
items and their hydration_source pointers.hydration_source: read the corresponding AGENTS.md
section and compare against the current state.last_validated updated):
update last_validated in the context-map and continue./orient refresh, and halt for human review.Reorientation scope. A tactical re-validation (step 3) does not require re-running the full eight-phase workflow — it is a targeted tracker update. A strategic reorientation (step 4) re-runs at minimum MAP (diff-scoped) and ELICIT, and presents the corrected R/I/U sections at RECONCILE for human confirmation before writing back to AGENTS.md.
Staleness is not an error. A stale item is a signal, not a failure. The failure is ignoring the signal — carrying a stale, unverified requirement forward into task work (rules.md §7: reconstruct, don't recall).
| Phase | Tier | Rationale |
|---|---|---|
| 0 BOUND | Architect | Bounding judgment; goal-fit stakes highest here |
| 1 ESTABLISH | Mechanical | Pure bootstrap execution; no judgment |
| 2 MAP | Cheap agents | Structure survey; no goal-fit judgment |
| 3 SURVEY | Cheap agents | Enumeration and relevance projection |
| 4 ELICIT | Architect + Human | Goal-fit is not self-attestable; human seam |
| 5 NEST | Architect | Structural coupling judgment |
| 6 AUTHOR | Architect | Contract-conformant draft |
| 7 RECONCILE | Human | Persistent layer mutates only here |
/boundary — the authority for the IBC
sufficiency conditions (phase 0) and the AGENTS.md contract (phase 6)./campaign — for multi-workstream orchestration
after orientation is complete.rules.md — the governing Prime Invariants every
AGENTS.md references.ambient.md — the always-on principles the
AGENTS.md hierarchy anchors to.ledger/gate/tracker_fresh.sh —
the freshness gate; checks whether context-map last_validated fields
are current against HEAD. Fresh→0, Stale→1.ledger/contracts/context_map.ncl —
the live tracker carrier contract; hydration_source field records the
AGENTS.md anchor a hydrated item came from.skills/orient/tracker_freshness.ncl —
the Nickel functional core: is_fresh and stale_items predicates.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