本文へ移動
cccskills
無料GitHub で公開日本語紹介

dev-simplify

既存コードの複雑さや重複、不要な処理を分析し、読みやすさと保守性を高めるための改善案と優先順位をまとめます。

原文原文の説明を見る

AI DevKit · Analyze and simplify existing implementations to reduce complexity, improve maintainability, and enhance scalability. Use when users ask to simplify code, reduce complexity, refactor for readability, clean up implementations, improve maintainability, reduce technical debt, or make code easier to understand.

codeaholicguy/ai-devkitスター 1,653(GitHub 1,653 + cccskills 0)

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • 読みにくいコードを整理したいとき
  • 重複や不要な抽象化を減らしたいとき
  • 保守性を高める改修を計画したいとき
  • 不要なコードや独自処理を見つけたいとき

日本語での紹介

できること

既存実装の複雑さを分析し、読みやすさや保守性を高める改善案を優先順位付きでまとめます。深い入れ子、重複、密結合、過剰な抽象化などを確認し、コードやテスト、設定がそもそも必要かも検討します。標準ライブラリや既存の依存関係で置き換えられる場合はその可能性を示し、削除、統合、分割、再設計などの案を提示します。コード変更は計画への承認後に行う前提です。

こんなときに便利

処理の流れが追いにくい、似たコードが増えている、不要な層や設定を整理したいときに向いています。短さよりも、初めて読む人が値の出どころや変更箇所を把握しやすい構造を重視したい場合にも使えます。

使い方の例

  • 「この実装の複雑な箇所を分析して、簡素化案を出して」
  • 「重複や不要な抽象化を整理する計画を作って」
  • 「独自処理を標準機能で置き換えられるか確認して」

注意点

コードを変更する前に、簡素化計画への承認が必要です。作業後は回帰テストや公開仕様、関連文書を確認する手順が示されています。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(3)

  • SKILL.md4.8 KB
  • agents/openai.yaml306 B
  • references/readability-guide.md1.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Simplify Implementation Assistant

Reduce complexity with an analysis-first approach before changing code.

Hard Rules

  • Do not modify code until the user approves a simplification plan.
  • Readability over brevity. Some duplication beats the wrong abstraction.
  • Prefer reusing an existing function over introducing a new one — but only if it fits cleanly. Do not force-fit a near-match.
  • Before improving code, ask whether the function, abstraction, dependency, or custom logic needs to exist at all.
  • Prefer platform and standard-library features over custom code or dependencies. Use already-installed dependencies when they cleanly solve the problem; do not add a dependency for logic that is only a few clear lines.
  • For breaking changes: modify in place only when all callers are in-repo and updated in the same change. For public/external APIs, add a new function and deprecate the old one (parallel change).
  • Delete or inline before adding: remove dead code, one-caller wrappers, redundant guards, stale tests, and unused configuration first.

Workflow

  1. Gather Context
  • Confirm targets, pain points, and constraints (compatibility, API stability, deadlines).
  • Search for past simplification decisions or known constraints: npx ai-devkit@latest memory search --query "<target area>" --tags "simplify"
  1. Analyze Complexity
  • Identify sources (nesting, duplication, coupling, over-engineering, magic values).
  • Run an existence check: can this code be deleted, delegated to the standard library, handled by a native platform feature, enforced by the database, or covered by an existing dependency?
  • Apply the existence check to tests and scaffolding: remove stale, duplicate, implementation-detail-only, unused, or no-longer-relevant tests, assertions, and fixtures without unique behavioral coverage.
  • Apply the reader-load test: can a new reader answer where key values come from and what can change them quickly? Count needless layers and hidden mutable state.
  • Assess impact (LOC, dependencies, cognitive load, boundary leakage, scalability blockers).
  1. Apply Readability Principles
  • Apply the readability guide and its "Reading Test".
  • Prefer domain-shaped structures over scattered conditionals when they remove branches, duplicated rules, or invalid states. Do not add an abstraction that only moves code around.
  1. Propose Simplifications For each issue, apply a pattern:
  • Extract: Long functions → smaller, focused functions.
  • Consolidate: Duplicate code → shared utilities.
  • Flatten: Deep nesting → early returns, guard clauses.
  • Decouple: Tight coupling → dependency injection, interfaces.
  • Remove: Dead code, unused features, excessive abstractions.
  • Replace: Custom logic → standard-library, native platform, database, or already-installed dependency features.
  • Defer: Premature optimization → measure-first approach.
  • Redesign: Repeated implementation friction, patched branches, or synchronized flags → revisit the model before another local cleanup.
  1. Prioritize and Plan
  • Rank by impact/risk. Present plan with before/after snippets. Request approval.

