Archflow feature

From AZidan/archflow · View interactive version

Archflow feature is an AI agent skill from the GitHub repository AZidan/archflow. Use ONLY when the user asks for /archflow-feature or \"archflow feature\". Add a story (name or description), or pull a backlog story into the active release

How to use this skill

Skill file

Arguments are the text after the skill name.

/archflow-feature — Add or Start a Feature

Argument (the text the user wrote after the skill name): 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.

Usage

/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

Prerequisites


Flow

Step 1: Feature Input

Ask the user:

How would you like to add this feature?

Options:


Option A: "Describe it"

If the text the user wrote after the skill name 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):

  1. "Feature name?"
  2. "Description (what does it do, why)?"
  3. "Acceptance criteria (what defines done)?" — Ask for a list
  4. "Priority?" — High / Medium / Low
  5. "Which part of the codebase?" — Frontend / Backend / Both

Option B: "Paste a link"
Paste the epic/story link:
  1. Detect which tool the link belongs to (Jira, Linear, Notion, GitHub, etc.)
  2. Check if the tool's MCP is configured:

```bash

claude mcp list

```

  1. If NOT configured: run /archflow-setup-mcp [tool] inline
  2. Fetch the item via MCP:
  1. Present extracted data:

```

Here's what I found:

Feature: [title]

Description: [description]

Acceptance Criteria:

Sub-tasks:

Priority: [priority]

Source: [tool:ID]

Add to roadmap? [Yes / Edit first]

```

  1. If "Edit first": let user modify before proceeding

Option C: "From existing scope" (backlog + active release)

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).

  1. Read .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).

  1. Filter by project_type compatibility (using the parent epic's scope, resolved via the story's

S{epic}-* id → epic label in roadmap.yaml):

both; fullstack → all. Epics with scope: unknown are always shown.

  1. List candidates grouped by epic, from BOTH sources:

```

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"]

```

  1. "show all" → also list stories whose epic scope doesn't match, each with a scope-mismatch warning.
  2. User picks one:

If the stub is not yet groomed (status: backlog), run .github/skills/archflow-groom/SKILL.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).


Step 2: Add the story (v2.0 — backlog or active release)

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.

2a. Epic Selection (label)

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).

2b. Destination — backlog stub or active release?

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}}."


Step 3: Git Workflow Setup

Ask:

Ready to start development? [Yes / Not yet, just add to roadmap]
If "Not yet"

"Feature added to roadmap. Run /archflow-feature again when ready to start."

Done.

If "Yes"

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:

  1. Create feature branch from main:

```bash

git checkout main

git pull origin main

git checkout -b {feature-branch-name}

git push -u origin {feature-branch-name}

```

  1. Update .archflow/current-phase.yaml:

```yaml

current_feature: "{story_id}" # e.g., S1-01

feature_status: "in_progress"

```

  1. Create/update .archflow/current-feature.yaml:

```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

completed: false

branch: null

started_at: null

completed_at: null

completed: false

branch: null

started_at: null

completed_at: null

```

  1. 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).

  1. 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):

```


Step 4: Task-Level Git Workflow (During Development)

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:

  1. Create task branch:

```bash

git checkout {feature-branch}

git pull origin {feature-branch}

git checkout -b {feature}/{task-name}

git push -u origin {feature}/{task-name}

```

  1. Update .archflow/current-feature.yaml: Set task status to in_progress, record branch name.
  1. Implement using appropriate agents:

DESIGN 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}.md before producing any output.* A subagent does not

inherit this session's context.

  1. Build and test locally (per workflow.md testing checklist)
  1. Commit and push:

```bash

git add {specific files}

git commit -m "feat: {description}"

git push -u origin {feature}/{task-name}

```

  1. Wait for explicit user approval — NEVER auto-merge
  1. After approval, merge task to feature branch:

```bash

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}

```

  1. Update tracking files:

Feature Completion

After ALL tasks are complete and approved:

  1. Merge feature to main (with user approval):

```bash

git checkout main

git pull origin main

git merge {feature-branch}

git push origin main

```

  1. Cleanup:

```bash

git branch -d {feature-branch}

git push origin --delete {feature-branch}

```

  1. Update files:

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.