agentleFS
Masih-0x3Masih-0x3/agent-skills/skills/goal/SKILL.md

goal

Skill0 starsChanged 3 months agoMITView on GitHub

Use when the user invokes /goal, asks for Codex goal mode, or starts long-horizon autonomous work that should be refined into a concrete, verifiable goal contract before execution. Use for durable coding, debugging, research, migration, browser-testing, deployment-check, or data-review tasks where Codex should keep working until evidence proves completion or a real blocker remains.

54 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use update-cli-config, migrate-to-skills and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • PandelisZSkill

    update-cli-config

    View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.

    Also in 3 projects that use this

  • 32103210Skill

    migrate-to-skills

    Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use when you want to migrate rules or commands to skills, convert .mdc rules to SKILL.md format, or consolidate commands into the skills directory.

    Also in 3 projects that use this

  • 32103210Skill

    update-cursor-settings

    Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.

    Also in 3 projects that use this

  • MicrosoftSkill

    automate

    Propose an automation from a completed task or a new idea, then create it after approval. Use when the user asks to create an automation or wants scheduled local or cloud agent work.

    Also in 3 projects that use this

  • 0mlkrizzz655335vSkill

    sdk

    Codex SDK 集成开发。用 TypeScript/Python SDK 做 agent 生命周期、流式输出、本地/云端执行等集成。

    Also in 3 projects that use this

  • Tsumugii24Skill

    split-to-prs

    Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.

    Also in 3 projects that use this

  • +2 more from 32103210

The file

Show its rules and text

We split this skill into the rules it gives an agent

24 rules. 0 are common, 19 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 50 edited versions we read keep these.

  • 19

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill to turn a rough /goal request into a durable completion contract.

    line 8
  2. Distinctive:

    Add verifiable completion criteria, constraints, and evidence requirements.

    line 16
  3. Distinctive:

    Do not expand scope, add unrelated backlog, or turn a narrow fix into a broad audit.

    line 17
  4. Distinctive:

    If a stronger goal would materially change the user's intent, ask before changing it.

    line 18
  5. Distinctive:

    If the user is only asking how goal mode works, answer normally and do not create a goal.

    line 19
  6. Very specific:

    Run this before calling create_goal, updating an active goal, or treating a /goal message as the working objective.

    line 23
  7. Distinctive:

    Run the ambiguity gate. Infer safe defaults when the cost of being wrong is low.

    line 33
  8. Distinctive:

    Ask only questions that change the contract.

    line 34
  9. Very specific:

    Start execution with create_goal when available and the contract is ready.

    line 38
  10. Distinctive:

    Do not ask "should I proceed" after the contract is clear unless the next step is destructive, externally side-effectful, paid, …

    line 40
  11. Distinctive:

    Stop interviewing as soon as the missing fields are answered or safely inferable.

    line 60
  12. Distinctive:

    Use concrete evidence as the completion authority.

    line 64
  13. Distinctive:

    Never blur these states. Do not claim live, authenticated, pushed, deployed, or full E2E coverage when only local or partial checks ran.

    line 77
  14. Distinctive:

    Use this shape when creating the objective:

    line 82
  15. Distinctive:

    Keep the objective short enough to survive long runs, but specific enough that another agent can decide whether it is complete from …

    line 122
  16. Distinctive:

    Prefer measurable and auditable goals:

    line 127
  17. Very specific:

    If no active goal exists and create_goal is available, call it with the synthesized objective.

    line 146
  18. Distinctive:

    If a token budget was provided, pass it exactly.

    line 147
  19. Distinctive:

    If the client already created an active goal from rough text, treat this skill's synthesized contract as the working contract unless the …

    line 148
  20. Very specific:

    If create_goal is unavailable, give the exact refined /goal payload and continue only if the user explicitly wants normal non-goal …

    line 150
  21. Distinctive:

    After major chunks, check status when the goal tool is available and compare progress to the evidence requirements.

    line 152
  22. Distinctive:

    If the same failure repeats, change the approach or narrow the evidence plan.

    line 154
  23. Distinctive:

    Remove abandoned experiments, temporary files, and unrelated edits unless they are intentionally preserved and disclosed.

    line 163
  24. Distinctive:

    Run focused verification. For code changes with meaningful risk, run review or a code-review pass when available.

    line 165

“Common” is measured: kept by at least 6 in 10 of the 50 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Codex Goal Mode

Use this skill to turn a rough /goal request into a durable completion contract. Improve the goal's clarity, evidence, scope, and stop conditions. Do not change the user's intent.

Prime Directive

Refine the goal, not the mission.

  • Preserve the user's requested outcome and domain.
  • Add verifiable completion criteria, constraints, and evidence requirements.
  • Do not expand scope, add unrelated backlog, or turn a narrow fix into a broad audit.
  • If a stronger goal would materially change the user's intent, ask before changing it.
  • If the user is only asking how goal mode works, answer normally and do not create a goal.

Preflight

Run this before calling create_goal, updating an active goal, or treating a /goal message as the working objective.

  1. Classify intent: explanation only, normal one-turn task, or durable goal.
  2. Capture the draft in one sentence using the user's language.
  3. Inspect context before asking when it is safely available:
    • local instructions such as AGENTS.md, README, package scripts, docs, and nearby patterns
    • repo, branch, status, failing command, route, host, database, logs, issue, PR, browser surface, or source files the user pointed at
    • memory only as routing context, never as proof for drift-prone state
  4. Run the ambiguity gate. Infer safe defaults when the cost of being wrong is low.
  5. Ask only questions that change the contract. Prefer one high-leverage question; ask up to three concise independent questions when needed.
  6. Synthesize a compact objective with explicit evidence, scope, constraints, anti-cheat criteria, and final verification.
  7. Start execution with create_goal when available and the contract is ready.

