/abu-context-engineering:goal-writerfrom Abu Context Engineering
Use when Abu asks what goal to set, wants a Codex/agent goal prompt, or needs a Context Engineering objective after research, spec, stories, surface map, designer commission, design document, planning, implementation, verification, or handoff. Writes a paste-ready goal that starts at the exact accepted gate, preserves design ownership and artifact fidelity, and pauses only for real blockers.
Ships in Abu Context Engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write the goal Abu should set for an agent. The output is a paste-ready goal prompt, not a substitute for doing the work.
Run context-reconciliation before selecting a stage or writing the goal. The goal must start from
the canonical authority, established work, genuine unknowns, and next authorized action—not from
the most detailed or newest-looking artifact.
The goal must preserve process memory. It should tell the next agent where the project is, what to inspect, what gates must happen in order, and when to keep going versus when to stop for Abu.
Do not write a vague goal like "build the app." Write a goal that forces the agent to:
.thoughts/ state before acting,Read what exists before writing the goal:
AGENTS.md, CLAUDE.md, or project instruction files..thoughts/ artifacts: wiki, research, quality, specs, stories, design (surface map, designer
commission, designer-agent prompt, direction returns/audits, acceptance, design doc, and coverage
log), plans, verification, and handoffs — plus legacy prototype directories only as history.If the project has no .thoughts/ folder yet, write a goal for the next missing Context Engineering stage rather than pretending artifacts exist.
Choose the narrowest goal that can keep meaningful work moving.
design-execution goal.designer-commission goal.screen-batch-audit DIRECTION_RETURN
goal (external returns and in-repo living samples alike).design-document goal
that canonicalizes only accepted evidence.screen-batch-audit LEGACY_RECONCILIATION goal without treating legacy process as the
new default.For Abu's post-design handoff case, prefer a single goal that starts at the plan and continues through implementation, verification, and handoff only when each gate passes.
The generated goal should contain these sections:
Set a goal to <objective>.
Objective:
<one clear outcome>
Current context to inspect:
- <actual files/folders/artifacts>
Required workflow:
1. <next Context Engineering gate>
2. <following gate>
3. <continue through implementation/verification only if gates pass>
Autonomy rules:
- Keep working through the accepted gates without asking Abu to restate the process.
- Inspect actual files before deciding what exists.
- Preserve the selected design owner. A generic instruction to continue does not authorize visual design.
- Do not skip the design document, the plan's integration reality matrix, screen batch audits, accepted deltas, verification, or handoff when they are required.
- Preserve design-document fidelity and surface-map coverage — do not lose screens, states, copy, or interaction details.
- Do not silently ship mocks as real product behavior; every mock lives in the integration reality matrix or it is a blocker.
Pause and ask Abu only for:
- missing API keys, OAuth apps, wallet keys, testnet funding, NPM tokens, deployment tokens, external accounts, paid services, or irreversible publishing/deployment approval;
- unresolved product decisions that cannot be answered from the accepted artifacts;
- live settlement, payment, or production credentials that cannot be safely simulated or deferred.
Constraints:
- <project-specific constraints>
Definition of done:
- <proof the goal is actually achieved>
Do not add a token budget unless Abu explicitly asks for one.
When Abu has accepted the design document and wants the agents to continue end to end, write the goal in this shape:
Set a goal to carry the project from the accepted design document through planning, implementation, verification, and handoff without losing design-document or surface-map fidelity.
Objective:
Inspect the actual project state and accepted artifacts, complete the remaining Abu Context Engineering gates in order, then build and verify the accepted MVP only after those gates permit implementation.
Required workflow:
1. Write or update the research-backed plan (Plan Mode when available): phases, granular pass/fail feature checklist, and the Integration Reality Matrix classifying every integration-bearing surface (REAL_MVP / REAL_LATER / SIMULATED_DEMO_ONLY / OUT_OF_SCOPE / BLOCKED) — resolve or escalate every BLOCKED judged-path surface.
2. Implement the smallest complete real product loop first, honoring design-document tokens/laws.
3. Land UI screens in batches of 3-4; run `screen-batch-audit` on each batch before the next; append to design/coverage-audit.md.
4. Accept spec/story/design-doc deltas at checkpoints as audits reveal them.
5. Continue expanding only where the plan and quality gates allow.
6. Run lint/typecheck/build/tests/browser checks or the project-equivalent verification.
7. Write a verification audit and handoff report.
Pause and ask Abu only for missing secrets, API keys, OAuth credentials, wallet funding, NPM/deployment tokens, external account setup, irreversible publish/deploy approval, or product decisions not answerable from artifacts.
Customize it with real project file paths and constraints.
Return:
When creating a file, default to:
<project-root>/.thoughts/goals/YYYY-MM-DD-<topic>-goal.md
If artifact boundaries are unclear, read ../../references/operating-model.md from the plugin root.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub blockchain-oracle/abu-context-engineering --plugin abu-context-engineering17 skills in this plugin
/agents-md-authorUse when Abu wants Codex to create, audit, or update user-level ~/.codex/AGENTS.md, repo AGENTS.md, or nested AGENTS.override.md files. Keeps instructions small, practical, and sourced from the project quality profile, routes detailed workflows to skills, and avoids stuffing research, specs, plans, or full process manuals into AGENTS.md./claude-md-authorUse when Abu wants Claude Code to create, audit, or update user-level ~/.claude/CLAUDE.md, repo CLAUDE.md, .claude/CLAUDE.md, CLAUDE.local.md, or .claude/rules/*.md files. Keeps instructions small, practical, and sourced from project evidence, while routing detailed workflows to skills instead of stuffing long process manuals into always-on memory./