Skip to content
Back to skills

Feature

ASecurity

Investigate the surrounding code and open a well-specified new-feature issue. With --agent, chains implementation + QA as background subagents in a dedicated worktree; with --workflow, the same chain runs as a Workflow.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
developmentrustgobashgit

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add eusilvio/claude-workflow --skill feature --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Feature?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Feature
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/eusilvio-feature/badge)](https://www.skillsdirectory.com/skills/eusilvio-feature)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: feature
description: "Investigate the surrounding code and open a well-specified new-feature issue. With --agent, chains implementation + QA as background subagents in a dedicated worktree; with --workflow, the same chain runs as a Workflow."
argument-hint: "<short feature description> [--local] [--review-spec] [--agent | --workflow [--auto] [--merge] [--live] [--office] [--realtime]]"
allowed-tools: Bash(gh issue:*), Bash(gh repo:*), Bash(git:*), Bash(${CLAUDE_PLUGIN_ROOT}/scripts/wt.sh:*), Read, Grep, Glob, Task, Agent, SendMessage, AskUserQuestion, Bash(${CLAUDE_PLUGIN_ROOT}/scripts/codemap.py:*), Bash(${CLAUDE_PLUGIN_ROOT}/scripts/brain.py:*), Bash(${CLAUDE_PLUGIN_ROOT}/scripts/flowctl.py:*), Write, Skill
---

Turn the description below into a NEW-FEATURE issue an agent can implement
autonomously. Do not write code. Your only output is the issue.

Description: $ARGUMENTS

If the arguments contain `--agent` or `--workflow` (and `--auto`, `--merge`, `--live`, `--office`, `--realtime`, ...), strip those tokens from the description and
run step 6 after opening the issue. `--workflow` counts as `--agent` and is forwarded to the orchestrator.

## Speed rules (every step)

- PARALLEL BY DEFAULT: every tool message batches all independent calls
  (Reads, Greps, git). Sequential only when one result feeds the next.
- Your FIRST tool message already includes `git rev-parse --short HEAD`
  (anchor for step 3) alongside the initial Reads/Greps.
- Never re-read a file already read this session. CLAUDE.md is in context;
  do not re-read it.

## 1. Investigate the neighborhood (read-only)

The feature does not exist yet - there is nothing to map. Investigate the
SURROUNDINGS: the module where it should live, analogous patterns to mirror,
and the integration points it will touch.

**Brain first.** If the repo has `<brain>/INDEX.md`, read it and open the
notes that touch this task (`${CLAUDE_PLUGIN_ROOT}/scripts/brain.py find <terms>` when the index is long),
following the read protocol of the `brain` skill. Notes are claims: check
their anchors against the code, and cite every note you relied on in the
issue header as `Brain: [[slug]], ...`. A note the code contradicts goes
under `## Problem` as stale.
(`<brain>` = the directory `${CLAUDE_PLUGIN_ROOT}/scripts/brain.py dir` prints (`docs/brain/` by default; `.flow/brain/` of the main checkout for a local, unversioned brain).)

**Codemap first, grep last.** `${CLAUDE_PLUGIN_ROOT}/scripts/codemap.py find <term> [term ...]` answers
"where is X" in one call: symbols with `path:line` (functions, types, HTTP
routes, DB tables, pages), each with the file's purpose from the repo's file
map when it has one. Line numbers are recomputed for changed files on every
query, so they are never stale. `${CLAUDE_PLUGIN_ROOT}/scripts/codemap.py file <path>` gives a file's outline
before you open it. Grep only for what the index cannot see (string literals,
call sites, config keys).
Batch the resolved candidates into one parallel Read message. Note the analogous patterns
(flow, error handling, naming) in the issue body so the implementer does not
rediscover them.

**Broad sweeps go to `flow:explorer`.** When a question needs many files
("every consumer of field X", "every screen that renders Y"), delegate it to
the `flow:explorer` subagent (haiku, read-only) and keep its path:line table.
Read yourself, in full, only the files you will cite in the issue - the
explorer finds, you verify.

## 1.5 Ask what the request does not say - mandatory GATE

The code tells you WHERE and HOW. Only the user knows WHAT SHOULD HAPPEN.
Before writing, list every observable behavior the feature needs that is
neither stated in the description nor already fixed by an existing
analogous flow. Typical gaps:

- **Success:** what the user sees/where they go after it works (redirect
  target, toast text, list refresh, modal closes, stays on page).
- **Failure:** what is shown on error, validation rules and their messages.
- **Who:** which role/plan sees it; what the others see (hidden, disabled,
  upsell).
- **Data:** which fields, required vs optional, defaults.
- **Entry point:** where the user triggers it (which screen, button, menu).
- **MVP edge:** what is explicitly not in the first version.

Example: "add a login form" says nothing about where success lands, what an
invalid password shows, or whether there is "forgot password". Those are
questions, not recommendations.

For each gap the code cannot answer: **ask, do not invent.** Batch them in
one `AskUserQuestion` call (up to 4 questions; put your recommendation as
the first option, marked "(Recommended)", based on the analogue you found).
More than 4 gaps -> ask the 4 that change the most behavior, then a second
call. Write the answers into the issue as settled facts (MVP / Success
criteria), not as Open decisions.

Do not ask about things the code answers (where it lives, pattern to mirror,
naming) - those stay as Open decisions with `Recommended resolution:` per
step 2.

**No user available** (`AskUserQuestion` fails or is unavailable, e.g.
headless `claude -p`, or the `flow:spec` subagent of `/flow:run`): put each unanswered gap under
`## Open decisions` WITHOUT a `Recommended resolution:` line, prefixed
`NEEDS USER:`. That makes `/flow:implement --auto` stop with
`PIPELINE:SKIPPED open-decisions` instead of shipping a guess. This is the
one exception to "every item carries a Recommended resolution".

## 2. Write the issue

Follow the `feature-spec` skill. Unlike a bug: architecture decisions (where
it lives, which approach, what is MVP) are explicit as "Open decisions", not
guessed - and every item carries a `Recommended resolution:` line so
`/flow:implement --auto` can proceed. The issue body is the only spec the
implementer gets (Implementer notes: files to create in dependency order,
edge cases). Do not post a separate implementer comment.

**Use the repo's QA traps.** If the QA playbook (`<brain>/qa-playbook.md`, legacy `docs/memory/qa-playbook.md`,
or the path CLAUDE.md names) has `## Test traps`, read it before
writing criteria. Every trap whose `Trigger` matches this change becomes part
of the issue: its probe goes into the matching criterion's `verify:` or into
an edge case, citing the trap (`(T7)`). A trap QA has to remember is a round
lost; a trap the spec already carries is a bug that never ships.

