openspec-archive-change

openspec-archive-change is a skill for Claude Code, Codex from AmanVarshney01/create-better-t-stack. It costs 31 tokens per session (1,239 once invoked), scanned A, original, MIT.

A command guide for archiving a finished change in OpenSpec, a workflow for managing proposed software changes. It covers choosing the correct change and store, then checking and archiving it.

In plain words
What is it for?
Use it after implementing an OpenSpec change when you want to validate it and move it from active work into the archive.
Why use it?
It helps prevent the wrong change from being archived or an active change from being finalized without the required checks. If the change is unclear, it requires a selection instead of guessing.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also installed under .codex/. Also seen: names the AskUserQuestion tool.

About the project

Better-T-Stack is a command-line tool that generates end-to-end, type-safe TypeScript project scaffolds from selectable frontend, backend, database, authentication, and tooling options. Developers use it to start full-stack applications with a stack tailored to their needs. The catalogue includes skills, agents, commands, an MCP server, and a plugin for having coding agents plan and generate Better-T-Stack projects.

AmanVarshney01/create-better-t-stack · 5,697 stars · on GitHub · better-t-stack.dev

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.

agentmods
npx agentmods add skills/amanvarshney01/create-better-t-stack/openspec-archive-change
Any agent
npx skills add AmanVarshney01/create-better-t-stack --skill openspec-archive-change
Clone the repo
git clone --depth 1 https://github.com/AmanVarshney01/create-better-t-stack

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/amanvarshney01/create-better-t-stack/openspec-archive-change.svg)](https://agentmods.dev/skills/amanvarshney01/create-better-t-stack/openspec-archive-change)
Your own site
<a href="https://agentmods.dev/skills/amanvarshney01/create-better-t-stack/openspec-archive-change"><img src="https://agentmods.dev/badge/skills/amanvarshney01/create-better-t-stack/openspec-archive-change.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,239 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00031 $0.01239
Opus 5 $0.00015 $0.00620
Sonnet 5 $0.00006 $0.00248
Haiku 4.5 $0.00003 $0.00124

Measured 6d ago against content hash b0d245954e58, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 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.

.codex/skills/openspec-archive-change/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 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.

Store selection: If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run openspec store list --json to discover registered store ids, then pass --store <id> on the commands that read or write specs and changes (new change, status, instructions, list, show, validate, archive, doctor, context). Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local openspec/ root.

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.

Steps

  1. If no change name provided, prompt for selection

    Run openspec list --json --store "<store-id>" (omit the store option for repo-local work) 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. Check artifact completion status

    Run openspec status --change "<name>" --json --store "<store-id>" to check artifact completion.

    Parse the JSON to understand:

    • schemaName: The workflow being used
    • planningHome, changeRoot, artifactPaths, and actionContext: path and scope context
    • artifacts: List of artifacts with their status (done or other)

    If any artifacts are not done:

    • Display warning listing incomplete artifacts
    • Use AskUserQuestion tool to confirm user wants to proceed
    • Proceed if user confirms
  3. Check schema-resolved task completion status

    Run openspec instructions apply --change "<name>" --json --store "<store-id>" and use its progress and tasks fields. Do not assume a tasks.md path or Markdown checkbox syntax; the active schema controls the task artifact and representation.

    If the apply instructions report incomplete tasks:

    • Display warning showing count of incomplete tasks
    • Use AskUserQuestion tool to confirm user wants to proceed
    • Proceed if user confirms

    If the schema exposes no tasks: Proceed without a task-related warning.

  4. Assess delta spec sync state

    Use artifactPaths.specs.existingOutputPaths from status JSON to check for delta specs. If none exist, proceed without sync prompt. Resolve every delta and main-spec path from the selected store's status/root metadata; never substitute a repository-local openspec/specs path when a store is active.

    If delta specs exist:

    • Compare each concrete delta path with its corresponding main spec under the selected OpenSpec root returned by the CLI
    • Determine what changes would be applied (adds, modifications, removals, renames)
    • Show a combined summary before prompting

    Prompt options:

    • If changes needed: "Sync now (recommended)", "Archive without syncing"
    • If already synced: "Archive now", "Sync anyway", "Cancel"

    If the user chooses sync, invoke openspec-sync-specs for the same change and store. Archive only after that sync succeeds and its result has been verified. If the user chooses "Archive without syncing", ask for explicit confirmation and archive only after confirmation. If the user chooses "Cancel", or synchronization fails, stop immediately without moving the change.

  5. Perform the archive

    Create an archive directory under planningHome.changesDir if it doesn't exist:

    mkdir -p "<planningHome.changesDir>/archive"
    

    Generate target name using current date: YYYY-MM-DD-<change-name>

    Check if target already exists:

    • If yes: Fail with error, suggest renaming existing archive or using different date
    • If no: Move changeRoot to the archive directory

Read the full file on GitHub · 119 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. 6d ago First seen · 119 lines · 31 tokens per session scan A b0d245954e58

Subscribe to this mod's changes

openspec-archive-change is a skill published in the GitHub repository AmanVarshney01/create-better-t-stack (5,697 stars, last pushed 3d ago), licensed MIT. It adds 31 tokens to every session and 1,239 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

changeset

Generate comprehensive changeset release logs with OG cover images for vobase releases. Use this skill when the user says "changeset", "release notes", "release log", "write changelog", "version bump", or when a feature implementation is complete and needs to be documented for release. Also triggers when the user asks…

vobase/vobase · 115 tokens

data-table

DiceUI data-table system for building production-ready data tables with server-side filtering, sorting, and pagination. Based on TanStack Table + nuqs URL state + Drizzle ORM backend. Use this skill whenever building, modifying, or debugging data tables — whether adding columns, filters, sort controls, server-side…

vobase/vobase · 116 tokens

diceui

Build complex, accessible UI components using DiceUI — combobox, tags-input, sortable, kanban, data-table, file-upload, color-picker, and 40+ more. Use when the user wants to add any DiceUI component, mentions @diceui packages, asks for complex interactive components like combobox, sortable lists, kanban boards…

vobase/vobase · 116 tokens

mastra

Comprehensive Mastra framework guide. Teaches how to find current documentation, verify API signatures, and build agents and workflows. Covers documentation lookup strategies (embedded docs, remote docs), core concepts (agents vs workflows, tools, memory, RAG), TypeScript requirements, and common patterns. Use this…

vobase/vobase · 83 tokens

postgres-drizzle

Proactively apply when creating APIs, backends, or data models. Triggers on PostgreSQL, Postgres, Drizzle, database, schema, tables, columns, indexes, queries, migrations, ORM, relations, joins, transactions, SQL, drizzle-kit, connection pooling, N+1, JSONB, RLS. Use when writing database schemas, queries, migrations…

vobase/vobase · 95 tokens

whatsapp-cloud-api

Official WhatsApp Cloud API reference for building messaging integrations. Covers Embedded Signup (primary onboarding flow), sending messages (text, media, templates, interactive), receiving webhooks, conversation lifecycle, phone number management, and error handling. Use when building WhatsApp integrations…

vobase/vobase · 79 tokens