Skip to content

cmd audit

github-actions[bot] edited this page Apr 26, 2026 · 2 revisions

nself audit

Run ecosystem audits: documentation coverage, origin consistency, and quarterly review gates.

Synopsis

nself audit <subcommand> [flags]

Description

nself audit runs structured audits across the ɳSelf ecosystem. Each subcommand targets a specific audit surface.

The docs subcommand checks documentation coverage against code reality: command pages against registered cobra commands, wiki pages against plugin registry, env var references against .env.example. It is the same check the CI doc-sync gate runs on every PR. Running it locally surfaces drift before it reaches CI.

Subcommands

Name Description
docs Run quarterly documentation audit: commands vs wiki, plugins vs registry, env vars vs .env.example

Flags

audit docs

Flag Default Description
--format table Output format: table or json
--fail-on-drift false Exit non-zero when any drift is found (default in CI)
--only "" Run only one surface: commands, plugins, env

Examples

# Run full documentation audit (table output)
nself audit docs

# Check only command wiki coverage
nself audit docs --only commands

# JSON output for CI integration
nself audit docs --format json --fail-on-drift

Notes

  • nself audit docs is invoked automatically by the doc-sync.yml CI workflow on every PR that touches cmd/commands/ or .github/wiki/.
  • Drift findings reference the canonical SPORT files at ~/Sites/nself/.claude/docs/sport/F02-COMMAND-INVENTORY.md and F03-PLUGIN-INVENTORY-FREE.md.
  • The --fail-on-drift flag is set by default in CI. Running locally without it produces a report but always exits 0.

See Also

Commands | Home

Home


Getting Started


Commands


Features


Configuration


Plugins (87 + 10 monitoring)

Free (25)
Pro (62)
Planned (26)
  • plugin-audit
  • plugin-blog
  • plugin-checkout
  • plugin-commerce
  • plugin-drm
  • plugin-export
  • plugin-flow
  • plugin-import
  • plugin-ldap
  • plugin-mailgun
  • plugin-media
  • plugin-oauth-providers
  • plugin-pages
  • plugin-postmark
  • plugin-rate-limit
  • plugin-reports
  • plugin-saml
  • plugin-scheduler
  • plugin-sendgrid
  • plugin-sso
  • plugin-subscription
  • plugin-thumb
  • plugin-transcoder
  • plugin-twilio
  • plugin-waf
  • plugin-watermark

Guides


Architecture


Reference


Licensing


Security


Brand


Operations


Contributing


Admin


Changelog

Clone this wiki locally