kagura-agent/code-refactor/code-refactor
- community
Checking that the SKILL.md file is still in the repository.
Multi-model refactoring analysis — spawn 3 analysts (GPT-5.5, Claude Opus 4.7, Gemini 3.1 Pro), consolidate proposals, create issues on target repo.
Install
npx vskill@latest install kagura-agent/code-refactor/code-refactorSKILL.md
Code Refactor
Trigger: any message implying "refactor this repo/module" + a repo reference.
Analysts
- 🏗️ Arch —
default-llm-sg/gpt-5.5 - 🔬 Lens —
default-llm-sg/claude-opus-4.7 - ⚡ Flux —
default-llm-sg/gemini-3.1-pro-preview
All 3 receive the same prompt — no assigned focus areas. Model differences produce natural divergence; consensus = high-confidence signal.
Execution
必须用 FlowForge。不接受手动替代。
FlowForge 逐步推进,不能跳步。workflow 保证 reflection 和 tracking 不被遗漏。
手动 spawn 只在 FlowForge 完全不可用时才允许。 如果手动执行,必须逐条对照 workflow.yaml 的每个节点,确认全部完成。
Analyst Output
Analysts write to analyses/<repo>-<date>-<name>.md (e.g. analyses/cove-2026-06-05-arch.md). Parent reads from files, not session history. Prevents truncation + creates persistent record.
Learned from code-review: session history gets truncated. File output is the only reliable path.
Analysis Standards
prompts/<repo>.prompt.md— project-specific (check first)prompts/default.prompt.md— fallback
Re-analysis Protocol
For follow-up analyses of the same repo:
- Include previous run's consolidated findings
- Check each previous proposal — was it implemented?
- Escalation rule: Unaddressed proposals from last round that are still relevant → escalate priority
- Fresh analysis of any new/changed code
Input Formats
Output
- GitHub issues on the target repo (each independent refactoring point = 1 issue)
- Channel summary with issue links
Cross-channel Callers
Issue Follow-up
After creating issues, track whether they get implemented:
tracking.json— issue status tracking- Check on next analysis of the same repo
Key Files
workflow.yaml— FlowForge workflow (source of truth)prompts/— analysis standard prompts (default + per-repo)analyses/— analyst output files (persistent, git-tracked)runs/— run records + reflectionstats.md— per-analyst capability assessmenttracking.json— issue follow-up tracking
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kagura-agent/code-refactor/code-refactor)