current-situation

A command for turning a bug description from a conversation into a structured GitHub Issue. A GitHub Issue is a shared record of a bug, task, or request.

In plain words
What is it for?
Investigating and registering reproducible bug reports in the CommandMate repository, including checking existing open Issues before creating a new one.
Why use it?
It organizes symptoms, expected and actual behavior, reproduction steps, impact, environment details, logs, and possible duplicate Issues in one report.

Command for Claude Code

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 commands/kewton/commandmate/current-situation
Clone the repo
git clone --depth 1 https://github.com/Kewton/CommandMate

Made for: Claude Code.

Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,334 The whole file, excluding the scripts and references it only reads on demand.
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.00016 $0.01334
Opus 5 $0.00008 $0.00667
Sonnet 5 $0.00003 $0.00267
Haiku 4.5 $0.00002 $0.00133

Measured yesterday against content hash cbe02a9d6f6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

current-situation 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/commands/current-situation.md · 159 lines

How it starts

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

不具合事象の整理とIssue登録

概要

ユーザーとの会話で明らかになった不具合事象を正確に整理し、再現可能な形でGitHub Issueに登録します。会話履歴から事象・再現手順・影響範囲を抽出し、構造化されたバグレポートを作成します。

使用方法

/current-situation [対象の概要説明]

例:

/current-situation Copilot Historyに装飾テキストが残留する件について
/current-situation commandmatedev waitがサブエージェント実行中に誤検出する問題

前提条件

実行内容

あなたは品質保証エンジニアとして、不具合事象を正確に整理しIssueに登録します。

Step 1: 会話履歴からの事象抽出

現在の会話履歴を分析し、以下の情報を抽出・整理します:

抽出項目
項目 説明
事象の要約 何が起きているか(1-2文)
期待される動作 本来どう動くべきか
実際の動作 実際にどう動いたか
再現手順 事象を再現するための具体的な手順
再現頻度 必ず発生 / 高頻度 / 時々 / 不明
影響範囲 どの機能・ユーザーに影響するか
環境情報 OS, ブラウザ, Node.js, CommandMateバージョン, 設定等

Step 2: 関連ログの収集

会話中に言及された実行ログ、エラーメッセージ、stderr出力を収集します。

# 直近のCommandMateサーバーログ
tail -50 logs/server.log 2>/dev/null

# DBの状態確認
sqlite3 db.sqlite "SELECT COUNT(*) FROM chat_messages;" 2>/dev/null

また、関連するソースコードの箇所を特定します。

Step 3: 既存Issueとの重複チェック

# 類似のオープンIssueがないか確認
gh issue list --repo Kewton/CommandMate --state open --json number,title --limit 30

類似Issueが存在する場合はユーザーに報告し、新規作成か既存への追記かを確認します。

Step 4: Issue本文の作成

以下のテンプレートで整理します:

## 事象
${事象の要約}

## 再現手順
1. ${具体的な手順1}
2. ${具体的な手順2}
3. ...

## 期待される動作
${本来の動作}

## 実際の動作
${実際に起きたこと}

## 再現頻度
${必ず / 高頻度 / 時々 / 未確認}

## 環境情報
- **OS**: ${OS情報}
- **Node.js**: ${バージョン}
- **CommandMate**: ${バージョン}
- **ブラウザ**: ${ブラウザ情報}

## ログ・エビデンス

<details>
<summary>実行ログ</summary>

${ログ内容}

</details>

## 影響範囲
${影響するモジュール・機能}

## 関連するソースコード
${事象に関連するファイル・関数の一覧}

## 備考
${会話中に判明したその他の情報}

Step 5: ユーザー確認

作成したIssue本文をユーザーに提示し、確認を求めます。

Step 6: Issue登録

gh issue create --repo Kewton/CommandMate \
  --title "[Bug] ${タイトル}" \
  --body "${Issue本文}"

Step 7: 結果報告

Issue #${NUMBER} を作成しました: ${タイトル}
URL: ${Issue URL}

次のアクション:
- /cause-analysis ${NUMBER} で根本原因分析を実行
- /bug-fix ${NUMBER} でバグ修正を開始

Read the full file on GitHub · 159 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 First seen · 159 lines · 16 tokens per session scan A cbe02a9d6f6b

Subscribe to this mod's changes

current-situation is a command published in the GitHub repository Kewton/CommandMate (39 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 1,334 once invoked, about $0.0001 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.