| name | devflow-state |
| description | Use when reading or writing devflow state during orchestrator execution, including phase tracking and stage completion. |
| metadata | {"version":"0.3.0","author":"Jay","category":"ai-dlc-workflow","invoke_mode":"orchestrator-only","return_behavior":"stop-no-gate","skill_nature":null,"lifecycle":"active"} |
devflow-state
Purpose
Read and write devflow-docs/devflow-state.md to share workflow state across skills and sessions.
State File Location
Always use devflow-docs/devflow-state.md relative to the project workspace root.
State File Structure
When creating or updating the state file, maintain this exact structure:
# devflow State
## Current Phase
<!-- ํ์ฌ ๋จ๊ณ: inception | construction | operations | complete | finished -->
[phase name]
## Current Stage
<!-- ํ์ฌ ์คํ ์ค์ธ ์คํ
์ด์ง ์ด๋ฆ -->
[stage name]
## Completed Stages
<!-- ์๋ฃ๋ ์คํ
์ด์ง ๋ชฉ๋ก (ํ์์คํฌํ ํฌํจ) -->
- [stage-name]: [ISO 8601 timestamp]
## Approved Stages
<!-- workflow-planning์์ ์น์ธ๋ ์คํ ์์ ์คํ
์ด์ง ๋ชฉ๋ก (depth ํฌํจ) -->
- [stage-name]: [Minimal | Standard | Comprehensive]
## Skipped Stages
<!-- ์คํต๋ ์คํ
์ด์ง ๋ฐ ์ด์ -->
- [stage-name]: [reason]
## Active Unit
<!-- ํ์ฌ Construction ๋จ๊ณ์์ ์์
์ค์ธ unit ์ด๋ฆ -->
[unit name or "none"]
## Completed Units
<!-- ์๋ฃ๋ unit ๋ชฉ๋ก -->
- [unit-name]: [ISO 8601 timestamp]
## Worktree
<!-- using-git-worktrees ์คํ ๊ฒฐ๊ณผ -->
- branch: [feature/xxx | none]
- path: [.worktrees/xxx | none]
## Finishing Choice
<!-- finishing-branch ์ต์
B ์ ํ ์ ๊ธฐ๋ก. ์ต์
A/D๋ ์ฆ์ finished๋ก ์ ํ -->
[B (PR pending) | none]
## PR URL
<!-- finishing-branch ์ต์
B์์ PR ์์ฑ ์ ๊ธฐ๋ก -->
[github-pr-url | none]
## Extension Configuration
<!-- ํ์ฑํ๋ extension ๋ชฉ๋ก -->
- security: [enabled | disabled]
Read State
When reading state:
- Check if
devflow-docs/devflow-state.md exists
- If exists: parse and return the current state
- If not exists: return default state (no active phase, no completed stages)
Write State
When writing state:
- Read current state file (if exists)
- Update only the specified fields
- Write back the full file โ preserve all other fields
- NEVER overwrite with partial content
Create Initial State
When creating a new state file:
- Create
devflow-docs/ directory if it doesn't exist
- Write the state file with default values
- Set
## Current Phase to inception
- Set
## Current Stage to aidlc-workspace-detection