Do not ask "should I proceed" after the contract is clear unless the next step is destructive, externally side-effectful, paid, credential-sensitive, or materially ambiguous.

Ambiguity Gate

A goal is ready only when these fields are known or safely inferred:

FieldMust answer
OutcomeWhat concrete artifact, behavior, metric, report, or state must exist?
EvidenceWhat command, screenshot, row, log, benchmark, deploy, file, or manual check proves it?
ScopeWhat is included, and what is explicitly excluded?
Starting pointWhich repo, branch, files, URL, issue, PR, logs, failing check, or dataset should be inspected first?
ConstraintsWhat dependencies, network calls, commits, PRs, migrations, deploys, paid services, auth, or data writes are allowed?
Anti-cheatWhat would be a fake win, such as deleting tests, weakening requirements, hiding failures, changing unrelated behavior, or claiming unverified live coverage?
ProgressHow should progress be visible: chat updates, status file, commits, PR, dashboard, artifact, or checkpoint notes?
FinalizationWhat cleanup, review, tests, browser checks, handoff, or deployment evidence is expected before completion?
OrchestrationIs the work parent-only, lightweight workers, full worker run, or visible-thread handoff; what worker/thread decision is expected?
Browser focusDoes browser work need a background-safe lane, and what surface/focus/durable-state constraints apply?

Stop interviewing as soon as the missing fields are answered or safely inferable.

Evidence Rules

Use concrete evidence as the completion authority.

  • Validated locally: commands, tests, typecheck, lint, build, local browser checks, generated files.
  • Verified live: authenticated browser behavior, production/staging routes, live rows, deployed logs, external API behavior, current docs, or current third-party state.
  • Pushed/deployed: exact commit, branch, PR, deploy ID, host, environment, or migration status.
  • Blocked: exact missing permission, auth, env var, rate limit, failing command, unavailable tool, or external state that prevents safe progress.
  • Browser evidence: target URL/app/profile, browser surface used, passive/active/manual mode, auth/session state, durable state touched, focus interruption status, captured evidence, and next checkpoint.
  • Orchestration evidence: worker count, worker scopes, skipped-worker rationale, visible-thread decision, parent verification, and reconsider trigger.

Never blur these states. Do not claim live, authenticated, pushed, deployed, or full E2E coverage when only local or partial checks ran.

Goal Contract Template

Use this shape when creating the objective:

Goal: <single concrete outcome, preserving the user's intent>

Done when:
- <observable proof 1>
- <observable proof 2>

Scope:
- Include: <areas, files, routes, data, workflows>
- Exclude: <non-goals and unrelated cleanup>

Constraints:
- <allowed tools, side effects, dependencies, budget, auth limits>

Orchestration:
- Mode: <parent-only | lightweight workers | full worker run | visible-thread handoff>
- Worker/thread decision:
- Reconsider trigger:

Background browser:
- Needed: <yes | no>
- Target/surface:
- Focus and durable-state constraints:
- Required receipt:

Anti-cheat:
- <invalid shortcuts or misleading ways to claim success>

Execution notes:
- Start at <repo/branch/files/docs/tests/URLs/logs>
- Track progress via <chat updates/status file/commits/PR/artifact>

Final verification:
- Run <commands/checks/browser/manual verification>
- Report local vs live vs pushed/deployed status separately
- Clean up dead ends before marking complete

Keep the objective short enough to survive long runs, but specific enough that another agent can decide whether it is complete from evidence.

Good Goal Patterns

Prefer measurable and auditable goals:

  • "Make the checkout benchmark p95 under 120 ms while the correctness suite stays green."
  • "Migrate this feature to TypeScript strict mode without explicit any, verified by build and focused tests."
  • "Investigate the production duplicate-delivery incident read-only first, prove the root cause from rows/logs/traces, then propose or implement the narrow fix."
  • "Improve this UI against the provided reference, verified by desktop and mobile browser screenshots, without changing unrelated flows."

Avoid goals like:

  • "Fix everything."
  • "Make it better."
  • "Improve UX" without target workflow, evidence, or boundaries.
  • "Ship it" without deploy target and verification surface.

Running The Goal

  • If no active goal exists and create_goal is available, call it with the synthesized objective.
  • If a token budget was provided, pass it exactly. Do not invent one.
  • If the client already created an active goal from rough text, treat this skill's synthesized contract as the working contract unless the user explicitly wants to replace or clear the goal.
  • If create_goal is unavailable, give the exact refined /goal payload and continue only if the user explicitly wants normal non-goal execution or the client exposes an active goal.
  • After major chunks, check status when the goal tool is available and compare progress to the evidence requirements.
  • If the same failure repeats, change the approach or narrow the evidence plan. Do not spin.
  • Mark complete only after final verification exists.
  • Mark blocked only when the blocker is specific, repeated, and no meaningful safe alternative remains under the contract.

Finalization

Before reporting completion:

  • Remove abandoned experiments, temporary files, and unrelated edits unless they are intentionally preserved and disclosed.
  • Run focused verification. For code changes with meaningful risk, run review or a code-review pass when available.
  • State exactly what was validated locally, verified live, pushed, deployed, blocked, and what the next action is if anything remains manual.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.