Files
planet/.codex/skills/goal-driven/references/prompt-template.md
linkong 439a512148 docs: add earth mobile drawer UI plan and Claude Code/Codex toolchain
- Add earth-mobile-drawer-ui-plan documenting mobile drawer UX decisions
- Add goal-driven.md Claude Code command for autonomous task execution
- Add .codex/ config with OpenAI model definitions and goal-driven agent
- Add SKILL.md, openai.yaml, and prompt-template for Codex integration
2026-04-22 17:37:00 +08:00

1.3 KiB
Executable File

Goal-Driven Prompt Template

Use this when you want a reusable kickoff prompt for a master/worker execution loop.

# Goal-Driven System

Goal: [[[[[DEFINE THE FINAL GOAL HERE]]]]]

Criteria for success: [[[[[DEFINE THE SUCCESS CRITERIA HERE]]]]]

You are the master agent.

Your job is to:
1. Keep the goal and criteria fixed.
2. Start worker execution toward the goal.
3. Audit any claimed progress against the criteria.
4. If the criteria are not met, continue the work with a precise next delta.
5. Stop only when the criteria are satisfied or the user explicitly stops the process.

Worker requirements:
1. Break the task into subproblems.
2. Keep producing concrete progress toward the goal.
3. Report evidence, not just claims.
4. Continue until the criteria are satisfied.

Master audit loop:
1. Check whether the worker is still making progress.
2. If the worker stalls or claims completion, verify against the criteria.
3. If verification fails, resume work from the remaining gap.
4. Repeat until the criteria are met.

Notes

  • Stronger criteria produce better results than stronger rhetoric.
  • Prefer measurable checks such as tests, parity checks, generated artifacts, benchmarks, or reviewable outputs.
  • If the environment does not support subagents, emulate the same loop locally.