agentleFS
ragnarwestadragnarwestad/aide/.claude/skills/aide-repo-maintenance/SKILL.md

aide-repo-maintenance

Skill2 starsChanged 25 days agoMITView on GitHub

How to add a new skill, update a shared rule, or change the 4-file spec structure in the Aide repo itself, and how install.sh/uninstall.sh must stay mirrored. Use when: adding or editing a skill or rule under core/, changing spec-structure.md, or touching install.sh/uninstall.sh. Do NOT use for: ordinary spec work (create/analyze/implement/archive) in any project Aide is installed into — this is about maintaining Aide's own source.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 1 is distinctive, and 6 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.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read docs/SKILL_GUIDE.md for structure and best practices

    line 21
  2. Very specific:

    Create core/skills/<name>/SKILL.md with frontmatter and core instructions

    line 22
  3. Very specific:

    Put heavy documentation in core/skills/<name>/references/

    line 23
  4. Very specific:

    Run cd core/implementations/claude-code && ./install.sh.

    line 24
  5. Very specific:

    Run core/scripts/build-agents-md.sh (regenerates core/AGENTS.md AND core/skills/spec-structure/SKILL.md)

    line 29
  6. Very specific:

    Run core/implementations/claude-code/install.sh (rules → ~/.claude/rules/), core/implementations/copilot/install.sh and …

    line 31
  7. Distinctive:

    No test reads items 1-4 against each other, so a partial change escapes quietly.

    line 74

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

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

Adding new functionality to Aide

This only matters when actually adding a skill, changing a rule, or changing the spec structure — not for ordinary spec work in this repo.

New skill

  1. Read docs/SKILL_GUIDE.md for structure and best practices
  2. Create core/skills/<name>/SKILL.md with frontmatter and core instructions
  3. Put heavy documentation in core/skills/<name>/references/
  4. Run cd core/implementations/claude-code && ./install.sh; the manifest records it for uninstall

Updating rules

  1. Edit in core/rules/ (shared source for all AI tools)
  2. Run core/scripts/build-agents-md.sh (regenerates core/AGENTS.md AND core/skills/spec-structure/SKILL.md)
  3. Run core/implementations/claude-code/install.sh (rules → ~/.claude/rules/), core/implementations/copilot/install.sh and core/implementations/codex/install.sh (new AGENTS.md → ~/.copilot/ and ~/.codex/)

workflows, documentation, tools-and-scripts and markdown-linting are skills, not rules, in core/skills/, and spec-structure is a rule for Claude Code and a GENERATED skill for Codex/Copilot. The reason is a byte budget: Codex appends at most project_doc_max_bytes of AGENTS.md — 32768 by default — and drops the rest silently. test_generated_files.py::TestBuildAgentsMd::test_output_fits_codex_read_window is what says so now. A new rule in core/rules/ spends that budget; a new skill in core/skills/ does not.

Two consequences worth knowing before editing anything here:

  • core/skills/spec-structure/SKILL.md is generated. Edit core/rules/spec-structure.md and re-run the build script — never the skill directly; test_generated_files.py::TestSpecStructureSkillIsGenerated compares the two bodies byte for byte.
  • core/implementations/claude-code/install.sh excludes spec-structure/ from its skill install by name, so it reaches Codex/Copilot only. The uninstaller removes only what the install recorded in its manifest (test_core_skills.py::TestUninstallReadsTheManifest), so the exclusion needs no second list there.

Changing the spec structure

The 4-file layout is written down in more places than you would guess. Fixing the templates alone is not enough: the skills decide where an AI actually writes what, and a skill left behind rebuilds the old layout on the next run.

  1. core/rules/spec-structure.md — the rule itself
  2. core/templates/todo/*.template — what a new spec starts from
  3. The create step's references/file-templates.md, in the steps folder beside the runner's own libraries
  4. The analyze step's SKILL.md, in the same folder, and core/skills/task-workflow-assistant/SKILL.md — the instructions that decide where an AI actually writes what
  5. core/skills/spec-structure/SKILL.md — generated from item 1 by core/scripts/build-agents-md.sh; this file is where Codex and Copilot read the spec layout
  6. core/tests/specs/unit/core/validation/templates/test_templates.py, which checks the placeholders the script fills and that a fresh spec claims no step or phase outcome

No test reads items 1-4 against each other, so a partial change escapes quietly. Change all six, regenerate, reinstall.

install.sh and uninstall.sh

These MUST always mirror each other. When changing one, update the other.

Shared scripts (core/scripts/ → ~/.local/bin/) are handled by core/scripts/_install-bin.sh — change the script list there, not in each installer. install-all.sh / uninstall-all.sh (repo root) run the installer of every tool listed in core/scripts/lib/ai-tools/tools.txt, in sequence.

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.