agentleFS
derjochenmeyerderjochenmeyer/claude-code-craft/skills/craft-session-solidify/SKILL.md

craft-session-solidify

Skill2 starsChanged 7 months agoMITView on GitHub

Save a mid-session checkpoint. Writes `.craft/PROJECT_STATE.md`, `.craft/BACKLOG.md`, `.craft/DECISIONS.md`, optionally `.craft/HANDOVER.md`, then commits. Run manually via `/craft-session-solidify` or when the context monitor warns at ~75%.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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
  • could be automatic: a setting could enforce it
  1. Very specific:

    If there is no .craft/: run anyway, but skip the doc-writing steps.

    line 43
  2. Very specific:

    b) Tick off completed items: Check the existing - [ ] entries against what actually happened in this session.

    line 84
  3. Distinctive:

    Check: was a deliberate decision made in this session that someone (Claude or the user) needs to be able to retrace later?

    line 93
  4. Distinctive:

    If yes — append chronologically at the end of the file (log style, not full ADR template):

    line 97
  5. Very specific:

    If .craft/DECISIONS.md does not exist: create it with the heading # Decisions and the first entry.

    line 111
  6. Very specific:

    No (still room): No HANDOVER.md needed — PROJECT_STATE.md is enough as the baton.

    line 132
  7. Distinctive:

    Yes (context nearly full or clean break): Write HANDOVER.md:

    line 133
  8. Distinctive:

    If "continue this session", no tip — return directly to the interrupted task.

    line 182
  9. Very specific:

    Never blind git add -A: Never commit .env, keys, tokens, credentials.

    line 186
  10. Very specific:

    Be honest in PROJECT_STATE.md: No window dressing. If it is breaking: say so.

    line 188
  11. Distinctive:

    DECISIONS.md is not a journal: Only real decisions, not every code change.

    line 189

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

craft-session-solidify

Save the current state — then keep working.

When to run

  • Automatic: when the context monitor reports ~75% utilization
  • Manual: when the user types /craft-session-solidify
  • Proactive: when you notice a lot has happened that is not yet documented and the context window is filling up

Scope — what does NOT belong here

This skill maintains project documentation in .craft/. It does not maintain Claude's own memory. The boundary:

ToolPurposeTarget
/craft-session-solidifyProject state, backlog, decisions, handover.craft/*.md
/rememberSave a single fact, decision, or warning.claude/memory/YYYYMMDD_*.md
/learnAbstract a pattern from context into a transferable insight.claude/memory/YYYYMMDD_*.md

Concretely: do not write new .claude/memory/ entries from this skill. If you notice during the solidify that a fact or pattern is worth keeping — mention it in the closing report as a recommendation (worth a /remember or worth a /learn), but do not write it yourself.

.craft/DECISIONS.md (project-level ADR log) and .claude/memory/ entries with type=decision (Claude's personal memory) are deliberately different layers. Some duplication is fine, but it is not the goal of this skill.

Steps

1. Get an overview

git diff --stat HEAD 2>/dev/null
git status --short 2>/dev/null
git log --oneline -5 2>/dev/null
ls .craft/ 2>/dev/null || echo "no .craft/"

If there is no .craft/: run anyway, but skip the doc-writing steps. Commit and short report still happen. At the end, suggest running /craft-project-setup.

2. Update .craft/PROJECT_STATE.md

Prepend a section at the top (newest state first):

## State: [YYYY-MM-DD HH:MM]

### Working
- ...

### In progress
- ...

### Known issues
- ...

### Technical debt
- ...

Be honest. If something is not working, say so explicitly — do not omit.

3. Update .craft/BACKLOG.md

Two things, both required:

a) New TODOs from this session, with priority:

### High
- [ ] ...

### Medium
- [ ] ...

### Low / Someday
- [ ] ...

b) Tick off completed items. Check the existing - [ ] entries against what actually happened in this session. What was done: either mark - [x] with completion date, or move under ## Done at the end of the file.

## Done
- [x] 2026-04-21 – XY feature implemented

4. .craft/DECISIONS.md — capture decisions

Check: was a deliberate decision made in this session that someone (Claude or the user) needs to be able to retrace later?

Typical candidates: an architecture choice, library X chosen over Y, scope deliberately kept narrow, a known workaround consciously accepted.

If yes — append chronologically at the end of the file (log style, not full ADR template):

## [YYYY-MM-DD] – [Short title]

**Context:** [1–2 sentences: what problem?]

**Decision:** [What did we choose?]

**Why:** [The load-bearing reason. Not "because it fits", but the trade-off.]

**Alternatives (rejected):** [What did we NOT do, and why not?]

If .craft/DECISIONS.md does not exist: create it with the heading # Decisions and the first entry. If nothing decision-worthy happened in this session: skip this step and note in the report ("no new decisions").

5. Checkpoint commit

git status --short   # check what is staged first
git add <relevant files>   # never blind -A; never .env or secrets
git commit -m "checkpoint: [what happened in this session]

State: [what is working]
Open:  [what is still missing]

[Model name, e.g. Claude Opus 4.7]"

Nothing to commit? Mention in the report and move on.

6. .craft/HANDOVER.md — only when needed

Judge: is this session likely to end soon (context >85%, the user seems tired, work block is done)?

  • No (still room): No HANDOVER.md needed — PROJECT_STATE.md is enough as the baton.
  • Yes (context nearly full or clean break): Write HANDOVER.md:
# Handover – [YYYY-MM-DD]

## What was achieved
...

## Next concrete step
[The ONE most important action — not a list]

## Important files for the next session
- `path/to/file` — why it matters

## Watch out / do not forget
[What is fragile, surprising, or easy to get wrong?]

HANDOVER.md is for the next Claude session, not for the user — write it so a fresh Claude can pick up directly.

7. Closing report

Tell the user in 3–5 lines:

craft-session-solidify done.

Commit:    [hash or "nothing to commit"]
State:     [.craft/PROJECT_STATE.md updated | skipped (no .craft/)]
Backlog:   [N new, M ticked off]
Decisions: [N added | none]
Handover:  [written, because … | not needed]

Current state: [1–2 sentences]

Recommendation: [continue this session | start a new one]
[optional: "Worth a /learn: ..." or "/remember: ..."]

If recommendation = "start a new one": append a short tip for a clean handover:

Tip for restart:
  1. /shutdown — closes this session cleanly (tests, STATUS.md, memory, commit)
  2. Close the terminal or run `claude` again
  3. In the new session: have it read .craft/PROJECT_STATE.md (or HANDOVER.md),
     then continue from "Next concrete step".

If "continue this session", no tip — return directly to the interrupted task.

Gotchas

  • Never blind git add -A. Never commit .env, keys, tokens, credentials.
  • HANDOVER.md only on real end-of-session risk — otherwise unnecessary overhead.
  • Be honest in PROJECT_STATE.md. No window dressing. If it is breaking: say so.
  • DECISIONS.md is not a journal. Only real decisions, not every code change.
  • Commit messages are documentation — no generic "update" messages.
  • Do not overlap with /learn / /remember. See the scope boundary above.

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.