CommandMate CLAUDE.md

A project guide for Claude Code, describing CommandMate’s purpose, technology stack, branch rules, and where different documentation belongs.

In plain words
What is it for?
Use it when working on CommandMate, a tool for managing Git worktrees and Claude CLI or tmux sessions, especially when adding features, fixing bugs, or updating project documentation.
Why use it?
It keeps the agent’s instructions brief and consistent while preventing detailed module notes and issue history from making the main guide too large or failing checks.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/kewton/commandmate/claude-md
Clone the repo
git clone --depth 1 https://github.com/Kewton/CommandMate
Per session 5,589 This file is loaded in full into every session.
When invoked 5,589 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.05589 $0.05589
Opus 5 $0.02795 $0.02795
Sonnet 5 $0.01118 $0.01118
Haiku 4.5 $0.00559 $0.00559

Measured 2d ago against content hash 1522dae1a44f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

CommandMate CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 422 lines

How it starts

The opening of the file, as written. The whole thing — 422 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

このドキュメントはClaude Code向けのプロジェクトガイドラインです。


⚠️ 重要: モジュール詳細を CLAUDE.md に書かないこと

  • モジュールの実装詳細・関数シグネチャ・Issue 履歴は 必ず docs/module-reference.md に記載する(CLAUDE.md には書かない)
  • CLAUDE.md は brief overview のみ。各 module 説明は 1 行 100 文字以内 を厳守
  • Issue #N で…追加 のような履歴 narrative を CLAUDE.md に append しない。履歴は git log / CHANGELOG / PR description で辿る
  • docs/module-reference.md も append-only で肥大化させない(既存行の更新を優先する)
  • 違反すると CI でブロックされる(## 品質担保 の CLAUDE.md size check 参照)

プロジェクト概要

基本情報

技術スタック

カテゴリ 技術
フレームワーク Next.js 14
言語 TypeScript
スタイル Tailwind CSS
データベース SQLite (better-sqlite3)
テスト Vitest (unit/integration), Playwright (e2e)

ブランチ構成

ブランチ戦略

main (本番) ← PRマージのみ
  │
develop (受け入れ・動作確認)
  │
feature/*, fix/*, hotfix/* (作業ブランチ)

命名規則

ブランチ種類 パターン
機能追加 feature/<issue-number>-<description> feature/123-add-dark-mode
バグ修正 fix/<issue-number>-<description> fix/456-fix-login-error
緊急修正 hotfix/<description> hotfix/critical-security-fix
ドキュメント docs/<description> docs/update-readme

標準マージフロー

通常フロー

feature/* ──PR──> develop ──PR──> main
fix/*     ──PR──> develop ──PR──> main
hotfix/*  ──PR──> main (緊急時のみ)

PRルール

  1. PRタイトル: <type>: <description> 形式
    • 例: feat: add dark mode toggle
    • 例: fix: resolve login error
  2. PRラベル: 種類に応じたラベルを付与
    • feature, bug, documentation, refactor
  3. レビュー: 1名以上の承認必須(main向けPR)
  4. CI/CD: 全チェックパス必須

コミットメッセージ規約

<type>(<scope>): <subject>

<body>

<footer>
type 説明
feat 新機能
fix バグ修正
docs ドキュメント
style フォーマット(機能変更なし)
refactor リファクタリング
test テスト追加・修正
chore ビルド・設定変更
ci CI/CD設定

Read the full file on GitHub · 422 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 422 lines · 5,589 tokens per session scan A 1522dae1a44f

Subscribe to this mod's changes

CommandMate CLAUDE.md is an instructions file published in the GitHub repository Kewton/CommandMate (39 stars, last pushed 2d ago), licensed MIT. It adds 5,589 tokens to every session, about $0.0279 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.