

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1<!-- i18n-source: CLAUDE.md -->2<!-- i18n-source-sha: a70777e -->3<!-- i18n-date: 2026-04-27 -->45# CLAUDE.md67このファイルは、本リポジトリ内のコードを扱う際の Claude Code(claude.ai/code)向けガイドである。89## プロジェクト概要1011Claude How To は Claude Code 機能のチュートリアルリポジトリである。これは **ドキュメント・アズ・コード** であり、主な成果物は実行可能アプリケーションではなく、番号付きの学習モジュールに整理された Markdown ファイルである。1213**アーキテクチャ:** 各モジュール(01〜10)は Claude Code の特定の機能を、コピー&ペースト可能なテンプレート、Mermaid 図、サンプルとともに解説する。ビルドシステムはドキュメントの品質を検証し、EPUB 電子書籍を生成する。1415## よく使うコマンド1617### pre-commit 品質チェック1819すべてのドキュメントは、コミット前に 5 つの品質チェックを通過しなければならない(pre-commit フックで自動実行される):2021```bash22# pre-commit フックをインストール(毎コミットで実行)23pre-commit install2425# 全チェックを手動で実行26pre-commit run --all-files27```28295 つのチェックは以下のとおり:301. **markdown-lint** — `markdownlint` による Markdown 構造とフォーマット312. **cross-references** — 内部リンク、アンカー、コードフェンスの構文(Python スクリプト)323. **mermaid-syntax** — すべての Mermaid 図が正しくパースされるかを検証(Python スクリプト)334. **link-check** — 外部 URL が到達可能か(Python スクリプト)345. **markdown-rendering** — Markdown が壊れずにレンダリングされるか(Python スクリプト)3536EPUB ビルドは pre-commit フック **ではない** — CI のみで実行される(`.github/workflows/test.yml` の `build-epub` ジョブ)。ローカルの `mmdc` バイナリが必要であり、arm64 で動作するビルドが存在しないためである。3738### 開発環境のセットアップ3940```bash41# uv(Python パッケージマネージャ)をインストール42pip install uv4344# 仮想環境を作成して Python 依存関係をインストール45uv venv46source .venv/bin/activate47uv pip install -r scripts/requirements-dev.txt4849# Node.js ツール(Markdown リンタと Mermaid バリデータ)をインストール50npm install -g markdownlint-cli51npm install -g @mermaid-js/mermaid-cli5253# pre-commit フックをインストール54uv pip install pre-commit55pre-commit install56```5758### テスト5960`scripts/` 内の Python スクリプトはユニットテストを持つ:6162```bash63# 全テストを実行64pytest scripts/tests/ -v6566# カバレッジ付きで実行67pytest scripts/tests/ -v --cov=scripts --cov-report=html6869# 特定のテストを実行70pytest scripts/tests/test_build_epub.py -v71```7273### コード品質7475```bash76# Python コードをリント・整形77ruff check scripts/78ruff format scripts/7980# セキュリティスキャン81bandit -c scripts/pyproject.toml -r scripts/ --exclude scripts/tests/8283# 型チェック84mypy scripts/ --ignore-missing-imports85```8687### EPUB ビルド8889```bash90# 電子書籍を生成(Mermaid 図はローカルの mmdc CLI でレンダリング/ネットワーク不要)91uv run scripts/build_epub.py9293# オプション付き94uv run scripts/build_epub.py --verbose --output custom-name.epub --lang ja95```9697## ディレクトリ構造9899```100├── 01-slash-commands/ # ユーザーが起動するショートカット101├── 02-memory/ # 永続コンテキストの例102├── 03-skills/ # 再利用可能な能力103├── 04-subagents/ # 専門 AI アシスタント104├── 05-mcp/ # Model Context Protocol の例105├── 06-hooks/ # イベント駆動の自動化106├── 07-plugins/ # バンドル機能107├── 08-checkpoints/ # セッションのスナップショット108├── 09-advanced-features/ # プランニング、シンキング、バックグラウンド109├── 10-cli/ # CLI リファレンス110├── scripts/111│ ├── build_epub.py # EPUB ジェネレータ(Mermaid をローカル mmdc でレンダリング)112│ ├── check_cross_references.py # 内部リンクを検証113│ ├── check_links.py # 外部 URL を検証114│ ├── check_mermaid.py # Mermaid 構文を検証115│ └── tests/ # スクリプトのユニットテスト116├── .pre-commit-config.yaml # 品質チェック定義117└── README.md # メインガイド(モジュール索引も兼ねる)118```119120## コンテンツ作成ガイド121122### モジュール構造123番号付きフォルダはいずれも以下のパターンに従う:124- **README.md** — 機能の概要と例125- **サンプルファイル** — コピー&ペースト可能なテンプレート(コマンドは `.md`、設定は `.json`、フックは `.sh`)126- ファイルは機能の複雑さと依存関係に従って整理されている127128### Mermaid 図129- すべての図は正常にパースできること(pre-commit フックで検査)130- EPUB ビルドはローカルの `mmdc` CLI で図をレンダリングする(ネットワークは不要だが `mmdc` が必要)131- フローチャート、シーケンス図、アーキテクチャ可視化に Mermaid を使用する132133### 相互参照134- 内部リンクは相対パスを使う(例:`(01-slash-commands/README.md)`)135- コードフェンスは言語指定が必須(例:` ```bash `、` ```python `)136- アンカーリンクは `#heading-name` 形式137138### リンク検証139- 外部 URL は到達可能であること(pre-commit フックで検査)140- 一時的なコンテンツへのリンクは避ける141- 可能な限りパーマリンクを使用する142143## 主要なアーキテクチャ上のポイント1441451. **番号付きフォルダは学習順序を示す** — 01〜10 のプレフィックスは Claude Code 機能の推奨学習順序を表す。この番号付けは意図的なものなので、アルファベット順に並べ替えてはならない。1461472. **スクリプトはユーティリティであり製品ではない** — `scripts/` の Python スクリプトはドキュメント品質と EPUB 生成を支援するものである。実際のコンテンツは番号付きモジュールフォルダにある。1481493. **pre-commit がゲートキーパー** — PR が承認される前に 5 つの品質チェックがすべて通過しなければならない。CI パイプラインは同じチェックを 2 回目のパスとして実行する。1501514. **Mermaid のレンダリングにはローカルの `mmdc` が必要** — EPUB ビルドは図のレンダリングにローカルの `mmdc` CLI を呼び出す(ネットワークは不要)。ここでビルドが失敗する場合は、`mmdc` が未インストールか、Mermaid 構文エラーが典型的な原因である。EPUB ビルド自体は pre-commit では実行されず、CI のみで実行される。1521535. **これはチュートリアルでありライブラリではない** — コンテンツを追加する際は、明快な解説、コピー&ペースト可能な例、視覚的な図を重視する。価値は概念を教えることにあり、再利用可能なコードを提供することではない。154155## コミット規約156157Conventional Commits 形式に従う:158- `feat(slash-commands): Add API documentation generator`159- `docs(memory): Improve personal preferences example`160- `fix(README): Correct table of contents link`161- `refactor(hooks): Simplify hook configuration examples`162163スコープは該当するフォルダ名に合わせる。164
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| luongnv89/claude-howtoCLAUDE.md · 41k | CLAUDE.md | buildtestlint-formatgit+2 | 88/100 | 9 days ago | |
| luongnv89/claude-howtouk/CLAUDE.md · 41k | CLAUDE.md | setuptestlint-formattypes+5 | 90/100 | 9 days ago | |
| luongnv89/claude-howtovi/CLAUDE.md · 41k | CLAUDE.md | setupbuildtestlint-format+7 | 97/100 | 9 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Adit-Jain-srm/NightmareNetCLAUDE.md · 46 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 14 days ago | |
| stacklok/toolhiveCLAUDE.md · 2.0k | CLAUDE.md | buildteststylearch+4 | 100/100 | 14 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.5k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 14 days ago | |
| microsoft/playwrightCLAUDE.md · 95k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 7 days ago | |
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 14 days ago | |
| tphakala/birdnet-goCLAUDE.md · 1.6k | CLAUDE.md | buildtestlint-formatstyle+8 | 100/100 | today | |
| tyrchen/geektime-bootcamp-aiw7/genslides/backend/CLAUDE.md · 230 | CLAUDE.md | testlint-formatstylearch+6 | 100/100 | 9 days ago | |
| bagisto/bagistoCLAUDE.md · 28k | CLAUDE.md | setupbuildteststyle+5 | 100/100 | 7 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/luongnv89-claude-howto-ja-claude)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.