architecture-breakdown
Map an unfamiliar codebase or subsystem into modules, boundaries, data flow, entry points, and hot spots, and produce a breakdown…
Help the user craft one or more well-specified `/goal` objectives for goal mode. Use when the user asks for help writing, refining, or improving goals, goal-mode objectives, completion contracts, autonomous run objectives, proof, boundaries, or stop rules.
Claude Code
$ npx -y skills add autohandai/code-cli --skill goal-writer --agent claude-code
Codex
$ npx skills add autohandai/code-cli --skill goal-writer -a codex -y
Cursor
$ npx skills add autohandai/code-cli --skill goal-writer -a cursor -y
Gemini CLI
$ npx skills add autohandai/code-cli --skill goal-writer -a gemini-cli -y
GitHub Copilot
$ npx skills add autohandai/code-cli --skill goal-writer -a github-copilot -y
OpenCode
$ npx skills add autohandai/code-cli --skill goal-writer -a opencode -y
Windsurf
$ npx skills add autohandai/code-cli --skill goal-writer -a windsurf -y
name: goal-writer description: Help the user craft one or more well-specified `/goal` objectives for goal mode. Use when the user asks for help writing, refining, or improving goals, goal-mode objectives, completion contracts, autonomous run objectives, proof, boundaries, or stop rules.
Help the user turn a rough intention into one or more `/goal` objectives that goal mode can pursue across many turns without supervision. A goal is not a task description; it is a completion contract. It says what must become true, how that truth is proven, where the work may and may not reach, and when to stop and report.
Drafting and starting are separate steps. Settle the wording first. Only once the user has approved the exact objective should you call `create_goal`. When the user approves more than one objective, call `create_goal` for each approved goal in the intended order; the first starts and the rest are queued.
When a decision has concrete options, use the host's user-question tool if it is available. Do not write a prose menu and ask the user to answer in free text.
Examples of choices that should use the tool:
If no user-question tool is available, fall back to a short plain-text question with clearly labeled options and wait. Open-ended questions are fine in prose.
in goal mode on your own.
revise.
version. Do not keep relitigating it.
open-ended enough that a budget is useful.
Strong goals define proof, not effort.
Include as many of these as the task warrants:
1. End state: the concrete condition that must become true. 2. Proof: observable evidence, preferably a command, test, search, file, or metric. 3. Boundaries: what may be touched and what is off limits. 4. Loop: how to iterate, such as rerunning a check after each change. 5. Stop rule: when to stop and report instead of forcing a pass.
Queue-shaped goals work best: failing tests, open issues, error traces, files to migrate, rows to process. Lean on existing verification: tests, CI, typechecks, lint, evals, browser checks, or zero-match searches.
1. Understand the intention. Ask what outcome the user wants and what would prove it is done. 2. Resolve missing finish lines or checks. When options are concrete, use the user-question tool. 3. Draft concrete objectives. Keep simple work to one or two sentences; use a short structured block for larger work. 4. Present the full draft and explain the finish line, proof, boundaries, and stop rule for each goal. 5. Revise until the user approves the exact text and order. 6. Start approved goals with `create_goal` only after approval. Include a token budget only if one was agreed. 7. If the user approves structured acceptance criteria, show the exact criteria alongside the full objective and pass them as `acceptance_criteria`. Never add criteria the user did not approve. Completion then requires `completion_evidence`: a summary and a passed check with evidence for each criterion. Receipts record reported evidence, not independent verification; time or tokens spent cannot substitute for a passing check.
<What must become true.> Done when <command/search/state that proves it>. Scope: only <files/area>; do not <off-limits action>. Loop: <how to iterate, such as rerun the check after each change>. If <blocking condition>, stop and report instead of forcing a pass.
Use only the lines that help. A small task can be a single clear sentence.
Weak: `Find all bugs in this codebase.`
Strong: `Fix every test in test/auth that currently fails, rerun npm test until it exits 0, change no file outside test/ or src/auth, and report anything you cannot fix with its location and why.`
Weak: `Optimize the project.`
Strong: `Migrate the payment module to the new API, make npm test -- payment exit 0, keep the diff limited to payment-related files, and stop and ask before touching shared infrastructure.`
Weak: `Make it faster.`
Strong: `Make renderFrame at least 3x faster measured by the bench/render benchmark; if you cannot reach 3x after several attempts, report the best result and why.`
| Mistake | Better | | --- | --- | | Starting or suggesting a goal the user did not ask for | Only draft a goal once the user asks | | Drafting in the wrong language | Match the user's language | | Running before the user sees the exact text | Show the full draft and get agreement | | Burying a discrete choice in prose | Use the user-question tool when available | | Specifying effort | Specify proof | | Setting a budget unprompted | Suggest a budget only when useful | | No blocked path | Add an explicit stop-and-report rule | | No way to verify completion | Anchor to tests, search, metric, file, or inspectable check |
Docs: English | 日本語 | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Polski | Русский | Português (Brasil) | Türkçe | Čeština | Magyar | हिन्दी | Bahasa Indonesia A fast, self-improving terminal-native AI coding agent for planning, reflecting,
Map an unfamiliar codebase or subsystem into modules, boundaries, data flow, entry points, and hot spots, and produce a breakdown…
Turn a rough software idea into a clear, well-scoped design before any code is written. Use when the user wants to design,…
Staff-engineer-level code review delivering 10 prioritized actionable findings across architecture, security, performance, and…
Operate native desktop applications through Autohand Computer Use. Use when the user asks Autohand to open, drive, click, type,…
Explore, clean, analyze, and model data in the workspace (CSV, JSON, Parquet, SQL, notebooks) with reproducible scripts and…
Conduct iterative, multi-source deep research on a topic and produce a cited project report.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.