بنقرة واحدة
start-work
Research a work item, draft an implementation plan, and begin work after approval.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Research a work item, draft an implementation plan, and begin work after approval.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | start-work |
| description | Research a work item, draft an implementation plan, and begin work after approval. |
| user-invocable | true |
| disable-model-invocation | true |
| allowed-tools | Bash, Read, Grep, Glob, AskUserQuestion, Agent, Edit, Write |
Research a work item, draft an implementation plan, and begin work after approval.
All integrations below are strictly conditional on external plugins. If a skill is not available, proceed as if this section does not exist — no mention, no complaint.
After Phase 1d (work item confirmed): if core:scope-statement-check is
available, run scope-statement-check extract on the work item to write a scope
contract to .scope/<branch>.md. This feeds downstream into commit
enforcement and pr-fix classification.
Between Phase 2 and Phase 3: if feature-dev:feature-dev or
superpowers:brainstorming is available, present a routing question before
codebase exploration. Include only the options whose skills are actually installed:
Use AskUserQuestion — "How do you want to approach this?":
feature-dev:feature-dev is available) — parallel
agent codebase exploration and architecture design; returns to you at implementationsuperpowers:brainstorming is available) — design
dialogue → spec doc → writing-plans → subagent-driven-developmentIf neither skill is available: skip the question entirely and proceed directly to Phase 3.
If feature-dev chosen: pass work item summary + Phase 2 findings as context,
invoke feature-dev:feature-dev. Do not proceed with Phases 3–6.
If Brainstorm chosen: pass work item summary as context, invoke
superpowers:brainstorming. Do not proceed with Phases 3–6.
Accept flexible input:
/start-work 42 — GitHub issue #42/start-work docs/some-planning-doc.md — work from a planning doc/start-work search-feature — fuzzy match against filenames, doc headings, and GH issue titlesgh issue view <number> --json number,title,body,labels,assignees,comments,state
Display issue summary: number, title, state, labels, and body excerpt.
docs/*<keyword>* and search filenames across the repogh repo view --json nameWithOwner,url 2>/dev/null
Run these in parallel:
git branch -a --list "*<keyword>*"
For each matching branch, check PR status:
gh pr list --head "<branch>" --json number,title,state,url
If an open PR exists, highlight it — the user may want to continue rather than start fresh.
git log --all --oneline --grep="<keyword>" -10
gh issue list --state open --limit 10 --search "<keyword>" --json number,title,state,labels 2>/dev/null
Based on the work item content, use Grep and Glob to find:
Present related work summary to the user.
Based on the work item, explore affected areas:
Time-box this phase. Enough context for a solid plan, not an exhaustive audit. Aim for 2-3 minutes of exploration.
Ask 2-4 targeted questions using AskUserQuestion. Generate these based on the specific work item — do not use generic questions. Examples of question types:
Rules:
Before writing the plan file, validate the branch name you're about to record in the plan's **Branch**: field.
Default regex: ^(feat|fix|chore|docs|refactor|test|perf|build|ci|style)/(?:[0-9]+-)?[a-z0-9][a-z0-9-]*$
Matches: feat/new-feature, fix/123-broken-button, chore/update-deps, refactor/auth-cleanup. Does NOT match: my-feature (no type prefix), Feat/X (uppercase), feat_x (underscore instead of slash).
Soft check only. If the proposed branch name doesn't match the active regex, present an AskUserQuestion with three options:
-, and prepending a sensible type prefix inferred from the work item (issue label, PR-style commit prefix in related work, or default to feat)Never reject silently. Never block.
Configurable via CLAUDE.md key start-work.branch-pattern:
<regex string> — override the default with a project-specific regex.disabled — skip the check entirely.Create .plans/ directory if needed, then write to .plans/<slug>.md:
# Plan: <Title>
**Source**: [#42](url) or [docs/file.md](path)
**Branch**: `<proposed-branch-name>`
**Date**: <today>
## Context
<2-3 sentence summary incorporating research findings and user's questionnaire answers.>
### Related Work
- Branch: `<name>` (if exists)
- Related issues: <list>
- Related files: <list>
### User Decisions
- <Q1 summary>: **<Answer>**
- <Q2 summary>: **<Answer>**
## Requirements
Extracted from the issue/doc and questionnaire:
1. <Requirement>
2. <Requirement>
## Implementation Steps
### Step 1: <title>
- **Files**: `path/to/file`
- **What**: <description>
- **Why**: <reasoning>
- **Verify**: <how to validate this step>
### Step 2: <title>
...
### Step N: Verify
- Run project-defined checks (see /commit preflight)
- <Manual verification steps if applicable>
- <Specific commands to verify the changes work>
## Files to Modify
| File | Action | Reason |
|------|--------|--------|
| `path/to/file` | Create/Modify | <reason> |
## Verification
How to test end-to-end:
1. <Step-by-step>
2. <What to check>
## Risks & Open Questions
- <Uncertainties>
- <Side effects>
- <Decision points during implementation>
Display the full plan, then present these options using AskUserQuestion
("How do you want to proceed?"). Do not render them as a prose list — this is a
pick-one-of-N next-action choice, exactly what AskUserQuestion is for. Each
option maps to a handler section below:
/start-work opens the working journal that /document formalizes. Treat it as a
living document — seeded with intent here, grown with decisions as work
progresses, and finalized with outcomes at /pr-fix and /ship-it. /document
remains the source of truth for the doc format; this skill detects the gap and
seeds the file, it does not restate the template.
When the branch enters active use — whether newly created or an existing one being resumed — before working any step, initiate the journal:
Check whether a docs/issues/{number}-*.md doc already exists (issue-based
work). Match on the issue number, not an exact slug: /document may have
created the doc with a different slug, and matching the exact
{number}-{slug}.md would miss it and spawn a duplicate. Only when creating a
new doc, derive {slug} from the issue title (kebab-case, 2-4 words) per
/document's convention.
If it does not exist, soft-prompt with AskUserQuestion — never block:
docs/issues/{number}-{slug}.md with the
session intent from the approved plan (what this work is, why, and the
approach chosen), leaving room for a running work log and a final outcomes
section. Use /document's issue-doc format as the canonical template./pr-fix and
/ship-it will resurface it.For software / feature work, also check whether a docs/features/ entry
exists for the area being changed, then either:
docs/features/{name}.md;docs/features/ doc.Delegate the actual format and creation to /document. Skip this entirely for
skill, documentation, or CI/config-only changes — /document excludes those,
so there is nothing to document as a feature.
As you work through the plan's steps, append the meaningful decisions, approaches considered, and rationale (developer and AI) to the journal — the why, not just the diff. This running work log is what the journal exists to hold.
origin/maingit fetch origin main && git checkout -b <branch> origin/mainsuperpowers:test-driven-development is available, apply the TDD cycle for
each implementation step — write the failing test first, verify it fails,
implement minimum to pass, verify it passes./commit when readySame as Option 1 but only pause for:
If superpowers:test-driven-development is available, apply the TDD cycle for each implementation step (same as Option 1).
Enter discussion mode. Answer questions, explain reasoning, adjust scope.
Accept feedback, update the plan file, re-present.
Stop. Plan file remains at .plans/<slug>.md for later use.
origin/main (or the project's default branch)/commit when readydocs/issues/{number}-*.md is a living
record of intent, decisions, and outcomes; keep it current as work progresses
(see "Journaling the session"). Soft, never blocking.Guided one-shot install — discover installed plugins (or help install new ones), pick install scope, calibrate risk tolerance into a concrete allowlist + hooks, scaffold or merge CLAUDE.md, and sanity-check the result.
Finalize work — commit via /commit, push, and create PRs on feature branches.
Reviewer-side PR workflow — checks out the branch in a worktree, runs focus-area reviews plus a senior-engineering pass, optionally cross-checks against an autonomous reviewer, and posts inline findings only on explicit approval. Read-only — never edits, commits, or pushes.
Fetch PR review comments, classify by severity and confidence, and fix the selected subset.
Triage CVE and SBOM scanner output (Trivy, Grype, Snyk, Docker Scout, Dependabot) into a ranked, deduplicated action list.
Review project memory and promote durable lessons into CLAUDE.md / settings (with confirmation); file a GitHub issue when a lesson is a defect in one of this repo's own skills.