## 3. Validate the citations - mandatory GATE

Downstream, `/flow:implement` trusts every path you cite blindly. Re-verify the
draft in one parallel batch of Reads/Greps:

- Every existing `path:line` cited (Neighborhood, Integration points):
  confirm the file exists and the symbol really is there.
- The mirror/analogue named: confirm it actually contains the pattern claimed.
- Anything that fails: fix it, or rewrite as explicit uncertainty. Never
  leave an unverified claim stated as fact.

Stamp the anchor in the body header:
`Investigated at: <short HEAD sha from the first tool message>`.

## 4. Open it

Where the spec lives: `${CLAUDE_PLUGIN_ROOT}/scripts/flowctl.py spec mode`
(first word). `--local` in your arguments forces local.

- **`github`**: `gh issue create` (title, body, labels - the module label plus
  `feature`). Capture the issue number. Return only the link.
- **`local`**: no GitHub issue - never call `gh issue create`. Write the same
  body as a local spec:
  ```
  ${CLAUDE_PLUGIN_ROOT}/scripts/flowctl.py spec new --title "<title>" --labels "<labels>" --source "<backlog line, if your prompt gave one>" <<'FLOW_SPEC'
  <body>
  FLOW_SPEC
  ```
  The number is in its `SPEC:<n>` line. Return only the path it prints.
  The number is used everywhere an issue number would be (`ISSUE:<n>` below).

## 4.5 Second reader (`--review-spec` only)

Spawn `Agent(subagent_type: "flow:spec-reviewer", prompt: "Review spec <n>.")`
and wait for it. `SPECREVIEW:OK` -> go on. `SPECREVIEW:CHANGES <k>` -> settle
each finding: apply it to the issue with `flowctl.py spec edit <n>` (the whole
body, revised), or reject it with one line of reason. Then post one comment on
the issue starting `Spec review:` with the table and what you did with each
row. A finding that needs the user's knowledge goes to the user (step 1.5
rules), never guessed. Running as `flow:spec` (no subagents), skip this step:
the orchestrator runs the reviewer.

## 5. Final output

The VERY LAST line of your response must be, on its own line, exactly:

```
ISSUE:<number>
```

(e.g. `ISSUE:231`). Pipeline scripts parse this line - no trailing text after it.

## 6. Chain the implementation (`--agent` / `--workflow` only)

You wrote the spec; you do not drive the implementation by hand. Hand the
issue to the orchestrator by invoking the `Skill` tool with skill `flow:run`
and args `#<number>` plus any `--workflow`, `--auto`, `--merge`, `--live`, `--office`, `--realtime`, `--parts`,
`--no-slice` from your own arguments (add `--headless` when `AskUserQuestion` is unavailable,
e.g. under `claude -p`). Invoke it, do not read its file and follow it
inline: the skill pins the orchestrator to Opus, reading the file would keep
your current model. It gates the
issue, creates the worktree, spawns `flow:implementer` and `flow:qa` as
background subagents (with `--workflow`, inside one Workflow per issue), runs
the fix/QA loop and stops at "ready to merge".

Do not implement the issue yourself, even through the orchestrator's steps:
the head that invented a wrong assumption implements around it instead of
tripping on it, which is the whole reason the stages are separate.

Relay what the orchestrator reports (board, verdicts with evidence, the next
command `/flow:merge <pr-number>`). The final line of YOUR response stays
`ISSUE:<number>`, so a wrapping script still parses it - put the chain report
above that line.

A feature issue always carries `## Open decisions`. The orchestrator's gate
refuses to start while any item lacks a `Recommended resolution:`; a
`NEEDS USER:` item from step 1.5 is expected there and becomes a question to
the user, any other unresolved item is a defect of your step 2.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.