ワンクリックで
clean-code
Diagnose over-abstraction in a package, then consolidate files by domain and deduplicate functional logic.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Diagnose over-abstraction in a package, then consolidate files by domain and deduplicate functional logic.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
git worktree 생성과 제거 라이프사이클을 하나의 절차로 통합해 실행하는 스킬입니다.
Per-carrier request-block contracts and dispatch composition rules for carrier_dispatch requests. Load before the first dispatch of the session; skip reloading if already in context.
Host-owned Fleet Plan authoring and mutation workflow. Load before the first host plan_write call in a session and skip reloading when already in context. Use it for the required Plan template, optional Nimitz Plan assurance, Genesis Plan-driven handoff, host completion marking after artifact inspection, and Plan-state verification boundaries.
Drive a headless real-browser end-to-end test or diagnosis of the Fleet Console web UI with agent-browser. Use for Console SPA behavior such as blank screens, terminal rendering, Theater or Operation interactions, modal and keyboard boundaries, responsive layout, browser errors, HTTP requests, WebSockets, or final browser verification after a Console change. Do not use for Electron lifecycle, native menus or dialogs, Desktop security policy, packaging, or installed-app behavior; use desktop-e2e instead.
Use the coordinated Fleet protocol mode for multi-carrier or parallel ownership work.
Use the normal Fleet protocol mode for bounded operational work without downward-guard triggers.
| name | clean-code |
| description | Diagnose over-abstraction in a package, then consolidate files by domain and deduplicate functional logic. |
Two-pass refactoring: Pass 1 consolidates files by domain boundary, Pass 2 deduplicates functional logic across the result. Present each pass's diagnosis to the user for approval before executing.
<target_path> — Directory or package to analyze (required).<public_surface> — Optional. Package root barrel that must preserve exports (e.g., src/index.ts).find <target_path> -type f -name "*.ts" -exec wc -l {} + | sort -n — record file count, lines, avg.rg external consumers to distinguish public vs internal exports.index.ts with only re-export chains.create*() → default singleton → forwarding functions where runtime never uses the factory directly.create*(deps) factory.Group files by domain concern (not file type). Rules:
types.ts per directory unless clearly distinct domains exist.create*() factory.Present a before/after table (files, barrels, lines) and await user approval.
After Pass 1, scan the consolidated files for:
rg).Present the list with estimated line savings. After approval, dispatch Genesis. Extract shared helpers to the most downstream common file. Preserve public export symbols via re-export aliases where needed.
After each wave or batch:
pnpm --filter <pkg> typecheck && test && buildrg for deleted file imports and dead references.create*(deps) factories needed for test isolation; remove only proxy wrappers.