@jmagly/twelve-factor-audit
AAudit an application against Twelve-Factor and modern 12+ Factor criteria with structured evidence, risks, and remediation tasks.
Install
agr install @jmagly/twelve-factor-audit --target claudeWrites 1 file into .claude/skills/, pinned to git-9a3b8060.
- .claude/skills/twelve-factor-audit/SKILL.md
Document
namespace: aiwg name: twelve-factor-audit description: Audit an application against Twelve-Factor and modern 12+ Factor criteria with structured evidence, risks, and remediation tasks. platforms: [all] triggers:
- "twelve factor audit"
- "12 factor audit evidence"
- "audit application against 12+ factor"
- "cloud native operational audit"
Twelve-Factor Audit
Use this skill to inspect an implemented application and produce a structured audit report that downstream quality, security, reporting, and delivery workflows can consume.
Triggers
- "Audit this repo against Twelve-Factor"
- "Produce a 12+ Factor evidence report"
- "Find cloud-native operational readiness gaps"
- "Turn Twelve-Factor audit findings into remediation issues"
Behavior
- Establish the audit scope: application name, repo paths, deployment targets, environments, release process, and evidence sources.
- Collect evidence from code, dependency manifests, lockfiles, configuration, deployment manifests, CI, tests, API contracts, logs, dashboards, runbooks, ADRs, and security/provenance artifacts.
- Assess every original Twelve-Factor principle plus the modern extension factors listed in the addon README.
- Assign each factor a status of
pass,partial,fail, ornot_applicable. - For every finding, cite concrete evidence paths or note
missingevidence explicitly. - Record risks with severity and impact, then map remediation to owner-ready tasks.
- Validate the report against
schemas/audit-report.schema.jsonwhen the output is JSON.
Output
Use templates/audit-report.md for human-readable reports or the JSON contract in schemas/audit-report.schema.json for machine-readable reports. Every factor finding should include:
- Factor identifier and title
- Status
- Evidence list
- Risks
- Remediation tasks
- Traceability links to requirements, ADRs, tests, code/config, and issues when available
Examples
Input:
Audit the billing service. Evidence is in package.json, package-lock.json, Dockerfile, helm/, openapi.yaml, .gitea/workflows/test.yml, docs/runbooks/billing.md, and dashboards/billing.json.
Expected output:
Overall status: partial
Pass: codebase, dependencies, port binding, logs
Partial: config, backing services, telemetry, dependency hygiene
Fail: build/release/run separation, supply-chain provenance
Remediation: split release metadata from image build; add SBOM/provenance evidence; document backing-service attachment contracts.
References
- @$AIWG_ROOT/agentic/code/addons/twelve-factor/checklists/audit-checklist.md
- @$AIWG_ROOT/agentic/code/addons/twelve-factor/templates/audit-report.md
- @$AIWG_ROOT/agentic/code/addons/twelve-factor/schemas/audit-report.schema.json
- @$AIWG_ROOT/agentic/code/addons/twelve-factor/fixtures/sample-audit-report.json
- @$AIWG_ROOT/agentic/code/addons/twelve-factor/rules/twelve-factor-evidence.md
Trustgrade A
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- passLicense
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-9a3b80602de42026-07-31