Post-launch setup for a new feature worktree — detect context, recall memories, and transition to brainstorming.
64
76%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./devflow-plugin/skills/new-feature/SKILL.mdThe canonical home for this skill is new-feature in AndreJorgeLopes/devflow
You have been launched inside a feature worktree. Your job is to orient yourself, load context, and start the feature.
IMPORTANT: Do NOT create worktrees or branches — that was already handled by devflow worktree before this session started.
git branch --show-current (regex [A-Z]+-[0-9]+); if none, use none.mark_chapter with {title: "Brainstorm — <TICKET>", summary: "Starting a new feature"}.
If mark_chapter is unavailable (e.g. running outside Claude Code), skip silently.[ -t 1 ] && printf '\e]2;%s — Brainstorm\007' "<TICKET>" || truemark_chapter (step 2).Detect workspace context. Run these commands to understand where you are:
git branch --show-current
git log --oneline -1 main 2>/dev/null || git log --oneline -1 master 2>/dev/null
basename "$(git rev-parse --show-toplevel)"Extract:
feat/MES-1234/add-user-metrics)main or master)MES-1234)If the current branch is main or master, this skill does not apply — tell the user to create a worktree first with devflow worktree <name>.
Recall relevant memories using Hindsight. Query with:
"<project>: <domain area from branch name>""<project>: architecture" (general patterns)"<project>: <ticket-id>"Present the workspace context:
## Feature Workspace
**Branch:** <branch-name>
**Base:** <base-branch>
**Project:** <project-name>
**Ticket:** <ticket-id or "none">
### Recalled Context
- [relevant memories, patterns, and gotchas for this area]
- [or "No prior memories found for this area"]Ask what the feature is about. If the branch name is descriptive enough, summarize your understanding and ask for confirmation. Otherwise, ask the user to describe the feature.
Don't guess from the branch name. If the branch is descriptive, summarize your reading in one sentence and ask for confirmation. If it leaves gaps (what behavior changes, what success looks like), ask BEFORE recalling more. Silent interpretations compound.
Offer codebase walkthrough (optional). Ask the user:
"Would you like a codebase walkthrough before we start? This traces the full end-to-end flow affected by this task, shows you the actual code at each step, and identifies the key files. Useful if this is an unfamiliar area of the codebase."
If yes, invoke the codebase-walkthrough skill with the feature context. After the walkthrough completes, continue to brainstorming.
Optionally, you may also offer: "Want a quick architecture diagram of the area being worked on? I can render one via /devflow:render-diagram and show it inline." If yes, invoke /devflow:render-diagram with the feature/area context (it shows the PNG inline via the Read tool). This is optional and independent of the walkthrough — skip it if the user declines.
Transition to brainstorming. Once you understand the feature (and optionally completed the walkthrough), invoke /devflow:brainstorming (devflow's thin wrapper around the upstream brainstorming skill — always use the devflow surface, never /brainstorming or the upstream skill directly) to explore requirements, design, and approach before writing any code.
The full pipeline from here is:
brainstorming → spec-feature → writing-plans → lock-tests → executing-plans → finish-featureThe spec → plan → lock-tests → impl boundaries each end with devflow:phase-handoff (commits the artefact docs to the branch, gates via one-click AskUserQuestion, then spawns a new Claude Desktop session via mcp__ccd_session__spawn_task titled [<TICKET>] [MR#<N>] <Phase>). The spawned session starts cold in a fresh throwaway worktree; its initial prompt embeds a self-contained devflow handoff context block (feature branch/worktree + relative artefact paths + recovery commands) that the next-phase wrapper's Step 0 consumes to re-establish the feature worktree, then reads spec + plan + test inventory as the only authoritative inputs. (Brainstorming → spec-feature is the exception: it stays in the same session, no spawn.)
$ARGUMENTS
faa2388
Canonical home
since May 7, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.