AgentStack
SKILL verified MIT Self-run

Openspec Archive

skill-chyiiiiiiiiiiii-openspec-skills-openspec-archive · by chyiiiiiiiiiiii

Complete a change and update the source of truth specifications. Use after all implementation tasks are finished and verified.

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add skill-chyiiiiiiiiiiii-openspec-skills-openspec-archive

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Openspec Archive? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

OpenSpec: Archive

Complete a change and update the source of truth specifications.

Usage

/openspec-archive 

Example:

/openspec-archive add-user-search

What This Skill Does

  1. Verify all tasks are complete
  2. Merge delta specs into main specs
  3. Move change to archive with timestamp
  4. Update completion status

Execution Steps

Step 1: Verify Completion

Check openspec/changes/{change-id}/tasks.md:

  • [ ] All tasks marked [x]
  • [ ] All quality gates passed
  • [ ] No open blockers

If incomplete, report what's missing and stop.

Step 2: Final Quality Check

Run project's quality verification commands. All must pass before archiving.

Step 3: Merge Delta Specs

For each file in openspec/changes/{change-id}/specs/:

3.1 Check if target spec exists
  • If openspec/specs/{component}.md exists → Merge changes
  • If not → Create new spec file
3.2 Apply ADDED sections

Copy new requirements to the target spec:

# {Component} Specification

## Requirements

### {New Requirement from Delta}
{Description}

#### Scenario: {Name}
- GIVEN ...
- WHEN ...
- THEN ...
3.3 Apply MODIFIED sections

Update existing requirements in target spec with new content.

3.4 Apply REMOVED sections

Remove deprecated requirements from target spec. Add to a ## Deprecated section for reference:

## Deprecated

### {Removed Requirement} (Removed: {date})
Reason: {from delta spec}

Step 4: Archive the Change

# Create archive directory with timestamp
mkdir -p openspec/archive/{change-id}

# Move all change files
mv openspec/changes/{change-id}/* openspec/archive/{change-id}/
rmdir openspec/changes/{change-id}

Step 5: Update Archive Metadata

Add completion info to openspec/archive/{change-id}/proposal.md:

---

## Archive Information

**Archived:** {YYYY-MM-DD HH:MM}
**Duration:** {days from creation to archive}
**Outcome:** Successfully implemented

### Files Modified
- `lib/feature/...`
- `test/...`

### Specs Updated
- `openspec/specs/{component}.md`

Step 6: Commit the Archive

git add openspec/
git commit -m "docs(openspec): archive {change-id}

- Merged delta specs into main specs
- Archived change history
- Implementation complete"

Step 7: Report Completion

## Archived: {change-id}

### Specs Updated
- `openspec/specs/{component}.md` - {summary of changes}

### Archive Location
- `openspec/archive/{change-id}/`

### Change History
- Created: {original date}
- Completed: {today}
- Duration: {X days}

### Summary
{Brief description of what was accomplished}

---

The OpenSpec workflow for this change is complete.
The specifications are now the source of truth.

Merge Strategy

For ADDED content

  • Append to existing spec under appropriate section
  • Maintain consistent formatting
  • Add creation date comment if helpful

For MODIFIED content

  • Replace the existing requirement
  • Keep the same location in the document
  • Note the modification date

For REMOVED content

  • Move to Deprecated section (don't delete immediately)
  • Include removal reason and date
  • Can be fully removed in future cleanup

Troubleshooting

Tasks not complete

Cannot archive: {X} tasks still pending in tasks.md.
Please complete all tasks first or update tasks.md if they're done.

Quality gate fails

Cannot archive: Quality checks failed.
Please fix issues before archiving.

Merge conflict in specs

If the target spec has changed since the proposal:

  1. Review both versions
  2. Manually resolve conflicts
  3. Ensure final spec is consistent
  4. Proceed with archive

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.