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.
npx agentmods add commands/jpavley/meta-loop-ios/ml-specgit clone --depth 1 https://github.com/jpavley/meta-loop-iosWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00025 | $0.02808 |
| Opus 5 | $0.00013 | $0.01404 |
| Sonnet 5 | $0.00005 | $0.00562 |
| Haiku 4.5 | $0.00003 | $0.00281 |
Grade C, and why
ml-spec scanned grade C with 1 finding 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 2d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
> rm -rf specs/{category}/{name}/ How it starts
The opening of the file, as written. The whole thing — 380 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Meta-Loop: Specification Loop
Complete the specification loop: plan the spec, write it, and review for correctness.
Modes: Plan Mode → Agent Mode → Ask Mode
Arguments
$ARGUMENTS: Path to wireframe(s) that will drive the specification- Examples:
specs/views/my-feature/main-view-wireframe.pngorspecs/views/my-feature/
- Examples:
Prerequisites
This skill implements Steps 2.1-2.4 of the Meta-Loop process defined in skills/meta-loop-methodology/SKILL.md.
The wireframe should have already passed /ml-wireframe review before invoking this skill.
Phase 1: Plan (Plan Mode)
Enter plan mode and create a plan for writing the specification.
1.1 Load Context
- Load wireframe(s) from
$ARGUMENTS - Load
notes.mdfrom the same directory (if it exists)- This file contains decisions from the
/ml-wireframephase - Clarifying questions and answers
- Understanding summary and key components
- Technical notes and references
- This file contains decisions from the
- Read CLAUDE.md for codebase patterns and conventions
- Check for existing specs in
specs/directory that might be referenced - Identify spec category:
specs/views/for SwiftUI views (screens and reusable components)specs/services/for backend servicesspecs/utilities/for helper utilities
1.2 Create the Plan
The plan should outline:
Spec Location:
- Target path:
specs/{category}/{name}/spec.md - Wireframe copy location (wireframes live with spec)
Sections to Include:
- Overview/Purpose
- Layout/Structure
- Components (with references to existing component specs)
- Interactive Elements
- States and Transitions
- Data Requirements
- Accessibility Considerations
Existing Patterns to Reference:
- Which views from
specs/views/to reference - Which shared patterns apply
- Architecture patterns from CLAUDE.md
Architectural Decisions:
- Any decisions needed for this feature
- Trade-offs to document
1.3 Present Plan to Developer
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.
- 2d ago First seen · 380 lines · 25 tokens per session scan C b6044660f3e0
ml-spec is a command published in the GitHub repository jpavley/meta-loop-ios (3 stars, last pushed 6mo ago), licensed MIT. It adds 25 tokens to every session and 2,808 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
OPSX: Archive
Archive a completed change in the experimental workflow.
OPSX: Explore
Enter explore mode - think through ideas, investigate problems, clarify requirements.
OPSX: Apply
Implement tasks from an OpenSpec change (Experimental).
OPSX: Propose
Propose a new change - create it and generate all artifacts in one step.
OPSX: Sync
Sync delta specs from a change to main specs.
status
Project health dashboard - shows environment status and suggests improvements.