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

openspec-apply-change

하는 일

이 스킬은 에이전트가 OpenSpec 변경에 담긴 작업을 구현하도록 안내합니다. 계획을 OpenSpec 변경으로 작성하고, 에이전트가 순서대로 작업하기를 원하는 개발자를 위한 것입니다.

사용하는 경우

  • ✓작업 목록이 이미 있는 변경의 구현을 시작하고 싶을 때.
  • ✓멈춘 변경의 작업을 이어서 진행하고 싶을 때.
  • ✓에이전트가 변경의 남은 작업을 하나씩 처리하기를 원할 때.

스킬 링크

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

“add-user-auth 변경의 구현을 시작하고, 모든 작업이 끝날 때까지 진행해 주세요.”

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

작동 방식

이 스킬은 지정한 변경, 또는 대화에서 언급된 변경을 찾습니다. OpenSpec 명령줄 도구로 상태와 작업 목록을 읽고, 남은 작업을 순서대로 진행하며 남은 항목을 추적합니다.

기술 내용 (원본 SKILL.md)

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

Implement tasks from an OpenSpec change.

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 use the AskUserQuestion tool to let the user select

    Always announce: "Using change: <name>" and how to override (e.g., /opsx-apply <other>).

  2. Check status to understand the schema

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

    Parse the JSON to understand:

    • schemaName: The workflow being used (e.g., "spec-driven")
    • planningHome, changeRoot, and actionContext: planning scope and edit constraints
    • Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
  3. Get apply instructions

    openspec instructions apply --change "<name>" --json
    

    This returns:

    • contextFiles: artifact ID -> array of concrete file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs)
    • Progress (total, complete, remaining)
    • Task list with status
    • Dynamic instruction based on current state

    Handle states:

    • If state: "blocked" (missing artifacts): show message, suggest using openspec-continue-change
    • If state: "all_done": congratulate, suggest archive
    • Otherwise: proceed to implementation

    Workspace guard: If status JSON reports actionContext.mode: "workspace-planning" and allowedEditRoots is empty, explain that full workspace apply is not supported in this slice. Treat linked repos and folders as read-only context, ask the user to select an affected area through an explicit implementation workflow, and STOP before editing files.

  4. Read context files

    Read every file path listed under contextFiles from the apply instructions output. The files depend on the schema being used:

    • spec-driven: proposal, specs, design, tasks
    • Other schemas: follow the contextFiles from CLI output
  5. Show current progress

    Display:

    • Schema being used
    • Progress: "N/M tasks complete"
    • Remaining tasks overview
    • Dynamic instruction from CLI
  6. Implement tasks (loop until done or blocked)

    For each pending task:

    • Show which task is being worked on
    • Make the code changes required
    • Keep changes minimal and focused
    • Mark task complete in the tasks file: - [ ] → - [x]
    • Continue to next task

    Pause if:

    • Task is unclear → ask for clarification
    • Implementation reveals a design issue → suggest updating artifacts
    • Error or blocker encountered → report and wait for guidance
    • User interrupts
  7. On completion or pause, show status

    Display:

    • Tasks completed this session
    • Overall progress: "N/M tasks complete"
    • If all done: suggest archive
    • If paused: explain why and wait for guidance

Output During Implementation

## Implementing: <change-name> (schema: <schema-name>)

Working on task 3/7: <task description>
[...implementation happening...]
✓ Task complete

Working on task 4/7: <task description>
[...implementation happening...]
✓ Task complete

Output On Completion

## Implementation Complete

**Change:** <change-name>
**Schema:** <schema-name>
**Progress:** 7/7 tasks complete ✓

### Completed This Session
- [x] Task 1
- [x] Task 2
...

All tasks complete! Ready to archive this change.

Output On Pause (Issue Encountered)

## Implementation Paused

**Change:** <change-name>
**Schema:** <schema-name>
**Progress:** 4/7 tasks complete

### Issue Encountered
<description of the issue>

**Options:**
1. <option 1>
2. <option 2>
3. Other approach

What would you like to do?

Guardrails

  • Keep going through tasks until done or blocked
  • Always read context files before starting (from the apply instructions output)
  • If task is ambiguous, pause and ask before implementing
  • If implementation reveals issues, pause and suggest artifact updates
  • Keep code changes minimal and scoped to each task
  • Update task checkbox immediately after completing each task
  • Pause on errors, blockers, or unclear
자주 묻는 질문

변경 이름을 말하지 않으면 어떻게 되나요?

스킬은 대화에서 변경을 추측하거나, 불분명하면 선택하도록 요청합니다.

OpenSpec을 설치해야 하나요?

네, 상태와 작업 목록을 읽기 위해 OpenSpec 명령줄 도구를 사용합니다.

다른 변경으로 바꿀 수 있나요?

네, 사용할 변경을 다른 이름으로 지정하면 기존 선택을 대신합니다.

상세 정보

작성자의 원본 설명

Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.

repo: monid-ai/monid

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