Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

openspec-sync-specs

БесплатноБез исполняемых скриптовНе проверен

Sync delta specs from an OpenSpec change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the…

Asymmetric-alот Asymmetric-al★ 354 звезды на GitHub

Об этом скилле

This repository (Asymmetric-al/core)

These repo-owned sections sit above the official OpenSpec skill. Reconcile this overlay after upstream refreshes before running bun run skills:sync.

Use the locally pinned CLI only: bun run openspec -- <command>. Do not invoke @latest. Core does not use Stores. Pass an explicit change ID before any mutating OpenSpec operation. Follow AGENTS.md and docs/ai/rules/openspec.md. Do not bypass TDD, exact base-maia, data-access boundaries, security, or repository checks. Do not archive unmerged or incomplete work. Do not run openspec update against the live customized repository. Do not treat product runtime Eve as a coding agent.

Allowed-tools metadata includes Bash(bun:*) so the local wrapper can run.

Triggers

  • The matching OpenSpec workflow is requested: Explore, Propose, Update, Apply, Verify, Sync, or Archive.
  • Numbered commands /1-start-project through /4-close-project wrap these workflows.

Workflow

  1. Read openspec/config.yaml, openspec/project.md, and the relevant specs or active change.
  2. Invoke bun run openspec -- with the explicit change ID for mutating work.
  3. Keep Core TDD, UI, data-boundary, and Guardian rules in force.
  4. Leave the change active until implementation has merged.

Checklist

  • Local pinned CLI used via bun run openspec --
  • Explicit change ID used for mutating operations
  • Stores were not introduced
  • Incomplete or unmerged work was not archived
  • openspec update was not run against the live repo
  • Product Eve was not treated as a coding agent

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).

Project check: Before writing, run bun run openspec -- list --json and confirm the root is the Core checkout containing its local openspec/ tree. A missing root, Store declaration, or external root is a configuration error: stop before writing and report it. Do not initialize a root or select an external Store.

<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 changes that have delta specs (under specs/ directory).

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

  2. Resolve change context

    Run:

    openspec status --change "<name>" --json
    

    The JSON includes planningHome.root. Main specs live under <planningHome.root>/openspec/specs/ — use that (store-aware) root for every main-spec path below, not a hardcoded repo path. When a store is selected it points at the store, not the current repository.

  3. Find delta specs

    Use artifactPaths.specs.existingOutputPaths from the status JSON as the only source of delta spec paths. If the specs entry is missing or existingOutputPaths is empty, report that there are no delta specs to sync, do not infer them from other artifacts, and stop without requesting artifact instructions or writing a main spec.

    Sync every path in existingOutputPaths unless the caller narrowed the set. A caller narrows it by naming an explicit list of complete entries from existingOutputPaths — copy those absolute values verbatim. Archive does this inline, and a user can too (for example, by selecting the entry ending in /specs/billing/invoices/spec.md). Then sync only the named paths and leave the remaining delta specs untouched: bulk archive excludes a delta whose implementation it could not find, and syncing it anyway would write a main spec the caller deliberately withheld. Carry that narrowed selection through step 4; never widen it back to the full list. If a named path is not in existingOutputPaths, do not sync it — report it and stop, rather than dropping it silently. If the named list is empty, report that there is nothing to sync and stop without writing a main spec.

    Each delta spec file contains sections like:

    • ## ADDED Requirements - New requirements to add
    • ## MODIFIED Requirements - Changes to existing requirements
    • ## REMOVED Requirements - Requirements to remove
Полный SKILL.md на GitHub

Установить openspec-sync-specs в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(openspec:*)
Bash(bun:*)

Вложенные файлы

references/LICENSE.mdreferences/upstream.md

FAQ

Что делает скилл openspec-sync-specs?

Sync delta specs from an OpenSpec change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change. Also use when the user says "openspec sync" or "opsx sync".

Как установить скилл openspec-sync-specs?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл openspec-sync-specs запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить openspec-sync-specs с