agentleFS
helmut-hoffer-von-ankershoffenhelmut-hoffer-von-ankershoffen/heinzel/.claude/skills/codify/SKILL.md

codify

Skill2 starsChanged 14 days agoMITView on GitHub

Turn a standard the user sets, a correction they make or an instruction they repeat into the strongest durable enforcement - a test or CI check, a lint rule, a git hook, a Claude Code hook, a skill or agent instruction, an AGENTS.md rule, or (last) a memory - and retrofit what already violates it. Use whenever the user corrects how something is done, says "always" or "never", or repeats an instruction.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 2

    Distinctive

    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
  1. Distinctive:

    Prefer one strong check over several weak reminders.

    line 23
  2. Distinctive:

    Commit with a conventional message whose body says what was codified and at which level.

    line 32

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Codify

An intervention the user has to make twice is a missing check. Make it durable at the strongest level that can express it, prove that level catches a violation, and fix the existing violations.

Choose the level (strongest first)

LevelUse whenWhere
Test or CI checkThe rule is checkable from files: structure, presence, naming, links, frontmatter, AST patternstests/unit/*_test.py (AST and file checks like standards_test.py), CI job
Lint or type ruleAn existing tool has a rule for itpyproject.toml (ruff, mypy, pyright, import-linter), typos.toml, zizmor
Git hookIt must hold for every tool and person before code is shared.pre-commit-config.yaml (prek)
Claude Code hookIt is about how an agent works (commands, edits, finishing).claude/hooks/, .claude/settings.json
Skill or agentIt is a procedure or a judgment call.claude/skills/, .claude/agents/
AGENTS.md / CLAUDE.mdIt is a working agreement no tool can checkone line, where the topic already lives
MemoryIt is about the user personally, not the repositoryClaude Code memory

Prefer one strong check over several weak reminders; don't also write a prose rule for what a test enforces.

Steps

  1. State the standard in one sentence, as the user meant it. If it is ambiguous, ask once.
  2. Pick the level from the table and implement it. Plugins inherit the template: put shared checks where scripts/sync_template.py or the template symlinks carry them.
  3. Show it works: introduce a violation, watch the check fail, remove it.
  4. Fix the existing violations in the same change.
  5. Commit with a conventional message whose body says what was codified and at which level.

Download now (ZIP)

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.