بنقرة واحدة
spec-diff
Compare paired _TOBE.md and _ASIS.md docs to identify code/spec drift and refactor scope.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Compare paired _TOBE.md and _ASIS.md docs to identify code/spec drift and refactor scope.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Create, repair, validate, visually QA, and package Codex-compatible v2 animated pets from character art, generated images, company or prospect brand cues, or visual references. Use for any new Codex pet, custom mascot, non-pixel pet style, brand-inspired pet, existing-pet repair, or 8x11 spritesheet workflow requiring all 9 standard animation rows, 16 look directions, deterministic assembly, QA artifacts, and spriteVersionNumber 2 packaging.
Rewrite current branch into N semantic commits with a legacy backup branch and optional rebase onto origin/main.
Merge origin/main into current branch while preserving branch intent, context, and ownership decisions.
Chain branch onboarding, code-health, and non-test analysis into a branch-scoped remediation plan.
Summarize current branch diff from fork point with intent, scope, risks, and context for follow-on work.
Audit codebase architecture: module dependencies, layering, circular imports, ownership, and structural decay.
| name | spec-diff |
| description | Compare paired _TOBE.md and _ASIS.md docs to identify code/spec drift and refactor scope. |
Tobe 스펙 문서(_TOBE.md)와 As-Is 문서(_ASIS.md)를 비교하여 어디가 일치하고, 어디가 drift했는지 리포트를 생성한다. 각 drift에 대해 처리 선택지를 제시한다. 코드를 직접 읽거나 수정하지 않는다.
_TOBE.md와 _ASIS.md가 같은 모듈에 대해 존재할 때When NOT to use:
_TOBE.md 또는 _ASIS.md가 없을 때 (먼저 doc-separator / reverse-doc 실행)| 카테고리 | 의미 | 권장 조치 |
|---|---|---|
[MATCH] | 스펙과 코드 일치 | 없음 |
[DRIFT-HARMLESS] | 다르지만 기능 영향 없음 (변수명, 순서, 추가 로깅) | 스펙을 코드에 맞춰 업데이트 |
[DRIFT-FUNCTIONAL] | 동작이 다름. 결과 영향 가능 (다른 알고리즘, 빠진 조건) | 테스트로 영향 확인 → 코드 수정 or 스펙 업데이트 |
[DRIFT-STRUCTURAL] | 구조가 다름 (클래스 계층, 모듈 분리, 입출력 타입) | 인터페이스 재정의. 핵심이면 리팩토링 |
[MISSING-IN-CODE] | 스펙에 있으나 미구현 | 필요성 판단 후 구현 or 스펙에서 제거 |
[MISSING-IN-SPEC] | 코드에 있으나 스펙에 없음 (에이전트 임의 추가) | 스펙에 추가 or 코드에서 제거 |
Drift 심각도: STRUCTURAL 2개 이상 또는 FUNCTIONAL 5개 이상이면 HIGH.
{module_name}_DRIFT.md# {모듈명} - Drift 리포트
> 생성일: {날짜}
> Tobe 기준: {_TOBE.md 파일경로}
> As-Is 기준: {_ASIS.md 파일경로}
## 요약
| 카테고리 | 건수 |
|---------|------|
| MATCH | N |
| DRIFT-HARMLESS | N |
| DRIFT-FUNCTIONAL | N |
| DRIFT-STRUCTURAL | N |
| MISSING-IN-CODE | N |
| MISSING-IN-SPEC | N |
**Drift 심각도**: {LOW / MEDIUM / HIGH / CRITICAL}
## 상세 항목
### [카테고리] 항목명
- Tobe: {스펙 기술}
- As-Is: {코드 실제}
- 영향: {예상 영향 또는 "없음"}
- 권장: {선택지 제시}
(모든 항목에 대해 반복)
## 우선 처리 대상
(STRUCTURAL, FUNCTIONAL 중 영향 범위 큰 것부터)
## 다음 단계 제안
(리포트 기반 구체적 액션 아이템)
[MISSING-IN-SPEC].| 실수 | 올바른 방법 |
|---|---|
| "코드가 틀렸다" (판단) | 차이를 기술하고 선택지를 제시 |
| 이름 기준 매칭 | 기능 기준 매칭 ("feasibility checker" = validate_placement()) |
| 판단 불가한 것을 억지 분류 | [판단필요] 태그로 사람에게 넘김 |
| 코드를 직접 읽음 | As-Is 문서만 참조 |
| 모든 drift를 "고칠 문제"로 취급 | 동작하는 코드의 drift는 스펙 업데이트가 맞을 수 있음 |