Red Flags and Rationalizations

RationalizationWhy It's WrongDo Instead
"While I'm here, let me refactor this too"Scope creep breaks thingsOnly simplify what was requested
"This abstraction will help later"Predicted reuse rarely materializesRemove it unless used twice today
"Shorter is simpler"Brevity can hide complexityOptimize for readability, not line count
"I'll add a v2 instead of updating callers"Accumulates dead code and forks the APIModify in place when callers are in-repo; parallel-change only for external/public APIs
"Existing fn is close enough — I'll bend it to fit"Wrong abstraction is costlier than duplicationReuse only on clean fit; otherwise keep the small duplicate

Validation

  • Preserve meaningful regression, public-contract, and interaction coverage. Update stale tests to intentional behavior; never delete tests merely to make failures pass.
  • Verify no regressions, add tests for new helpers, update docs if interfaces changed.
  • If the change reaches an entry point (command, route, screen), run dev-smoke before and after; results must match.

Output Template

  • Target and Context
  • Complexity Analysis
  • Simplification Proposals (prioritized)
  • Recommended Order and Plan
  • Scalability Recommendations
  • Validation Checklist

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

agent-communication

無料概要あり

稼働中のCodexやClaude CodeなどのAIエージェントを探し、最近の状況を確認して、情報の送信や返信依頼を行うスキルです。

  • 稼働中のエージェントを探したいとき
  • 連絡前に相手の状況を確認したいとき
  • 別のエージェントへ情報や質問を送りたいとき
codeaholicguy/ai-devkit1,6532026年10月25日 更新

agent-management

無料概要あり

実行中のAIエージェントを一覧・確認し、作業の割り当てやグループ化、セッション再開、停止まで、ai-devkitのコマンドで管理します。

  • 実行中のエージェントを一覧したいとき
  • 作業を割り当てるエージェントを確認したいとき
  • ワーカーを起動して作業を委任したいとき
codeaholicguy/ai-devkit1,6532026年10月25日 更新

agent-orchestration

無料概要あり

複数のエージェントが進める作業の進捗を確認し、依存関係の調整や待機中のエージェントへの対応、成果の共有、完了確認までを継続して行います。

  • 複数エージェントの進捗を調整したいとき
  • 待機中のエージェントを確認したいとき
  • 分担作業の成果を共有したいとき
codeaholicguy/ai-devkit1,6532026年10月25日 更新

ai-devkit-setup

無料概要あり

AI DevKitの状態を先に確認し、対応できる連携や導入の不足が見つかった場合に、必要なセットアップを絞って実行し再確認するスキルです。

  • AI DevKitの導入状態を確認したいとき
  • 対応エージェントの連携を設定したいとき
  • セットアップ後に残る作業を把握したいとき
codeaholicguy/ai-devkit1,6532026年10月25日 更新

brainstorm

無料概要あり

企画や命名、製品案、技術方針などのアイデアを広げ、前提や弱点を検討して、比較しやすい候補と次の一歩にまとめるスキルです。

  • 製品や企画のアイデアを比較したいとき
  • 名前やコンテンツの切り口を考えたいとき
  • 技術方針や判断の前提を検討したいとき
codeaholicguy/ai-devkit1,6532026年10月25日 更新

changelog

無料概要あり

最新リリース以降のGitコミットを確認し、各コミットへのリンクと短い説明を添えて、CHANGELOG.mdのUnreleased欄を更新します。

  • 最新リリース以降の変更を記録したいとき
  • コミットからリリースノートを作りたいとき
  • 変更履歴にコミットやPRのリンクを付けたいとき
codeaholicguy/ai-devkit1,6532026年10月25日 更新

codeaholicguy のスキルをすべて見る

このスキルの問題を報告する