ワンクリックで
reverse-doc
Document current code behavior as an As-Is baseline before refactor, spec drift checks, or cleanup.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Document current code behavior as an As-Is baseline before refactor, spec drift checks, or cleanup.
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 | reverse-doc |
| description | Document current code behavior as an As-Is baseline before refactor, spec drift checks, or cleanup. |
코드를 읽고, 그 코드가 실제로 하는 것을 문서화한다. 설계 의도나 주석이 아니라, 코드의 실제 실행 흐름 기준.
When NOT to use:
[주석불일치] 태그로 표시만 한다.[확인필요] 태그를 붙인다.probe-deep-search를 사용하되, 호출자 추적이나 외부 모듈 내부 읽기로 범위를 넓히지 않는다.모듈 하나에 대해 다음을 파악한다:
반드시 다음 태그를 사용한다. 산문으로 풀어쓰지 않는다:
| 태그 | 용도 | 예시 |
|---|---|---|
[주석불일치] | 주석과 코드 동작이 다를 때 | [주석불일치] L45: 주석은 "SGG6 level 1"이라 하지만 코드는 (4, 2) 즉 SGG4 level 2 |
[Dead Code] | 도달 불가능한 분기 | [Dead Code] L120-125: else 분기가 실행 불가 |
[매직넘버] | 하드코딩된 상수 | [매직넘버] L30: threshold 0.85의 출처 불명 |
[중복] | 유사 로직 반복 | [중복] L50, L120: 동일한 정규화 로직 |
[확인필요] | 코드만으로 판단 불가 | [확인필요] NaN→0 변환이 의도된 동작인지 |
[타입추론] | annotation 없이 사용 패턴에서 추론 | [타입추론] param1은 str로 사용됨 |
[미사용] | import 또는 파라미터가 사용되지 않음 | [미사용] L5: import os — 모듈 내 사용처 없음 |
{module_name}_ASIS.md# {모듈명} - As-Is (코드 기준)
> 생성일: {날짜}
> 대상 파일: {파일경로}
> 코드 기준: 코드의 실제 동작만 기술. 설계 의도 아님.
## 모듈 개요
(이 모듈이 실제로 하는 것 1-2문장)
## Public Interface
### `function_name(param1: type, param2: type) -> return_type`
- **실제 동작**: (이 함수가 하는 것)
- **입력**:
- `param1`: (실제 사용 방식)
- `param2`: (실제 사용 방식)
- **출력**: (실제 return 구조)
- **Side Effects**: (있으면 기술)
- **호출하는 함수**: [`other_func_1`, `other_func_2`]
- **예외**: (raise 조건)
(모든 public 함수/클래스에 대해 반복)
## 내부 함수 (Private)
(주요 내부 함수만. 사소한 유틸은 이름만 나열)
## 의존성 그래프
이 모듈 → 호출하는 모듈1 → ... 이 모듈 → 호출하는 모듈2 외부: numpy, ortools, ...
## 데이터 흐름
(주요 자료구조가 어떻게 변환되는지. 입력 → 중간상태 → 출력)
## 이상 징후
- [주석불일치] {위치}: 주석은 ~라고 하지만 코드는 ~함
- [Dead Code] {위치}: 도달 불가능
- [매직넘버] {위치}: 하드코딩된 값 {값}
- [중복] {위치1}, {위치2}: 유사 로직 중복
## [확인필요] 항목
(코드만으로 판단 불가한 것. 사람에게 확인 요청)
| 실수 | 올바른 방법 |
|---|---|
| "이 로직은 broken이다" (판단) | "이 코드는 X를 한다. 타입 선언은 Y이다." (사실) |
| 호출자(caller)를 검색해서 문서에 포함 | 이 모듈의 import와 호출만 기술. 누가 이 모듈을 호출하는지는 범위 밖 |
| 이상 징후를 산문으로 설명 | 태그 규약 표의 태그를 사용. [주석불일치] L45: ... 형식 |
| 테이블/불릿 형식을 자유롭게 선택 | 출력 형식 템플릿을 그대로 따른다 |
| 설계 의도를 추측 ("아마 ~하려는 것") | 코드가 하는 것만 기술. 의도 추측이 필요하면 [확인필요] 태그 |
| 전체 코드베이스를 한 번에 문서화 | 모듈 단위로 실행. 디렉토리는 파일별 + 개요 |
[타입추론] 태그를 붙인다.