simplicity-audit
Skill38 starsChanged 8 days agoApache-2.0View on GitHub
Weekly codebase-complexity audit — re-measures the v1.0.0 simplicity gates (language-core closure, command and flag counts, os.Getenv routes, duplicate symbol names across packages, packages without a doc comment, skill trees, instruction-surface bytes, tracked files, root clutter), diffs against the last banked snapshot, and names what got more complex. Use when the user says "simplicity audit", "weekly audit", "is the codebase getting more complex", "find duplicate implementations", "codebase health check", or before a release. NOT for file sizes (codebase-organizer) or Sonar issues (sonarcloud-triage).
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Vix0007/vixero-skillstheir own version, first seen Apr 24, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Vix0007/vixero-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository85 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- agent-inboxSkill
- ailang-core-triageSkill
- ailang-packagesSkill
- benchmark-managerSkill
- benchmark-runnerSkill
- builtin-developerSkill
- cli-doc-maintainerSkill
- cloud-cascade-debugSkill
- cloud-setupSkill
- codebase-organizerSkill
- collaboration-hubSkill
- coordinator-helperSkill
- design-doc-creatorSkill
- design-spec-auditorSkill
- docs-syncSkill
- eval-analyzerSkill
- eval-gap-finderSkill
- gemini-cli-helperSkill
- github-issue-triageSkill
- headless-runnerSkill
- local-model-onboardingSkill
- local-ollama-evalSkill
- mission-briefSkill
- mission-controlSkill
- mission-loop-changeSkill
- model-managerSkill
- motoko-analyzerSkill
- parser-developerSkill
- post-releaseSkill
- pr-monitorSkill
- prompt-managerSkill
- release-managerSkill
- sonarcloud-triageSkill
- sprint-evaluatorSkill
- sprint-executorSkill
- sprint-plannerSkill
- test-coverage-guardianSkill
- trace-debuggerSkill
- use-ailangSkill
- wasm-debuggerSkill
- agent-inboxSkill
- ailang-core-triageSkill
- ailang-packagesSkill
- benchmark-managerSkill
- benchmark-runnerSkill
- builtin-developerSkill
- cli-doc-maintainerSkill
- cloud-cascade-debugSkill
- cloud-setupSkill
- codebase-organizerSkill
- collaboration-hubSkill
- coordinator-helperSkill
- design-doc-creatorSkill
- design-spec-auditorSkill
- docs-syncSkill
- eval-analyzerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 75
Before trusting a green run, prove the instrument sees a positive once per quarter:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Simplicity Audit
The 800-line file gate cannot see the thing that actually makes this repo hard for an
agent: count and duplication. Two implementations of one concept, a sixth backend
switch, a package with no comment, a command with no --help — none of those move a
file over 800 lines. This skill measures them and diffs week over week.
It is the standing instrument for M-V1-SIMPLIFICATION-PROGRAM: the program closes the gaps once; this skill keeps them closed.
Run it
make simplicity-audit # full: re-measures, diffs, banks, exit 2 on regression
make simplicity-audit-fast # same without the timed make test-core rowUnder the hood: .claude/skills/simplicity-audit/scripts/audit.sh runs
tools/simplicity_metrics.sh, compares the JSON with the newest snapshot under
.ailang/state/simplicity/, prints a before/now/delta table, then the concrete names
behind the counts (which symbols are duplicated where, which packages lack a comment,
which platform packages the language core reaches, which skill cites a command that
does not exist), banks today's snapshot, and exits 2 if any gated metric moved the
wrong way. Snapshots are tracked in git so the diff works on any machine.
scripts/dup_symbols.sh [min] on its own lists every top-level function name declared
in min or more packages (default 3), with the packages. That list is where duplicate
implementations hide — truncate ×5 with three semantics, writeJSON ×4,
setProcessGroup ×4 were all found this way.
What to do with the output
- A
WORSErow on a gated metric is a regression against the program's release gate. Find the commit:git log --since=<last snapshot date> -- <the area>and either revert the route or route it through the survivor the program names (one config package, one plane switch, one loader per concept). - A new duplicate symbol name is not automatically wrong (
NewClientper provider is honest). Open the two definitions; if they do the same job, the one with more callers survives and the other becomes a call to it. Citegit log -Sin the commit, per.claude/rules/coding-standards.md— never delete on "unused" alone. - A package without a comment gets a three-line
doc.go: what it is, what it is not, which confusable sibling to use instead. - A skill citing a missing command is a stale instruction an agent will follow; fix the citation the same day.
- Closure growth (
closure_internal_packages,closure_platform_packages,closure_leak_roots) is caught earlier and harder byinternal/diag/closure_test.go, which fails CI. If the audit shows growth that test did not catch, the test's root list intools/simplicity_metrics.shis stale — fix the list, not the number.
Report to the user in this shape: the delta table, the ranked "new since last audit" names, and one recommended action per regression. Do not fix during the audit unless asked; the audit is the observe step.
Weekly schedule
The skill is meant to run every Monday alongside the Dependabot batch. Two ways:
- Claude Code routine (cloud):
/schedulewith the promptrun the simplicity-audit skill and report regressionson0 9 * * 1. - Rig launchd: a
dev.ailang.simplicity-auditjob is a mission-loop-change task, not a copy-paste — go through that skill so the plist inherits the memory gate and the HOLD protocol.
Either way the run must commit the new snapshot (.ailang/state/simplicity/<date>.json)
or the next week's diff is against a stale base.
Positive control
Before trusting a green run, prove the instrument sees a positive once per quarter:
printf 'package diag\nimport "os"\nvar _ = os.Getenv("AILANG_PLANTED")\n' > internal/diag/planted.go
make simplicity-audit-fast # must report getenv_outside_config WORSE and exit 2
rm internal/diag/planted.go
git checkout -- .ailang/state/simplicity/ # discard the planted snapshotBoundaries
- This skill measures; the program's sprints change code. Route findings into a sprint
via
sprint-planner, not into ad-hoc edits during the audit. codebase-organizerowns file size;sonarcloud-triageowns Sonar;docs-syncowns the docs site. Overlap is deliberate zero.- The metrics script is bash 3.2 and BSD-grep safe (the rig). Any edit to it must keep
shellcheck -S warningclean and must not usegrep -qon a pipe underpipefail(SIGPIPE turns a hit into a miss) or BRE\|alternation (BSD grep has none).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

