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 skills/cp-yu/cc-switch-web/openspec-bootstrap-opsxnpx skills add cp-yu/cc-switch-web --skill openspec-bootstrap-opsxgit clone --depth 1 https://github.com/cp-yu/cc-switch-webWrote 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.
[](https://agentmods.dev/skills/cp-yu/cc-switch-web/openspec-bootstrap-opsx)<a href="https://agentmods.dev/skills/cp-yu/cc-switch-web/openspec-bootstrap-opsx"><img src="https://agentmods.dev/badge/skills/cp-yu/cc-switch-web/openspec-bootstrap-opsx.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00033 | $0.01340 |
| Opus 5 | $0.00016 | $0.00670 |
| Sonnet 5 | $0.00007 | $0.00268 |
| Haiku 4.5 | $0.00003 | $0.00134 |
Grade A, and why
openspec-bootstrap-opsx 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Bootstrap the OPSX architecture map from the existing codebase.
This is a structured, multi-phase workflow. Each phase produces intermediate artifacts in openspec/bootstrap/ before writing formal OPSX files.
Treat openspec/config.yaml as the source of truth for authoring policy, but consume its compiled projection semantics: prose-bearing bootstrap artifacts follow the projected documentation language policy, while canonical headings, IDs, schema keys, paths, and commands stay unchanged.
Input: No argument required. Scope hints (folders, domain names) are passed to init.
Steps
-
Determine current phase
openspec bootstrap status --json- If no workspace exists, start with init
- If workspace exists and is in progress, resume from the current phase
- If workspace exists and is completed, restart explicitly with
openspec bootstrap init --mode refresh --restart
-
Execute the current phase
Get phase-specific instructions:
openspec bootstrap instructions [phase] --jsonPhase: init
openspec bootstrap init --mode fullCreates workspace at
openspec/bootstrap/with scope configuration. Supported upgrade paths:specs-based -> fullraw -> fullraw -> opsx-firstformal-opsx -> refreshUseopsx-firstonly forrawrepositories when you want the formal OPSX bundle plus a README-only specs starter now, and full behavior specs later. Userefreshonly for repositories that already have the formal OPSX bundle and need a delta-first refresh that merges reviewed changes back into the existing formal files. Use--restartonly when a completed retained workspace already exists and you want a fresh run; it snapshots the oldopenspec/bootstrap/intoopenspec/bootstrap-history/first.
Phase: scan
- Read
package.json,README, OpenSpec config,openspec/specs/ - Scan source code for structural boundaries
- Write
openspec/bootstrap/evidence.yamlwith candidate domains:domains: - id: dom.cli confidence: high sources: [code:src/cli/, spec:openspec/specs/cli/] intent: CLI entry point and command routing
- Run `openspec bootstrap validate` to verify gates - In `refresh`, treat the current formal OPSX bundle as the baseline and use git diff only to narrow scan scope when a stored anchor commit is still reachable **Phase: map** - For each domain in evidence.yaml, create `openspec/bootstrap/domain-map/<domain-id>.yaml`: ```yaml domain: id: dom.cli type: domain intent: CLI entry point and command routing status: active capabilities: - id: cap.cli.init type: capability intent: Initialize OpenSpec in a project status: active relations: - from: cap.cli.init to: dom.cli type: contains code_refs: - id: cap.cli.init refs: - path: src/core/init.ts line_start: 1- Map incrementally — one domain at a time
- Run
openspec bootstrap statusto track per-domain progress - Run
openspec bootstrap validateafter all domains mapped
Phase: review
- Validate regenerates review.md and candidate OPSX files from current
evidence.yamlanddomain-map/*.yaml - Review each domain checkbox in review.md
- In
refresh, review the delta summary against the current formal OPSX baseline instead of re-approving the whole model - Check all validation checkboxes
- If evidence or domain maps change, rerun validate and re-approve the regenerated review
- Low-confidence domains appear first for priority review
Phase: promote
openspec bootstrap promote -yRe-validates all upstream gates before writing.
opsx-first: writes the formal OPSX three-file bundle plus onlyopenspec/specs/README.mdfullonraw: writes the formal OPSX bundle plus one validated spec per mapped capabilityfullonspecs-based: preserves existing specs, adds only missing capability specs, and fails fast on target-path conflictsrefreshonformal-opsx: merges the reviewed delta into the existing formal OPSX bundle, preserves existing specs, adds only missing specs for newly added capabilities, and fails fast on conflicts Retains the bootstrap workspace on success for audit history. Start the next refresh run withopenspec bootstrap init --mode refresh --restart, which snapshots the retained workspace intoopenspec/bootstrap-history/.
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.
- 6d ago First seen · 135 lines · 33 tokens per session scan A 7969358d9f24
openspec-bootstrap-opsx is a skill published in the GitHub repository cp-yu/cc-switch-web (43 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 1,340 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…