agentleFS
merllinsbeardmerllinsbeard/merlin-skills/skills/create-goal/SKILL.md

create-goal

Skill1 starsChanged 6 months agoMITView on GitHub

Create a spec-kit-native Codex GOAL.md from an existing spec-kit feature directory. Adapted from AB Method's create-goal concept, but uses spec.md, plan.md, tasks.md, and constitution/checklist artifacts as the source of truth.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 5 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Create a durable Codex /goal contract from spec-kit artifacts.

    line 8
  2. Very specific:

    Do not use when the idea has no spec yet.

    line 20
  3. Distinctive:

    If multiple plausible directories exist, choose the one most clearly referenced by the user or current branch.

    line 31
  4. Distinctive:

    Read these if present:

    line 41
  5. Very specific:

    Do not write GOAL.md if:

    line 53
  6. Distinctive:

    no feature directory can be found.

    line 55
  7. Very specific:

    Do not write a separate docs/goals/ tree for spec-kit projects.

    line 72
  8. Distinctive:

    Stop condition: all tasks complete, checks pass, acceptance scenarios satisfied, no unresolved gates.

    line 86
  9. Very specific:

    Use templates/GOAL.md as the shape.

    line 89
  10. Distinctive:

    Stop and report the output path plus any unresolved risks.

    line 97
  11. Very specific:

    Do not start implementation from this skill.

    line 99

“Common” is measured: kept by at least 6 in 10 of the 4 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

Create Goal

Create a durable Codex /goal contract from spec-kit artifacts.

This skill is the Merlin-owned bridge from Spec Kit artifacts to Codex /goal. It keeps AB Method's useful idea of a persistent GOAL.md, but replaces AB Method project structure with spec-kit feature directories.

When To Use

Use when:

  • the user wants to run Codex /goal;
  • a feature has spec.md, plan.md, and tasks.md;
  • autonomous implementation needs a stop condition, verification loop, and stable source-of-truth list.

Do not use when the idea has no spec yet. Route to speckit-specify or brainstorming first.

Locate The Feature Directory

Find the active feature directory in this order:

  1. .specify/feature.json field feature_directory;
  2. environment variable SPECIFY_FEATURE_DIRECTORY;
  3. the only or newest specs/<feature>/ directory;
  4. a branch-matching specs/<number>-<slug>/ directory.

If multiple plausible directories exist, choose the one most clearly referenced by the user or current branch. Ask only if choosing would materially risk writing the wrong goal.

Required Inputs

The feature directory must contain:

  • spec.md
  • plan.md
  • tasks.md

Read these if present:

  • research.md
  • data-model.md
  • contracts/
  • quickstart.md
  • checklists/
  • memory/constitution.md
  • .specify/memory/constitution.md

Refusal Conditions

Do not write GOAL.md if:

  • no feature directory can be found;
  • any required input is missing;
  • spec.md contains unresolved [NEEDS CLARIFICATION];
  • plan.md lacks a concrete technical approach or verification plan;
  • tasks.md is not executable as a checklist;
  • constitution or checklist gates are unresolved.

Report the blocking files and exact fixes needed.

Output Path

Write or update:

specs/<feature>/GOAL.md

Do not write a separate docs/goals/ tree for spec-kit projects.

GOAL.md Contract

The goal must include:

  1. Title and short objective.
  2. Source-of-truth artifact list with relative paths.
  3. Success criteria tied to spec.md.
  4. Execution rules tied to tasks.md.
  5. Implementation plan summary tied to plan.md.
  6. Verification loop: tests, quickstart, Playwright/browser proof, QA, review.
  7. Progress protocol: mark tasks in tasks.md, keep evidence current.
  8. Safety boundaries: do not change unrelated scope, preserve user-story independence, follow constitution.
  9. Stop condition: all tasks complete, checks pass, acceptance scenarios satisfied, no unresolved gates.
  10. Resume note: if interrupted, re-read this GOAL.md, tasks.md, and latest proof before continuing.

Use templates/GOAL.md as the shape. Keep it concise enough to paste into Codex /goal.

Process

  1. Inspect the feature directory and required artifacts.
  2. Validate refusal conditions.
  3. Extract objective, acceptance scenarios, constraints, tasks, and verification commands.
  4. Write GOAL.md.
  5. Stop and report the output path plus any unresolved risks.

Do not start implementation from this skill. The next step is Codex /goal.

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.