New advertisers: 50% off your first month with code FIRSTMONTHSee slots
pbh-btn avatar

Openspec Sync Specs

Agent-driven merge of delta spec changes into main specs, leaving the change itself active for later archiving.

skills.sh installs
154
GitHub stars
6.4K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers syncing openspec/changes/<name>/specs/*/spec.md delta files into openspec/specs/<capability>/spec.md without archiving the change
  • Handles ADDED, MODIFIED, REMOVED, and RENAMED requirement sections, with partial scenario-level merges instead of wholesale copies
  • Creates new main spec files with a Purpose section marked TBD when a capability has no existing spec
  • Designed for teams using the openspec CLI who want main specs updated mid-implementation, with a summary of each change

Install

$ npx -y skills add pbh-btn/peerbanhelper --skill openspec-sync-specs -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Sync delta specs from a change to main specs.

This is an agent-driven operation - you will read delta specs and directly edit main specs to apply the changes. This allows intelligent merging (e.g., adding a scenario without copying the entire requirement).

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 to get available changes. Use the AskUserQuestion tool to let the user select.

    Show changes that have delta specs (under specs/ directory).

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

  2. Find delta specs

    Look for delta spec files in openspec/changes/<name>/specs/*/spec.md.

    Each delta spec file contains sections like:

    • ## ADDED Requirements - New requirements to add
    • ## MODIFIED Requirements - Changes to existing requirements
    • ## REMOVED Requirements - Requirements to remove
    • ## RENAMED Requirements - Requirements to rename (FROM:/TO: format)

Details

Repository
github.com/pbh-btn/peerbanhelper
Categories
Agent Workflow & Planning, Technical Documentation
First seen
Jun 3, 2026

Similar to Openspec Sync Specs

More Agent Workflow & Planning