agentleFS
marconaemarconae/speq-skill/.claude/skills/speq-mission/SKILL.md

speq-mission

Skill56 starsChanged 15 days agoMITView on GitHub

Creates or updates specs/mission.md and specs/architecture.md through an interview, for brownfield or greenfield projects. Use to bootstrap a speq project, revise the mission, or when /speq-audit reports mission drift.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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:

    Create or update specs/mission.md and specs/architecture.md through an interview with the user.

    line 12
  2. Very specific:

    Brownfield: when source code exists, greenfield otherwise.

    line 22
  3. Distinctive:

    Before the interview, read the manifests, build and test commands, top-level structure, README, and docs.

    line 29
  4. Very specific:

    Write specs/mission.md per references/mission-template.md.

    line 45
  5. Very specific:

    Write specs/architecture.md per architecture-template.md in /speq-formats, unless it already exists.

    line 46
  6. Very specific:

    Check specs/architecture.md against the Rules in the architecture template.

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Mission Creator

User Arguments

$ARGUMENTS

Create or update specs/mission.md and specs/architecture.md through an interview with the user.

Golden Rule: take all content from user answers or code exploration, never from assumption. Later plans are checked against the mission, so a guessed fact turns into a false requirement.

Invoke /speq-cli and /speq-writing-guardrails first.

Workflow

1. Detect the Mode

  • Brownfield when source code exists, greenfield otherwise. Read any existing specs/.
  • Update mode: specs/architecture.md exists. Skip the architecture topics (architecture, technical and performance constraints, external dependencies) and tell the user: "Change the architecture through /speq-plan."
  • Migration mode: specs/architecture.md is missing and specs/mission.md still holds ## Architecture, ## External Dependencies, or technical constraint lines. Interview the architecture topics once, seeded with the step 2 draft ("The code shows [X]. mission.md said [Y]. Which is current?"), or with the old content when there is no code. Write the approved file to specs/architecture.md, remove the old sections from specs/mission.md, and add Architecture: see specs/architecture.md. after Out of Scope.
  • Create mode otherwise.

2. Explore (brownfield)

Before the interview, read the manifests, build and test commands, top-level structure, README, and docs.

In Create and Migration mode, draft specs/architecture.md from the code per architecture-template.md in /speq-formats. For a large codebase, hand the mapping to the built-in Explore agent.

  • Derive each section from evidence only: components from modules and imports, data flow from an entry point to storage or output, interfaces from CLI definitions, routes, and file formats, external dependencies from clients and drivers, constraints only from what code or config enforces. Never invent one.
  • Where the old mission sections disagree with the code, the draft follows the code and the item goes on a Conflicts list. What the code cannot show (performance targets, failure impact) goes on a Questions list. Skipped directories go on a Not explored list.

3. Interview

Ask the user about every section of references/mission-template.md and, outside Update mode, of the architecture template. Never fill a section without an answer. Brownfield: present what step 2 found and ask the user to confirm or correct it, instead of asking cold. With an architecture draft, ask one question per Conflicts and Questions item and name what Not explored lists.

Routing:

  • Technical and performance constraints and external dependencies go to specs/architecture.md.
  • Business constraints (GDPR, multi-tenant) stay in specs/mission.md.

4. Generate

  1. Write specs/mission.md per references/mission-template.md.
  2. Write specs/architecture.md per architecture-template.md in /speq-formats, unless it already exists. With a draft, the draft plus the interview corrections is the file.
  3. Fill both files with the collected information only, no placeholders.
  4. Check specs/architecture.md against the Rules in the architecture template.
  5. Name the files written.

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.