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.
npx skills add karaage0703/ai-assistant-workspace --skill xs-xangi-kaizengit clone --depth 1 https://github.com/karaage0703/ai-assistant-workspaceWrote 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.
[](https://agentmods.dev/skills/karaage0703/ai-assistant-workspace/xs-xangi-kaizen)<a href="https://agentmods.dev/skills/karaage0703/ai-assistant-workspace/xs-xangi-kaizen"><img src="https://agentmods.dev/badge/skills/karaage0703/ai-assistant-workspace/xs-xangi-kaizen/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.
<a href="https://agentmods.dev/skills/karaage0703/ai-assistant-workspace/xs-xangi-kaizen"><img src="https://agentmods.dev/badge/skills/karaage0703/ai-assistant-workspace/xs-xangi-kaizen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00110 | $0.02900 |
| Opus 5.5 | $0.00044 | $0.01160 |
| Sonnet 5.5 | $0.00022 | $0.00580 |
| Haiku 4.5 | $0.00011 | $0.00290 |
Grade A, and why
xs-xangi-kaizen 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.
xangi-kaizen
AIアシスタントで起きた事象を調査し、根拠のある原因と対策を報告する。xangi固有のコマンドは、その環境で利用できる場合だけhelpを確認して使う。
スキルの背景・設計思想・参考文献は README.md を参照。
調査範囲と回復記録
- 「原因を調べて」「対策を教えて」は診断依頼。原因・証拠・対策案を報告し、コード・設定変更や再起動には進まない。
- 「修正して」など変更まで明示された場合は、その範囲で修正・検証へ進む。記録の保存は変更作業の許可とは区別する。
- 失敗後に回復しても、日時・タスク・最初の症状・回復操作・結果・根拠を日次記録に短く残す。認証情報や秘密は記録しない。
- 単発の回復は短い記録に留め、同因反復・結果欠落・データ損失の懸念がある場合は詳細調査へ進む。意図した失敗テストやユーザーの中止は事故と数えない。
原則
- フェーズを飛ばさない — 「事象整理」を飛ばすと検証ポイントを見失う。「横展開」を飛ばすと同じ事故を別箇所で繰り返す
- 想定で終わらせず証拠で詰める — 「たぶん」を提出物にしない。仮説 → 証拠(git log / reflog / mtime / 履歴出力) → 検証
- 真因が特定できるまで実装に進まない — 表面的な対症療法は再発の温床
- コードで推測する前に、事象が出た実際のターンのログを必ず開く — とくに「変な応答が返った」「空だった」「想定と違う出力」系。コードを読んで fallback を見つけると「原因はこれ」と早合点しがちだが、それは「どこで出るか」であって「そのターンで実際に何が起きたか」ではない。先に Phase 2 で対象 bot の session log / tool-trajectory を開き、そのターンの生データを確定してから、コードで「なぜそうなったか」を辿る。
5フェーズのワークフロー
Phase 1: 事象の整理(既知問題チェック含む)
何が起きた / いつ / どこで(チャンネル・対象スキル)。事実を時系列で整理する。
ステップ:
- 引用メッセージ・チャンネル履歴を取得して事象の輪郭をつかむ
xangi tool discord_history --count 30 xangi tool discord_history --channel <ID> --count 50 - 関係するスキル名・cron スケジュール・関連ファイルを箇条書きで把握する
- 過去事例(KEDB = Known Error Database)を必ず確認 —
[NOTES_DIR]の過去 xangi-kaizen ノートを事象キーワードで grep
ヒットした事例は中身を読む。似た症状だけで同因とせず、今回と過去の発生条件・ログ・変更点を比較してから対策の適用可否を判断する。# xangi-kaizen タグの全事例 grep -rl '#xangi-kaizen' [NOTES_DIR] | sort # 対象スキル名・キーワードで絞り込み grep -rl '#<対象スキル名>' [NOTES_DIR] grep -rl 'state\|cron\|<キーワード>' [NOTES_DIR]/*xangi-kaizen* 2>/dev/null
Phase 2: ログ調査
複数のソースを横断的に追う。一つの観点で結論を出さない。
ステップ 0(重要): 調査対象 bot の workspace を特定する。 xangi は bot ごとに別 workspace・別プロセスで動く構成を取りうる。複数 bot を運用している場合、手元の workspace だけを見ても対象 bot の事象は写っていないことがある。
# Docker 運用の場合: bot がどのコンテナか確認
docker ps --format '{{.Names}}\t{{.Image}}'
# コンテナの workspace マウント元を確認
docker inspect <container> --format '{{range .Mounts}}{{.Source}} -> {{.Destination}}{{println}}{{end}}' | grep '/workspace'
特定した <bot-workspace> 配下の logs/sessions/ と logs/tool-trajectory/ を見る。環境変数やチャンネル割り当ては各 bot の .env で確認する。
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago Changed · +11 lines · -4 tokens per session 4ac77ffc63a8
- 2mo ago First seen · 159 lines · 114 tokens per session scan A 50ec24f2e9fa
xs-xangi-kaizen is a skill published in the GitHub repository karaage0703/ai-assistant-workspace (137 stars, last pushed 1mo ago), licensed MIT. It adds 110 tokens to every session and 2,900 once invoked, about $0.0004 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.
xs-xangi-kaizen compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| xs-xangi-kaizenkaraage0703/ai-assistant-workspace | Skill | 137 | 1mo ago | MIT | A | 110 | Claude Code, Codex |
| systematic-debuggingopen-metadata/OpenMetadata | Skill | 16k | today | Apache-2.0 | A | 37 | Claude Code |
| log-error-digestzebbern/claude-code-guide | Skill | 4.7k | 2d ago | MIT | A | 71 | Claude Code, Codex |
| cwv-optimizeradobe/skills | Skill | 321 | today | Apache-2.0 | A | 112 | Claude Code |
| ci-fixersipyourdrink-ltd/bernstein | Skill | 1.2k | today | Apache-2.0 | A | 15 | Claude Code, Codex |
| incident-response-incident-responsermyndharis/antigravity-skills | Skill | 2.0k | yesterday | MIT | A | 36 | Claude Code, Codex |
| diagnosing-missing-recordingsPostHog/posthog | Skill | 41k | today | none | A | 76 | Claude Code, Codex |