Agent skill

Speckit Opsmill Prep

by opsmill in opsmill/infrahub

Run the speckit preparation phases end-to-end — specify, plan, critique, tasks — making all decisions autonomously.

Apache-2.0Auto-check: warningsDevelopment

Install Speckit Opsmill Prep

The automated check flagged lines worth reading first. See the safety section below.

skills CLI
$ npx skills add opsmill/infrahub --skill speckit-opsmill-prep -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install opsmill/infrahub speckit-opsmill-prep --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/opsmill/infrahub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/speckit-opsmill-prep .claude/skills/speckit-opsmill-prep && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
speckit-opsmill-prep
GitHub stars
531
Token cost
~2.6k tokens
SKILL.md length
1,455 words
Files
1
Skills in repo
32
Repo updated
First seen
Licence
Apache-2.0

At a glance

Run the speckit preparation phases end-to-end — specify, plan, critique, tasks — making all decisions autonomously.

  • Works in 5 steps: Specify → Plan → Critique → …
  • Tasks that involve Spec-driven development
  • SKILL.md covers User Input, Outline and Completion
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Speckit Opsmill Prep is an agent skill from opsmill/infrahub. Run the speckit preparation phases end-to-end — specify, plan, critique, tasks — making all decisions autonomously. Stops before implementation.

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Requires spec-kit project structure with .specify/ directory

It sits in Development, covering Spec-driven development. The repository describes itself as: Infrahub is a graph-based data management platform with built-in version control, CI workflows, peer review, and API access. It’s purpose-built to power reliable infrastructure… The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Spec-driven development

Example prompts

  • “/speckit-opsmill-prep”

Requirements

  • Compatibility (from SKILL.md): Requires spec-kit project structure with .specify/ directory

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Specify
  2. Plan
  3. Critique
  4. Tasks
  5. Spec/Ask Alignment Check

What it can do on your machine

Read from SKILL.md and the folder at commit 460d724. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires spec-kit project structure with .specify/ directory

    From compatibility in the SKILL.md frontmatter.

Context cost

Speckit Opsmill Prep loads about 2.6k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 1,455 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: warnings

