スキル一覧に戻る
whywaita

code-simplifier

by whywaita

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: code-simplifier description: Refactor complex or duplicated code without changing behavior. Use for refactoring tasks, simplifying logic, or improving readability.

Code Simplification

Rules

  • Do not change behavior.
  • Prefer small, safe steps.
  • Add or update tests if coverage is missing.

Workflow

  1. Read the target code and identify complexity drivers.
  2. Plan minimal refactors (early returns, extraction, deduplication).
  3. Apply changes incrementally and keep intent clear.
  4. Run relevant tests and linters.

Heuristics

  • Keep functions ~20 lines when possible.
  • Limit nesting depth to 3.
  • Reduce argument count to 4 or fewer.
  • Replace magic numbers with constants.

Report format

## Code Simplification Report

### Target files
- path

### Issues found
1. [Type] function - description

### Changes made
1. file:line - before/after summary

### Follow-ups
- tests to run

スコア

総合スコア

55/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新

+5
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

レビュー

💬

レビュー機能は近日公開予定です