openspec-sync-specs
하는 일
이 스킬은 변경의 델타 스펙에 기술된 내용을 프로젝트의 주요 스펙에 병합합니다. 변경이 열려 있는 동안에도 주요 스펙을 최신으로 유지하려는 개발자를 위한 것입니다.
사용하는 경우
- ✓변경에 주요 스펙에 반영하고 싶은 델타 스펙이 있을 때.
- ✓변경을 보관하기 전에 주요 스펙을 갱신하고 싶을 때.
- ✓진행 중인 작업에 맞춰 스펙을 일치시키고 싶을 때.
스킬 링크
https://github.com/monid-ai/monid/blob/main/.opencode/skills/openspec-sync-specs/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“payments 변경의 델타 스펙을 주요 스펙에 동기화해 주세요. 단, 변경은 열어 두세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 델타 스펙이 있는 변경 목록을 보여 주고 하나를 고르게 합니다. 그다음 추가, 변경, 삭제된 요구사항을 읽고, 필요한 곳은 지능적으로 병합하면서 주요 스펙을 맞춰 수정합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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
If no change name provided, prompt for selection
Run
openspec list --jsonto 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.
Resolve change context
Run:
openspec status --change "<name>" --jsonIf status reports
actionContext.mode: "workspace-planning", explain that workspace spec sync is not supported in this slice and STOP. Do not fall back to repo-local paths or edit linked repos.Find delta specs
Use
artifactPaths.specs.existingOutputPathsfrom the status JSON as the list of delta spec files.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.
For each delta spec, apply changes to main specs
For each repo-local capability delta spec path returned by the CLI:
a. Read the delta spec to understand the intended changes
b. Read the main spec at
openspec/specs/<capability>/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 (don't need to copy existing ones)
- 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
RENAMED Requirements:
- Find the FROM requirement, rename to TO
d. Create new main spec if capability doesn't exist yet:
- Create
openspec/specs/<capability>/spec.md - Add Purpose section (can be brief, mark as TBD)
- Add Requirements section with the ADDED requirements
Show summary
After applying all changes, summarize:
- Which capabilities were updated
- What changes were made (requirements added/modified/removed/renamed)
Delta Spec Format Reference
## ADDED Requirements
### Requirement: New Feature
The system SHALL do something new.
#### Scenario: Basic case
- **WHEN** user does X
- **THEN** system does Y
## MODIFIED Requirements
### Requirement: Existing Feature
#### Scenario: New scenario to add
- **WHEN** user does A
- **THEN** system does B
## REMOVED Requirements
### Requirement: Deprecated Feature
## RENAMED Requirements
- FROM: `### Requirement: Old Name`
- TO: `### Requirement: New Name`
Key Principle: Intelligent Merging
Unlike programmatic merging, you can apply partial updates:
- To add a scenario, just include that scenario under MODIFIED - don't copy existing scenarios
- The delta represents intent, not a wholesale replacement
- Use your judgment to merge changes sensibly
Output On Success
## Specs Synced: <change-name>
Updated main specs:
**<capability-1>**:
- Added requirement: "New Feature"
- Modified requirement: "Existing Feature" (added 1 scenario)
**<capability-2>**:
- Created new spec file
- Added requirement: "Another Feature"
Main specs are now updated. The change remains active - archive when implementation is complete.
Guardrails
- Read both delta and main specs before making changes
- Preserve existing content not mentioned in delta
- If something is unclear, ask for clarification
- Show what you're changing as you go
- The operation should be idempotent - running twice should give same result
자주 묻는 질문
변경을 보관하나요?
아니요. 설명에 따르면 변경은 보관하지 않고 주요 스펙만 갱신합니다.
변경을 알아서 고르나요?
아니요. 스킬은 사용자가 변경을 고르도록 요청합니다.
작업공간 변경에도 쓸 수 있나요?
아니요. 스킬은 작업공간 스펙 동기화를 지원하지 않으며, 그 경우 중단합니다.
상세 정보
작성자의 원본 설명
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.
repo: monid-ai/monid
인기도
- GitHub 스타
- 6.1k
- 순위
- #14425
- 라이선스
- MIT
- 업데이트
- 2026. 10. 22.
댓글
- …
이 저장소의 다른 스킬
openspec-apply-change
6.1k에이전트가 OpenSpec 변경의 작업을 처음부터 끝까지 진행하도록 돕고, 진행 상황을 계속 기록합니다.
openspec-archive-change
6.1k에이전트가 구현이 끝난 OpenSpec 변경을 마무리하고 보관하도록 돕습니다.
openspec-explore
6.1k에이전트를 생각을 나누는 파트너로 삼아, 코드를 쓰지 않고 아이디어를 정리하도록 돕습니다.
openspec-propose
6.1k에이전트가 제안서, 설계, 작업 목록을 갖춘 새 OpenSpec 변경을 한 번에 만들어, 바로 구현할 수 있게 합니다.