← スキル一覧に戻る

simplify
by meta-pytorch
simplifyは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。
⭐ 1,076🍴 167📅 2026年1月23日
SKILL.md
name: simplify description: Refactor code after tests pass. The "Refactor" phase of Red-Green-Refactor. context: fork agent: code-simplifier
/simplify
Refactor and clean up code after tests pass.
Usage
/simplify
/simplify src/openenv/core/client.py
When to Use
- After
/implementmakes tests pass - When code is correct but could be cleaner
- Before creating a PR (optional polish step)
When NOT to Use
- Tests are failing (fix tests first)
- You want to add new functionality (use
/write-testsfirst) - Code is already clean and simple
What It Does
- Runs tests to ensure they pass (baseline)
- Identifies opportunities for simplification
- Refactors while keeping tests green
- Runs tests after each change to verify nothing broke
Philosophy
This is TDD's third phase: Red → Green → Refactor.
The goal is NOT to add features or change behavior. The goal is to make the code:
- Easier to read
- Easier to maintain
- More consistent with project patterns
- Less duplicated
Guidelines
Good Simplifications
- Extract helper functions to reduce duplication
- Rename variables for clarity
- Remove dead code
- Simplify complex conditionals
- Use more Pythonic idioms
NOT Simplifications (Avoid)
- Adding new features
- Changing public APIs
- "Improving" code that works and is readable
- Adding abstractions for hypothetical future needs
Completion Criteria
- All tests still pass
- Code is cleaner/simpler than before
- No new functionality was added
- Changes follow project patterns (see PATTERNS.md)
Integration with TDD Workflow
/write-tests → create failing tests (Red)
↓
/implement → make tests pass (Green)
↓
/simplify → clean up code (Refactor)
↓
/pre-submit-pr → validate before PR
スコア
総合スコア
75/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
✓人気
GitHub Stars 1000以上
+15
○最近の活動
3ヶ月以内に更新がある
0/10
✓フォーク
10回以上フォークされている
+5
○Issue管理
オープンIssueが50未満
0/5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です