audit
/jig:auditTyped in Claude Code. In Codex, ask for the jig:audit skill by name.
Audits the repository against Jig’s practice modules: checks its .config/jig.yaml against the repository, scores every module’s maturity criteria with evidence, and records the result in the repository so the next audit reports what changed
Works with · Inspect and analyse Opens the pull request for an applied recommendation under do-item’s pull-request policy and offers drive-pr on it
A team adopting delivery practices needs to know which ones it already has, which matter most to add, and, months later, whether what it adopted still holds. Without an audit it guesses: practices that exist only as a sentence in a document look the same as practices a check enforces, a gate that quietly stopped running goes unnoticed, and every review of the practices starts from nothing because no one wrote down what the last one found.
/jig:audit points an agent at a repository and returns an audit sheet: a
polished HTML report of where the repository stands against the profile the
team aims for, with prioritized, actionable recommendations the team accepts,
refines or declines in place and hands back to the agent. It is the brownfield entry point
(principle 6),
and because it records what it found in the repository itself, every later run
is a regression check: it reports what was fixed, what slipped, and what Jig
added since, and it does not repeat a recommendation the team declined.
What it does
- Configuration fit (a script). Checks the repository’s
.config/jig.yamlagainst the plugin’s configuration schema and against the repository: unknown, refused, retired or deprecated fields, wrong types, commands and paths that do not exist, required checks that never run, a tracker that cannot be reached, configured GitHub, Jira or Linear facet stores that cannot be used (on Jira, a facet’s field missing from the create screen of an issue type Jig files), Jira’s estimate of the open issues before and after the configured pool issue-type scope (one estimate request each, which the transport may resend after a transient failure, given a few seconds before the counts are reported unchecked), declared values the repository contradicts (stacking: nonewith stacked pull requests open), tracker labels its label taxonomy does not define, a comment-only scheduled sweep missing--position <file>(so issues past the read cap are never reached), and settings its shape suggests. It also reports what a run would trip over: a checkout behind its integration branch, a leftovergroundworkconfiguration,.context/not ignored, a tracker command that resolves nowhere, a gate command that runs less than CI, and an AI reviewer that is posting without being named fordrive-pr(or named without posting). It also gathers what a profile suggestion rests on (how many people commit, CI that deploys or publishes, documents that name a compliance regime) and names the lightest profile those facts support, with the other profile the facts could support when they sit near a boundary. - Surveys. Read-only surveys of the repository’s practices, run in
parallel where the agent can: agent scaffolding, documentation governance,
automation and enforcement, review and learning loop. Each survey also
scores its own modules’ criteria, in a form the record tools write into
the draft (
record.ts’sfilloperation,record.ts’smergeoperation); a small repository is surveyed by the agent itself. Where work runs in parallel, the audit also runs the siblingresolve-conflictsskill’s read-only history report for the last 30 days as M12 evidence. It preserves the window and coverage limits; retained reports and hotspot decisions show whether the target already practices measurement. The audit’s own run does not confer that score. Unsupported git or a failed replay is unchecked evidence. A historical snapshot is scored from its recorded evidence, since current refs and clone-local events cover a different population. - Maturity scoring. Every criterion of every module
(criteria) is scored on the enforcement ladder with
file-path evidence. A criterion that names a fact a file search can rule
out carries a probe: when the fact is missing, the script scores it
absentitself. Given the profile, the draft leaves the criteria beyond its target not examined, so a light profile costs a light audit. - The record.
.config/jig-audit.yamlin the audited repository: the plugin version, the date and commit, the profile the team aims for, each criterion’s score and evidence, and the recommendations the team declined, each with its reason and the condition for revisiting it. The next audit compares against it. - Profiles as targets. profiles.yaml gives each profile (Solo/Lite, Team/Standard, Regulated/Strict) a target level per module and the order to adopt modules in, so the audit shows each module’s target and the criteria left to reach it.
- The audit sheet (format): one self-contained HTML file, with the same report as Markdown beside it. It opens with the summary and a maturity map against the target, then the moves that matter most, what changed since the last audit (with each module’s level across older records), the recommendations by module and the gaps within the target none of them covers, every criterion with its evidence, configuration fit (with a starter configuration where one helps), drift, and exactly what was examined and what could not be checked. Every mark and module chip explains itself in a popover, and a guide inside the same file explains Jig, its modules and profiles, and how to read the sheet, for a reader who has never met Jig.
- Decisions. In the sheet the team marks each recommendation accept,
take the lighter option, refine, decline (with a reason and when to
revisit) or this is wrong; can flag any criterion’s score as wrong; and
can change the profile and which of its conditional targets apply. It
copies the decisions as one block. Pasted back to the agent,
record.ts’sapply-feedbackoperation records the declines, the profile and its conditions, prints the accepted work ranked as the sheet’s Start here ranks it, and prints every wrong as a calibration note without changing a score.
The audit is read-only: it writes the record and nothing else. Applying a
recommendation is a separate request (/jig:audit apply <ref> …) that applies
the accepted recommendations together, in one pull request unless part of the
work needs its own decision, through do-item’s pull-request policy. A
request that asks for the changes in the same session (such as “optimize
this repository for Jig”) may apply, without the team’s decisions, only drift
fixes and written rules, and none to a path the repository’s own rules
reserve (CODEOWNERS, a protected-path inventory); new gates and host
settings wait for a person. The sheet then shows each applied
recommendation, and each drift entry fixed, as done.
Run it
Install the plugin, open an agent
session in a full clone of the repository, and run /jig:audit. Nothing needs
configuring: the audit reads .config/jig.yaml when there is one and reports
“not configured” when there is not. It uses gh for the repository host’s
settings (branch protection, required checks, recent pull requests) and the
tracker adapter for one read; without them it marks those questions
unchecked.
Open the audit sheet it writes, mark your decisions, press Copy decisions and paste them back into the session. Commit the record. Run the audit again after a few weeks of work, or after updating the plugin: the sheet then starts with what changed.
A decline is kept in the record (the sheet writes this for you):
declined:
- refs: [M1/precommit-autofix-hooks] # criteria (M<n>/<id>) or config/<finding id>
reason: The editor formats on save and CI checks formatting.
revisit_when: Formatting failures reach CI more than once a month.
revisit_after: "2027-04-01" # optionalLater audits leave it out until the condition holds, the date passes, or the criteria it names pass on their own.
For several related repositories, /jig:audit portfolio a=<record> b=<record>
compares their committed records instead of auditing each again
(portfolio method).
Contents
| Path | What it holds |
|---|---|
| SKILL.md | The procedure the agent follows |
| config-schema.yaml | Every .config/jig.yaml field: type, readers, since, deprecation |
| profiles.yaml | Each profile’s target level per module, and the adoption order |
| criteria/ | Each module’s maturity criteria and probes, and their format |
| references/methodology.md | The audit method, step by step |
| references/survey-prompts/ | One read-only survey prompt per practice area |
| references/report-sheet.md | The report source an audit writes, and the sheet rendered from it |
| references/portfolio-methodology.md, portfolio-report-template.md | The comparison pass over several repositories |
| calibration/ | Audit runs against real repositories, kept as worked examples |
scripts/config-fit.ts | Configuration fit (--offline, --json, --draft for a starter configuration); the values it suggests, and the starter itself, come from the plugin’s shared detector (shared/detect.ts) |
scripts/report.ts | validate, render and extract of the audit sheet |
scripts/report/lucide/ | The icons the sheet draws, vendored from Lucide under the ISC licence (its LICENSE beside them) |
scripts/score.ts | The scoring checklist, the draft record (--profile to leave criteria beyond the target unexamined, --declare to record that profile as the team’s choice, --at <rev> to score a commit while the checkout has changes), and --check of the criteria |
scripts/record.ts | check, compare, summary, fill, merge, portfolio and apply-feedback over records |
Changing it
- A new configuration field goes into config-schema.yaml,
the configuration page and the skill that reads it in one
pull request, with
since:the new plugin version; the audit’s tests fail when the schema and CONFIGURATION.md disagree, or when the schema’s value sets differ from the reading skills’ own. - A new or changed criterion follows criteria/README.md;
a new one carries
since:. - A value the configuration fit should derive from the repository goes into
the shared detector (
shared/detect.ts, besideskills/) with its tests, so every skill that reads the repository’s values finds it; what the audit says about it stays inscripts/config-fit.ts. - A run that exposes a gap in the method updates the survey prompts or the methodology, and the run is kept under calibration/.
Source: plugin/skills/audit/README.mdThe agent's contract (SKILL.md)