Official agent skill

Openspec Archive Change

by elastic in elastic/terraform-provider-elasticstack

Archive a completed change in the experimental workflow. An agent skill from elastic/terraform-provider-elasticstack.

OfficialMITAuto-check passed

Install Openspec Archive Change

skills CLI
$ npx skills add elastic/terraform-provider-elasticstack --skill openspec-archive-change -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install elastic/terraform-provider-elasticstack openspec-archive-change --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/elastic/terraform-provider-elasticstack.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/openspec-archive-change .claude/skills/openspec-archive-change && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
openspec-archive-change
GitHub stars
210
Used in
86 other repos
Token cost
~2.7k tokens
SKILL.md length
1,378 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

Archive a completed change in the experimental workflow. An agent skill from elastic/terraform-provider-elasticstack.

  • Works in 6 steps: Select the change → Check artifact completion status → Check task completion status → …
  • The user wants to finalize and archive a change after implementation is complete
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Openspec Archive Change is an agent skill from elastic/terraform-provider-elasticstack, published by the product's own GitHub organization. Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Requires openspec CLI.

The repository describes itself as: Terraform provider for Elastic Stack. The licence is MIT.

When your agent uses it

  • The user wants to finalize and archive a change after implementation is complete

Example prompts

  • “/openspec-archive-change”

Requirements

  • Compatibility (from SKILL.md): Requires openspec CLI.
  • Pre-approved tools (allowed-tools): Bash(openspec:*)

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Select the change
  2. Check artifact completion status
  3. Check task completion status
  4. Assess delta spec sync state
  5. Perform the archive
  6. Display summary

What it can do on your machine

