agentleFS
jrcopetijrcopeti/brain-template/skills/lint/SKILL.md

lint

Skill0 starsChanged 7 days agoMITView on GitHub

Check the brain for dead links, drift, and conflicts. Use right after every triage (same scheduled job), or when the user says 'lint the brain', 'check the brain', 'is the brain up to date'. Fixes the mechanical problems itself (index lines pointing to nothing, files missing from the index, dead links) and reports the judgment calls to the user (two notes that contradict, a guideline that no longer matches how they work) without changing them.

84 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use query, ingest and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ArtemXTechSkill

    query

    Query data from this vault. USE WHEN user asks about projects, clients, tasks, daily notes. Use grep to extract frontmatter - do NOT read full files.

    Also in 18 projects that use this

  • Google CloudSkill

    ingest

    Extracts, distills, and compiles raw sources (PPTX slide decks, PDFs, Word docs, Excel sheets, web URLs, transcripts, codebases, or raw/ directories) into persistent, structured Knowledge Compiler markdown wikis following the Open Knowledge Format (OKF v0.2) and Andrej Karpathy LLM-Wiki standard. Use when the user invokes /ingest, asks to ingest raw files or a target path, compile knowledge, update the wiki, or extract unstructured files into markdown knowledge bases. Don't use for retrospectively compiling the active chat conversation without external files (use distill-session) or for read-only vault lookups (use vault-query).

    Also in 27 projects that use this

  • BugRogerSkill

    project

    Project lifecycle management. Dispatches to Ada.

    Also in 5 projects that use this

  • PydanticSkill

    coverage

    Fetch coverage diff from Codecov for the current branch or a specific PR. Shows uncovered lines, patch coverage, and overall coverage change.

    Also in 4 projects that use this

  • NVIDIASkill

    save

    Persist the working library to the run dir and durable catalog. Use for /save.

    Also in 5 projects that use this

  • GitHubSkill

    state-management

    CoreAI Sandbox's TanStack Query + mock-JSON data layer. USE WHEN: editing data-fetching hooks (`app/hooks/use*.ts`), adding mock data in `app/data/`, or wiring a component to query state.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 70 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the script again until it prints no problems.

    line 31
  2. Distinctive:

    Read the notes changed recently, and the guidelines.

    line 35
  3. Very specific:

    Run node sync.mjs from the brain folder.

    line 43
  4. Distinctive:

    Don't "fix" a contradiction by deleting a note.

    line 47

“Common” is measured: kept by at least 6 in 10 of the 70 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

Lint

A wrong note is worse than no note: the agent acts on it with full confidence. This skill keeps the brain true.

1. The mechanical pass (the script)

python3 skills/lint/scripts/lint.py --fix

It repairs index drift by itself and lists what is left. Then fix the rest:

ProblemWhat you do
index: added … (write its one-line summary)replace the TODO with one line on what the file is
dead link in …find where the target moved (grep the name) and fix the link; if it is gone, remove the link
no source cited: …add the source link; a rule the user decided themselves gets source: own in its front matter; otherwise tell the user
superseded decision without …set superseded_by: to the replacing decision
<field>: … names …, which is no decisionfix the link: a typo, a moved file, or a path outside decisions/
<field>: … names …, which has no …: backadd the matching field on the decision it names: amended_by: ↔ amends:, superseded_by: ↔ supersedes:
… names itselfthe field points at its own file: point it at the other decision
superseded_by: … status isn't supersededset status: superseded, or, if only part changed, make it amended_by:
decision without a dateadd date: from the file name
warnings (inbox, taste)tell the user; don't delete taste entries

Run the script again until it prints no problems.

2. The judgment pass (you)

Read the notes changed recently, and the guidelines. Look for:

  • Contradictions: two notes that claim opposite things. Add > [!warning] Contradiction: <other note> at the top of both. Don't pick a winner.
  • Stale facts: a project note or guideline that no longer matches what you see in the projects.

Report these to the user in a short list. Never change their meaning yourself.

3. Finish

Run node sync.mjs from the brain folder. It commits your fixes, pulls, and pushes.

Gotchas

  • Don't "fix" a contradiction by deleting a note. Old decisions are marked superseded, never deleted.
  • The script only knows structure. Two notes can both pass it and still disagree — that is why step 2 exists.

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.