agentleFS
markoblogomarkoblogo/abvx-agent-skills/skills/filesystem-context-discipline/SKILL.md

filesystem-context-discipline

Skill16 starsChanged 5 months agoMITView on GitHub

Use files as durable context without polluting the live prompt. Apply when a task needs scratchpads, plan persistence, retained outputs, proposal folders, handoffs, or repo-local context that agents can discover and audit later.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    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:

    Use the filesystem to hold durable state, but keep it structured, discoverable, and reviewable.

    line 12
  2. Distinctive:

    Put the artifact in the narrowest sensible location:

    line 34
  3. Distinctive:

    Add enough metadata for later discovery: task, source, status, owner, date, and apply state when relevant.

    line 39
  4. Distinctive:

    Keep scratchpads separate from durable docs.

    line 40
  5. Distinctive:

    Remove or ignore transient files before commit unless they are intentional artifacts.

    line 42
  6. Distinctive:

    Do not make every thought durable.

    line 57
  7. Very specific:

    Do not mix speculative scratchpad text into README, AGENTS.md, or SKILL.md.

    line 58
  8. Distinctive:

    Do not treat retained output as applied work.

    line 59
  9. Distinctive:

    Do not use hidden files as the only record of an important decision.

    line 60
  10. Distinctive:

    Do not write memory unless the user explicitly asked for memory persistence.

    line 61

≈ “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

Filesystem Context Discipline

Use the filesystem to hold durable state, but keep it structured, discoverable, and reviewable.

Use When

  • a task is too long for one prompt or needs resumable state;
  • generated output should be retained before apply;
  • a plan, checklist, evidence ledger, or handoff must survive compaction;
  • multiple agents or sessions need a shared artifact;
  • repo-local context should be discoverable without always loading it.

Context Types

  • scratchpad: temporary reasoning support, not authoritative.
  • plan: current intended steps, assumptions, and done criteria.
  • evidence: commands, test results, source links, or reviewed facts.
  • retained_output: proposal artifacts kept separate from the target workspace.
  • handoff: compact continuation state for another session or agent.
  • durable_doc: stable repo guidance that future agents should read on demand.

Workflow

  1. Choose the file type before writing.
  2. Put the artifact in the narrowest sensible location:
    • repo docs for durable guidance;
    • task/proposal folder for retained output;
    • benchmark or run folder for validation evidence;
    • memory only when the user explicitly asks to preserve a cross-session lesson.
  3. Add enough metadata for later discovery: task, source, status, owner, date, and apply state when relevant.
  4. Keep scratchpads separate from durable docs.
  5. Link retained outputs to their inspection and settlement decision.
  6. Remove or ignore transient files before commit unless they are intentional artifacts.

Output Shape

Use:

  • artifact type;
  • path;
  • authority level: scratch, proposal, evidence, or durable;
  • discovery cue;
  • expiry or update trigger;
  • related verification or settlement step.

Guardrails

  • Do not make every thought durable.
  • Do not mix speculative scratchpad text into README, AGENTS.md, or SKILL.md.
  • Do not treat retained output as applied work.
  • Do not use hidden files as the only record of an important decision.
  • Do not write memory unless the user explicitly asked for memory persistence.

Provenance

Adapted from filesystem-context patterns in muratcankoylan/Agent-Skills-for-Context-Engineering, aligned with ABVX proposal-first and durable-context workflows.

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.