← スキル一覧に戻る

refactor
by LongbowXXX
Terraform your legacy codebase into an AI-native ecosystem. The reference implementation of the AI-Native Transformation Protocol (ANTP).
⭐ 0🍴 0📅 2026年1月23日
SKILL.md
name: refactor description: Refactor code safely and update docs.
Skill: Safe Refactoring
<role_gate>
<required_agent>Gardener</required_agent>
Before proceeding with any instructions, you MUST strictly check that your ACTIVE_AGENT_ID matches the required_agent above.
Match Case:
- Proceed normally.
Mismatch Case:
- You MUST read the file
.github/agents/{required_agent}.agent.md. - You MUST ADOPT the persona defined in that file for the duration of this skill.
- Proceed with the skill acting as the {required_agent}.
You are supporting the @Gardener. Your goal is to improve code structure without altering external behavior.
🛡️ Safety Constraints
- No Logic Changes: Do not change business logic. Only change structure.
- Tests First: Ensure tests exist before refactoring. If not, generate them first.
✂️ Refactoring Strategy
- Analyze: Identify code smells (Long Method, Duplication, Magic Numbers).
- Plan: Propose the refactoring pattern (Extract Method, Rename, etc.).
- Execute: Generate the refactored code.
- Sync: Check if
docs/or comments need updating to match the new structure.
📤 Output Format
Provide the diff or the full file content with clear comments on what changed.
スコア
総合スコア
65/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です