From code-simplifier
Write or refine prompts specifically for Claude Opus 4.7, especially for long-horizon coding, repo implementation, debugging, migrations, tool use, and validation-heavy execution. Use when Codex needs a high-performance Anthropic-style Opus 4.7 prompt with adaptive-thinking, effort, tool-use, XML structure, persistence, concrete acceptance criteria, and local verification guidance.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-simplifier:opus-4-7-prompt-writerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Write one prompt that another Claude model can execute with minimal ambiguity. Optimize for action, persistence, and verification, not for prose elegance.
Write one prompt that another Claude model can execute with minimal ambiguity. Optimize for action, persistence, and verification, not for prose elegance.
Read references/anthropic-claude-prompting.md when the task is long-horizon, tool-heavy, or expensive enough that prompt quality matters materially.
Before writing the prompt, extract:
If the user supplied a spec or earlier review findings, turn those into explicit required work items. Do not leave them implicit.
Use XML-like sections because Claude responds well to explicit structure:
<role>: who the model is for this task.<mission>: the concrete outcome.<context>: repo, branch, docs, prior findings, environment.<requirements>: the non-negotiables.<workflow>: the order of work.<tooling>: how and when to use tools.<validation>: exact commands and checks.<done>: stop condition.<output>: how to report results.Use short, imperative bullets inside each section. Keep the prompt concrete.
Apply these Opus 4.7-specific patterns:
high or xhigh effort increases tool use in agentic search and coding.claude-opus-4-7 with thinking: {type: "adaptive"} and output_config.effort: "xhigh" when quality matters, or at least "high" for intelligence-sensitive work. Use "low" only for short, scoped, latency-sensitive tasks.thinking: {"type": "enabled", "budget_tokens": N} is removed for Opus 4.7 and returns an error.temperature, top_p, top_k) or assistant-message prefill for Opus 4.7. Prefer prompt instructions and structured output configuration.For long-running coding prompts, include a loop like this in the prompt:
If persistence matters, tell Claude to continue until the work is implemented and validated end-to-end.
Name the exact commands and required services. Good prompts do not say "test thoroughly"; they say exactly what must run.
For tasks with local infrastructure, spell out startup expectations using whatever the project actually uses, named by the user, not assumed:
If the prompt requires running multiple services or end-to-end checks, say that success is not complete until those paths have been exercised and any failures addressed or reported with evidence.
<role>
You are Claude Opus 4.7 acting as a persistent senior software engineer in this repository.
</role>
<mission>
Implement the required changes fully. Do not stop at analysis or partial fixes. Continue until the required items are implemented, validated, and reported clearly.
</mission>
<context>
- Repository: {{repo_path}}
- Branch: {{branch}}
- Key repo instructions: {{repo_instructions}}
- Required work items: {{required_items}}
- Relevant files/docs: {{relevant_files_and_docs}}
</context>
<requirements>
- Follow the repository instructions exactly.
- Read the relevant code before changing it.
- Make the smallest correct changes that fully resolve the required items.
- Do not claim success without running the required validations.
- Do not stop early because of token budget or task length. If the harness compacts context or supports memory files, persist state and continue.
</requirements>
<workflow>
1. Read the relevant docs, specs, and code paths first.
2. Confirm the real implementation gaps from the code, not assumptions.
3. Implement the missing items.
4. Run the required local services and validations.
5. If a check fails, fix the cause and rerun.
6. Only finish once the done criteria are satisfied or a real external blocker remains.
</workflow>
<tooling>
- Use tools proactively when they are needed to inspect files, run commands, start services, exercise the app, and verify behavior.
- For this task, do not stay in reasoning-only mode. Take action.
- After each tool result, reflect on what changed and choose the best next action.
- When independent checks can run in parallel, do that.
</tooling>
<validation>
- Required commands:
- {{command_1}}
- {{command_2}}
- {{command_3}}
- Required services or environments: {{services_named_by_user}}
- Rerun the relevant checks after material fixes.
</validation>
<done>
Do not finish until all required items are implemented and the required validation path has run successfully. If something cannot be completed, state the exact blocker, the evidence, and what remains.
</done>
<output>
Report:
- what changed
- what validations ran and their outcomes
- any remaining blockers or risks
</output>
Avoid these prompt mistakes:
Before returning a prompt, verify that it:
npx claudepluginhub scavanna/fork014_agent-skills --plugin opus-4-7-prompt-writerGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Dispatches multiple subagents concurrently for independent tasks without shared state. Use when facing 2+ unrelated failures or subsystems that can be investigated in parallel.