agentleFS
yagizdoyagizdo/quiver/skills/local-files/SKILL.md

local-files

Skill16 starsChanged 57 days agoMITView on GitHub

Development-file storage rule for skills that write plans, reports, specs, handovers, or work ledgers. Names the directories Quiver writes and how each one is kept out of git on first write, unless the directory is already tracked or the project says to track it.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    When git ls-files <dir> prints anything, or the project's instructions (CLAUDE.md, AGENTS.md, or equivalent) say to track the directory, …

    line 29
  2. Very specific:

    When git check-ignore -q <dir>/x exits 0, the directory is already ignored.

    line 34

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

Local Development Files

Reference skill read by every skill that writes into one of the directories below, at its write step. It is never invoked and never runs a command itself: the writer applies the rule here before its own first write.

Directories

DirectoryWritten by
.claude/plans//plan, /quiver:design (with assets/ for its screenshots), /ship
.claude/reports//quiver:review (default location only), /senior-review, /ship
.claude/specs//brainstorm, /ship (one spec per phase), and visual-companion mockups copied beside a spec
.claude/handovers//handover, the PreCompact hook
.claude/work//work and its orchestrator
.claude/ship//ship

A review written to a path the user chose with --output or --set-output is the user's location, not one of these, and the rule does not apply to it.

Keep-Local Rule

Apply once per directory per run, before the first write into it. <dir> is the directory's path relative to the project root, with no trailing slash.

  1. Outside a git repository (git rev-parse --git-dir fails), do nothing.
  2. When git ls-files <dir> prints anything, or the project's instructions (CLAUDE.md, AGENTS.md, or equivalent) say to track the directory, change nothing. Tracked files mean the project chose to keep them in git.
  3. Otherwise, when git check-ignore -q <dir>/x exits 1, the directory is not ignored yet. When the exclude file already holds the exact line <prefix><dir>/, change nothing and print nothing: a .gitignore negation such as !<dir>/ outranks the exclude file, so check-ignore keeps exiting 1 after the entry is in. Otherwise append the line <prefix><dir>/ to the file printed by git rev-parse --git-path info/exclude, creating the file if it is missing. <prefix> is what git rev-parse --show-prefix prints, empty at the repo top: exclude patterns are relative to the repo top, and the project root can sit below it. When the file exists and does not end in a newline, write a newline first so the new line does not join the user's last line. Append, never rewrite: the file may hold the user's own lines. Then print:

    Keeping <dir>/ out of git (added to .git/info/exclude).

  4. When git check-ignore -q <dir>/x exits 0, the directory is already ignored; change nothing and print nothing. Any other exit, such as 128 when <dir> sits behind a symbolic link, is an error rather than an answer; change nothing and print nothing.

.git/info/exclude lives in the shared git directory, so one entry covers every worktree, and it changes no tracked file. git check-ignore honors it, so a second run finds the directory ignored and stays silent.

For Skill Authors

A skill that writes into one of these directories names this file at its write step, in one sentence: "Before the first write, apply the keep-local rule in skills/local-files/SKILL.md." Never restate the rule in the consumer; a copy drifts from this one with no error. A new development directory is added to the table above in the same change that adds its writer.

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.