Read from SKILL.md and the folder at commit b6bbc21. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(openspec:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash and markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires openspec CLI.

    From compatibility in the SKILL.md frontmatter.

Context cost

Openspec Archive Change loads about 2.7k tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 1,378 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~43
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from elastic/terraform-provider-elasticstack at commit b6bbc21, republished under its MIT licence (© elastic). 1,378 words, ~2,664 tokens.

Download SKILL.mdSave it as .claude/skills/openspec-archive-change/SKILL.md (or your agent's skills folder).
name
openspec-archive-change
description
Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
allowed-tools
Bash(openspec:*)
compatibility
Requires openspec CLI.
license
MIT
metadata.author
openspec
metadata.version
1.0
metadata.generatedBy
1.12.0

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, schemas, view). Once selected, treat --store <id> as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run openspec status --change "<name>" --json --store "<id>", not the unscoped form shown below. 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.

<capability-path> is the spec directory relative to specs/ (for example, user-auth or identity/user-auth). Preserve the full path from each delta spec when resolving its main spec.

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. Select the change

    If a name is provided, use it. Otherwise:

    • Infer from conversation context if the user mentioned a change
    • Auto-select if only one active change exists
    • If ambiguous, run openspec list --json to get available changes and ask the user to select one

    When prompting, show only active changes (not already archived). Include the schema used for each change if available.

    Always announce: "Using change: <name>" and how to override (e.g., /openspec-archive-change <other>).

    Load current archive inputs before the existing archive checks:

    After resolving the selected change and planning root, run:

    bash
    openspec instructions archive --change "<name>" --json

    Keep the same selected-root flags on this command. This lookup is advisory and optional: it only supplies extra prompt inputs, so it must never block archiving. If it exits non-zero or returns invalid JSON — for example on an older CLI that does not support this command yet — continue the archive workflow with no context and no operation guidance. Do not report an error and do not stop.

    A successful response may omit both optional fields. Treat context as a required prompt-level input: read and consider it, and apply relevant project facts, conventions, and constraints. Treat operationGuidance as optional additive advice: read and consider every entry, and follow entries that are applicable and compatible with the built-in archive workflow.

    Keep both fields separate from built-in steps, explicit user choices, resolved paths, CLI checks, and command contracts. If context conflicts with one of those controlling inputs, report the conflict and preserve the controlling value. If guidance is inapplicable or conflicts with a controlling input, do not follow it and explain why. Do not infer replacement paths, skipped prompts, or flags from either field, and do not copy their text verbatim into specs, change artifacts, or archive summaries unless the user separately asks for it. These are prompt-level behavior contracts, not enforceable checks.

  2. Check artifact completion status

    Run openspec status --change "<name>" --json 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, skipped, or other)

    If any artifacts are neither done nor skipped (skipped artifacts satisfy the requirement - the change declares skip_specs):

    • Display warning listing incomplete artifacts
    • Ask the user to confirm they want to proceed
    • Proceed if user confirms
  3. Check task completion status

    Read the tasks file (typically tasks.md) to check for incomplete tasks.

    Count tasks marked with - [ ] (incomplete) vs - [x] (complete).

    If incomplete tasks found:

    • Display warning showing count of incomplete tasks
    • Ask the user to confirm they want to proceed
    • Proceed if user confirms

    If no tasks file exists: Proceed without task-related warning.

  4. Assess delta spec sync state

    Use artifactPaths.specs.existingOutputPaths from status JSON as the only delta-spec source. If the specs entry is missing or existingOutputPaths is empty, proceed without a sync prompt and do not infer delta specs from other artifacts.

    If delta specs exist:

    • Compare each delta spec with its corresponding main spec at <planningHome.root>/openspec/specs/<capability-path>/spec.md (use the store-aware planningHome.root from step 2, not a hardcoded repo path)
    • 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"

    Route on the answer:

    • "Cancel" — stop, do not archive
    • "Archive without syncing" or "Archive now" — proceed to archive
    • "Sync now" or "Sync anyway" — sync, then verify (below)
    • Anything else — ask again rather than archiving

    Before a selected sync writes any main spec, run openspec instructions specs --change "<name>" --json once with the same selected-root flags. Require a zero exit status and valid artifact-instruction JSON. If the lookup fails or returns invalid JSON, report the error and stop before writing any main spec or moving the change. A valid response with omitted rules is the no-rules case. Apply returned rules only to the content and form of main specs produced by this merge; do not use them as archive guidance, change CLI behavior, or copy the rule text into any output file.

    Then run the openspec-sync-specs workflow inline (agent-driven intelligent merge) for change '<name>', passing the delta spec analysis and the fetched specs-rule snapshot from above, and wait for it to finish. The inline sync must reuse that snapshot without fetching specs instructions again. Do not delegate it to a background task — step 5 would move changeRoot out from under a sync that is still reading it, leaving the change archived and the main specs never updated. If your agent can only run it by delegation, delegate synchronously and wait for the result.

    Then re-run the comparison from the top of this step against every capability that has a delta spec in artifactPaths.specs.existingOutputPaths — not only the ones the sync reports it touched. A successful sync leaves nothing left to apply, so each capability must now read as already synced:

    • ADDED requirements present
    • MODIFIED requirements carrying the scenario and description changes named in the delta, with their other scenarios intact
    • REMOVED requirements gone — and where this sync retired a capability (removed its last requirement, leaving ## Requirements empty), its main spec deleted rather than left empty; a spec the sync deliberately kept and reported is also a match
    • RENAMED requirements present under the new name and absent under the old one

    If the sync failed, or any capability does not match, report what differs and stop — do not archive. Nothing has moved and changeRoot is intact, so the user can fix the mismatch or re-run the sync and start the archive again.

  5. Perform the archive

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

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

    Generate the target name: use the change name as-is when it already starts with a YYYY-MM-DD- prefix; otherwise prepend the current date as YYYY-MM-DD-<change-name>. Never stack a second date (same rule as openspec archive).

    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
    bash
    mv "<changeRoot>" "<planningHome.changesDir>/archive/<target-name>"
  6. Display summary

    Show archive completion summary including:

    • Change name
    • Schema that was used
    • Archive location
    • Whether specs were synced (if applicable)
    • Note about any warnings (incomplete artifacts/tasks)
Show full SKILL.md (157 more words)Show less

Output On Success

markdown
## Archive Complete

**Change:** <change-name>
**Schema:** <schema-name>
**Archived to:** the archive path derived from `planningHome.changesDir`/<target-name>/
**Specs:** <"✓ Synced to main specs" only if the step 4 verification passed; otherwise "No delta specs" or "Sync skipped">

<"All artifacts complete. All tasks complete." — or, if archived with warnings, list them instead (e.g. "Archived with 2 incomplete tasks")>

Guardrails

  • Announce the selected change; prompt for selection when it is ambiguous
  • Use artifact graph (openspec status --json) for completion checking
  • Don't block archive on warnings - just inform and confirm
  • Preserve .openspec.yaml when moving to archive (it moves with the directory)
  • Show clear summary of what happened
  • If sync is requested, run the openspec-sync-specs workflow inline (agent-driven)
  • Never archive while a spec sync is still in flight — run the sync inline and verify the main specs before moving changeRoot
  • If delta specs exist, always run the sync assessment and show the combined summary before prompting
  • Apply relevant runtime context and report conflicts; operation guidance remains advisory
  • Consider every guidance entry and explain any inapplicable or conflicting advice
  • Existing CLI checks, resolved paths, prompts, and command contracts are unchanged
  • Artifact rules constrain only the specs being written and are never operation guidance
  • Never copy runtime context, operation guidance, or artifact-rule text verbatim into output files

© elastic, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/openspec-archive-change of elastic/terraform-provider-elasticstack.

Open the folder on GitHubat commit b6bbc21

Used in at least 30 other repositories

We found 144 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 86 other GitHub owners. This page covers the copy in elastic/terraform-provider-elasticstack, which our catalogue first saw on October 7, 2026.

…and 94 more copies not listed here.

Compare with similar skills

Openspec Archive Change next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Openspec Archive Change compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Openspec Archive Change this skillelastic/terraform-provider-elasticstack21086 repos~2.7kAutomated safety check: PassMIT
OpenSpec Bulk Change ArchiverFission-AI/OpenSpec71k3 repos~5.6kAutomated safety check: PassMIT
Openspec Archive Changetsedio/tsed3.1k6 repos~4.1kAutomated safety check: PassMIT
OpenSpec Guided OnboardingFission-AI/OpenSpec71k1 repos~4.5kAutomated safety check: PassMIT
Openspec Verify ChangeFission-AI/OpenSpec71k2 repos~4.6kAutomated safety check: PassMIT
Verification Before Completionforyourhealth111-pixel/Vibe-Skills3.6k—~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Archives several completed OpenSpec changes in one operation, checking the codebase to resolve spec conflicts rather than archiving blindly.

    71k GitHub starsUsed in 3 repos~5.6k tokens
    DevelopmentAuto-check passed
  • Archive a completed OpenSpec change in the experimental workflow.

    3.1k GitHub starsUsed in 6 repos~4.1k tokens
    Auto-check passed
  • OpenSpec Guided Onboarding

    Fission-AI/OpenSpec

    Walks you through a complete OpenSpec workflow cycle with narration while doing real work in your codebase.

    71k GitHub starsUsed in 1 repo~4.5k tokens
    Agent WorkflowsAuto-check passed
  • Openspec Verify Change

    Fission-AI/OpenSpec

    Verify implementation matches OpenSpec change artifacts. An agent skill from Fission-AI/OpenSpec.

    71k GitHub starsUsed in 2 repos~4.6k tokens
    DevelopmentAuto-check passed
  • Verification Before Completion

    foryourhealth111-pixel/Vibe-Skills

    Completion-evidence route used before claiming work is complete, fixed, passing, committed, or PR-ready.

    3.6k GitHub stars~1.1k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • A skill your agent uses when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any…

    5.6k GitHub starsUsed in 46 repos~1k tokens
    Agent WorkflowsAuto-check passed

More from elastic/terraform-provider-elasticstack

All 21 skills in this repo
  • Openspec Explore

    elastic/terraform-provider-elasticstack

    Official

    Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements.

    210 GitHub starsUsed in 87 repos~4.6k tokens
    Auto-check passed
  • Openspec Apply Change

    elastic/terraform-provider-elasticstack

    Official

    Implement tasks from an OpenSpec change. An agent skill from elastic/terraform-provider-elasticstack.

    210 GitHub starsUsed in 92 repos~2.1k tokens
    Auto-check passed
  • PR Monitoring Loop

    elastic/terraform-provider-elasticstack

    Official

    Monitor GitHub pull requests through a subagent-based loop that watches CI checks, review comments, PR comments, review state, merge conflicts, and branch freshness.

    210 GitHub stars~4.1k tokensUpdated today
    Auto-check passed
  • Openspec Plus Proposal

    elastic/terraform-provider-elasticstack

    Official

    MANDATORY skill that activates whenever the OpenSpec proposal phase begins.

    210 GitHub starsUsed in 1 repo~3.2k tokens
    Auto-check passed
  • Openspec Continue Change

    elastic/terraform-provider-elasticstack

    Official

    Continue working on an OpenSpec change by creating the next artifact.

    210 GitHub starsUsed in 31 repos~1.7k tokens
    Auto-check passed
  • Openspec Plus Spec

    elastic/terraform-provider-elasticstack

    Official

    MANDATORY skill that activates whenever the OpenSpec specification phase begins.

    210 GitHub starsUsed in 1 repo~4.7k tokens
    Auto-check passed

Questions about Openspec Archive Change

What does Openspec Archive Change do?

Archive a completed change in the experimental workflow. An agent skill from elastic/terraform-provider-elasticstack. Openspec Archive Change is an agent skill from elastic/terraform-provider-elasticstack, published by the product's own GitHub organization. Archive a completed change in the experimental workflow.

When should I use Openspec Archive Change?

Openspec Archive Change fits situations like: the user wants to finalize and archive a change after implementation is complete.

How do I install Openspec Archive Change in Claude Code?

Run `npx skills add elastic/terraform-provider-elasticstack --skill openspec-archive-change -a claude-code`. Or copy the skill folder (.agents/skills/openspec-archive-change in elastic/terraform-provider-elasticstack) into .claude/skills/openspec-archive-change in your project. Claude Code loads it when a task matches its description.

How do I install Openspec Archive Change in Codex?

Run `npx skills add elastic/terraform-provider-elasticstack --skill openspec-archive-change -a codex`. Or copy the skill folder (.agents/skills/openspec-archive-change in elastic/terraform-provider-elasticstack) into .agents/skills/openspec-archive-change in your project. Codex loads it when a task matches its description.

Can I use Openspec Archive Change in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add elastic/terraform-provider-elasticstack --skill openspec-archive-change -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/openspec-archive-change, .gemini/skills/openspec-archive-change, .github/skills/openspec-archive-change and .opencode/skills/openspec-archive-change in your project.

What does Openspec Archive Change need to run?

SKILL.md names no scripts, command-line tools or credentials: Openspec Archive Change is instructions for the agent only. Its frontmatter pre-approves these tools: Bash(openspec:*). Compatibility (from SKILL.md): Requires openspec CLI..

Does Openspec Archive Change access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Openspec Archive Change safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Openspec Archive Change use?

Openspec Archive Change is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Openspec Archive Change use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Openspec Archive Change?

Skills that share tags, products or a category with Openspec Archive Change: OpenSpec Bulk Change Archiver (Fission-AI/OpenSpec, 71k stars), Openspec Archive Change (tsedio/tsed, 3.1k stars), OpenSpec Guided Onboarding (Fission-AI/OpenSpec, 71k stars) and Openspec Verify Change (Fission-AI/OpenSpec, 71k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Openspec Archive Change?

elastic (a GitHub organization, an official publisher) maintains it in elastic/terraform-provider-elasticstack, which has 210 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 8, 2026.

Source: elastic/terraform-provider-elasticstack on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.