experiment
Skill1 starsChanged 4 months agoMITView on GitHub
Use when: 새 실험 설계, config 수정, dry-run 검증, 실험 결과 분석, 'wandb', 'Phase', 'ablation' 키워드.
- Deletes or force-pushes
16 other projects use a version of this.
Adopted by
Most recently taken up by
- skyf0xx/gambittheir own version, first seen Sep 30, 2026
- DoKu67/claude-code-skilstheir own version, first seen Sep 29, 2026
- SethGammon/Citadeltheir own version, first seen Sep 20, 2026
- simota/agent-skillstheir own version, first seen Sep 17, 2026
- ai-analyst-lab/ai-analysttheir own version, first seen Sep 10, 2026
- bjardon/skillstheir own version, first seen Aug 28, 2026
Used with
Projects with it also use eval, build and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
qtzx06Skilleval
Evaluate trained YOLO model accuracy with mAP metrics and per-class error analysis. Identifies failure cases for targeted improvement. Use after training.
Also in 3 projects that use this
Microsoft AzureSkillbuild
Build the TypeSpec Rust emitter from source. Run this after cloning the repo, after pulling changes, or when TypeScript source files have been modified.
Also in 3 projects that use this
SentrySkillonboard
Onboard a service to sentry-options. Use when integrating a new service, creating schemas, or setting up the multi-repo sentry-options workflow.
Also in 3 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 3 projects that use this
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 16
- SethGammon/Citadel★ 922same name
- ai-analyst-lab/ai-analyst★ 304same name
- simota/agent-skills★ 87same name
- sunnnybala/Rstack★ 69same name
- Kastalien-Research/thoughtbox★ 66same name
- logly/mureo★ 48same name
- alirezarezvani/gaios★ 45same name
- skyf0xx/gambit★ 25same name
- ariaxhan/kernel-claude★ 13same name
- ohm41321/luciazero★ 6same name
6 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ckpt-cleanupSkill
- commitSkill
- confluence-research-recordSkill
- confluenceSkill
- cost-resetSkill
- costSkill
- discussSkill
- dumbifySkill
- figureSkill
- graphifySkill
- harness-auditSkill
- harness-benchSkill
- learn-from-feedbackSkill
- neuro-explainSkill
- paper-readSkill
- paperSkill
- project-initSkill
- quick-skillSkill
- researchSkill
- setup-panelsSkill
- solveSkill
- storytellingSkill
- wandb-cleanupSkill
- workflowSkill
The file
Files
Experiment Setup
새 실험을 설계하고 실행 준비를 자동화. 재현성 기준, 실험 워크플로우, 결과 분석 절차 내장.
실행 흐름
$ARGUMENTS 파싱 후 순서대로:
- 실험 유형 확인:
ablation/new-feature/baseline/sweep/results - 현재 config (train.yaml, task/*.yaml) 읽기
- 재현성 체크리스트 적용 (§ 재현성 참조)
- Hydra config 생성/수정 (config/task/ 하위)
- wandb run name 규칙 적용:
{단계}-{모델}-{변수}-{MMDD} - dry-run:
wandb=disabled trainer.fast_dev_run=true - 성공 시 실제 실행 명령 제안, 실패 시 에러 분석
실험 유형별 동작
| 유형 | 동작 |
ablation | 변경 변수 1개씩 격리, 동일 seed로 fair comparison config 생성 |
new-feature | 새 모듈 추가, torchinfo.summary() / thop으로 파라미터 수 확인 |
baseline | best config 기준 재현성 체크 |
sweep | Hydra multirun 설정 생성, 탐색 범위 명시 |
results | wandb URL 기반 결과 분석 스크립트 생성 |
재현성 자동 삽입: seed_everything 호출 확인 / config seed 키 확인 / CUDA·패키지 버전 wandb 기록 확인
GPU 메모리 예측 (new-feature / sweep 시): torchinfo.summary() 또는 thop으로 파라미터·FLOPs 확인. DeepSpeed/LoRA 변경 시 예상 메모리 vs 실제 GPU 용량 비교.
§ 자가진화 동결 마커 (Stage A 진입 시 MANDATORY)
자가진화 동결 마커 생성: mkdir -p ~/.claude/_bench && touch ~/.claude/_bench/.experiment_active
(실험 중 preference-gated 자가진화 Tier-2/slow update 차단 — CLAUDE.md 규칙8 준수)
가드 컨벤션: 자가진화 트리거(regression-blind/slow update)는 서두에서
[ -f ~/.claude/_bench/.experiment_active ] && { echo '실험 활성 — 진화 보류'; exit 0; }로 체크한다.
§ Mem0 Prior 검색 (Stage A 시작 시 MANDATORY)
→ mem0-auto.md T11 참조 (4채널 순차 검색)
prior 결과 있으면: "이전 실험에서 {config}로 {metric}={값} 달성" 표시 → Go/NoGo 판단 반영.
§ Tavily SOTA 검색 + citation-verifier 베이스라인 검증 (Stage A 보강)
→ tavily-auto.md §1 SOTA 쿼리 참조 → "현재 SOTA: {모델}={값} ({출처})" 표시 (searcher가 SOTA 수치 발견) → citation-verifier 베이스라인 검증: SOTA/베이스라인 논문에 대해 citation-verifier 소집으로 검증(철회게이트+stance)
- editorialNotices 확인 → 철회/정정 논문 기반 실험 방지
- supporting/contrasting 비율로 학계 합의 수준 확인
- 검증 결과 저장: → mem0-auto.md T21 참조
§ Mem0 결과 저장 (Phase 완료 시 MANDATORY)
→ mem0-auto.md T10 참조
§ 실험 워크플로우 (코드 완성 → 실험 트랙)
코드 완성 트랙 (Stage A~D)
│
▼ ← 이 경계를 넘으면 코드 수정 금지
실험 트랙 (Phase 1~N)- 코드 완성 트랙 중 실험 금지: dry-run(fast_dev_run=true)만 허용
- 실험 트랙 진입 후 코드 수정 금지: 버그 발견 시 실험 중단 → 코드 트랙 복귀 → 재검증 후 재진입
코드 완성 트랙 (Stage A~D)
| 스테이지 | 내용 | 완료 기준 |
| A | 신규 모델 동작 검증 + 버그 수정 | 핵심 dry-run PASS |
| B | Ablation용 변형 구현 | 변형 dry-run PASS |
| C | Auto/고급 모드 구현 | Auto mode dry-run PASS |
| D | 전체 통합 dry-run | 모든 조합 PASS |
Stage B 진입 시 TDD 선택지 (MANDATORY — Stage B 시작 직후 출력)
Stage B(Ablation용 변형 구현) 시작 시 아래 선택지를 사용자에게 제시한다. 선택 없이 자동 진행 금지.
🔀 Stage B 구현 방식 선택:
1. **일반 구현** (기본) — 코드 작성 후 qa 검증. 빠른 프로토타입에 적합.
2. **TDD 구현** — 테스트 먼저 작성(RED) → 구현(GREEN) → qa 검증(REFACTOR).
→ 권장 시점: Stage A에서 인터페이스가 완전히 확정된 경우
→ 효과: T38(음성 결과) 분석 시 "구현 결함 vs 가설 실패" 구분이 명확해짐
어느 방식으로 진행할까요? (1/2, 기본값: 1)TDD(2번) 선택 시 Stage B 흐름:
- RED:
test_{모듈명}.py먼저 작성 (아직 구현 없으므로 실패 예상)- 테스트 파일 저장 위치: 프로젝트
tests/하위
- 테스트 파일 저장 위치: 프로젝트
- GREEN: 실제 모듈 구현 → 테스트 통과
- REFACTOR: qa 에이전트 검증 (Stage B 완료 기준 동일: 변형 dry-run PASS)
⚠️ 제약: 실험 중 리팩토링 금지 원칙(CLAUDE.md 규칙 8) 준수 — REFACTOR 단계는 인터페이스 변경 없는 내부 정리만 허용. 구조 변경 필요 시 Stage A로 복귀.
일반(1번) 선택 또는 응답 없음: 기존 흐름 그대로 진행.
Stage D 완료 시 필수:
- dry-run 폴더 전체 삭제:
rm -rf {save_path}/*/train_run_*(사용자 직접 또는 승인 후) - 최종 코드 커밋 + push 명령 안내 (push는 사용자 직접 —
agents/gitops.md원칙) - 코드 확정 태그 제안:
code-freeze-{MMDD}— 실험 재현 앵커 (agents/gitops.md§ 태그 규칙, 승인 시 생성). Phase 완료 시에도phase{N}-complete동일 절차 - "코드 확정 완료, 실험 트랙 진입합니다" 사용자 보고
§ discuss 사전 추천 (실행 전 자동 체크)
| 조건 | 추천 |
| 아키텍처 변경 수반 | ✅ 추천 |
| 생물학적 타당성 검증 필요 | ✅ 추천 |
| 하이퍼파라미터 대폭 변경 | ✅ 추천 |
| 새로운 데이터셋 도입 | ✅ 추천 |
| 단순 config 미세 조정 | ❌ 비추천 |
| 이미 합의된 계획 실행 | ❌ 비추천 |
출력:
📋 discuss 사전 추천:
추천 여부: ✅/❌ | 근거: {조건} | 예상 참여자: {에이전트} (추천 시)
discuss를 먼저 진행할까요? (Y/N)실험 트랙 진입 전 체크리스트
- Stage D 완료 (모든 dry-run PASS)
- dry-run 폴더 삭제 완료
- 최종 코드 커밋 완료
run_trains.py실험 목록 작성 완료- 재현성 체크리스트 통과
실험 중 금지 사항
- 코드 파일(
.py) 수정 — 어떤 이유로도 금지 - config 값 변경 (실험 설계 변경 = 코드 트랙 복귀 필요)
- 진행 중 실험 강제 중단 후 파라미터 조정 재실행
실험 중 버그 발견 시 복귀 절차
- 실험 중단 → wandb run에
ABORTED태그 + 중단 이유 메모 - 중단 시점까지의 metric을 experiments.md에 임시 보존
- 코드 트랙 복귀 → Stage D 재통과 → 실험 트랙 재진입
- 완료 후 wandb run 태그
BUG_FIXED추가 → 재실험 계획
§ 재현성 체크리스트
코드 레벨
seed_everything(seed, workers=True)호출 확인torch.backends.cudnn.deterministic = True설정- DataLoader
num_workers > 0시worker_init_fnseed 설정 - Hydra config에
seed키 명시 + wandb 기록
환경 레벨
uv.lockcommit 여부 (의존성 고정)- CUDA / cuDNN 버전 wandb config 기록
- DeepSpeed / PEFT / LoRA 버전 기록
- import 버전 검증 (#6 추가 — 잘못된 버전 silent load 방지): 핵심 라이브러리 import 직후
print(torch.__version__, lightning.__version__)명시 —uv.lock외 경로(pip/conda 혼재) 설치 검출
실험 명명 (wandb run name)
형식: {실험단계}-{모델약어}-{주요변수}-{MMDD}
예시: s1-evax-lr1e4-0224 (Stage1, EVA-X, lr=1e-4, 2/24)
결과 보고 기준: 단일 수치 금지 → mean ± std (N ≥ 3 runs) 또는 사용 seed 전체 명시. 논문 테이블 수치는 wandb run URL / config hash로 추적 가능하게 유지.
§ 결과 분석 (wandb 기반)
트리거: /experiment results 또는 wandb URL + 실험 완료 알림 제공 시.
자가진화 동결 해제: rm -f ~/.claude/_bench/.experiment_active
사용자 제공 항목:
- wandb URL:
https://wandb.ai/{entity}/{project}/runs/{run_id} - 체크포인트 경로:
{save_path}/train_run_*/checkpoints/*.ckpt
분석 절차
Step 1: 결과 추출 스크립트 — /tmp/analyze_{phase}_{MMDD}.py
추출: run.history(keys=[...], pandas=True) / run.summary / run.config / best checkpoint 최고 수치
기준: 독립 실행 가능 / run name 파싱: re.match(r'^(p\d+)-(.+?)-{dataset}-s(\d+)', name) / wandb.Api(timeout=60) 재사용
Step 2: 체크포인트 교차 검증 — 파일명에서 epoch/top1_acc 추출 → wandb best 수치 비교 → 불일치 시 사용자 보고
Step 3: 결과 집계 보고:
=== Phase N: {설명} — BEST checkpoint 기준 ===
어댑터 S42 S123 Mean±Std
LoRA 0.XXXX 0.XXXX 0.XXXX±0.XXXX설명 형식 (MANDATORY): 비교축이 있는 결과 보고·문서화는
rules-lazy/experiment-result-explanation.md순서(전체표 → 축별 분해(이상값 row) → 열/행 해석 → 종합)를 따른다.
스크립트 실행 (사용자 직접):
uv run python /tmp/analyze_{phase}_{MMDD}.py결과 활용:
- 공식 수치: wandb
run.history()기반 best checkpoint - Confluence 업데이트:
/confluence스킬 - 논문 테이블:
docs/paper/해당 섹션 수치 업데이트
§ 학습 사이클 종료 후 정리 게이트 (2026-07-20 사용자 지시)
트리거: 학습 사이클(Phase의 전체 run)이 모두 종료 확인된 뒤, § 결과 분석 보고까지 완료된 시점. /loop 학습 모니터링이 완료로 종료될 때도 동일 (rules-lazy/loop-auto.md § 학습 완료 시 정리 게이트).
결과 보고 말미에 아래 질문을 반드시 제시한다 (스킬 자동 제안 원칙 — 질문만, 자동 실행 금지):
🧹 학습 사이클 종료 — 정리를 진행할까요? (복수 선택 가능)
A) /wandb-cleanup — wandb run 3계층 태그 + 눈끄기 정리
B) /ckpt-cleanup — 실패·비유의미 run 체크포인트 삭제 계획 산출 (삭제 실행은 직접)
C) 나중에 (이번 세션에서 재질문 안 함)- wandb 미사용 학습이면 B만 제시 (ckpt-cleanup은 인벤토리 모드로 동작).
- 권장 순서 A → B: ckpt-cleanup의 분류 신호가 wandb-cleanup의 3계층 태그(keep/ambiguous/무태그)이기 때문.
- B의 실제 삭제(rm)는 항상 사용자 직접 실행 — 스크립트는 purge 계획 산출까지만 (
skills/ckpt-cleanup/SKILL.md★안전 원칙).
§ QMD 변환 (실험 결과 보고서 자동 생성)
상세:
agents/docs.md§ Quarto Markdown (.qmd) 처리 참조 트리거: 실험 완료 후 결과를.qmd형식으로 정리하면 docs 에이전트가 Confluence/HTML/PDF 자동 생성 가능
활용 시나리오
- Phase 완료 후 wandb 분석 결과 + Figure + 결론을 단일
.qmd로 통합 .qmd안에python청크로 wandb history 호출 → 결과 표 자동 임베드- docs 에이전트에
.qmd경로 전달 → Confluence 페이지 자동 생성
권장 구조 (outputs/reports/phase{N}.qmd)
---
title: "Phase N 결과"
format: confluence
---- python 청크(wandb 결과) + matplotlib figure + 해석 본문
의존성
quarto CLI 미설치 시 docs 에이전트가 안내 (uv tool install quarto-cli)
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.

