OpenParable
Skip to content
← Back to skills

Skill Refactorer

Documents
skill-refactorer

Skill Refactorer is an Agent Skill for documents published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

SKILL.mdファイルを整理・圧縮するスキル。 7つのリファクタリングパターンをチェックリストとして適用し、 SKILL.mdをオーケストレータとして100行未満に圧縮する。 Trigger: スキル整理, SKILL.md圧縮, スキルリファクタ, skill refactor, refactor skill

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/skill-refactorer/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/skill-refactorer, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

SKILL.md整理(skill-refactorer)

7パターン

詳細・チェック項目は references/patterns.md を、自然に必ず参照。

#パターン要点
1圧縮詳細(コード例・実例・基準等)を外部に委譲、100行未満に
2DRY化繰り返しを冒頭定義+テーブルに集約
3LLM行動制御「自分でやらない」明示+呼び出しコード
4ゲート条件各ステップ末尾にファイル存在チェック
5責務分離詳細をagents/・references/に移し、小タスクも切り出し
6廃止・整理未使用参照・冗長例を削除
7構造化オーケストレータとして再構成

実行手順

Step 1: 現状分析

  1. Read で対象SKILL.mdを読み込む
  2. Read で references/patterns.md を読み込む
  3. AskUserQuestion で対象SKILL.mdの問題点をユーザーと共有:
    • 行数、コード例の有無、繰り返し構造、ゲート条件の有無
    • 7パターンのうちどれが該当するかチェックリストで提示

Step 2: 整理方針の合意

  1. 各パターンの適用箇所を具体的に提示
  2. AskUserQuestion で方針確認:
    • 削除するセクション
    • agents/に切り出すセクション
    • 新規作成するagent.md

Step 3: 適用

  1. SKILL.mdを書き換え(Edit/Write)
  2. 必要に応じてagent.mdを新規作成
  3. AskUserQuestion で結果確認

完了条件

  • SKILL.mdが100行未満
  • 7パターンのチェック項目をすべて確認済み
  • ユーザーが承認済み