cc-switch-web: Skill for Claude Code

.github/skills/openspec-archive-change/SKILL.md

openspec-archive-change is a skill for Claude Code, Codex from cp-yu/cc-switch-web. It costs 32 tokens per session (2,681 once invoked), scanned A, original, MIT.

A workflow step for archiving a completed change in the OpenSpec experimental development process. OpenSpec is a system for recording proposed changes, their specifications, and their verification.

In plain words
What is it for?
Use it to list active changes, select the one to finalize, run its verification check, and archive it after implementation is complete.
Why use it?
It helps close out finished work while checking that the change has been verified and is not accidentally archived without the required evidence.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the AskUserQuestion tool.

This is cp-yu/cc-switch-web's own configuration. It tells Claude Code and Codex how to work on cc-switch-web itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cc-switch-web configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/cp-yu/cc-switch-web/main/.github/skills/openspec-archive-change/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/cp-yu/cc-switch-web

Made for: Claude Code, Codex.

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 openspec-archive-change

README.md
[![agentmods](https://agentmods.dev/badge/skills/cp-yu/cc-switch-web/openspec-archive-change.svg)](https://agentmods.dev/skills/cp-yu/cc-switch-web/openspec-archive-change)
Your own site
<a href="https://agentmods.dev/skills/cp-yu/cc-switch-web/openspec-archive-change"><img src="https://agentmods.dev/badge/skills/cp-yu/cc-switch-web/openspec-archive-change.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,681 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found 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.00032 $0.02681
Opus 5 $0.00016 $0.01340
Sonnet 5 $0.00006 $0.00536
Haiku 4.5 $0.00003 $0.00268

Measured 8d ago against content hash 7119ad2095af, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

openspec-archive-change 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 8d 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.

.github/skills/openspec-archive-change/SKILL.md · 213 lines

How it starts

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

Archive a completed change in the experimental workflow.

Input: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.

When archive guidance discusses embedded sync or artifact write-back, treat openspec/config.yaml as the compact source of truth and follow the shared prompt/runtime projection contract rather than reinterpreting raw config keys inside the template body.

Steps

  1. If no change name provided, prompt for selection

    Run openspec list --json to get available changes. Use the AskUserQuestion tool to let the user select.

    Show only active changes (not already archived). Include the schema used for each change if available.

    IMPORTANT: Do NOT guess or auto-select a change. Always let the user choose.

  2. Unified Full Verify Gate

    Run the CLI gate:

    openspec verify status "<change-name>" --json
    

Verify Result Freshness Rules:

A verify result is considered FRESH if ALL of the following hold:

  • .verify-result.json exists in the change directory
  • verificationContext.evidenceFingerprint matches the current workspace fingerprint
  • verificationContext.contractVersion is "1.0"
  • result is PASS or PASS_WITH_WARNINGS

A verify result is considered STALE if ANY of the following hold:

  • verificationContext.evidenceFiles is missing or the file list changed
  • verificationContext.evidenceFingerprint does not match the recomputed fingerprint
  • verificationContext.gitHeadCommit does not match the current HEAD (if recorded)
  • verificationContext.contractVersion is missing or not "1.0"
  • result is not PASS or PASS_WITH_WARNINGS

Optimization metadata compatibility:

  • optimization metadata is advisory for archive gating, not part of the freshness hash inputs
  • Legacy verify results without optimization may still be fresh if every freshness rule above passes
  • If optimization.status exists, evaluate its acceptability separately from freshness

When verify result is STALE or MISSING:

  • Archive MUST execute full verify before continuing
  • Do NOT attempt to repair or reuse a stale verify result

Fingerprint Computation:

  • Sort evidenceFiles alphabetically before hashing
  • For each evidence file, collect normalized relative POSIX path + content hash
  • Hash the JSON-serialized entries with SHA-256
  • Use path.join(), path.resolve(), and path.normalize() for all path handling
  • Persist evidenceFiles as relative POSIX paths for cross-platform comparison

Verify State Machine:

Phase 1 PASS / PASS_WITH_WARNINGS
  |
  v
PENDING_VERIFICATION
  |-- no affectedFileHashes --> Phase 2 optimization analysis
  |                              |-- NO_OPTIMIZATION_NEEDED --> NOT_NEEDED
  |                              |-- SKIPPED / optimization.enabled=false --> SKIPPED
  |-- affectedFileHashes ------> PENDING_VERIFICATION (optimization proposed)
                                 |-- verification PASS --> IMPROVED
                                 |-- verification FAIL_NEEDS_REMEDIATION --> retry or DEGRADED
                                 |-- retries exhausted --> DEGRADED

Archive gate accepts: SKIPPED | NOT_NEEDED | IMPROVED | DEGRADED
Archive gate rejects: PENDING_VERIFICATION | ABORTED_UNSAFE

Verify CLI JSON Schema Reference:

CLI call --input JSON
openspec verify phase1 "<change-name>" --input '<json>' --json {"result":"PASS","issues":[],"evidenceFiles":["..."],"executionMode":"..."}
openspec verify phase2 "<change-name>" --type=optimization --input '<json>' --json {"status":"NO_OPTIMIZATION_NEEDED","summary":"..."} (summary is required, must be non-empty)
openspec verify phase2 "<change-name>" --type=optimization --files "<affected-files>" --input '<json>' --json {"status":"OPTIMIZATION_PROPOSED","summary":"..."}
openspec verify phase2 "<change-name>" --type=optimization --input '<json>' --json {"status":"SKIPPED"}
openspec verify phase2 "<change-name>" --type=verification --input '<json>' --json {"result":"PASS","issues":[]}
openspec verify phase2 "<change-name>" --type=verification --input '<json>' --json {"result":"FAIL_NEEDS_REMEDIATION","issues":[...],"behaviorRetryCounter":N}

Read the full file on GitHub · 213 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. 8d ago First seen · 213 lines · 32 tokens per session scan A 7119ad2095af

Subscribe to this mod's changes

openspec-archive-change is a skill published in the GitHub repository cp-yu/cc-switch-web (43 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 2,681 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.

Related

Other skills, from other repositories

recipe-create-meet-space

Create a Google Meet meeting space and share the join link.

googleworkspace/cli · 18 tokens

atmos-config

Atmos root configuration: atmos.yaml discovery, precedence, deep merging, basepath, imports, minimal bootstrap, and routing to narrower Atmos skills.

cloudposse/atmos · 31 tokens

workthreads

SpecStory Workthreads - a weekly work-thread rollup across a team's repos from SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more). It groups the window's sessions into threads of work per project and labels each new / open / recently closed, so a lead sees what shipped, what is still…

specstoryai/getspecstory · 126 tokens

story-readiness

Validate that a story file is implementation-ready. Checks for embedded GDD requirements, ADR references, engine notes, clear acceptance criteria, and no open design questions. Produces READY / NEEDS WORK / BLOCKED verdict with specific gaps. Use when user says 'is this story ready', 'can I start on this story', 'is…

Donchitos/Claude-Code-Game-Studios · 77 tokens

autotask-creator

Rules for automation CRUD from the group-chat commander. The commander does not call mutation tools and does not edit cloud/autotasks files directly. It emits one or more top-level ... containers in its final text; the bus parses and applies them after the turn.

Orkas-AI/Orkas · 5 tokens

monorepo-management

Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable multi-package repositories with optimized builds and dependency management. Use when setting up monorepos, optimizing builds, or managing shared dependencies.

wshobson/agents · 54 tokens