Skip to content
Skills Library
Programming · Review & audit

simplicity-audit

/simplicity-audit

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 (sonarcl

Repository
ailang ↗
Licence
Apache-2.0
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
2
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What to check before installing
  • 2 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/audit.sh, scripts/dup_symbols.sh

What it does and when to use it

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 (sonarcl

Triggers from the description

simplicity auditweekly auditis the codebase getting more complexfind duplicate implementationscodebase health check
Original author description

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 (sonarcl

How it works

  1. Run it
  2. What to do with the output
  3. Weekly schedule
  4. Positive control
  5. Boundaries
Original SKILL.md headings · 89 lines, 687 words
SKILL.md preview
---
name: simplicity-audit
description: 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).
---

# 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](../../../design_docs/planned/m-v1-simplification-program.md):
the program closes the gaps once; this skill keeps them closed.

## Run it

```bash
make simplicity-audit          # full: re-measures, diffs, banks, exit 2 on regression
make simplicity-audit-fast     # same without the timed make test-core row
```

Under 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

1. **A `WORSE` row 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).
2. **A new duplicate symbol name** is not automatically wrong (`NewClient` per 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. Cite `git log -S` in the commit, per
   `.claude/rules/coding-standards.md` — never delete on "unused" alone.
3. **A package without a comment** gets a three-line `doc.go`: what it is, what it is not,
   which confusable sibling to use instead.
4. **A skill citing a missing command** is a stale instruction an agent will follow;
   fix the citation the same day.
5. **Closure growth** (`closure_internal_packages`, `closure_platform_packages`,
   `closure_leak_roots`) is caught earlier and harder by `internal/diag/closure_test.go`,
   which fails CI. If the audit shows growth that test did not catch, the test's root
   list in `tools/simplicity_metrics.sh` is 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): `/schedule` with the prompt
  `run the simplicity-audit skill and report regressions` on `0 9 * * 1`.
- **Rig launchd**: a `dev.ailang.simplicity-audit` job 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:

```bash
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 snapshot
```

## Boundaries

- 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-organizer` owns file size; `sonarcloud-triage` owns Sonar; `docs-sync` owns
  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 warning` clean and must not use `grep -q` on a pipe under `pipefail`
  (SIGPIPE turns a hit into a miss) or BRE `\|` alternation (BSD grep has none).
Files in this package (3)
  • SKILL.md 5 KB
  • scripts/audit.sh 4 KB
  • scripts/dup_symbols.sh 1 KB

Versions

RepositoryScoreLicence
This page · sunholo-data/ailang100Apache-2.0
ctxpipe-ai/ctxpipe90MIT

Database snapshot: 13.11.2026 · package version 85b5d19c6582 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100better-simplicity
    Find and remove unnecessary software complexity while challenging refactoring proposals for KISS and YAGNI violations. Use when code has excessive layers, speculative abstractions, single-use factories or interfaces, over-generalized types, configuration indirection,…
  • 90codebase-health
    Runs the codebase health audit through the paqad-ai health verbs, then triages and narrates the findings on dead code, packages, secrets, stale docs and copy-paste, and retests an earlier report. Use when the user asks to check project or code health, audit the codebase, find…
  • 100cds-code-simplicity
    Directly simplify existing code changes for clarity and minimal complexity. Use after writing or modifying code when the user wants unnecessary complexity, defensive patterns, over-abstraction, excess state, or excess line count removed by making edits. Applies to any language.…
  • 84setup
    Verify and configure the codebase-health plugin for this repository. check inspects the tracked .claude/codebase-health.md config read-only across its merge layers (presence, dimension source lists, tracked-not-ignored); apply interviews the user, infers audit targets from the…
  • 90architecture-audit
    Use when a whole codebase (not one diff) needs a comprehensive architectural review AND restructuring - god classes to split, duplicate code and duplicate rules to unify, file-system layout, namespaces, file and class names to fix, dependency direction to enforce, and the…
  • 100better-codebase
    Coordinate an evidence-based review and safe improvement of an existing codebase across architecture, simplicity, duplication, maintainability, dependencies, testing, and performance. Use only when explicitly invoked for a holistic codebase audit, prioritized refactoring plan,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.