/predicate:forgefrom predicate
Enforces disciplined pull/merge request workflows on git forges: branch↔PR mapping, self-contained PR prose, review-on-forge, merge consent, and forge audit. Triggers on PR-related actions.
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.
Applicability is conditional. Some projects have no forge — a bare remote, a patch workflow, or no remote at all — and nothing here applies to them; absence of a forge is never a violation. When the project has a forge, this discipline applies in full. The test is mechanical: does the origin remote resolve to a forge the project accepts contributions through?
The flight recorder (.ledger/) is the internal durable record; the
forge is the external one — the only record most future readers will
ever see. The two have different audiences and MUST NOT leak into each
other: the recorder may reference forge artifacts (they are public,
permanent URLs); forge prose MUST NEVER reference process-internal
state. A PR body that cites .scratch/, .ledger/, a session link, or
a working note is broken for every reader outside the process that
wrote it — and those are all of its readers.
Forge operations — opening/updating PRs, posting comments and
reviews, reading state — prefer the forge's MCP server where the
session has one connected: structured, typed calls over stringly CLI
output. The CLI (gh, glab, …) is the fallback, and plain git+HTTPS
the primitive beneath both (degrade-to-the-primitive applies: never
depend on the MCP being present). The one hard exception runs the other
way: merges are always the git CLI (§4, MERGE_IN_GIT) — no MCP or
API merge endpoint, ever.
Two PR tiers, one campaign:
campaign/<TOPIC> integration
branch surfaces as a single PR against the default branch; independent
workstreams get independent branches and PRs, never one omnibus. Its
body is the campaign checklist (§2)..scratch/, no .ledger/,
no sketch or session links, no "as discussed" — and no campaign-
internal identifiers (node or finding tokens): to every reader outside
the process they are dangling labels. Where context is load-bearing,
use permalinks pinned to a commit SHA — branch-relative links rot
when branches are deleted.gates/check_forge_prose.sh --files <draft> over it before posting —
internal IDs, the process-vocabulary scan (advisory-with-override:
rewrite the sentence in substance terms, or narrow FORGE_VOCAB_PAT
in .ledger/config.sh for a genuine per-project collision), and the
hard-wrap lint, in one pass.- [x] #<node-PR-number> — <what it landed, in repository terms>.
On GitHub use the bare #N reference — the forge renders the PR's
live title and state natively; on other forges use their native
reference syntax, a plain link as the primitive. Item text obeys the
same self-containment rule as everything else: describe the landing
in repository terms, never by campaign-internal node tokens.Decorrelated review findings and their triage belong ON the PR, as comments — the forge is where the review record survives:
<sha>" — never a cast of process actors;
the record is the finding, not the machinery that produced it.A checklist, not a ceremony — owned by the composer, run at two points: alongside each merge-consent, and over the campaign's whole forge surface at council CLOSE. The forge is the campaign's outward communication, and communication is conducting: the composer authors the forge surface, so the composer answers for it. The lead-maintainer's gate is the CODE and its maintenance burden — his attention stays on the diff, and routing this audit to him dilutes the one review only he can give. The composer MAY delegate the reading to a dedicated read-only reviewer when the surface is large; the verdict and the fixes remain the composer's.
check_forge_prose.sh passes over every body and comment
drafted this round (IDs, vocabulary, hard wraps).Out-of-scope findings are work the campaign discovered but will not do — and undocumented, they evaporate with the campaign's scratch. The forge is their durable home:
ACCEPTED_RISK disposition names its issue — the
audit (§5) checks the record is whole. Acceptance without an issue is
a silent drop wearing a disposition.Labels are navigation for a future triager, not decoration — where the forge supports them, every issue an agent opens is tagged, and the scheme is discovered before it is invented:
security-critical / correctness-critical, or the project's
established equivalents) whenever it is opened — including every
out-of-scope finding deferred to an issue under §6. An untagged
critical issue is a mis-filed risk: it will be triaged as routine by
whoever reads the tracker next.[security-critical] …) so the signal survives the missing feature.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.
/campaignSOP for the architect-tier campaign workflow (/campaign): exhaustive
survey, mitigation planning, tiered orchestration, and reconciliation.
Trigger when:
- Running a multi-workstream initiative where an expensive architect-tier
council surveys, plans, emits worker prompts, and judges landed work.
- Conducting production-readiness assessments that fan out into
autonomous mitigation dispatches across model tiers.
- Prompt contains: /campaign, campaign workflow, survey, orchestrate,
reconcile, premise freshness, tier routing, worker IBC, scratch.
/chronicleMaintain and update the persistent project chronicle (docs/chronicle.md).
Trigger when:
- The human requests a history summary or chronicle update.
- Starting work on a new codebase and needing context on its evolution.
- Prompt contains keywords: /chronicle, chronicle, project history, git log summary, history summary.
/commit-hygieneRules, conventions, and constraints for formatting git commit messages and committing at logical boundaries.
Trigger when:
- Drafting, revising, or validating git commit messages.
- Pausing at commit boundaries under the CORE or CONTINUE workflows.
- Evaluating whether a changeset should be split into multiple commits.
- Prompt contains keywords: commit message, git commit, conventional commits, commit hygiene, commit guidelines, logical boundary, spaghetti diff, atomic commit, commit boundary.
Other plugins' skills for the same job