The automated check found patterns that need a careful read before installing.

  • WarningTells the agent its actions are pre-authorized / not to stop for confirmationSKILL.md:52
    plan.md` autonomously and commit them — do not pause for user approval.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from opsmill/infrahub at commit 460d724, republished under its Apache-2.0 licence (© opsmill). 1,455 words, ~2,605 tokens.

Download SKILL.mdSave it as .claude/skills/speckit-opsmill-prep/SKILL.md (or your agent's skills folder).
name
speckit-opsmill-prep
description
Run the speckit preparation phases end-to-end — specify, plan, critique, tasks — making all decisions autonomously. Stops before implementation.
compatibility
Requires spec-kit project structure with .specify/ directory
metadata.author
github-spec-kit
metadata.source
opsmill:commands/prep.md

User Input

text
$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Outline

You are running the preparation phases of the speckit pipeline end-to-end. The user's input (above) is the feature description that will seed the specification phase.

This skill is the prefix of speckit-opsmill-auto: it covers Specify → Plan → Critique → Tasks → Spec/Ask Alignment Check and stops before implementation. Use it when you want a feature fully designed and broken down into a tasks.md ready for review, but you do not want the agent to execute the tasks autonomously.

Execute every phase below in order, making all decisions autonomously. Do not stop to ask the user for input between phases — if a phase requires choices (e.g., clarification questions in specify, research decisions in plan), use your best judgment and proceed. The user expects a hands-off, one-shot execution up through tasks.md.

After each phase, invoke the speckit-checkpoint-commit skill to commit the artifacts produced by that phase before moving on.

Each phase below is executed by invoking the named skill (e.g. via the agent's Skill tool). Skills are agent-agnostic, so this workflow runs identically across any harness that supports skill discovery — not only those exposing speckit slash commands.

Phase 1 — Specify

Invoke the speckit-specify skill with the user's feature description ($ARGUMENTS).

  • Complete the full specify workflow: generate a short name, create the spec directory, write spec.md, run quality checks.
  • If clarification questions arise, answer them yourself based on context and best judgment — do not pause for user input.
  • Commit the spec artifacts.
Phase 2 — Plan

Invoke the speckit-plan skill.

  • Complete the full plan workflow: research unknowns, generate plan.md, research.md, data-model.md, API contracts, quickstart.md.
  • Make all design decisions autonomously.
  • Commit the plan artifacts.
Phase 3 — Critique

Invoke the speckit-critique-run skill.

  • Run the dual-lens (Product + Engineering) critique against spec.md and plan.md before any tasks are generated.
  • For any 🎯 Must-Address findings, apply the suggested fixes to spec.md / plan.md autonomously and commit them — do not pause for user approval.
  • For 💡 Recommendations, apply them when the fix is clear and low-risk; otherwise note and move on.
  • 🤔 Questions: resolve with your best judgment based on context (same rule as the Specify phase).
  • If the verdict is 🛑 RETHINK, loop back to speckit-plan (or speckit-specify if the spec itself is the problem), re-run the critique, then continue.
  • Commit the critique report and any spec/plan updates before moving on.
Phase 4 — Tasks

Invoke the speckit-tasks skill.

  • Generate the full tasks.md with dependency-ordered, actionable tasks.
  • Skip the optional speckit-analyze skill unless something looks inconsistent — use your judgment.
  • Commit the tasks artifact.
Phase 5 — Spec/Ask Alignment Check

The earlier phases can drift from a detailed PRD: clarifications get over-applied, scope creeps in from research, or requirements get rephrased away. This phase catches that before the user sees tasks.md.

5a. Decide whether to run the check

Inspect $ARGUMENTS. The check is only meaningful when the user provided a substantive PRD — either inline or by reference. Decide based on the following, in order:

  1. $ARGUMENTS contains one or more URLs (links to a Notion / Confluence / Google Doc / GitHub issue / Linear ticket / shared Markdown / PDF). Treat each URL as a likely PRD location. Run the check.
  2. $ARGUMENTS itself looks like a detailed PRD — multiple paragraphs with structure such as headings, bullet lists of requirements, explicit goals/non-goals, acceptance criteria, or > ~400 characters of substantive description. Run the check.
  3. $ARGUMENTS is a one-line description, vague brief, or empty. Skip the check — there is no source-of-truth document to align against. Write a short note in your final summary stating you skipped this phase and why, and proceed to Completion.
5b. Resolve the source-of-truth PRD

If you decided to run the check:

  • For each URL in $ARGUMENTS, fetch its content using the harness's web fetch tool (in Claude Code: the WebFetch tool). Extract the requirement-bearing sections.
  • If the harness has no web-fetch capability at all (the tool is absent, not merely failing): you cannot resolve URL-only PRDs. Fall back to any inline PRD content in $ARGUMENTS. If the only source was a URL and there is no inline content, you cannot run a meaningful check — skip the rest of Phase 5, record verdict: ⚠️ SKIPPED — source PRD unreachable (no web-fetch tool) in the alignment report, and note it prominently in the Completion summary so the user knows alignment was not verified.
  • If a URL is gated (auth required, 404, network error), record that and fall back to whatever PRD content is in $ARGUMENTS itself. If neither is usable, skip the rest of Phase 5 with a note.
  • Concatenate the fetched / inline PRD content into a single "source PRD" view that you will compare against spec.md.
5c. Compare source PRD to spec.md

Read the current spec.md end-to-end and judge it against the source PRD. You are looking for significant drift, not stylistic differences. Significant means:

  • A requirement, goal, or explicit non-goal in the PRD is missing from the spec.
  • The spec adds a requirement, scope item, or constraint that does not appear in the PRD and was not a necessary clarification.
  • A requirement's semantics have been changed (e.g., "users can opt out" became "admins can opt users out"; "must support 10k req/s" became "should scale").
  • Acceptance criteria in the PRD are dropped or softened in the spec.
  • The spec contradicts a stated PRD constraint (compatibility, deadline, dependency, etc.).

Cosmetic, structural, or expansion-of-detail differences are not drift. The spec is allowed to be longer, more precise, and to flesh out implicit requirements.

Show full SKILL.md (554 more words)Show less
5d. Write the alignment report

Write <spec-dir>/alignment-check.md with:

  1. Source — which URL(s) and / or inline ask were used as the source PRD.
  2. Verdict — one of ✅ ALIGNED, ⚠️ MINOR DRIFT (proceeding), or 🛑 SIGNIFICANT DRIFT (re-running prep).
  3. Findings — table of Severity | Category (missing / added / changed / dropped / contradicted) | PRD reference | Spec reference | Description.
  4. Action — what you decided to do (proceed, or re-run which phases).

Commit the report via speckit-checkpoint-commit.

5e. Remediate significant drift (with retry budget)

This step is the loop body. Initialize a remediation counter to 0 before the first entry. Enter this step whenever the most recent 5d verdict is 🛑 SIGNIFICANT DRIFT.

While the latest verdict is 🛑 SIGNIFICANT DRIFT:

  1. Check the budget first. If the counter is already 2, do not start another pass — go to "budget exhausted" below.
  2. Increment the counter (this pass now counts against the budget of 2).
  3. Update spec.md by re-invoking the speckit-specify skill with an augmented input that includes:
    • The original $ARGUMENTS content (and fetched PRD body if from URL).
    • An explicit list of the drift findings the spec must fix (missing requirements to add, off-scope items to remove, semantic changes to revert). The skill will update the existing spec.md in place.
  4. Re-run Phase 2 (Plan) to refresh plan.md against the corrected spec.
  5. Re-run Phase 3 (Critique) to validate the corrected spec/plan.
  6. Re-run Phase 4 (Tasks) to regenerate tasks.md against the corrected plan.
  7. Re-run Phase 5c–5d (do not re-resolve the source PRD — keep the same source) to produce a fresh verdict, then return to the top of this loop and re-evaluate it.

Loop exits:

  • Aligned/minor — a pass produces ✅ ALIGNED or ⚠️ MINOR DRIFT: accept it and proceed to Completion.
  • Budget exhausted — the counter reached 2 and the verdict is still 🛑 SIGNIFICANT DRIFT: stop. Update alignment-check.md with verdict 🛑 UNRESOLVED — manual review required, list the remaining findings, and surface this prominently in the Completion summary. Do not silently proceed.

Retry budget: at most 2 remediation passes, tracked by the counter above.

Commit each remediation pass's artifacts as it runs (the inner skills handle their own commits; you only need to commit the updated alignment-check.md at the end of each pass).

Completion

After all five phases are complete, provide a brief summary:

  • Feature name and spec directory
  • Number of tasks generated in tasks.md
  • Any critique findings that were addressed inline
  • Alignment check status — verdict, source PRD reference, number of remediation passes used (if any), and any unresolved drift
  • Any notable decisions you made autonomously

Machine-readable status line (REQUIRED). The final line of your output MUST be exactly:

STATUS: <READY|BLOCKED> | SPEC_DIR: <absolute spec-dir path> | REASON: <short reason or n/a>

  • STATUS: READY — tasks.md was generated and the alignment outcome is ✅ ALIGNED, ⚠️ MINOR DRIFT, or ⚠️ SKIPPED. Only in this state is the spec safe to implement.
  • STATUS: BLOCKED — alignment is 🛑 UNRESOLVED after the retry budget, or any phase could not complete. This is the explicit failure signal the parent speckit-opsmill-auto checks before deciding whether to start implementation; do not dress an unresolved run up as a success.
  • SPEC_DIR MUST be the absolute path to the spec directory, so the parent can hand it to the implement phase without parsing prose.

Keep this as the literal last line, unwrapped.

Do not proceed to implementation, review, or extraction. The user will run those phases (or speckit-opsmill-auto from scratch) when ready.

© opsmill, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/speckit-opsmill-prep of opsmill/infrahub.

Open the folder on GitHubat commit 460d724

Compare with similar skills

Speckit Opsmill Prep next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Speckit Opsmill Prep compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Speckit Opsmill Prep this skillopsmill/infrahub531—~2.6kAutomated safety check: WarnApache-2.0
OpenSpec Bulk Change ArchiverFission-AI/OpenSpec71k3 repos~5.6kAutomated safety check: PassMIT
Speckit ConstitutionWeihanLi/WeihanLi.Common24211 repos~2.1kAutomated safety check: PassApache-2.0
Speckit Taskstoissueskunstmusik/blue15419 repos~2kAutomated safety check: PassGPL-3.0
Speckit Analyzekunstmusik/blue15418 repos~3kAutomated safety check: PassGPL-3.0
Review Spdzhu1090093659/spec_driven_develop984—~1.5kAutomated safety check: PassMIT

Similar skills

  • Archives several completed OpenSpec changes in one operation, checking the codebase to resolve spec conflicts rather than archiving blindly.

    71k GitHub starsUsed in 3 repos~5.6k tokens
    DevelopmentAuto-check passed
  • Speckit Constitution

    WeihanLi/WeihanLi.Common

    Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync.

    242 GitHub starsUsed in 11 repos~2.1k tokens
    DevelopmentAuto-check passed
  • Speckit Taskstoissues

    kunstmusik/blue

    Convert existing tasks into actionable, dependency-ordered GitHub issues for the feature based on available design artifacts.

    154 GitHub starsUsed in 19 repos~2k tokens
    DevelopmentAuto-check passed
  • Speckit Analyze

    kunstmusik/blue

    Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.

    154 GitHub starsUsed in 18 repos~3k tokens
    DevelopmentAuto-check passed
  • Review Spd

    zhu1090093659/spec_driven_develop

    Findings-first code review workflow for AI coding agents. An agent skill from zhu1090093659/spec_driven_develop.

    984 GitHub stars~1.5k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Speckit Plan

    kunstmusik/blue

    Execute the implementation planning workflow using the plan template to generate design artifacts.

    154 GitHub starsUsed in 18 repos~2.1k tokens
    DevelopmentAuto-check passed

More from opsmill/infrahub

All 32 skills in this repo
  • Analyzing CI Flakiness

    opsmill/infrahub

    Analyzes recent CI failures on pull requests to identify flaky tests, using retry outcomes (failed attempt → green re-run) and cross-PR recurrence as evidence, and maintains a local longitudinal…

    531 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Audit Docs

    opsmill/infrahub

    Audits internal (dev/) and external (docs/) documentation completeness for a feature, subject, or set of existing docs, maps changes indicated by the user, across Infrahub's documentation layers…

    531 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Commit

    opsmill/infrahub

    Stages and commits the current changes onto a safe working branch, enforcing branch discipline and optionally pushing upstream.

    531 GitHub stars~2.8k tokensUpdated today
    Auto-check: notes
  • A skill your agent uses when you've fixed a bug, added a feature, or made any user-facing change in a project that uses Towncrier and need to record it for the changelog — before committing or…

    531 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Creating Issues

    opsmill/infrahub

    Turns a single feature idea, improvement, or bug into ONE well-structured GitHub issue.

    531 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Creating Prd

    opsmill/infrahub

    Synthesises the current conversation context into a Product Requirements Document and publishes it to GitHub (as a comment on a referenced issue, or a new issue).

    531 GitHub stars~4k tokensUpdated today
    Auto-check passed

Categories

Questions about Speckit Opsmill Prep

What does Speckit Opsmill Prep do?

Run the speckit preparation phases end-to-end — specify, plan, critique, tasks — making all decisions autonomously. Speckit Opsmill Prep is an agent skill from opsmill/infrahub. Run the speckit preparation phases end-to-end — specify, plan, critique, tasks — making all decisions autonomously.

When should I use Speckit Opsmill Prep?

Speckit Opsmill Prep fits situations like: tasks that involve Spec-driven development.

How do I install Speckit Opsmill Prep in Claude Code?

Run `npx skills add opsmill/infrahub --skill speckit-opsmill-prep -a claude-code`. Or copy the skill folder (.agents/skills/speckit-opsmill-prep in opsmill/infrahub) into .claude/skills/speckit-opsmill-prep in your project. Claude Code loads it when a task matches its description.

How do I install Speckit Opsmill Prep in Codex?

Run `npx skills add opsmill/infrahub --skill speckit-opsmill-prep -a codex`. Or copy the skill folder (.agents/skills/speckit-opsmill-prep in opsmill/infrahub) into .agents/skills/speckit-opsmill-prep in your project. Codex loads it when a task matches its description.

Can I use Speckit Opsmill Prep in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add opsmill/infrahub --skill speckit-opsmill-prep -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/speckit-opsmill-prep, .gemini/skills/speckit-opsmill-prep, .github/skills/speckit-opsmill-prep and .opencode/skills/speckit-opsmill-prep in your project.

What does Speckit Opsmill Prep need to run?

SKILL.md names no scripts, command-line tools or credentials: Speckit Opsmill Prep is instructions for the agent only. Compatibility (from SKILL.md): Requires spec-kit project structure with .specify/ directory.

Does Speckit Opsmill Prep access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Speckit Opsmill Prep safe to install?

Our automated static check of SKILL.md flagged 1 warning(s): tells the agent its actions are pre-authorized / not to stop for confirmation. Read the flagged lines before installing; the check is not a guarantee either way.

What licence does Speckit Opsmill Prep use?

Speckit Opsmill Prep is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Speckit Opsmill Prep use?

About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Speckit Opsmill Prep?

Skills that share tags, products or a category with Speckit Opsmill Prep: OpenSpec Bulk Change Archiver (Fission-AI/OpenSpec, 71k stars), Speckit Constitution (WeihanLi/WeihanLi.Common, 242 stars), Speckit Taskstoissues (kunstmusik/blue, 154 stars) and Speckit Analyze (kunstmusik/blue, 154 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Speckit Opsmill Prep?

opsmill (a GitHub organization) maintains it in opsmill/infrahub, which has 531 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 8, 2026.

Source: opsmill/infrahub on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.