Post-launch setup for a new feature worktree — detect context, recall memories, and transition to brainstorming.
52
56%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/new-feature/SKILL.mdYou 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.printf '\e]2;%s — Brainstorm\007' "<TICKET>"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.
Transition to brainstorming. Once you understand the feature (and optionally completed the walkthrough), invoke the brainstorming skill 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-featureEach phase ends with devflow:phase-handoff (writes a frozen-state file, prompts you to run /compact). The next phase reads only the frozen-state file as source of truth.
$ARGUMENTS
b0b1bb6
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.