agentleFS
mantaray0mantaray0/crew/skills/crew-context/SKILL.md

crew-context

Skill1 starsChanged 6 months agoMITView on GitHub

How crew holds project state across sessions — the .planning state model and what each file owns. Use when reading/writing .planning state or resuming work.

The file

We split this skill into the rules it gives an agent

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

  • 1

    Very specific

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

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

    Required minimum (against gold-plating): Only the id + a usable Key Facts block (at least a "Why") are mandatory.

    line 57

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

crew Context & State

The .planning/ files (committed)

FileOwns
PROJECT.mdThe living project truth: architecture decisions (the why), current state, constraints, a stack table mirrored from config.stack (the source of truth), plus an optional ## Reference index. Loaded automatically at session start.
ROADMAP.mdThe fahrplan: milestones → phases with status markers + timestamps.
plans/<n>_<milestone-slug>/Detail per milestone (folder prefixed with the milestone number so it sorts & reads at a glance when collapsed): _spec.md (present for brief-driven milestones, then permanent — the milestone Spec, single source of intent) + numbered <id>_<title>.md phase plans (Scope note + _spec.md reference + Plan body each).
backlog/Idea inbox — a folder, one Markdown file per item (backlog/<NNN>_<slug>.md, frontmatter + body); triaged at plan/adjust. Replaces the old single BACKLOG.md. See The backlog below.
LOG.mdAppend-only history: phase, commit, verify result, token/cost.
claims.jsonWhich instance/worktree holds which phase (parallel-safe).
config.jsonBehavior config: cross-cutting top-level (git, models, tasks, …) + the workflow steps under config.workflow.* (brief/plan/execute(+verify)/ship/learn/complete/finish).
archive/Completed milestones moved out of live state (/crew:archive): plans/<n>_<slug>/ with the former ROADMAP section written in as _roadmap.md. Keeps ROADMAP.md/plans/ small.
reference/Load-on-demand knowledge docs (runbooks, domain/data maps, architecture deep-dives) — never auto-loaded; each indexed one line in PROJECT.md's ## Reference. Naming reference/<topic-slug>.md.

PROJECT.md is the always-true source; ROADMAP.md is the plan; plans/ is detail; LOG.md is history. The plan + log are the external memory — the work survives a fresh context, not the context window.

The backlog (backlog/)

The backlog is a folder, one Markdown file per item — backlog/<NNN>_<slug>.md, mirroring plans/: <NNN> is a running, stable ID and <slug> is a lowercase ASCII/kebab name. Each file is frontmatter + body, like a Claude skill file.

Frontmatter (YAML header) — machine-read, the source for the list table. Keys, enum values, and dates (ISO YYYY-MM-DD) stay stable English / language-neutral (structure, like config keys and the [x] status markers — every consumer parses them the same way); only title, description, and the body prose follow config.language.files:

---
id: 007
title: <short name>           # follows language.files
priority: medium              # low · medium · high (default medium)
status: open                  # open · planned · promoted · dropped (default open)
created: 2026-06-16
due:                          # optional, may be empty
description: <one sentence>   # follows language.files
---

Body — the Key Facts block + free-form context (human-readable, follows language.files; the block labels stay stable English). Every Key Fact is optional except a usable "Why":

## Key Facts
- **Why / Motivation:** …      (required — the context that evaporates first)
- **Affected area:** …         (commands / skills / config / files)
- **Constraints:** …           (optional)
- **Open questions:** …        (optional)
- **Evidence / Links:** [[…]]  (optional — related items, `[[…]]` style)
- **Acceptance note:** …       (optional)

…followed by free-form prose.

Required minimum (against gold-plating). Only the id + a usable Key Facts block (at least a "Why") are mandatory. priority/status carry defaults; due and any extra fields are optional.

Handoff contract. When an item is promoted, /crew:brief and /crew:plan read the frontmatter + Key Facts and seed the brief/plan from them — they pick up what was captured and ask only the gaps, instead of starting cold. add actively asks Why + Affected area (the two that go missing most often); the rest is progressive/optional.

IDs & lifecycle. IDs are monotonic and never reused (gaps are fine — like plans/, which never renumbers). When an item is folded (promoted) or dropped, its file is removed, so list and every consumer show only living items (open/planned). The status value therefore lives only as long as the item does — promoted/dropped are transient end states just before removal; a promoted item's history then lives in the roadmap/plan, not the backlog.

No generated index — by design. There is deliberately no generated BACKLOG.md (or any other index file). The item files' frontmatter is the single source of truth; the overview is produced on demand by /crew:backlog list. This keeps the backlog drift-free and stops a later agent from "regenerating the index".

Reference docs

reference/ holds long-form, durable knowledge that would bloat PROJECT.md — deployment runbooks, domain/data-source maps, architecture deep-dives. The whole point is context economy:

  • Load-on-demand, never at start. The session-start hook loads only PROJECT.md. A reference doc enters context only when the task touches its area — so the standing context stays small.
  • Indexed in PROJECT.md. A ## Reference section lists each doc as one line — link + what it covers + when to read it — so an agent knows what exists without loading it:
    ## Reference
    - [deploy](reference/deploy.md) — Coolify/Hetzner runbook: env, migrations, rollback. *Read before deploy changes.*
  • Header convention. Each doc opens with a title + one bold line, so the index entry derives from it and a skim reveals relevance:
    # <Title>
    **Reference ·** <what it covers>. **Read when:** <trigger>.
  • One topic per doc (reference/<topic-slug>.md, lowercase/kebab); split when a doc grows broad so loading it pulls only relevant context.
  • Freeform knowledge agents consult on demand — /crew:ship, for instance, loads reference/deploy.md because shipping touches the deploy area.

Cross-session continuity

Continuity rides on the committed .planning/ state, not on a separate snapshot file: PROJECT.md (the always-true project truth + decisions), ROADMAP.md (phase status), and LOG.md (append-only history — per-phase results, key decisions, deviations, and the next step). A fresh context re-orients from these; the work survives because it lives in the plan and the log, not in the context window. /crew:resume reads PROJECT.md + the active ROADMAP.md phase + the LOG.md tail and produces a briefing.

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.