home/dot_claude/skills/fix/SKILL.md
linter を実行し、解決法が明確な指摘を自動修正する。「fix して」「lint エラーを直して」と言われたときに使う。
npx skillsauth add applejxd/dotfiles fixInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
プロジェクトの linter を実行し、解決法が明確な指摘のみ自動修正する。
プロジェクトルートの設定ファイルから言語を判定し、言語ごとのガイドを読み込む:
| 言語 | 判定ファイル | 参照ガイド |
| ------ | ------------- | ----------- |
| Python | pyproject.toml, setup.py, setup.cfg | ${CLAUDE_SKILL_DIR}/references/python.md |
| JS/TS | package.json, tsconfig.json | ${CLAUDE_SKILL_DIR}/references/js-ts.md |
| Go | go.mod | ${CLAUDE_SKILL_DIR}/references/go-rust.md |
| Rust | Cargo.toml | ${CLAUDE_SKILL_DIR}/references/go-rust.md |
| C++ | CMakeLists.txt, compile_commands.json | ${CLAUDE_SKILL_DIR}/references/cpp.md |
複数の言語が該当する場合はすべてのガイドを読み込み、順に実行する。
各言語ガイドに従い、自動修正オプション付きで linter・formatter を実行する。
自動修正後に再度 linter を実行し、残った指摘を分類する:
## /fix 実行結果
### 実行した linter
- <linter名> <バージョン>
### 自動修正
- <N> 件の指摘を自動修正
### 手動修正
- <ファイル:行> <ルール>: <修正内容>
### 未対応(要判断)
- <ファイル:行> <ルール>: <指摘内容>(理由: ...)
### 修正ファイル一覧
- <ファイルパス>
tools
GitHub issue の CRUD・コメント・ラベル・assignee 操作と、GitHub Projects v2 のカスタムフィールド更新を行う。「issue 作って」「issue を Project に入れて」「Project のステータスを In Progress にして」等で使う。標準操作は github MCP、Projects v2 は gh CLI を使い分ける。
tools
Claude Code / Copilot CLI 両対応の hook を作成・検証する。「hook を作って」「ツール実行をブロックしたい」「hook が動かない」「PreToolUse / Stop を書いて」「Claude の hook を Copilot で動かしたい」と言われたときに使う。
content-media
Solution design assistant
development
Python test generation assistant