solve-task
Gather disciplined context for solving a task, then hand off to development. Use when the user asks to solve/implement a task ("solve PRI-4", "rag-reviewer:solve-task <key or description>", "реши задачу X"). Reads a keyed task from the reviewer store, pulls related/similar tasks and relevant code, distills a brief, and enters brainstorming. Requires the reviewer MCP server.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 490
01 前言 Front Matter
- name
- solve-task
- description
- Gather disciplined context for solving a task, then hand off to development. Use when the user asks to solve/implement a task ("solve PRI-4", "rag-reviewer:solve-task <key or description>", "реши задачу X"). Reads a keyed task from the reviewer store, pulls related/similar tasks and relevant code, distills a brief, and enters brainstorming. Requires the reviewer MCP server.
02 资源文件 4
- 参考文档references/brief-format.md8.3 KB
- 参考文档references/context-gathering.md7.5 KB
- 参考文档references/modes.md6.6 KB
- 参考文档references/preflight.md13.9 KB
03 SKILL.md 正文
Solve Task
Gather the right context for a task, distill it into a brief, then enter the normal development
workflow. This skill does NOT plan or implement — it disciplines context-gathering and hands the
brief to superpowers:brainstorming (which leads to writing-plans → subagent-driven-development,
or the execution strategy chosen in the startup survey (inline / subagent / lite)).
Inputs
$ARGUMENTS is either:
- a task key (e.g.
PRI-4, matching the board'skey_pattern), or - a free-text description (e.g. "add a logout endpoint").
Pipeline
-
Startup: survey + Preflight (index freshness + task-corpus warm-up). Run this BEFORE anything else. First resolve, once, the repo path (
git rev-parse --show-toplevel) and the working branch (git branch --show-current; if it is inREVIEW_BRANCHESuse it, else the primary branch) — step 3 reuses the same branch forsearch_codebase.Resolve
task_boardexactly once before any board call. Read the repo.review.ymlblock: itstask_boardmapping has priority; an absent block falls back toget_board_config(); an explicit emptytask_board:disables board work for this run. Keep the resolved{type, project, key_pattern, create_target, done_target, options}value and reuse this resolved value in Step 1 and every board operation. Never call the deploy fallback when the repo explicitly disables the board.Call
prepare_task_context(repo, key, branch, warm_board=True)once here — pass the resolvedkeywhen$ARGUMENTSmatcheskey_pattern, else board-less: pass the user's formulation verbatim askey(the tool'skeyparameter is required and accepts free text when no board key matches). It folds the manual round trips below into one deterministic call and returns a single payload:preflight(branch, indexed_sha, drift, summaries, chunks, graph_nodes — feeds Step 0.1/0.4 below),task_board/task(feeds Step 2),related/subsystems/code/test_exemplars(feeds Step 3),gaps(a list of{section, reason, cause, cause_detail, remedy}— branch on whethercauseisunknown, not on one non-unknownvalue; the classes arestorage_unavailable|embedder_unavailable, andcause_detailrefinesstorage_unavailableonly (auth_failed|missing_database|pool_exhausted|null); copy every entry into Constraints / open questions in the Step 4 brief verbatim) andwarnings(surface to the user). No source failure raises — a failed section just adds agapsentry, so the steps below stay fail-open.
<!-- include: solve-task/references/preflight.md -->
- Config. Reuse the resolved value from preflight; do not read
.review.ymlor callget_board_config()again. If no board resolved, continue board-less. For incomplete metadata callget_board_targets(board_type=<task_board.type>, project=<task_board.project>, provider_options=<task_board.options or {}>): select fromtargetsbylabel, and use optionrequired_for/choicesto ask for missingoptions. Never guess a target or an option and never branch on a board type.
Brief-building unit (Steps 2–4) runs on the chosen model. Steps 2–4 (identify → gather → distill
→ persist) are non-interactive; run them on the model chosen in the Step 0 startup survey. Dispatch
a subagent on the chosen model when a per-subagent model override is available (session-less tools +
Read/Bash/Glob/Write to persist the brief), passing the Step 0 prepare_task_context payload
into its dispatch prompt so it does not re-call prepare_task_context or the tools it already
replaced; otherwise build the brief inline. Details, the existing-artifacts pre-dispatch warn, the
Собран на: marker line and the fail-open fallback are in references/brief-format.md below.
-
Identify the task.
- If
$ARGUMENTSmatches the board'skey_pattern:- Store-first. Use
payload.taskfrom the Step 0prepare_task_contextcall — it already carries the task's own normalized content ({key, aliases[], title, description, criteria[], status, url}) from the reviewer store, refreshed by that call's board warm-up. Call reviewerget_task(key, project=<task_board.project>)directly only as a fallback: whenpayload.taskis empty without a matchinggapsentry explaining why, or whenprepare_task_contextitself is unavailable — it returns the same normalized shape.- Hit (a task object with a
key, frompayload.taskor the fallbackget_taskcall): use it directly as theTaskBrief. The task is already indexed (the preflight sync persisted it) — do NOT callindex_task. Note in the brief that the task data came from the reviewer store (after sync).- Thin criteria (optional, fail-open). The store can return
criteria=[]; requirements normally live indescription. If it has NO heading matching(?i)(критери|приёмк|acceptance), leavecriteriaempty and record the gap. Do NOT callindex_task.
- Thin criteria (optional, fail-open). The store can return
- Miss (
null/ nokey) AND a board is resolved: call generic incrementalsync_board(board=<task_board.project or null>, board_type=<task_board.type>, provider_options=<task_board.options or {}>, limit=null, purge_orphaned=false), then retryget_task(key, project=<task_board.project>)once. Error or second miss → board-less: treat$ARGUMENTSas the task description and record the gap. - Miss AND no board: board-less — treat
$ARGUMENTSas the task description.
- Hit (a task object with a
- Store-first. Use
- Otherwise: treat
$ARGUMENTSas the task description; do not perform external task reads.
Store-first cuts the double-fetch:
prepare_task_context's board warm-up already pulled the whole board into the reviewer store, and a miss gets one generic incremental sync/retry (fewer LLM tokens and no provider-specific client dependency). - If
-
Gather context (best-effort, fail-open). Any tool returning a "(… unavailable)" / "(ничего не найдено)" note or an error is non-fatal — continue. Details (subsystem prior, project scope, related-task lookups,
search_codebase, graph deepening, test exemplars, lazy expansion/PR diff) are inreferences/context-gathering.mdbelow.
<!-- include: solve-task/references/context-gathering.md -->
<!-- include: _common/tool-usage.md --> Use the session-less tools above.
Branch selection for search_codebase.
<!-- include: _common/branch-selection.md -->
- Distill the solution brief. Write a structured markdown brief whose only job is to seed
brainstorming— compact, scannable, nothing the implementer won't act on.
<!-- include: solve-task/references/brief-format.md -->
<!-- include: solve-task/references/modes.md -->
Failure handling (fail-open)
- No configured
task_board/ failed generic sync / task not found → board-less: build the brief fromsearch_tasks(if the corpus is warm) +search_codebase+ the user's formulation; note the missing task context. - Neo4j down →
get_task_context/index_taskgraph parts degrade (empty + warning); build the brief fromsearch_tasks+search_codebase. - Empty task corpus (no prior
rag-reviewer:sync-tasksor reviews) →search_tasksis empty; usesearch_codebase+ the user's formulation and note the missing task context. - Postgres down →
search_codebase/search_tasksreturn empty; build the brief from the user's formulation alone and note the missing task context; still hand off to brainstorming. - Never abort: with any gap, distill what you have, note the deficit in the brief, and still hand off to brainstorming.
- This skill reads task data only through the reviewer store and generic
sync_board/retry. It writes exactly two files: the brief underdocs/superpowers/briefs/and the git-ignored run-state file under.superpowers/solve-task/; nothing else in the repository.
Reporting a reviewer defect
<!-- include: _common/bug-reporting.md -->
04 同仓库更多 Skills
migrate-to-e2e
Moves an existing Playwright, Cypress, Selenium, Appium, Detox, Maestro, or TesterArmy suite to e2e one slice at a time, with the old suite running beside the new one until each ported test is proven. Keeps a MIGRATION.md progress file so any later session resumes where the last stopped. Optionally plants a defect to show both suites catch it. Use for /migrate-to-e2e, "migrate our tests to e2e", "port these Maestro flows", "move our TesterArmy tests", or when a project has an e2e config and an older suite still running.
e2e
Writes, runs, and debugs end-to-end tests for web and mobile apps with e2e, the agentic test runner, which mixes agent.act goals with exact locator assertions on a Playwright browser or an iOS or Android device. Also drives a project's running app live over the e2e MCP server to look at a screen, check a UI change, take a screenshot or record a video, and try a locator; and runs bug bashes, parallel e2e explore runs with each bug proven by a repro test. Use when a project depends on e2e or has an e2e.config.ts, when asked for end-to-end, browser, mobile, or agentic UI tests, to check a change in the running app, to QA or bug bash an app or branch, or when an e2e run fails.
create-verification-skill
Generate a project-local verify-<app> skill on top of e2e, so any coding agent can launch the app, check it is worth driving, exercise a feature the way a user does, keep evidence, and bug bash it. Writes the skill, a feature map with one explore charter per feature, and proves it once. Use for /create-verification-skill, "make a verification skill for this repo", or when a project has no scripted way to prove UI behavior.
deja-search
deja-vu memory — search the user's past AI coding sessions with the deja CLI. Holds what they already settled and never wrote into the repo (naming rules, banned or already-tried tools, required checks before merge, preferred values, who owns what). Use before your first edit in a task, before you call a change done or ready to merge, before you recommend a tool, library, design or reviewer, before re-debugging an error that may already be solved, when they say 'didn't we fix this before', 'what did we decide about X' or 'I already have that', and before telling them something on this machine does not exist.
deja-reflect
End-of-session reflection and memory curation with deja-vu. Review what was decided, what commands broke and what repaired them, and record durable project rules or decisions with deja remember so the next session starts with them.
revid
Make, edit, export and post AI videos with Revid (revid.ai) through the Revid MCP server. Use whenever the user wants a short-form or long-form video made (from an idea, a script, a URL, an article, a PDF, a tweet, a product page, their own clips, or a song), wants to find what is going viral on TikTok, YouTube, Instagram or X before making something, wants to edit or re-export an existing Revid project, generate a standalone AI image or clip, make a series episode, or publish and schedule a finished video to connected social accounts. Covers setup (hosted MCP with OAuth, or an API key), the 36 tools, credits, polling and the rules for publishing. Routes to the more specific revid-* skills when one fits.