本文へスキップ
Skillpedia
一般的なプログラミング48k · #4200

codebase-cleanup-refactor-clean

できること

プログラムコードの品質を高めるためのツールです。コードを分析し、理解しやすく、保守しやすく、そして高速にするための変更案を提案します。

使う場面

  • ✓コードが大きくなり、分かりにくくなってきたとき。
  • ✓繰り返しの多い部分を取り除き、コードを簡潔にしたいとき。
  • ✓プロジェクトに新しい機能を追加する前。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/codebase-cleanup-refactor-clean/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/codebase-cleanup-refactor-clean/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このPythonコードを整理して、読みやすくなるようにリファクタリングしてもらえますか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

AIはコードによくある問題を調べ、改善案を提案します。良いプログラミングの習慣に従いながら、コードをより分かりやすく、安定したものにすることを目指します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Refactor and Clean Code

You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve its quality, maintainability, and performance.

Use this skill when

  • Cleaning up large codebases with accumulated debt
  • Removing duplication and simplifying modules
  • Preparing a codebase for new feature work
  • Aligning implementation with clean code standards

Do not use this skill when

  • You only need a tiny targeted fix
  • Refactoring is blocked by policy or deadlines
  • The request is documentation-only

Context

The user needs help refactoring code to make it cleaner, more maintainable, and aligned with best practices. Focus on practical improvements that enhance code quality without over-engineering.

Requirements

$ARGUMENTS

Instructions

  • Identify high-impact refactor candidates and risks.
  • Break work into small, testable steps.
  • Apply changes with a focus on readability and stability.
  • Validate with tests and targeted regression checks.
  • If detailed patterns are required, open resources/implementation-playbook.md.

Safety

  • Avoid large rewrites without agreement on scope.
  • Keep changes reviewable and reversible.

Output Format

  • Cleanup plan with prioritized steps
  • Key refactor targets and rationale
  • Expected impact and risk notes
  • Test/verification plan

Resources

  • resources/implementation-playbook.md for detailed patterns and examples.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
よくある質問

「リファクタリング」とは何ですか?

動作を変えずに、コードの書き方を改善することです。散らかった引き出しを整理して、目的のものをすぐ見つけられるようにするのに似ています。

「クリーンコードの原則」とは何ですか?

読みやすく理解しやすいコードを書くためのルールや指針です。よく構成された物語のように、流れが分かりやすいコードを目指します。

AIがコード全体を書き直しますか?

いいえ。AIは品質を高めるための、的を絞った変更を提案します。大きな書き直しは、あなたの同意と計画があった場合にのみ行われます。

詳細

作者による元の説明

You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve its quality, maintainability, and performance.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#4200
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル