본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)6.0k · #14516

openspec-bulk-archive-change

하는 일

이 스킬은 코드베이스가 각 변경과 일치하는지 확인하면서, 완료된 여러 OpenSpec 변경을 한꺼번에 보관합니다. OpenSpec에서 병렬 변경을 여러 개 운영하는 개발자를 위한 것입니다.

사용하는 경우

  • ✓병렬 OpenSpec 변경 여러 개가 끝나 함께 보관해야 할 때.
  • ✓변경 사이에 스펙 파일이 충돌해서 코드와 대조해야 할 때.
  • ✓목록에서 보관할 변경을 고르고 싶을 때.

스킬 링크

https://github.com/fengshao1227/ccg-workflow/blob/main/.agents/skills/openspec-bulk-archive-change/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/fengshao1227/ccg-workflow/blob/main/.agents/skills/openspec-bulk-archive-change/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이번 스프린트의 완료된 OpenSpec 변경을 모두 보관해 주세요. 먼저 스펙 충돌이 있는지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 활성 변경 목록을 보여 주고 사용자가 고르게 합니다. 각 변경의 산출물, 작업, 스펙을 확인하고, 코드를 보고 충돌을 해결한 다음, 고른 변경을 보관합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Archive multiple completed changes in a single operation.

This skill allows you to batch-archive changes, handling spec conflicts intelligently by checking the codebase to determine what's actually implemented.

Input: None required (prompts for selection)

Steps

  1. Get active changes

    Run openspec list --json to get all active changes.

    If no active changes exist, inform user and stop.

  2. Prompt for change selection

    Use AskUserQuestion tool with multi-select to let user choose changes:

    • Show each change with its schema
    • Include an option for "All changes"
    • Allow any number of selections (1+ works, 2+ is the typical use case)

    IMPORTANT: Do NOT auto-select. Always let the user choose.

  3. Batch validation - gather status for all selected changes

    For each selected change, collect:

    a. Artifact status - Run openspec status --change "<name>" --json

    • Parse schemaName and artifacts list
    • Note which artifacts are done vs other states

    b. Task completion - Read openspec/changes/<name>/tasks.md

    • Count - [ ] (incomplete) vs - [x] (complete)
    • If no tasks file exists, note as "No tasks"

    c. Delta specs - Check openspec/changes/<name>/specs/ directory

    • List which capability specs exist
    • For each, extract requirement names (lines matching ### Requirement: <name>)
  4. Detect spec conflicts

    Build a map of capability -> [changes that touch it]:

    auth -> [change-a, change-b]  <- CONFLICT (2+ changes)
    api  -> [change-c]            <- OK (only 1 change)
    

    A conflict exists when 2+ selected changes have delta specs for the same capability.

  5. Resolve conflicts agentically

    For each conflict, investigate the codebase:

    a. Read the delta specs from each conflicting change to understand what each claims to add/modify

    b. Search the codebase for implementation evidence:

    • Look for code implementing requirements from each delta spec
    • Check for related files, functions, or tests

    c. Determine resolution:

    • If only one change is actually implemented -> sync that one's specs
    • If both implemented -> apply in chronological order (older first, newer overwrites)
    • If neither implemented -> skip spec sync, warn user

    d. Record resolution for each conflict:

    • Which change's specs to apply
    • In what order (if both)
    • Rationale (what was found in codebase)
  6. Show consolidated status table

    Display a table summarizing all changes:

    | Change               | Artifacts | Tasks | Specs   | Conflicts | Status |
    |---------------------|-----------|-------|---------|-----------|--------|
    | schema-management   | Done      | 5/5   | 2 delta | None      | Ready  |
    | project-config      | Done      | 3/3   | 1 delta | None      | Ready  |
    | add-oauth           | Done      | 4/4   | 1 delta | auth (!)  | Ready* |
    | add-verify-skill    | 1 left    | 2/5   | None    | None      | Warn   |
    

    For conflicts, show the resolution:

    * Conflict resolution:
      - auth spec: Will apply add-oauth then add-jwt (both implemented, chronological order)
    

    For incomplete changes, show warnings:

    Warnings:
    - add-verify-skill: 1 incomplete artifact, 3 incomplete tasks
    
  7. Confirm batch operation

    Use AskUserQuestion tool with a single confirmation:

    • "Archive N changes?" with options based on status
    • Options might include:
      • "Archive all N changes"
      • "Archive only N ready changes (skip incomplete)"
      • "Cancel"

    If there are incomplete changes, make clear they'll be archived with warnings.

  8. Execute archive for each confirmed change

    Process changes in the determined order (respecting conflict resolution):

    a. Sync specs if delta specs exist:

    • Use the openspec-sync-specs approach (agent-driven intelligent merge)
    • For conflicts, apply in resolved order
    • Track if sync was done

    b. Perform the archive:

    mkdir -p openspec/changes/archive
    mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<name>
    

    c. Track outcome for each change:

    • Success: archived successfully
    • Failed: error during archive (record error)
    • Skipped: user chose not to archive (if applicable)
  9. Display summary

    Show final resul

자주 묻는 질문

묻지 않고 변경을 보관하나요?

아니요. 어떤 변경을 보관할지 사용자가 고르게 하며, 자동으로 선택하지 않습니다.

스펙이 충돌하면 어떻게 하나요?

실제로 구현된 것이 무엇인지 보기 위해 코드베이스를 확인합니다.

OpenSpec이 필요한가요?

네. OpenSpec 변경과 그 명령줄 도구와 함께 작동합니다.

상세 정보

작성자의 원본 설명

Archive multiple completed changes at once. Use when archiving several parallel changes.

repo: fengshao1227/ccg-workflow

인기도

GitHub 스타
6.0k
순위
#14516
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