agentleFS
gregpagregpa/claude-skills/.claude/skills/anti-dark-code/SKILL.md

anti-dark-code

Skill0 starsChanged 4 months agoNo licenceView on GitHub

Enforce readable, comprehensible code on SUBSTANTIAL coding work so nothing ships that the human can't explain ("dark code") — spec-first, self-documenting comments that explain WHY (not what), and a short comprehension-gate summary after building. Also audits an existing codebase for dark code without breaking it. Use when: creating a new app / module / component / feature; a refactor that changes how pieces connect; any change spanning 3+ files; or when the user explicitly asks to "audit this codebase for maintainability", "make this code understandable", or "clean up this code for the next reader". Do NOT use for: single-line or single-file trivial edits, config/value tweaks, or non-code work (documents, conceptual Q&A). Do NOT use it as a bug/security/correctness review — that's the code-reviewer sub-agent — nor as a plan stress-test before coding — that's the codex-review skill. It complements, and does not replace, the project's planning and simplicity rules.

The file

Show its rules and text

We split this skill into the rules it gives an agent

23 rules. About 0 are common, 23 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈23

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

No licence file, so all rights are reserved — read it at the source. We count its rules but don't quote them. Read them on GitHub.

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 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.

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.