Track active workflows with all related state consolidated in one location. During a workflow, agents ONLY update files within `workflow/active/{workflow-name}/`. This eliminates state fragmentation and simplifies agent responsibilities.
/plugin marketplace add marcel-Ngan/ai-dev-team/plugin install marcel-ngan-ai-dev-team@marcel-Ngan/ai-dev-teamThis skill inherits all available tools. When active, it can use any tool Claude has access to.
templates/bug-hotfix/investigation.template.mdtemplates/bug-hotfix/workflow.template.mdtemplates/decisions.template.mdtemplates/design-review/workflow.template.mdtemplates/development/story.template.mdtemplates/development/workflow.template.mdtemplates/requirements-to-stories/workflow.template.mdtemplates/retrospective/workflow.template.mdtemplates/sprint-planning/workflow.template.mdtemplates/state.template.jsonTrack active workflows with all related state consolidated in one location. During a workflow, agents ONLY update files within workflow/active/{workflow-name}/. This eliminates state fragmentation and simplifies agent responsibilities.
Instead of querying Jira for each story status (~5000+ tokens), read workflow files (~800 tokens).
During active workflow:
workflow/active/{workflow-name}/context/ folder is READ-ONLY (wiki for reference)After workflow completes:
workflow/archive/context/ with learningsskills/workflow/workflow-archival/SKILL.mdworkflow/
├── active/
│ └── {workflow-type}-{identifier}/ # Folder per workflow
│ ├── workflow.md # Manifest: scope, steps, status
│ ├── state.json # Gate history, metrics, sync state
│ ├── stories/ # Story details (for dev workflows)
│ │ ├── PROJECT-123.md # Story context + iteration history
│ │ └── PROJECT-124.md
│ └── decisions.md # Decisions made during workflow
│
└── archive/ # Completed workflows
└── {date}-{workflow-type}-{identifier}/
└── ... (same structure, preserved)
| Workflow Type | Example Folder Name |
|---|---|
| Development | development-EPIC-45/ |
| Development | development-dark-mode-feature/ |
| Requirements to Stories | requirements-to-stories-user-auth/ |
| Sprint Planning | sprint-planning-sprint-15/ |
| Design Review | design-review-PROJECT-200/ |
| Bug/Hotfix | bug-hotfix-PROJECT-301/ |
| Retrospective | retrospective-sprint-14/ |
The main tracking file. Contains:
Replaces .ai-dev-team/workflow-state/. Contains:
Story-level details for development workflows:
Decisions made during this workflow:
Trigger: Orchestrator initiates a new workflow Agent: Orchestrator
Actions:
workflow/active/{type}-{identifier}/workflow.md from templates/{type}/workflow.template.mdstate.json from templates/state.template.jsondecisions.md from templates/decisions.template.mdstories/ folder (for dev workflows)Trigger: Agent completes a step or makes progress Agent: The agent that completed the step
What to update:
| File | When to Update |
|---|---|
workflow.md | Step completed, status change, blocker |
state.json | Gate passed/failed, metrics |
stories/{key}.md | Iteration progress, feedback |
decisions.md | Decision made |
Trigger:
Agent: Orchestrator (via workflow-archival skill)
Actions:
workflow/archive/{date}-{type}-{identifier}/context/ wiki with learningsskills/workflow/workflow-archival/SKILL.mdTrigger: User asks to resume/continue a workflow Agent: Orchestrator
Actions:
workflow/active/{name}/workflow.md| Agent | Updates |
|---|---|
| Orchestrator | Creates workflow, updates workflow.md (steps, status), state.json (gates) |
| Senior Developer | Creates stories/{key}.md, adds feedback after review |
| Junior Developer | Updates "What Was Done" in stories/{key}.md |
| QA Engineer | Updates test results in stories/{key}.md |
| All Agents | Add to decisions.md when decisions made |
┌─────────────────────────────────────────────────────────────────┐
│ AGENTS ONLY UPDATE: workflow/active/{workflow-name}/* │
│ │
│ AGENTS DO NOT UPDATE: │
│ - context/ (read-only during workflow) │
│ - .ai-dev-team/ (deprecated, use state.json instead) │
└─────────────────────────────────────────────────────────────────┘
During workflow, agents may READ from context/ for reference:
context/ # READ-ONLY during workflow
├── solution-summary.md # Codebase overview
├── project/ # Module documentation
│ └── *.md
└── stories/ # Historical stories (from past workflows)
└── *.md
The context/ folder serves as a wiki - updated only by the archival skill after workflows complete.
{
"workflow_id": "development-EPIC-45",
"workflow_type": "development",
"created": "2026-01-09T14:30:00Z",
"last_updated": "2026-01-09T16:45:00Z",
"current_step": {
"step_number": 3,
"step_name": "Implementation (TDD Green)",
"agent": "Junior Developer",
"started": "2026-01-09T15:30:00Z"
},
"gate_history": [
{
"gate_id": "tests-ready-gate",
"step": 2,
"agent": "Senior Developer",
"result": "passed",
"timestamp": "2026-01-09T15:15:00Z",
"details": { "unit_tests": 12, "coverage": "85%" }
}
],
"pending_sync": {
"decisions": [],
"blockers": [],
"learnings": [],
"comments": []
},
"sync_history": [
{
"timestamp": "2026-01-09T15:00:00Z",
"trigger": "step_completion",
"items_synced": ["story_status", "comments"]
}
],
"metrics": {
"total_iterations": 2,
"gates_passed": 1,
"gates_failed": 0,
"time_in_workflow": "2h15m"
}
}
Templates are provided for each workflow type:
templates/
├── development/
│ ├── workflow.template.md
│ └── story.template.md
├── requirements-to-stories/
│ └── workflow.template.md
├── sprint-planning/
│ └── workflow.template.md
├── design-review/
│ └── workflow.template.md
├── bug-hotfix/
│ ├── workflow.template.md
│ └── investigation.template.md
├── retrospective/
│ └── workflow.template.md
├── state.template.json
└── decisions.template.md
workflow/active/development-EPIC-45/
├── workflow.md # Scope: EPIC-45, Stories: 123, 124, 125
├── state.json # Current step: 1, Status: started
├── stories/
│ ├── PROJECT-123.md # First story details
│ ├── PROJECT-124.md # Second story
│ └── PROJECT-125.md # Third story
└── decisions.md # Empty initially
Updates:
workflow.md → Step 2 complete, move to Step 3state.json → Add gate result for tests-ready-gatestories/PROJECT-123.md → Add tests to pass, guidanceUpdates:
stories/PROJECT-123.md → "What Was Done" sectionworkflow.md → Current iteration progressOrchestrator triggers archival:
workflow/active/development-EPIC-45/
↓ (archival skill)
workflow/archive/2026-01-09-development-EPIC-45/
Context folder updated with learnings.
Bug-hotfix workflow uses tiered tracking based on severity.
| Severity | Tracking Level | Folder Created |
|---|---|---|
| P1/P2 | Full tracking (mandatory) | workflow/active/bugfix-PROJECT-301/ |
| P3/P4 | Lightweight (optional) | Jira ticket only |
workflow/active/bugfix-PROJECT-301/
├── workflow.md # Bug manifest, step status, status updates log
├── state.json # Gate history, MTTR tracking, sync state
├── investigation.md # Root cause analysis, fix attempts
└── decisions.md # Technical debt, shortcuts taken
For P1 incidents, all stakeholder communications are tracked in state.json:
{
"status_updates": [
{ "timestamp": "...", "type": "kickoff", "summary": "..." },
{ "timestamp": "...", "type": "progress", "status": "Investigating", "summary": "..." }
]
}
This ensures handoff includes full communication history and provides audit trail for post-mortem.
The workflow.md file tracks resolution timeline for MTTR calculations:
After bug is resolved:
workflow/archive/This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.