Borrowing it
Nothing to install: this file belongs to cp-yu/cc-switch-web. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/cp-yu/cc-switch-web/main/.github/skills/openspec-bootstrap-opsx/SKILL.mdgit 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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.5 | $0.00013 | $0.00536 |
| Sonnet 5.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 2mo 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.
- 2mo 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 (47 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 1,340 once invoked, about $0.0001 per session on Opus 5.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
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…
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…