본문으로 건너뛰기
Skillpedia
일반 코딩6.1k · #14422

openspec-archive-change

하는 일

이 스킬은 OpenSpec 변경의 산출물을 확인하고 보관 폴더로 옮겨 마무리합니다. 완료된 변경을 깔끔하게 닫고 싶은 개발자를 위한 것입니다.

사용하는 경우

  • ✓변경이 모두 구현되어 닫고 싶을 때.
  • ✓보관하기 전에 아직 완성되지 않은 산출물이 있는지 확인하고 싶을 때.
  • ✓완료된 변경을 활성 목록에서 옮기고 싶을 때.

스킬 링크

https://github.com/monid-ai/monid/blob/main/.opencode/skills/openspec-archive-change/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/monid-ai/monid/blob/main/.opencode/skills/openspec-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에게 요청하는 예시

“login-redesign 변경은 끝났습니다. 산출물을 확인하고 보관해 주세요.”

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

작동 방식

이 스킬은 활성 변경 목록을 보여 주고 하나를 고르게 합니다. 변경 산출물의 상태를 확인하고, 완료되지 않은 항목이 있으면 경고합니다. 사용자가 확인했을 때만 변경을 보관합니다.

기술 내용 (원본 SKILL.md)

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

Archive a completed change in the experimental workflow.

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 only active changes (not already archived). Include the schema used for each change if available.

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

  2. Check artifact completion status

    Run openspec status --change "<name>" --json to check artifact completion.

    Parse the JSON to understand:

    • schemaName: The workflow being used
    • planningHome, changeRoot, artifactPaths, and actionContext: path and scope context
    • artifacts: List of artifacts with their status (done or other)

    If status reports actionContext.mode: "workspace-planning", explain that workspace archive is not supported in this slice and STOP. Do not move workspace changes into repo-local archives or edit linked repos.

    If any artifacts are not done:

    • Display warning listing incomplete artifacts
    • Use AskUserQuestion tool to confirm user wants to proceed
    • Proceed if user confirms
  3. Check task completion status

    Read the tasks file (typically tasks.md) to check for incomplete tasks.

    Count tasks marked with - [ ] (incomplete) vs - [x] (complete).

    If incomplete tasks found:

    • Display warning showing count of incomplete tasks
    • Use AskUserQuestion tool to confirm user wants to proceed
    • Proceed if user confirms

    If no tasks file exists: Proceed without task-related warning.

  4. Assess delta spec sync state

    Use artifactPaths.specs.existingOutputPaths from status JSON to check for delta specs. If none exist, proceed without sync prompt.

    If delta specs exist:

    • Compare each delta spec with its corresponding main spec at openspec/specs/<capability>/spec.md
    • Determine what changes would be applied (adds, modifications, removals, renames)
    • Show a combined summary before prompting

    Prompt options:

    • If changes needed: "Sync now (recommended)", "Archive without syncing"
    • If already synced: "Archive now", "Sync anyway", "Cancel"

    If user chooses sync, use Task tool (subagent_type: "general-purpose", prompt: "Use Skill tool to invoke openspec-sync-specs for change '<name>'. Delta spec analysis: <include the analyzed delta spec summary>"). Proceed to archive regardless of choice.

  5. Perform the archive

    Create an archive directory under planningHome.changesDir if it doesn't exist:

    mkdir -p "<planningHome.changesDir>/archive"
    

    Generate target name using current date: YYYY-MM-DD-<change-name>

    Check if target already exists:

    • If yes: Fail with error, suggest renaming existing archive or using different date
    • If no: Move changeRoot to the archive directory
    mv "<changeRoot>" "<planningHome.changesDir>/archive/YYYY-MM-DD-<name>"
    
  6. Display summary

    Show archive completion summary including:

    • Change name
    • Schema that was used
    • Archive location
    • Whether specs were synced (if applicable)
    • Note about any warnings (incomplete artifacts/tasks)

Output On Success

## Archive Complete

**Change:** <change-name>
**Schema:** <schema-name>
**Archived to:** the archive path derived from `planningHome.changesDir`/YYYY-MM-DD-<name>/
**Specs:** ✓ Synced to main specs (or "No delta specs" or "Sync skipped")

All artifacts complete. All tasks complete.

Guardrails

  • Always prompt for change selection if not provided
  • Use artifact graph (openspec status --json) for completion checking
  • Don't block archive on warnings - just inform and confirm
  • Preserve .openspec.yaml when moving to archive (it moves with the directory)
  • Show clear summary of what happened
  • If sync is requested, use openspec-sync-specs approach (agent-driven)
  • If delta specs exist, always run the sync assessment and show the combined summary before prompting
자주 묻는 질문

변경을 대신 골라 주나요?

아니요. 설명에 따르면 스킬은 항상 사용자가 변경을 고르도록 요청합니다.

일부 산출물이 완성되지 않았다면 어떻게 되나요?

스킬이 경고를 보여 주고, 계속하기 전에 확인을 요청합니다.

작업공간 변경도 보관할 수 있나요?

아니요. 스킬은 작업공간 보관을 지원하지 않으며, 그 경우 작업을 중단합니다.

상세 정보

작성자의 원본 설명

Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.

repo: monid-ai/monid

인기도

GitHub 스타
6.1k
순위
#14422
라이선스
MIT
업데이트
2026. 10. 22.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