techreport
Skill2 starsChanged 4 months agoMITView on GitHub
Use when the user says 기술보고서/techreport/보고서 만들어/트러블슈팅 문서화/이 작업 보고서로/보고서 docx로 깃허브에 — OR PROACTIVELY OFFER (don't wait to be asked; the user forgets this skill exists) right after a nontrivial troubleshooting session concludes (root cause found after 3+ failed attempts, outage/data-corruption recovered, or a tricky bug whose diagnosis others would benefit from), or after a major system change/migration completes. Offer in one line ("이 트러블슈팅 기술보고서로 남길까요?"), run only on yes. Writes a timestamped technical report (troubleshooting·changelog·evolution) → report.md + report.docx + optional private GitHub repo upload (SessionEnd autopush marker).
- Deletes or force-pushes
- Installs packages
The file
Files
/techreport — 기술보고서 → docx → GitHub
작업·시스템·트러블슈팅 이력을 사람이 읽는 상세 기술보고서로 만들고, docx로 변환해, GitHub 레포에 올린다. 핵심: 날짜·시간을 세부적으로(인간 기록용 — "언제 무엇이 왜 바뀌었나"가 추적되게).
언제 / 조건
- 큰 작업·시스템 변경·디버깅 세션을 정식 문서로 남길 때.
- 출력 대상 = 👤 사람(미래의 나 포함). Claude용 운영 정본(SYSTEM.md류)과는 별개 — 이건 서사·이력.
단계
0. 환경 확인
command -v pandoc || echo "NO_PANDOC — 설치: 'brew install pandoc' 또는 배포판 패키지"
command -v gh && gh auth status 2>&1 | grep -m1 "Logged in" || echo "NO_GH — 'gh auth login' 필요(업로드 단계 한정)"
git log -3 --format=%ae # 커밋 이메일 트랩: 정상 배포 이메일 확인 후 사용1. 사료 수집 (타임스탬프가 생명)
- 변경로그:
git -C <repo> log --format="%ci | %h | %s"(커밋 시각 그대로 — ISO). - 트러블슈팅 내역: 무엇이 깨졌나 → 증상 → 원인(근본) → 해결 → 배운점. 가능하면 발견·수정 시각.
- 발전과정: 시간순 마일스톤 (init → 기능 → 리팩터 → 결정 번복 등).
- 결정 로그:
decisions/log.md같은 데서 "왜 그렇게 정했나". - 세션 로그(
$COMMAND_CENTER/logs/)·메모리에서 맥락 보강.
2. 보고서 markdown 작성 (<name>-report.md)
표준 헤더(👤 사람용 · 의도 · 언제 · 기준일시) + 아래 골격. 모든 이벤트에 날짜/시간:
1. 요약 (한 문단 + 한눈 표)
2. 시스템/대상 구조 (무엇으로 이루어졌나)
3. 작동 원리 (어떻게 도나)
4. 트러블슈팅 내역 (시간순 표: 시각 · 증상 · 원인 · 해결)
5. 변경로그 (git 시각 그대로, 최신→과거)
6. 발전과정 (마일스톤 타임라인)
7. 발견된 이슈 / 개선점 (severity + 조치/플래그)
8. 부록 (검증 로그·출처·링크)- 기준일시 명시:
> 작성: YYYY-MM-DD HH:MM (TZ). - 숫자·경로·버전은 실측으로(추측 금지). 출처 있으면 인용.
3. docx 변환 (pandoc)
pandoc <name>-report.md -o <name>-report.docx \
--toc --toc-depth=3 -V lang=ko \
--metadata title="<제목>" --metadata date="$(date +%Y-%m-%d)"
# 스타일 레퍼런스 있으면: --reference-doc=<ref.docx>변환 후 ls -la <name>-report.docx로 생성 확인.
4. 산출물 배치 + GitHub push
보고서 작성 = 로컬 배치까지만. 여기서 끝내고, 업로드는 아래 별도 게이트를 통과해야 한다.
DIR=$COMMAND_CENTER/reports/<proj>-$(date +%F); mkdir -p "$DIR"
# 보안: 보고서에 토큰·키 값이 들어갔으면 검토(변수명·건수는 OK, 실제 값은 마스킹).
cp <name>-report.md <name>-report.docx "$DIR/"⛔ 업로드는 작성과 분리된 별도 승인이다 (2026-07-29 2백본 감사 BLOCKER). 작성 동의 ≠ 발행 동의. 예전에는 이 단계에서 마커를 같이 찍어 "보고서 써줘" 한마디가 SessionEnd 원격 push를 무장시켰다 — techreport-autopush.py는 마커가 있으면 무조건 push하므로 되돌릴 지점이 없다. 사용자가 업로드까지 명시로 승인한 뒤에만 찍는다:
touch $COMMAND_CENTER/reports/.push-pending # ← SessionEnd hook(techreport-autopush.py)이 감지승인이 없으면 마커를 만들지 않는다 — 보고서는 로컬에만 남고 아무것도 나가지 않는다. 승인 시 세션 종료에서 $COMMAND_CENTER을 commit+push(reports/ pathspec 한정, 정상 이메일 고정). skill = 보고서 작성(LLM) / hook = GitHub push(셸) 분담 — hook은 셸이라 LLM 보고서를 못 쓰므로 이 구조가 정석.
(옵션) 별도 private 레포 — 보고서를 독립 레포로 원할 때(민감내용 → --private, 공개는 명시 확인 시만):
WORK=$(mktemp -d) && chmod 700 "$WORK"
cp <name>-report.md <name>-report.docx "$WORK/"
cd "$WORK" && git init -q && git add -A
git -c user.email="<배포정상이메일>" -c user.name="<git 사용자명>" commit -qm "docs: <제목> (YYYY-MM-DD)"
gh repo create <owner>/<repo> --private --source=. --remote=origin --push
cd / && rm -rf "$WORK"- 끝나면 위치(또는 레포 URL)를 사용자에게 보고.
5. 마무리
- 보고서 md는 소스 레포(예:
$COMMAND_CENTER/system/)에도 두면 버전관리됨. - 커스텀 스킬/시스템 변경을 동반했으면
dotclaude/sync.sh --manual로 미러 갱신 (무인자=안전모드·memory만).
함정
- pandoc 없으면 docx 단계 막힘 — 설치 안내 후 md까지만 산출.
- 커밋 이메일: Vercel 연동 레포는 미스매치 이메일 차단(
git log -3 --format=%ae확인). 일반 레포도 계정 일관성 위해 noreply 이메일 권장. - 보안: 보고서에 토큰·키·민감경로 들어가면 push 전 검토. 기본 private.
- 타임스탬프 누락 금지: "최근에"·"얼마전" 금지, 실제 시각 박을 것(인간 기록용).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

