apply

apply is a command for Claude Code from opsmill/infrahub-mcp. It costs 26 tokens per session (2,221 once invoked), scanned A, a copy of speckit.iterate.apply, Apache-2.0.

A command that applies a previously written iteration plan to a feature’s specification documents. It updates the documents used by the implementation process and prepares the work for handoff.

In plain words
What is it for?
Use it to apply pending changes to feature specifications, plans, or tasks, with optional instructions about which updates to skip.
Why use it?
It lets a reviewed change plan become part of the project’s working documentation before coding resumes.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to apply pending changes to feature specifications, plans, or tasks, with optional instructions about which updates to skip.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/opsmill/infrahub-mcp/apply
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/opsmill/infrahub-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for apply

README.md
[![agentmods](https://agentmods.dev/badge/commands/opsmill/infrahub-mcp/apply.svg)](https://agentmods.dev/commands/opsmill/infrahub-mcp/apply)
Your own site
<a href="https://agentmods.dev/commands/opsmill/infrahub-mcp/apply"><img src="https://agentmods.dev/badge/commands/opsmill/infrahub-mcp/apply.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,221 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.02221
Opus 5 $0.00013 $0.01111
Sonnet 5 $0.00005 $0.00444
Haiku 4.5 $0.00003 $0.00222

Measured 4d ago against content hash d3d31c01c753, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

apply scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

97% identical to speckit.iterate.apply — 23 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.specify/extensions/iterate/commands/apply.md · 228 lines

How it starts

The opening of the file, as written. The whole thing — 228 lines — stays where its author put it; the contents beside it link to each section on GitHub.

User Input

$ARGUMENTS

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

If the user provides arguments, treat them as adjustments or notes for the apply process (e.g., "skip task completion marking" or "only update spec.md and tasks.md"). The primary source of truth for what to change is pending-iteration.md.

Outline

Goal: Execute the iteration plan defined in pending-iteration.md by updating all spec artifacts that speckit.implement relies on. After apply completes, the user can go directly to /speckit.implement — skipping /speckit.plan and /speckit.tasks since this command already handles those updates.

1. Initialize Feature Context

Run .specify/scripts/bash/check-prerequisites.sh --json --paths-only from repo root once. Parse JSON payload fields:

  • FEATURE_DIR
  • FEATURE_SPEC
  • (Optionally capture IMPL_PLAN, TASKS for downstream use.)

If JSON parsing fails, abort and instruct the user to run /speckit.specify or verify the feature branch environment.

For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'''m Groot' (or double-quote if possible: "I'm Groot").

2. Load Pending Iteration

Check for FEATURE_DIR/pending-iteration.md. If it does not exist, abort with:

No pending iteration found. Run /speckit.iterate.define <change request> first to define what you want to change.

If it exists, read and parse the file:

  • Frontmatter: status, created, change_request, scope
  • Change Summary: What this iteration does
  • Implementation Progress: Current state context
  • Impact Assessment: Which artifacts need updates and how
  • Risk Checks: Acknowledged risks
  • Planned Changes: Specific changes per artifact

If status is not pending, warn the user that this iteration may have already been applied.

3. Load Current Artifacts

Read all available artifacts from FEATURE_DIR:

  • REQUIRED: spec.md — requirements, user stories, edge cases, scope
  • IF EXISTS: plan.md — tech stack, architecture, file structure, phases
  • IF EXISTS: tasks.md — task list with IDs, phases, checkboxes, dependencies
  • IF EXISTS: data-model.md — entities, attributes, relationships
  • IF EXISTS: research.md — technical decisions and constraints
  • IF EXISTS: quickstart.md — integration/test scenarios
  • IF EXISTS: checklists/ — quality checklists

Read the full file on GitHub · 228 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 228 lines · 26 tokens per session scan A d3d31c01c753

Subscribe to this mod's changes

apply is a command published in the GitHub repository opsmill/infrahub-mcp (10 stars, last pushed yesterday), licensed Apache-2.0. It adds 26 tokens to every session and 2,221 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to speckit.iterate.apply, differing in 23 lines, and is treated as a copy.