Tools

Claude Code の /code-review スキルの使い方と使い分け

  • POST
Claude Code に組み込まれている /code-review スキルの使い方と、似たコマンドとの使い分けを備忘録として残しておく 本記事の内容は、以下のいずれかで裏付けが取れたものだけを記載している 公式ドキュメント (code.claude.com/docs) 公式 CHANGELOG (anthropics/claude-code リポジトリ) 手元の環境で実際に確認した結果 (「手元で確認」と明記) ※ Claude Code は更新頻度が高く、/code-review の挙動も短期間で何度も変わっている 最新の挙動は 参考 の公式ドキュメントを確認すること 環境 OS: macOS Claude Code: 2.1.332 (claude --version で確認) 概要 /code-review は Claude Code のプロンプトで実行する バンドルスキル で、作業中のブランチの変更を読んで 正しさに関するバグ (correctness bugs) を探し、結果を会話に返してくれる どのプランでも利用でき、通常のセッションと同じく利用量 (または API 課金) としてカウントされる /review は /code-review のエイリアス (2.1.223 から) 組み込みのスキルなので、ディスク上に編集可能な SKILL.md は存在しない プロジェクト固有のレビュールールを与えたい場合は CLAUDE.md に書く (レビューは CLAUDE.md に従う) 基本的な使い方 書式 公式のコマンドリファレンスでは以下の書式になっている /code-review [low|medium|high|xhigh|max|ultra] [--fix] [--comment] [--max-findings n|all|default] [pr#|branch|path] 「effort レベル → フラグ → レビュー対象」の順で指定する

Tbls についての Tips

  • POST
Tbls についての Tipsを備忘録として残しておく 環境 OS: macOS 15.3 手順 Tbls について 実際の DB に接続してテーブル定義書を生成してくれるツール 様々な形式(markdown, Excel 等)で生成してくれる ※詳細は Tbls を参照 設定ファイルについて # # @see https://github.com/k1LoW/tbls # # Data Source Name ## @see https://github.com/k1LoW/tbls#dsn # dsn: postgres://<<user>>:<<pass>>@localhost:5432/<<dbname>> # To connect with SSL mode disabled # dsn: postgres://<<user>>:<<pass>>@localhost:5432/<<dbname>>?sslmode=disable # DSN configuration values should be found in the .env file TBLS_DSN # Disable output of schema data # Default is false disableOutputSchema: false format: # Adjust the column width of Markdown format table # Default is false adjust: true # Sort the order of table list and columns # Default is false sort: false # Display sequential numbers in table rows # Default is false number: false # The comments for each table in the Tables section of the index page will display the text up to the first double newline (first paragraph). # Default is false showOnlyFirstParagraph: true # Hide table columns without values # Default is false hideColumnsWithoutValues: false # It can be boolean or array # hideColumnsWithoutValues: ["Parents", "Children"] er: # Skip generation of ER diagram # Default is false skip: false # ER diagram image format (`png`, `jpg`, `svg`, `mermaid`) # Default is `svg` format: mermaid # Add table/column comment to ER diagram # Default is false comment: false # Hide relation definition from ER diagram # Default is false hideDef: true # Show column settings in ER diagram. If this section is not set, all columns will be displayed (default). showColumnTypes: # Show related columns related: true # Show primary key columns primary: true # Distance between tables that display relations in the ER # Default is 1 distance: 1 # ER diagram (png/jpg) font (font name, font file, font path or keyword) # Default is "" ( system default ) font: "" detectVirtualRelations: enabled: true strategy: default # Exclude tables exclude: - goose_db_version docPath: docs/ja/ comments: - table: mst_books tableComment: |- 書籍情報を管理するテーブル columnComments: name: 書籍名 TBLS_DSN=postgres://postgres:postgres@localhost:5432/olbdb?sslmode=disable 出力ファイルの上書きについて # markdown tbls doc --config .tbls.yml --rm-dist # Excel tbls out --config .tbls.yml -t xlsx -o schema.xlsx DSN の設定について ローカルで実施する場合は以下のどちらかで可能