create-goal
Transform a vague idea, request, or prompt into a concrete, actionable goal with clear success criteria, scope boundaries, and measurable outcomes. Use when the user has an intention but needs help defining what "done" looks like.
What this skill does
# Create Goal Turn any vague intention into a **completion contract** — a goal that an agent (or human) can execute against with evidence-based stopping conditions. ## When to Use - User says "I want to..." but hasn't defined what success looks like - A task feels too big, too vague, or has unclear boundaries - Before starting `/plan` or `/work` — lock the target first - Retrofitting: user already started work but the goal is drifting ## Rules 1. **Preserve the full intent.** Do not weaken broad acceptance criteria such as "all", "any", "complete", "no tech debt", "do it right", "fully", or "hard acceptance criteria" unless the user explicitly narrows them. 2. **One objective per goal.** If the user wants 3 things, create 3 goals or ask which is first. 3. **Criteria must be pass/fail.** "Improve performance" is bad. "Reduce p99 latency to <200ms" is good. 4. **Out of scope is mandatory.** Every goal must say what it's NOT doing. 5. **No hidden assumptions.** If the user assumes React and you know the repo is Vue, surface it. 6. **Concise imperative language.** Write what must be true, not how to get there. ## Process ### 1. Capture the Raw Intention Restate what the user wants in one sentence. If they gave a multi-sentence ramble, compress it. ### 2. Ask Up to 3 Clarifying Questions Choose from this menu based on what's missing: | Gap | Question | |-----|----------| | Scope unclear | "What is explicitly out of scope?" | | Success undefined | "How will you know this is done? What does 'working' look like?" | | Constraints unknown | "What are the hard constraints: time, budget, tech stack, dependencies?" | | Audience unclear | "Who is the consumer of this work? What do they need?" | | Priority unclear | "If you could only deliver one thing, what must not be cut?" | | Existing work | "What already exists that this builds on or replaces?" | Do NOT ask all 6. Pick the 1-3 that would most change the shape of the goal. ### 3. Draft the Goal Output in this exact format: ```markdown ## Goal **Objective:** (one sentence, specific and measurable) **Success Criteria:** - [ ] Criterion 1 (verifiable, not vague) - [ ] Criterion 2 - [ ] Criterion 3 (minimum viable: at least 2, ideally 3-5) **Verification Evidence:** - (concrete evidence required before completion: tests, builds, lint, diffs, screenshots, generated artifacts, etc.) - (if the repo has existing CI/validation, require it unless clearly irrelevant) **Scope:** - **In scope:** (bullet list) - **Out of scope:** (bullet list — be explicit about what you're NOT doing) **Constraints:** - Preserve existing behavior unless the task explicitly changes it. - Do not discard user changes. - Do not leave unapproved shortcuts, compatibility shims, TODO placeholders, dead code, duplicated logic, hidden assumptions, or undocumented behavior changes. **Boundaries:** - Files/tools/data the agent may use - Files/tools/data the agent must NOT touch **Iteration Policy:** - After each attempt, inspect evidence, update the plan, and keep taking the next low-risk useful step. - Do not stop at a plan when implementation or verification remains. - If validation fails, triage and fix the cause rather than reporting partial completion. **Completion Audit:** - Before marking the goal complete, map every explicit requirement to fresh evidence from files, commands, diffs, tests, screenshots, artifacts, or logs. - The goal is not complete if any requirement is unverified, narrowed, deferred, or only probably satisfied. - Phrases like "for the scope this is complete", "good enough", "out of scope", or "remaining tech debt" are not valid completion evidence unless the original user task explicitly allowed that limitation. **Blocked Stop Condition:** - If completion is impossible with current access, tools, budget, or missing decisions, stop without marking complete. - Report attempted paths, evidence gathered, exact blockers, remaining unmet requirements, and what input would unblock progress. **Token Budget:** (optional — only if user explicitly provides one) ``` ### 4. Validate with the User Present the draft goal. Ask: "Does this match your intent? Anything to adjust?" Do not proceed to planning or execution until the user confirms or edits the goal. ### 5. Save (Optional) If the user wants the goal persisted, save it to: - `.goals/<slug>.md` (project-level, shareable) - `~/.ai-eng/goals/<slug>.md` (personal goal library) Use kebab-case slugs derived from the objective (first 3-5 words). ## Handoff to `/goal` On **Pi** (with `pi-codex-goal`) or **Codex**, the `/goal` command takes a **single text objective** — not a full markdown document. After this skill produces the goal, extract the **Objective** sentence and pass it to `/goal`: ``` /goal Reduce the GitHub Actions CI build time from 12 minutes to under 5 minutes without changing the primary build tool ``` The full markdown document (success criteria, verification evidence, scope, etc.) stays in the conversation as context. The agent working toward the `/goal` uses it as the completion contract. On **Claude Code**, **OpenCode**, **Cursor**, or **Gemini** (no native `/goal` command), paste the full markdown output into the conversation. The agent follows it as standing instructions. ## Example **User:** "I want to make the build faster" **Clarifying questions:** 1. "What does 'faster' mean — total time, incremental time, or CI time?" 2. "What is the current time and what target are we aiming for?" 3. "Are we allowed to change the build tool, or must we optimize within the current setup?" **Draft Goal:** ```markdown ## Goal **Objective:** Reduce the GitHub Actions CI build time from 12 minutes to under 5 minutes without changing the primary build tool. **Success Criteria:** - [ ] CI build completes in <5 minutes on a clean run - [ ] No regressions in test coverage or build artifacts - [ ] Changes are documented in BUILD.md **Verification Evidence:** - GitHub Actions workflow run logs showing <5 minute completion - Full test suite passes (no skips, no new failures) - Build artifact sizes and contents match or improve baseline **Scope:** - **In scope:** CI workflow optimization, caching strategy, parallel job tuning - **Out of scope:** Changing from Vite to another build tool, removing tests, modifying source code behavior **Constraints:** - Preserve existing behavior unless the task explicitly changes it. - Do not leave TODO placeholders or undocumented changes. **Boundaries:** - May modify: `.github/workflows/`, `package.json` scripts, build config files - Must NOT modify: source code, test logic, API contracts **Iteration Policy:** - After each change, run the CI workflow and record the time. - If a change doesn't help, revert it before trying the next. - If validation fails (tests break, artifacts change), fix the cause before proceeding. **Completion Audit:** - Map each success criterion to fresh evidence from CI logs, test output, and artifact comparison. - The goal is not complete if any criterion is unverified or only "probably" satisfied. **Blocked Stop Condition:** - If the build tool has a hard floor >5 minutes due to inherent limitations, stop and report the blocker with evidence. ```
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.