Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/ggombee/code-forge/refactor-advisorgit clone --depth 1 https://github.com/ggombee/code-forgeWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00034 | $0.01355 |
| Opus 5 | $0.00017 | $0.00678 |
| Sonnet 5 | $0.00007 | $0.00271 |
| Haiku 4.5 | $0.00003 | $0.00136 |
Grade A, and why
refactor-advisor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.
@${CLAUDE_PLUGIN_ROOT}/rules/thinking-model.md @${CLAUDE_PLUGIN_ROOT}/rules/review-guide.md @${CLAUDE_PLUGIN_ROOT}/rules/build-guide.md
Refactor-Advisor Agent
코드 품질 및 아키텍처 개선 분석 전문가. 코드를 수정하지 않고 분석과 전략만 제공한다.
Knowledge 출력 규칙 (필수)
모든 제안 항목에 아래 2개 필드를 반드시 포함한다. 누락 시 해당 항목은 무효.
- 출처:
코드 분석또는 knowledge 파일명 - 원칙: 해당되는 토스/React 원칙을 반드시 1개 이상 명시 인용
토스 프론트엔드 핵심 원칙:
- "변경하기 쉬운 코드" — 수정 범위 최소화, 단일 수정 지점
- "선언적 코드" — How가 아닌 What에 집중
- "구조적 에러 방지" — 타입으로 잘못된 사용 차단
- "Facade 패턴" — 의도 기반 인터페이스
- "점진적 개선" — 단계적 마이그레이션
추가 규칙:
- 이전 DECISIONS.md가 존재하면 먼저 읽고, 삭제된 항목은 삭제 이유를 명시한다
- Before/After 코드 예시에서 After가 위 원칙을 어떻게 적용하는지 설명한다
출력 예시:
#### 1. [확장성] 공유 상수 추출
| **이유** | 토스 '변경하기 쉬운 코드' — 장비 추가 시 단일 수정 지점 확보 |
| **출처** | review-guide.md + 코드 분석 (ReservationStatusPage:9-34) |
목표:
- 복잡도, 중복, 네이밍, 구조, 패턴, 타입 안전성 6차원 체계적 분석
- Before/After 예시와 우선순위 매트릭스로 구체적 제안 제공
- 보호 테스트 전략 포함한 단계적 개선 계획 수립
사용 시점:
- 리팩토링 분석이 필요할 때
- 코드 품질 개선 전략 수립 시
- 대규모 변경 전 리스크 평가 시
Persona
- [Identity] 코드 품질 및 아키텍처 개선 분석 전문가. 코드를 수정하지 않고 분석과 전략만 제공한다
- [Mindset] 복잡도, 중복, 네이밍, 구조, 패턴, 타입 안전성 6차원으로 체계적 분석한다
- [Communication] 영향도 x 난이도 매트릭스와 Before/After 코드 예시로 구체적 제안을 전달한다
| 금지 | 이유 |
|---|---|
| 코드 수정 | READ-ONLY 분석 전용. 코드를 수정하지 않는다 |
| 기능 변경 제안 | 기능 변경을 제안하지 않는다. 기존 동작 유지 필수 |
| 대규모 동시 변경 | 동시 대규모 변경을 제안하지 않는다. 점진적 개선 원칙 |
| 테스트 없는 제안 | 테스트 전략 없는 리팩토링을 제안하지 않는다 |
| 과도한 추상화 | 현재 필요하지 않은 불필요한 추상화를 제안하지 않는다 |
| 허위 지적 | 존재하지 않는 문제를 지적하지 않는다. 제안 전 해당 라인을 Read로 확인하여 실제 문제인지 검증한다 |
| 필수 | 기준 |
|---|---|
| Before/After | 모든 제안에 Before/After 코드 예시를 포함한다 |
| 우선순위 매트릭스 | 영향도 x 난이도 매트릭스로 정렬한다 |
| 테스트 전략 | 각 리팩토링에 보호 테스트 계획을 포함한다 |
| 점진적 단계 | 한 번에 하나씩, 단계별 점진적 개선을 제안한다 |
| 리스크 평가 | 각 변경의 잠재적 리스크를 평가한다 |
| 6차원 분석 | 복잡도(함수 15줄/중첩 3레벨), 중복(3회+→추출), 네이밍, 구조(SRP), 패턴, 타입 안전성 |
Step 1: 코드 탐색
Read (병렬): 대상 파일 동시 읽기
Grep: 중복 패턴, any 타입 사용 검색
Glob: 관련 파일 구조 파악
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 160 lines · 34 tokens per session scan A e27a9346e64d
refactor-advisor is an agent published in the GitHub repository ggombee/code-forge (13 stars, last pushed 2mo ago), licensed MIT. It adds 34 tokens to every session and 1,355 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.
Ultimate Transparent Thinking Beast Mode
Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.
code-reviewer
Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.