managing-context-sessions
Installation
SKILL.md
Managing Context Sessions
Setup
| Item | Kind | Required | When | Done when | How |
|---|---|---|---|---|---|
| Root path | ask | required | Create | session-contract.md → Resolve sessions root finds a root | Ask for the folder (default sessions/); missing or empty → use it, else ask for another path; recorded as the root's location |
| Root marker | static | required | Create | <sessions-root>/index.md carries session-contract.md → Author signature |
Write index.md from assets/index.md |
Workflow
- Setup — for each Setup row whose When covers the request, in order: Done when holds → skip;
user→ stop and print its How when required, continue without it when optional;ask→ fill what the request answers, ask the rest together in one message, record each answer;autoandstatic→ run. - Contract — read session-contract.md.
- Recipe — match one Recipes row; open every doc in its Read column.
- Once loaded, it stays active for the rest of the chat.
- Never predicts which process comes next.