/agentkit:autonomous-workflowfrom agentkit
Proposal-first development workflow with commit hygiene and decision authority rules. Enforces: propose before modifying, atomic commits, no force flags, warnings-as-errors. Use for any project where AI agents are primary developers and need guardrails.
Ships in agentkit. 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.
NEVER create or modify files without explicit approval. Always:
Exceptions: bug fixes in already-approved work, read-only research, formatting.
This section and the review-effort resolver below apply when the explicit
adversarial-review skill kit is installed (install.sh --with adversarial-review or
the agentkit-adversarial-review plugin). Without it there is no merge gate and no
review-profile/adversarial-review lane — the review-discipline instruction
(from the opt-in advisory-review kit) covers that case when installed: one
advisory reviewer pass from a non-authoring context, then merge on approval.
Review is a gate, not a parallel task and not advice. review-police.sh allows
one standalone gh pr merge or glab mr merge only with a passing record for
the exact source head selected by the forge. The command must carry that head
through gh --match-head-commit or glab --sha, so the forge refuses a source
that advances between review and merge. GitLab commands must also pass
--auto-merge=false so current glab does not defer the merge by default. It
refuses direct REST/GraphQL/MCP and compound or wrapped merges because they
cannot be bound safely.
Be honest about its limits: the record lives in the repo and you can write it,
so the hook cannot prevent a determined bypass — it makes the honest path
correct, makes a missing or stale review impossible to merge past by accident,
and logs every pass and override to ~/.agentkit/review-audit.log. Only
forge-side required approvals actually prevent a merge. Never describe this
gate as something it is not.
Run review-profile --repo . --risk trivial|standard|critical, adding
--release and --user-facing when applicable. The default balanced profile
uses one exact-head adversarial review for ordinary non-trivial work. A second
specialist is risk-triggered, and product review is triggered by critical risk,
a release, or a user-facing change. fast narrows the optional lanes; strict
preserves the maximal workflow. Follow the resolver's required decisions.
Use the command from PATH after a global install. A Claude plugin-only install
uses $CLAUDE_PLUGIN_ROOT/tools/review-profile; a project install can use
.claude/tools/review-profile or .codex/tools/review-profile.
Global settings live under review: in
~/.config/agentkit/config.yaml; repository overrides live in
.agentkit/config.yaml. AGENTKIT_REVIEW_PROFILE and --profile are explicit
session/task overrides. These settings control orchestration only. Target-owned
review policy is authoritative and may require checks, product coverage,
analyses, or evidence that the selected profile would otherwise omit.
Complete changelog, formatting, focused tests, typechecks, and other
deterministic preflight before you freeze the source head. Push that final head,
then start its required review lanes and CI concurrently. Any later commit
invalidates every source-head-bound result. If CI passed against that exact SHA
and the profile selects ci-evidence: reuse, cite the exact-SHA CI evidence;
do not repeat the same suite locally. Novel falsification probes still run.
Review completes before the merge starts. Never dispatch a reviewer and merge while it works — a verdict that lands after the code is on main protects nobody. Run the approved merge as its own literal forge CLI command. Do not combine it with a push, another merge, command substitution, or any other shell action: PreToolUse sees the compound call only once, before any part runs.
The reviewer writes its evidence index to
.agentkit/reviews/<branch-slug>.json. When the exact target commit contains
.agentkit/review-policy.json, this is a strict v2 record bound to forge,
canonical repository URL and immutable ID, change ID, source/target branches
and SHAs, and the target-policy blob. A review of an older source or target
context is not a review of what you are merging. Only policy absent from the
exact target commit permits the legacy head_sha v1 shape.
That file is a machine-local GATE TOKEN and evidence index, not an archive:
it is gitignored, read by one local hook, and orphaned after merge. So also
post a redacted evidence packet as a comment on the MR/PR (glab mr note
/ gh pr comment) and put its reference in evidence_ref. Include claims,
checks, analyses, attempted falsifications, findings, and uncertainty. The
durable copy is visible and timestamped, but it still does not prove reviewer
identity or truth. Never commit the local record: a commit changes the source
SHA and makes the record stale against itself.
Findings that outlive the branch — accepted limits, deferred fixes — belong in an ISSUE, not only in a review record. If the only trace of a known limitation is a local JSON file, it is already lost.
Any unresolved BLOCKER or HIGH blocks the merge. Severity is the reviewer's call. You do not get to downgrade it, reinterpret it, or decide it is inert because you reason it cannot fire.
The path is: fix it properly, then re-review. Fix the root cause — not a workaround, not a flag that hides it, not a comment explaining why it is acceptable. Then re-run the reviewer against the new head and merge on a fresh pass.
Audit the claims, not just the logic. Grep the diff's comments, commit
messages and MR/PR description for factual assertions — especially
every, always, never, all, verified, probed, cannot — and check each
against reality with git grep, a probe, or the code itself.
Common failure shapes include a change description asserting compatibility with clients that do not exist, a comment citing a probe that exercised a different branch, or a rule table contradicted by code in the same file.
Report any claim that outruns its evidence, even when the code is correct. Wrong prose is not cosmetic — it teaches the next reader a wrong model, and the next change is made against that model.
Do not hand findings to the user to approve. They are not a queue for
work you would rather not do. Escalate only when a finding genuinely cannot
be fixed — an upstream or platform limitation — and say why. If they then
approve in writing, target policy may allow their exact words in
user_consent for a valid blocked trivial/standard record. Critical records
never accept local consent; use authenticated forge authority. Fabricating
consent is forging their approval.
Classify by blast radius, not diff size. Authentication/session, credentials, access control, retry/reconnect, caching, rate limits, migrations, money, irreversible operations, and review/policy enforcement are critical by default. Tier can rise during work and never falls.
unverified.adversarial-review lane when selected by the
resolved profile (every non-trivial change by default). Add a separate
specialist only when selected by risk or policy. Trace from primary artifacts
before reading maker narrative. A finding counts only with a concrete failing
input or replayable trace.product-review separately when selected by the profile
or required by target policy. Diff correctness does not certify installation
or operation.not_applicable needs a reason and only satisfies policy where allowed.Cap fix-review at two full cycles per genuine defect class. If the same defect still cannot be closed or guidance genuinely conflicts, stop and give the owner the verbatim diff, findings, traces, and reviewer outputs. Critical work fails closed when the judge/external check is unavailable.
Corollary, learned the hard way: never expose a user-facing control whose other half is not built. Ship both halves or neither — an inert-looking toggle is still reachable, and "it will not do anything" is a prediction, not a fact.
A diff reviewer answers "is this change correct?" — it structurally cannot see what is not in the diff: a stale build command, a default that yields a broken-looking install, missing packaging, a setup step that lives only in someone's head. Those reach the user untouched no matter how many diff rounds you run.
When the resolved profile selects the product lane—or target policy requires
it—run the product-review skill as a separate pass: build it, run it, use it,
from a cold start. It reads
.agentkit/product.yaml and refuses rather than guessing when that is absent.
When the two lenses disagree on severity, the user-facing consequence wins —
internally correct code that cannot be used is still broken.
Before building on another system's behaviour, OBSERVE it: run a probe, capture a real payload, or quote the doc with its URL. Preserve the relevant evidence next to the code that depends on it, with secrets, tokens and personal data redacted, and mark it observed vs inferred (see "Observed vs inferred" in product-review).
Assumptions about wire protocols, event names, error shapes and field nullability are the ones that bite — and tests written from an assumption cannot catch it, they encode it.
Tests that synthesise an assumed provider event prove only that the code handles the invented fixture. Probe the real transport before treating that event as a supported contract.
Take the one or two values this change is actually about — not every value the feature touches. A re-run per value is the one rule here that can eat an afternoon on a slow suite. Replace each with a constant and re-run.
If replacing a load-bearing value with a constant leaves the suite green, the tests do not observe that value yet.
Co-authored-by, Ultraworked with, or any AI agent attribution to commits, PRs/MRs,
comments, or changelogs. Keep commit messages clean and focused on the change itself.Before starting large implementations (multi-phase plans, migrations, new stack deployments):
Agent instructions are living documents. When you discover something that should be codified -- a new pattern, a gotcha, a convention, a lesson learned -- PROPOSE updating the relevant config file:
When a reviewer disproves something you asserted, correct the stored note then — not at session end, not on a timer. Prune as readily as you append: a confident stale note is worse than none, because later work may trust it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub developerinlondon/agentkit --plugin agentkit20 skills in this plugin
/agentauthzAdminister an agentauthz host over its MCP tools (authz_describe, authz_check, authz_grant, authz_grants, authz_revoke, authz_policies, authz_audit_query): read the descriptor before touching vocabulary, grant curated policies bounded down, probe-check both directions after every change, verify in the audit trail. Triggers: granting or revoking access, authoring or validating authz policy, "why was this denied", bounds, condition keys, agentauthz, authz MCP tools./architectStudy a system and produce living architecture documentation — explanatory pages with high-quality diagrams. Use AUTOMATICALLY when the user asks to document, explain, map, or review an architecture ("how does this system work", "architecture diagram of this repo", "create/refresh the design docs"), or to keep architecture pages current after changes. Orchestrates the diagram and publish-page skills./code-qualityOther plugins' skills for the same job