CommandMate: Instructions file for Claude Code

CLAUDE.md

CommandMate CLAUDE.md is an instructions file for Claude Code from Kewton/CommandMate. It costs 4,462 tokens per session, scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is Kewton/CommandMate's own configuration. It tells Claude Code how to work on CommandMate itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything CommandMate configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Kewton/CommandMate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Kewton/CommandMate/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Kewton/CommandMate

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for CommandMate CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kewton/commandmate/claude-md/github.svg)](https://agentmods.dev/instructions/kewton/commandmate/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/kewton/commandmate/claude-md"><img src="https://agentmods.dev/badge/instructions/kewton/commandmate/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for CommandMate CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kewton/commandmate/claude-md"><img src="https://agentmods.dev/badge/instructions/kewton/commandmate/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,462 This file is loaded in full into every session.
When invoked 4,462 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.04462 $0.04462
Opus 5.5 $0.01785 $0.01785
Sonnet 5.5 $0.00892 $0.00892
Haiku 4.5 $0.00446 $0.00446

Measured yesterday against content hash 734e585e90ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 yesterday.

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 · 329 lines

How it starts

The opening of the file, as written. The whole thing — 329 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 15 / React 19
言語 TypeScript(Node.js 22 以上)
スタイル Tailwind CSS 4
データベース 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

恒久 worktree(クリーンアップ対象外)

次の worktree とブランチは常駐用。「worktree を片付けて」と頼まれても削除・ブランチ削除しない。

worktree ブランチ 用途
../commandmate-main main main の参照用
../commandmate-agent-health agent-health-runner 日次確認の Schedule 実行場所(CMATE.md あり。docs/user-guide/agent-health.md)

標準マージフロー

通常フロー

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。運用ルールで、branch protection では強制していない)
  4. CI/CD: 全チェックパス必須

Read the full file on GitHub · 329 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. yesterday Changed · -1 tokens per session 734e585e90ce
  2. 7d ago Changed · -101 lines · -1,295 tokens per session 9c894de84816
  3. 27d ago Changed · +1 lines · +31 tokens per session aaf4b843638b
  4. 1mo ago Changed · +8 lines · +129 tokens per session ba5780ecaad3
  5. 1mo ago Changed · +1 lines · +51 tokens per session 11d5e167248b
  6. 1mo ago Changed · -2 lines · -42 tokens per session bd0011b4e3c9
  7. 1mo 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 (44 stars, last pushed today), licensed MIT. It adds 4,462 tokens to every session, about $0.0178 per session on Opus 5.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.

Related

Other instructions, from other repositories