Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/buildrai-openspec-sync-specs
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
openspec-sync-specs- Description
- Sync delta specs from a change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change.
- License
- MIT
- Compatibility
- Requires openspec CLI.
- Allowed tools
- Bash(openspec:*)
- Metadata
- author: openspec · version: 1.0 · generatedBy: 1.13.0
- Instructions
- 252 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves some shell commands
Files (1)
- SKILL.md
SKILL.md (first lines)
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).
**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 changes that have delta specs (under `specs/` directory).
Always announce: "Using change: <name>" and how to override (e.g., `/opsx:sync <other>`).
2. **Resolve change context**
Run:
```bash
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
- `## RENAMED Requirements` - Requirements to rename (FROM:/TO: format)
If no delta specs found, inform user and stop.
4. **For each delta spec, apply changes to main specs**
Before the first main-spec write, obtain one current specs-rule snapshot:
- If archive invoked this workflow inline and supplied a valid snapshot from
`openspec instructions specs --change "<name>" --json`, reuse it and do not
fetch the same instructions again.
- Otherwise run that command once now with the same selected-root flags.
- If the direct lookup exits non-zero or returns invalid artifact-instruction
JSON, report the error and stop before writing any main spec. Do not treat the
failure as an absent rule set.
- A valid response with omitted `rules` means no artifact rules are configured
and the existing semantic merge continues.
Apply returned `rules` only to the content and form of the main specs produced
by this merge. Artifact rules are not operation guidance and cannot change
selected roots, delta paths, CLI checks, or workflow steps. Use their text as
constraints without copying it verbatim into a main spec or summary.
For each capability delta spec path selected in step 3 — the full `existingOutputPaths` list, or the narrowed subset when a caller supplied one (these may belong to a selected store, not the repo):
a. **Read the delta spec** to understand the intended changes
b. **Read the main spec** at `<planningHome.root>/openspec/specs/<capability-path>/spec.md` (may not exist yet)
c. **Apply changes intelligently**:
**ADDED Requirements:**
- If requirement doesn't exist in main spec → add it
- If requirement already exists → update it to match (treat as implicit MODIFIED)
**MODIFIED Requirements:**
- Find the requirement in main spec
- Apply the changes - this can be:
- Adding new scenarios the main spec does not have yet
- Modifying existing scenarios
- Changing the requirement description
- Preserve scenarios/content not mentioned in the delta
**REMOVED Requirements:**
- Remove the entire requirement block from main spec
- Retiring the capability. Delete the whole `spec.md` - and the directory once
nothing else is left in it - only when ALL of these hold:
1. removing the requirements *this run* left no requirement blocks;
2. the rest of the spec is well-formed (it still has a `## Purpose`);
3. the main spec was not already empty before this sync - if you removed
nothing, change nothing;
4. every other nonblank line in the whole file is accounted for as the
title, Purpose, Requirements header, or a canonical requirement's
statement, scenarios, or fenced examples;
5. the change's `.openspec.yaml` declares `retire_capabilities: true`;
6. the `spec.md` resolves inside the real specs root (do not follow a
capability-directory symlink to delete an external file).
If removing the selected requirements would leave no requirement blocks and
any retirement condition is not satisfied, do not modify the main spec. Stop
the sync for that capability, report the blocking condition, and tell the user
how to resolve it. Never write or leave an empty `## Requirements` section.
When only the marker is missing, say that too - it is the one thing the userFrom BuildrAI/Buildr, MIT.
More from BuildrAI/Buildr
- 0.648score
task-triage
BuildrAI
用户授权修复、优化或继续修改代码、文档、配置、规则或技能时使用;首次持久写入前登记或接续任务、确定隔离位置,判断直接实施、事实维护或 OpenSpec 变更。
SkillAFreshness: A★ 28Claude Code +9 - 0.648score
buildr-self-bootstrap-sync
BuildrAI
Buildr 自举工作空间中的已交付改动涉及规则、技能、组件、命令或产品运行输入时使用;由唯一执行器完成适用同步、开发应用更新、入口验证与诊断。正式任务记录可选;无关改动和未安装自举组件的工作空间不适用。
SkillAFreshness: A★ 28Claude Code +9 - 0.648score
xxl-job-connection
BuildrAI
使用明确绑定的连接发现 XXL-JOB 执行器、核对服务调度、维护 BEAN 任务并读取运行日志时使用;加载所选实例及自带程序帮助,不按同名接管实例。
SkillAFreshness: A★ 28Claude Code +9 - 0.648score
ui-prototype
BuildrAI
用户明确要求制作或修改界面原型、决定按已有原型实施,或明确放弃并清理临时原型时使用;负责临时保存、归入任务及展示验证。生成新原型未明确确认时不得使用。
SkillAFreshness: A★ 28Claude Code +9 - 0.648score
buildr-release
BuildrAI
准备、检查、发布或恢复 Buildr 主包、DSH 插件或联合版本时使用;按统一发布流程核对独立版本、共享源码选择、真实包兼容、逐包授权与恢复事实。
SkillAFreshness: A★ 28Claude Code +9 - 0.648score
buildr
BuildrAI
安装或更新 Buildr、接入本机智能体、同步工作空间、诊断或维护工作资产、启动或停止服务本地运行、管理外部系统连接、获取任务所需的外部系统信息,以及采用组织工作方式时使用;任务执行使用对应专业技能。
SkillAFreshness: A★ 28Claude Code +9 - 0.645score
project-testing
BuildrAI
设计或调整测试体系、为实现开发必要测试时使用;已有检查的选择和报告交给 task-verification。
SkillAFreshness: A★ 28Claude Code +9 - 0.645score
connection-authoring
BuildrAI
用户要为 Buildr 制作或维护自有外部系统接入方法时使用;交付连接声明、专业技能及必要程序,复用现有登记和投射。
SkillAFreshness: A★ 28Claude Code +9 - 0.645score
code-map
BuildrAI
建设、更新或检查代码地图时使用;依据真实职责、目录与文件解释实现组织,并核对受影响的来源与关联。
SkillAFreshness: A★ 28Claude Code +9 - 0.645score
current-knowledge-maintenance
BuildrAI
理解或探索项目与服务、建设结构化项目知识,检查维护已有说明、视图和代码地图,或处理开发中的知识影响时使用。
SkillAFreshness: A★ 28Claude Code +9 - 0.645score
task-verification
BuildrAI
选择项目已有检查、维护测试地图,或记录和查看任务验证报告时使用;测试由智能体直接调用项目工具。
SkillAFreshness: A★ 28Claude Code +9 - 0.645score
nacos-connection
BuildrAI
从服务代码定位 Nacos 配置,使用明确绑定的连接实例发现、读取、比较及受控发布;不按同名接管实例,不执行服务部署。
SkillAFreshness: A★ 28Claude Code +9
Signals
- Stars
- 28
- Forks
- 2
- Open issues
- 0
- Last commit (this folder)
- Sep 13, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0
- License
- MIT
- Repository
- github.com/BuildrAI/Buildr
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.448score
openspec-sync-specs
openspec
Sync delta specs from a change to main specs.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.251score
openspec-sync-specs
openspec
Sync delta specs from a change to main specs.
SkillAFreshness: A★ 171Claude Code +9 - 0.236score
openspec-sync-specs
openspec
Sync delta specs from a change to main specs.
SkillBFreshness: B★ 171Claude Code +9 - 0.236score
openspec-sync-specs
openspec
Sync delta specs from a change to main specs.
SkillBFreshness: B★ 171Claude Code +9 - 0.221score
openspec-sync-specs
openspec
Sync delta specs from a change to main specs.
SkillAFreshness: A★ 3Claude Code +9 - 0.221score
openspec-sync-specs
openspec
Sync delta specs from a change to main specs.
SkillAFreshness: A★ 3Claude Code +9 - 0.207score
openspec-sync-specs
openspec
Sync delta specs from a change to main specs.
SkillBFreshness: B★ 4Claude Code +9 - 0.207score
openspec-sync-specs
openspec
Sync delta specs from a change to main specs.
SkillBFreshness: B★ 4Claude Code +9 - 0.198score
openspec-sync-specs
openspec
Sync delta specs from a change to main specs.
SkillBFreshness: B★ 1Claude Code +9 - 0.190score
openspec-sync-specs
openspec
Sync delta specs from a change to main specs.
SkillBFreshness: BClaude Code +9 - 0.190score
openspec-sync-specs
openspec
Sync delta specs from a change to main specs.
SkillBFreshness: BClaude Code +9 - 0.190score
openspec-sync-specs
openspec
Sync delta specs from a change to main specs.
SkillBFreshness: BClaude Code +9
More from openspec
- 0.448score
openspec-new-change
openspec
Start a new OpenSpec change using the experimental artifact workflow.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.448score
openspec-ff-change
openspec
Fast-forward through OpenSpec artifact creation.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.448score
openspec-explore
openspec
Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.448score
openspec-continue-change
openspec
Continue working on an OpenSpec change by creating the next artifact.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.448score
openspec-archive-change
openspec
Archive a completed change in the experimental workflow.
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.448score
openspec-propose
openspec
Propose a new change with all artifacts generated in one step.
SkillAFreshness: A★ 3.2KClaude Code +9
Cite this page
openspec-sync-specs skill. Agent Mart. https://agentmart.dev/skills/buildrai-openspec-sync-specs (last updated 2026-10-24)