Skip to content
Back to skills

Filesystem Context Discipline

ASecurity

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.

  • 16 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
ai-agentsrails

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add markoblogo/abvx-agent-skills --skill filesystem-context-discipline --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Filesystem Context Discipline?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Filesystem Context Discipline
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/markoblogo-filesystem-context-discipline/badge)](https://www.skillsdirectory.com/skills/markoblogo-filesystem-context-discipline)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: filesystem-context-discipline
description: 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.
license: MIT
metadata:
  abvx_status: experimental
  abvx_origin: adapted
---

# 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.

Files in this skill

  • SKILL.md2.6 KB
  • SKILL_CARD.md1.3 KB
  • agents/openai.yaml246 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.