# Feature Work

> Implementation phase of a feature workflow. Consumes an approved Plan file, decomposes its Task Order into TaskCreate items, dispatches parallel agents for non-overlapping files, then runs tests and /simplify. Usage: /feature-work <plan-path>

- **Type:** Skill
- **Install:** `agentstack add skill-tianea2160-claude-skills-feature-work`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Tianea2160](https://agentstack.voostack.com/s/tianea2160)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Tianea2160](https://github.com/Tianea2160)
- **Source:** https://github.com/Tianea2160/claude-skills/tree/main/skills/feature-work

## Install

```sh
agentstack add skill-tianea2160-claude-skills-feature-work
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# feature-work

Second stage of the 4-skill feature workflow. Consumes a Plan approved by `feature-research` and produces working code, guided by the Plan's `## Task Order` and `## Change Plan` sections.

`$ARGUMENTS` must be the path to an existing Plan file. If missing, resolve via AskUserQuestion.

> **Language note:** This skill is authored in English per `.claude/rules/skill-authoring.md`. User-facing output follows the project's CLAUDE.md language preference.

## Invariants

- **Plan body is read by path**, never embedded into agent prompts. Each dispatched agent opens the Plan via Read itself.
- User questions use **AskUserQuestion**.
- Parallel dispatch only when the target files of two tasks **do not overlap** (checked against the Plan's `## Change Plan` table).
- Every delegated agent prompt ends with the fixed return schema from `feature-research/references/plan-schema.md` (§ Agent Return Schema).

## References

- [references/task-breakdown.md](references/task-breakdown.md) — Task decomposition and parallel dispatch examples.
- `../feature-research/references/plan-schema.md` — Plan file contract and agent return schema.

---

## Workflow

### 1. Resolve the Plan

1. Take the Plan path from `$ARGUMENTS`. If empty, list files under `.claude/plans/` and ask the user which to use via AskUserQuestion. If none exist, stop and recommend running `/feature-research` first.
2. Read the Plan's frontmatter. If `status.research` is `pending`, ask (AskUserQuestion) whether to (a) abort, (b) continue anyway, or (c) run `/feature-research` first.

### 2. Decompose into tasks

1. Parse the Plan's `## Task Order` section. For each entry:
   - `TaskCreate.subject` = the entry's title
   - `TaskCreate.description` = the entry's `**Detail**` line
2. Establish dependencies from the `**Depends on**` lines using `TaskUpdate.addBlockedBy`.

### 3. Execute tasks

Loop: pick ready tasks (no unfinished blockers), dispatch them, advance.

- **Single task ready**: `TaskUpdate → in_progress`, delegate to the **`implementer` agent** (`subagent_type: implementer`) with:
  - A pointer to the Plan path and the task's title/detail.
  - The specific files this task touches (from `## Change Plan`).
  - The reuse hints relevant to this task (from `## Reuse`).
  - The scoped test command for the touched paths (if available).
  - The fixed return schema (so only a summary comes back).
- **Multiple ready tasks with disjoint file sets**: dispatch them in a single Agent block as parallel `implementer` instances. See `references/task-breakdown.md` for shape.
- **File overlap detected**: serialize; do not dispatch in parallel.

The `implementer` agent (see `agents/implementer.md`) loads the Plan by path, performs the edits, runs scoped tests internally with up to 2 self-heal retries, and returns only the fixed return schema.

After each task's agent returns `status: ok`, call `TaskUpdate → completed`.

### 4. Targeted tests after each task

Run the scoped test command for the touched paths after each task (e.g., `vitest `, `pytest `, `go test `). Long test output should be captured by the agent that owns the task and only summarized to main. Detect the command from `package.json` / `Makefile` / `build.gradle` / `pyproject.toml` / `CLAUDE.md`.

### 5. Full test sweep + simplify

1. Once all tasks are `completed`, run the project's full test command once to catch regressions.
2. Invoke `/simplify` to let the review pass refine reuse/quality/efficiency on the changed code.
3. If `/simplify` makes edits, re-run the test sweep.

### 6. Update Plan status

Edit the Plan file's frontmatter: set `status.work: done`. Do not touch other fields.

### 7. Mini-report (outline style)

Emit a final outline-form report as model text, in the project's preferred language. Labels below are reference-only.

```
──────────────────────────────────────────
  ✓ feature-work done   ****
──────────────────────────────────────────

**▸ Summary**
  - **Tasks executed** — ****
  - **Parallel dispatches** — ****
  - **simplify** — ✓ applied

**▸ Artifacts**
  - `` — ****
  - …

**▸ Metrics**
  - Tests ****
  - Files changed ****

**▸ Next steps**
  - **Run `/feature-test `** to add and run tests
──────────────────────────────────────────
```

Outline rules: no complete sentences; bold nouns/identifiers/numerics/status; symbols only from `✓ ⚠ ✗ ▸`; no full path dumps. Never emit via Bash — model text only.

## Constraints

- SKILL.md body length ≤ 200 lines.
- Do not delete or re-order Plan sections; touch only `status.work`.
- Do not start `feature-test` or `feature-review` from here; the wrapper orchestrates transitions.
- Two retries maximum for agent self-healing on a single task; on a third failure surface to the user.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Tianea2160](https://github.com/Tianea2160)
- **Source:** [Tianea2160/claude-skills](https://github.com/Tianea2160/claude-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-tianea2160-claude-skills-feature-work
- Seller: https://agentstack.voostack.com/s/tianea2160
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
