원클릭으로
run-session
Session start and end protocol — read FLOW.md, auto-detect state, resume from checkpoint, update and commit
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Session start and end protocol — read FLOW.md, auto-detect state, resume from checkpoint, update and commit
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | run-session |
| version | 5.0 |
| description | Session start and end protocol — read FLOW.md, auto-detect state, resume from checkpoint, update and commit |
| author | software-engineer |
| audience | all-agents |
| workflow | session-management |
Every session starts by reading state. Every session ends by writing state. This makes any agent able to continue from where the last session stopped.
State is tracked across two files: FLOW.md (static state machine — never modified by agents) and WORK.md (dynamic tracker — updated every session). Agents read FLOW.md to understand the workflow; they read and update WORK.md to track the active feature.
Each agent reads only what is operationally necessary for their current step. Do not read files "for context" unless the step explicitly requires it.
| Agent | Reads |
|---|---|
| PO (Step 1) | WORK.md, FLOW.md, scope_journal.md (resume check), system.md (Domain Model section, read-only), glossary.md, docs/post-mortem/ (selective scan), in-progress .feature |
| SA (Step 2) | WORK.md, FLOW.md, system.md, glossary.md, in-progress .feature, targeted .py files |
| SE (Step 3) | WORK.md, FLOW.md, system.md, glossary.md, in-progress .feature, targeted .py files |
| SA (Step 4) | WORK.md, FLOW.md, system.md, glossary.md, in-progress .feature, ADR files referenced in system.md |
WORK.md — find the active item: @id, @state, @branch.
WORK.md does not exist, create it from .opencode/skills/flow/work.md.templateFLOW.md — understand the static workflow (roles, states, detection rules, transitions).
FLOW.md does not exist, create it from .opencode/skills/flow/flow.md.templateFLOW.md exists but is empty or malformed, recreate from templatedetect-state — execute the auto-detection rules from FLOW.md to determine the actual workflow state from filesystem and git state.
WORK.md @state, update WORK.md to match reality. Never modify FLOW.md.FLOW.md. If any are unchecked, stop and report.docs/scope_journal.md for the most recent session block.
Status: IN-PROGRESS → the previous session was interrupted. Resume it before starting a new session: finish updating .feature files and docs/discovery.md, then mark the block Status: COMPLETE.docs/features/in-progress/<feature-stem>.feature — feature file (Rules + Examples + @id)docs/system.md — current system overview and constraintsgit status — understand what is committed vs. what is notgit branch --show-current and verify:
feat/<stem> or fix/<stem>. If on main, stop — load skill version-control and create the branch first.feat/<stem> or fix/<stem>. If on main, stop — load skill version-control and create/switch to the branch first.If WORK.md @state is [IDLE] or no active item exists:
skill select-feature — it guides you through scoring and selecting the next BASELINED backlog feature. You must verify the feature has Status: BASELINED before moving it to in-progress/. Only you may move it.WORK.md @state to [IDLE] if it is not already, then stop. Never self-select a feature. Never create, edit, or move a .feature file.WORK.md:
@state to the detected stategit add -A
git commit -m "WIP(<feature-stem>): <what was done>"
When a step completes within a session:
WORK.md to reflect the completed step before doing any other work.WORK.md update:
git add WORK.md
git commit -m "chore: complete step <N> for <feature-stem>"
## Active Items
@id: <feature-stem>
@state: <state>
@branch: <branch-name> | [NONE]
WORK.md and FLOW.md at session startWORK.mdWORK.md and commit before any further workFLOW.md is missing, create it from .opencode/skills/flow/flow.md.template before doing any other workWORK.md @state, trust the detected state and update WORK.md. Never modify FLOW.md.Use minimal output. Every message must contain only what the next agent or stakeholder needs to continue — findings, status, decisions, blockers.
Step 2 — Architecture and domain design, one feature at a time
Step 1 — discover requirements through stakeholder interviews and write Gherkin acceptance criteria
Generate and update architecture diagrams, living glossary, and system overview from existing project docs
Enforce code quality using ruff, pytest coverage, and static type checking
Create pull requests with conventional commits, proper formatting, and branch workflow
Flow protocol — design and operate state machine workflows with FLOW.md + WORK.md