/archflow:feature [name/description | story-id]from archflow
Adds a new feature to the roadmap by name, description, or external link. Also pulls backlog stories into the active release and optionally starts git workflow. Supports interactive wizard or quick-add via arguments.
Ships in archflow. Installing the plugin adds it to Claude Code.
Argument ($ARGUMENTS): optional. Either a feature name or free-text description (used to pre-fill the wizard — see Option A), or an existing story id (e.g. S2-11) to pull into the active release. Empty → interactive wizard from scratch.
Add a new feature to the roadmap from a description or external tool link. Optionally starts the git workflow for development.
/archflow:feature → Interactive feature wizard
/archflow:feature login → Quick-add by name
/archflow:feature "users can reset their password via email"
→ Quick-add from a description
/archflow:feature S2-11 → Pull an existing backlog story into the active release
.archflow/current-phase.yaml must exist (run /archflow:onboard first for existing projects, or complete Phase 1 for new ones).archflow/roadmap.yaml must exist/archflow:setup-mcp if not)Ask the user:
How would you like to add this feature?
Options:
If $ARGUMENTS was given and is not a story id, use it to pre-fill: a short phrase becomes the
name; a longer sentence becomes the description and you derive a concise name from it
(confirm both with the user in one line). Skip questions already answered by the argument.
Ask the remaining questions (one at a time):
project_type is fullstack (read from .archflow/project-settings.yaml)backend_only: assume Backendfrontend_only: assume FrontendPaste the epic/story link:
claude mcp list
/archflow:setup-mcp [tool] inlineHere's what I found:
Feature: [title]
Description: [description]
Acceptance Criteria:
- [criterion 1]
- [criterion 2]
Sub-tasks:
- [task 1]
- [task 2]
Priority: [priority]
Source: [tool:ID]
Add to roadmap? [Yes / Edit first]
In v2.0 stories are NOT in roadmap.yaml (that's the story-less index). Existing work is either a
backlog stub (backlog.yaml) or an in_progress/ready story in the active release
(releases/{active_release}.yaml).
.archflow/current-phase.yaml (for mode, active_release) and .archflow/project-settings.yaml (for project_type),
.archflow/backlog.yaml, and the active release file (if active_release is set). Use
roadmap.yaml only for epic labels (to show epic names/scope).scope, resolved via the story's
S{epic}-* id → epic label in roadmap.yaml):
backend_only → backend, both; frontend_only → frontend, both; mobile → mobile,
both; fullstack → all. Epics with scope: unknown are always shown.Stories relevant to this [project_type] repo:
In the active release [{active_release}] (build now):
1. [S1-02] Role-Based Access (spec_ready, High, api-engineer)
In the backlog (will be promoted into the active release, or pulled forward):
2. [S1-01] Admin Login (backlog, Critical)
3. [S2-01] Dashboard Metrics Cards (backlog, Medium)
[N] hidden (epic scope not applicable to this repo)
Which story to work? [number / "show all"]
status: backlog), run ${CLAUDE_PLUGIN_ROOT}/commands/groom.md FIRST to detail it —
don't detail it inline here. A stub that is already ready is promotable as-is. Then MOVE the
groomed story into the release file with status: spec_ready and pulled_from: backlog
(spec_ready is set by this promotion, never by grooming). If no release is in_progress, tell
the user to start one first (/archflow:release start).Read .archflow/current-phase.yaml for mode and active_release, and .archflow/project-settings.yaml for project_type. Read
.archflow/roadmap.yaml (index) for epic labels, .archflow/backlog.yaml for existing stubs, and the
active release file (if any).
Schemas: roadmap-schema.yaml (index / epic labels), backlog-schema.yaml (stubs),
release-schema.yaml (detailed stories). There are no sprints. A story lands in the backlog (as a
stub) or in the active release (as a detailed story) — never in two places.
Ask which epic label this story belongs to:
Which epic does this belong to?
Existing epics:
1. [E1] Admin Authentication (scope: backend)
2. [E2] Dashboard (scope: both)
[N] Create new epic
If "Create new epic": generate next E{N} ID, ask for name + scope, add it to roadmap.yaml → epics
(label only — no inline stories).
Ask where the story goes:
Where should this go?
1. Backlog — capture it now, schedule it into a release later (a stub)
2. Active release [{active_release}] — build it in the current release (detailed)
(In quick mode with a single implicit release, default to that release. If no release is
in_progress, only the backlog option is offered.)
Generate the next story ID under the chosen epic: S{epic}-{seq}.
If Backlog → append a STUB to .archflow/backlog.yaml under the epic:
- id: "S{epic}-{seq}"
title: "{feature_name}"
priority: "{Critical|High|Medium|Low}"
status: backlog
target: "{optional hint}"
description: "{one line}"
Then STOP Step 2 — a backlog stub is not built until it's promoted into a release (via
/archflow:release new or pull-forward). Skip Step 3 (no branch yet).
If Active release → append a DETAILED story to .archflow/releases/{active_release}.yaml, deriving
gates from scope:
- id: "S{epic}-{seq}"
title: "{feature_name}"
priority: "{Critical|High|Medium|Low}"
status: spec_ready # PM-finalized; gates run before build
gates: {needs_design: {bool}, needs_contract: {bool}}
assigned: "{agent_name}"
description: >
{description}
acceptance_criteria:
- {text: "{criterion_1}", met: false}
subtasks:
- {text: "{subtask_1}", completed: false}
This is a mid-release pull-in — annotate pulled_from: backlog if it came from a stub. Confirm:
"Added [{title}] as [{story_id}] under epic [{epic_id}] to {backlog | release {active_release}}."
Ask:
Ready to start development? [Yes / Not yet, just add to roadmap]
"Feature added to roadmap. Run
/archflow:featureagain when ready to start." Done.
Pre-check: Verify git is available
if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
HALT: "Git not initialized. Run 'git init' first."
fi
git checkout main
git pull origin main 2>/dev/null || true
Follow the branching strategy from .archflow/workflow.md:
Create feature branch from main:
git checkout main
git pull origin main
git checkout -b {feature-branch-name}
git push -u origin {feature-branch-name}
user-notifications)Update .archflow/current-phase.yaml:
current_feature: "{story_id}" # e.g., S1-01
feature_status: "in_progress"
Create/update .archflow/current-feature.yaml:
story_id: "{story_id}" # e.g., S1-01
story_title: "{title}"
epic_id: "{epic_id}" # e.g., E1
branch: "{feature-branch-name}"
status: in_progress
subtasks: # Populated from the active release file's story subtasks
- text: "{subtask_1}"
completed: false
branch: null
started_at: null
completed_at: null
- text: "{subtask_2}"
completed: false
branch: null
started_at: null
completed_at: null
Update .archflow/releases/{active_release}.yaml: Set the story's status to in_progress
(the release file is the source of truth for story status — not roadmap.yaml, which is the index).
Present next steps:
Feature branch created: {feature-branch-name}
Story: [{story_id}] {title} (epic: {epic_id})
Subtasks from roadmap:
1. {subtask_1} (pending)
2. {subtask_2} (pending)
Start Phase 3 implementation when ready.
Branch workflow (.archflow/workflow.md):
- Task branches: {feature}/{subtask-name}
- Merge only after explicit user approval
This step runs during Phase 3 implementation, not during /archflow:feature itself. It documents how tasks are executed using workflow.md.
For each task in .archflow/current-feature.yaml:
Create task branch:
git checkout {feature-branch}
git pull origin {feature-branch}
git checkout -b {feature}/{task-name}
git push -u origin {feature}/{task-name}
Update .archflow/current-feature.yaml: Set task status to in_progress, record branch name.
Implement using appropriate agents:
project_type from .archflow/project-settings.yamlbackend_only: only use api-engineerDESIGN SYSTEM IN THE PROMPT, NOT THE CONTEXT. Every dispatch of a UI agent (
ui-engineer,ux-designer,dsl-generator,ui-animation-designer) must carry this line verbatim in its prompt: Design system: read.archflow/design-system.yaml, then read and follow.archflow/design-systems/{design_system}.mdbefore producing any output. A subagent does not inherit this session's context.
frontend_only: only use ui-engineerfullstack: use both based on task type fieldBuild and test locally (per workflow.md testing checklist)
Commit and push:
git add {specific files}
git commit -m "feat: {description}"
git push -u origin {feature}/{task-name}
Wait for explicit user approval — NEVER auto-merge
After approval, merge task to feature branch:
git checkout {feature-branch}
git pull origin {feature-branch}
git merge {feature}/{task-name}
git push origin {feature-branch}
git branch -d {feature}/{task-name}
git push origin --delete {feature}/{task-name}
Update tracking files:
.archflow/current-feature.yaml: Mark task as complete, record completed_at.archflow/releases/{active_release}.yaml: Mark the corresponding subtasks[] entry as completed: true for the subtask that maps to this taskAfter ALL tasks are complete and approved:
Merge feature to main (with user approval):
git checkout main
git pull origin main
git merge {feature-branch}
git push origin main
Cleanup:
git branch -d {feature-branch}
git push origin --delete {feature-branch}
Update files:
.archflow/releases/{active_release}.yaml (the story's home):
status → donesubtasks[].completed → trueacceptance_criteria[].met → true.archflow/current-phase.yaml: current_feature → null, feature_status → ready.archflow/current-feature.yaml: clear or removeS{epic}-{seq} (e.g., S1-01, S2-03) and are auto-incremented under their epicE{N} (e.g., E1, E2) and are auto-incremented/archflow:feature command can be run at any time, not just during Phase 3.archflow/schemas/roadmap-schema.yamlWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub azidan/archflow --plugin archflow17 commands in this plugin
/autopilot/archflow:autopilot — Unattended story runs on a pre-authorized envelopeRun queued release stories unattended on one branch, after a blocker interview/contract/archflow:contract — API contract architecture and per-story endpointsThe release's API contract architecture, and per-story endpoint specs that clear a story's contract gate/design/archflow:design — Design system and per-story designThe project's design system, and per-story screen design that clears a story's design gate/doctor/archflow:doctor — Environment and project health checkCheck the environment and project state — what Archflow needs, what is missing, and how to fix it/groom/archflow:groom — Detail or refine a storyDetail or refine a story: acceptance criteria, subtasks, gates. Works on a backlog stub or a story already in a release/help/archflow:help — Commands and how Archflow worksEvery Archflow command with a one-line usage note, and a short primer on how Archflow worksOther plugins' commands for the same job