Index of every page on this site: llms.txt
All skills
bacoco avatar

/openspec-change-closure

@58378b1
by Baconnier Loicbacoco/bmad-skills67 stars
11
Run it yourself

Archives completed L0-1 changes.

Use this Skill: https://skilld.dev/gh/bacoco/bmad-skills/openspec-change-closure

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈14 tokens for metadata: the name and description. ≈636 when used: this file. ≈2.7k more on demand in 3 files.

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈58 characters, or 0.7%.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

OpenSpec Archive Skill

When to Invoke

Automatically activate when user:

  • Says "Archive this change", "Close the change", "Finalize change"
  • Asks "Document this change", "Mark as complete", "Archive proposal [X]"
  • Has completed an OpenSpec change that needs closure
  • Mentions "archive", "close", "document", "finalize" with change context
  • Uses words like: archive, close, document, finalize, complete, wrap up

Specific trigger phrases:

  • "Archive this change"
  • "Close change [proposal-id]"
  • "Document the change"
  • "Finalize the implementation"
  • "Mark proposal [X] as complete"
  • "Wrap up this change"

Prerequisites:

  • OpenSpec change has been implemented
  • Tests pass and validation is complete
  • Deployment or rollout is done (or documented)

Do NOT invoke when:

  • Change not yet implemented (use openspec-change-implementation)
  • Tests failing or validation incomplete
  • Missing approvals or sign-offs
  • Change still in progress

Auto-document:

  • Learnings and deviations
  • Metrics (time, lines changed, tests added)
  • Follow-up tasks if any

Mission

Document the outcome of Level 0-1 work, ensuring artifacts, approvals, and follow-up actions are captured before closing the OpenSpec workflow.

Inputs Required

  • proposal: original proposal.md with approvals
  • implementation_log: execution notes or commits from implement skill
  • validation_evidence: test results or reviewer feedback

Outputs

  • Archive summary (archive.md) with outcomes, metrics, and learnings (template: assets/archive-template.md.template)
  • Updated proposal/tasks reflecting completion status
  • Deployment or rollback notes stored with project documentation
  • Canonical specs in openspec/specs/ synchronized with approved deltas

scripts/archive_change.py copies validated spec deltas from openspec/changes/<change-id>/specs/ into openspec/specs/.

Process

  1. Verify closure conditions using CHECKLIST.md.
  2. Gather final state: what shipped, what remains, and any deviations.
  3. Record metrics, approvals, and validation evidence in archive.md.
  4. Run scripts/archive_change.py <change-id> to merge spec deltas into openspec/specs/.
  5. Capture learnings and recommended follow-up actions, then update artifacts and communicate closure.

Quality Gates

All checklist items must pass before marking work as archived.

Error Handling

  • If validation evidence or approvals are missing, request them before closing.
  • Surface outstanding tasks and assign owners if work cannot be fully archived.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings8mo4 checks · Risk MEDIUM
  • Gen Agent Trust Hub9mo

    The skill provides a Python script for file archival that is vulnerable to path traversal and lacks security boundaries for processing untrusted markdown files, creating an indirect prompt injection surface.

  • Socket8mo

    No alerts

  • Snyk9mo

    Risk: LOW · No issues

  • Runlayer9mo

    5/5 files flagged

Signed by skilld at 58378b1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated last year
What it can do
Reads files Edits files Runs commands
All 4 allowed tools
ReadWriteGrepBash
Other metadata
metadata
{
  "auto-invoke": true,
  "triggers": {
    "patterns": [
      "archive this change",
      "close change",
      "document change",
      "finalize change",
      "archive"
    ],
    "keywords": [
      "archive",
      "close",
      "document",
      "finalize",
      "complete"
    ]
  },
  "capabilities": [
    "change-archival",
    "documentation",
    "spec-merging",
    "closure"
  ],
  "prerequisites": [
    "implemented-code"
  ],
  "outputs": [
    "archive-doc",
    "merged-specs",
    "closure-report"
  ]
}

README badge

README badge for bacoco/bmad-skills/openspec-change-closure