Agent skill

Xs Xangi Kaizen

by karaage0703 in karaage0703/ai-assistant-workspace

xangi 上で起きた事象(再投稿・cron が回らない・データ不整合・想定外の動作・エラー等)の調査・根本原因分析・横展開・報告を行い、明示依頼時にだけ修正する汎用スキル。「調査して」「原因調べて」「再発防止」「横展開して」「xangi-kaizen」「事象を分析して」で発動。

MITAuto-check: notesProductivity & Automation

Install Xs Xangi Kaizen

skills CLI
$ npx skills add karaage0703/ai-assistant-workspace --skill xs-xangi-kaizen -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install karaage0703/ai-assistant-workspace xs-xangi-kaizen --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/karaage0703/ai-assistant-workspace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/xs-xangi-kaizen .claude/skills/xs-xangi-kaizen && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
xs-xangi-kaizen
GitHub stars
136
Token cost
~1.3k tokens
SKILL.md length
268 words
Files
2
Skills in repo
23
Repo updated
First seen
Licence
MIT

At a glance

xangi 上で起きた事象(再投稿・cron が回らない・データ不整合・想定外の動作・エラー等)の調査・根本原因分析・横展開・報告を行い、明示依頼時にだけ修正する汎用スキル。「調査して」「原因調べて」「再発防止」「横展開して」「xangi-kaizen」「事象を分析して」で発動。

  • Works in 5 steps: 事象の整理(既知問題チェック含む) → ログ調査 → 真因特定 → …
  • Tasks that involve Scheduled and recurring tasks
  • SKILL.md covers 調査範囲と回復記録, 原則, 5フェーズのワークフロー and 調査結果の保存, plus 1 more section
  • Calls git and docker

What it does

Xs Xangi Kaizen is an agent skill from karaage0703/ai-assistant-workspace. xangi 上で起きた事象(再投稿・cron が回らない・データ不整合・想定外の動作・エラー等)の調査・根本原因分析・横展開・報告を行い、明示依頼時にだけ修正する汎用スキル。「調査して」「原因調べて」「再発防止」「横展開して」「xangi-kaizen」「事象を分析して」で発動。

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `README.md`).

It sits in Productivity & Automation, covering Scheduled and recurring tasks. It works with Git. The licence is MIT.

When your agent uses it

  • Tasks that involve Scheduled and recurring tasks

Example prompts

  • “/xs-xangi-kaizen”

Requirements

  • Docker

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. 事象の整理(既知問題チェック含む)
  2. ログ調査
  3. 真因特定
  4. 横展開
  5. 報告と、許可された修正

What it can do on your machine

Read from SKILL.md and the folder at commit c689862. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • docker

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and docker, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Xs Xangi Kaizen loads about 1.3k tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 268 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:65
    trajectory/` を見る。環境変数やチャンネル割り当ては各 bot の `.env` で確認する。

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from karaage0703/ai-assistant-workspace at commit c689862, republished under its MIT licence (© karaage0703). 268 words, ~1,288 tokens.

Download SKILL.mdSave it as .claude/skills/xs-xangi-kaizen/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
xs-xangi-kaizen
description
xangi 上で起きた事象(再投稿・cron が回らない・データ不整合・想定外の動作・エラー等)の調査・根本原因分析・横展開・報告を行い、明示依頼時にだけ修正する汎用スキル。「調査して」「原因調べて」「再発防止」「横展開して」「xangi-kaizen」「事象を分析して」で発動。

xangi-kaizen

AIアシスタントで起きた事象を調査し、根拠のある原因と対策を報告する。xangi固有のコマンドは、その環境で利用できる場合だけhelpを確認して使う。

スキルの背景・設計思想・参考文献は README.md を参照。

調査範囲と回復記録

  • 「原因を調べて」「対策を教えて」は診断依頼。原因・証拠・対策案を報告し、コード・設定変更や再起動には進まない。
  • 「修正して」など変更まで明示された場合は、その範囲で修正・検証へ進む。記録の保存は変更作業の許可とは区別する。
  • 失敗後に回復しても、日時・タスク・最初の症状・回復操作・結果・根拠を日次記録に短く残す。認証情報や秘密は記録しない。
  • 単発の回復は短い記録に留め、同因反復・結果欠落・データ損失の懸念がある場合は詳細調査へ進む。意図した失敗テストやユーザーの中止は事故と数えない。

原則

  1. フェーズを飛ばさない — 「事象整理」を飛ばすと検証ポイントを見失う。「横展開」を飛ばすと同じ事故を別箇所で繰り返す
  2. 想定で終わらせず証拠で詰める — 「たぶん」を提出物にしない。仮説 → 証拠(git log / reflog / mtime / 履歴出力) → 検証
  3. 真因が特定できるまで実装に進まない — 表面的な対症療法は再発の温床
  4. コードで推測する前に、事象が出た実際のターンのログを必ず開く — とくに「変な応答が返った」「空だった」「想定と違う出力」系。コードを読んで fallback を見つけると「原因はこれ」と早合点しがちだが、それは「どこで出るか」であって「そのターンで実際に何が起きたか」ではない。先に Phase 2 で対象 bot の session log / tool-trajectory を開き、そのターンの生データを確定してから、コードで「なぜそうなったか」を辿る。

5フェーズのワークフロー

Phase 1: 事象の整理(既知問題チェック含む)

何が起きた / いつ / どこで(チャンネル・対象スキル)。事実を時系列で整理する。

ステップ:

  1. 引用メッセージ・チャンネル履歴を取得して事象の輪郭をつかむ
    bash
    xangi tool discord_history --count 30
    xangi tool discord_history --channel <ID> --count 50
  2. 関係するスキル名・cron スケジュール・関連ファイルを箇条書きで把握する
  3. 過去事例(KEDB = Known Error Database)を必ず確認 — [NOTES_DIR] の過去 xangi-kaizen ノートを事象キーワードで grep
    bash
    # 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 の事象は写っていないことがある。

bash
# 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 で確認する。

観点コマンド/対象
state ファイル[STATE_DIR]/*_state.json、references/*_last_check.json 等の中身と stat -c "%y %n"
git 履歴git log -p --all -- <path>、git show <commit>:<path>
git refloggit reflog --since=<時刻>(ブランチ切替・rebase・reset の追跡)
cron / schedulexangi tool schedule_list 2>&1 | grep -B2 -A3 <キーワード>
セッションログ(生応答)対象 bot の <bot-workspace>/logs/sessions/*.jsonl。事象の出たチャンネル ID で grep -rl <channelId> → 該当ファイルの当該ターンを開き、assistant result を確認
tool-trajectory ログ<bot-workspace>/logs/tool-trajectory/*.jsonl。tool search / loop / drift / stream buffer / cache などのイベントが時系列で残る
該当スクリプト/コードskills/<name>/scripts/、または対象リポのソース。ログで事象を確定した後に「なぜそうなるか」を辿る
投稿履歴xangi tool discord_history --channel <ID> --count 30

「これしか見ていない」状態で次フェーズに行かない。

Phase 3: 真因特定

「なぜ」を最低3回掘る。 誰が読んでも納得できる説明になるまで掘り続ける。

仮説 → 証拠 → 検証のサイクル。仮説が間違っていたら戻る。証拠が不足する場合は原因未確定として報告する。

patchが適用できない場合は、期待した本文と現ファイルを再比較する。表記差・読み取り後の変更・別hunkの失敗を区別し、mtime/hashや他プロセスの更新証拠がある場合だけ「競合」と報告する。

例:

  • 仮説1: cron が動いてなかった → 投稿履歴で確認 → ✗(cron は動いてた)
  • 仮説2: state がロールバックされた → reflog で pull --rebase / checkout 多発を確認 → ✓
  • なぜロールバックした? → state が git 管理されてた + 開発作業の git 操作頻発 → ✓

「ここまで掘れば再発防止策が書ける」と思える深さまで掘る。一段で止まると対症療法になる。

応答内容系(変な出力・空・drift)はコードからの推測で終わらせない。「コードのこの fallback だ」で止めず、Phase 2 で開いた当該ターンの生ログと突き合わせて確定する。ログで確定するまでは報告に「ここは未確認の推測」と明示する。

Phase 4: 横展開

同じパターンの他ファイル/問題を網羅検索する。1件直しても、別の場所で同じ事故が起きうる。

bash
# ランタイム状態ファイル系を全部洗い出し
git ls-files | grep -iE "state|cache|last_check|cookie|credential|\.pid$"

# 巨大ログ系(リポジトリ肥大化のリスク)
git ls-files | xargs -I {} stat -c "%s %n" {} 2>/dev/null | sort -rn | head -20

# 最近書き換えられた tracked ファイル(書き換え頻度 + tracked = 罠)
git ls-files | xargs -I {} stat -c "%y %n" {} 2>/dev/null | sort -r | head -30

事象の根本パターンに沿って検索クエリを組み立てる。「state ファイルが git ロールバックされた」が真因なら「他に git 管理されてる runtime state は無いか」を網羅する。

Phase 5: 報告と、許可された修正

診断依頼なら原因・証拠・対策案・未確認事項を報告して完了する。変更依頼の場合だけ以下へ進む。

実装方針:

  • Git同期・外部操作はユーザーの許可範囲と対象リポジトリの運用ルールに従う
  • 他者・チームと共有しているリポ / 公開テンプレートリポ → PR フロー
  • ランタイム state / cache / log は 絶対に git 管理しない(.gitignore に追加)

報告フォーマット:

  • 背景 — 何が起きたか(時系列)
  • 原因 — なぜ起きたか(証拠付き、なぜを3段以上)
  • 対策 — 何をしたか(変更ファイル・コミット・PR)
  • テスト結果 — 動作確認の証拠(コマンド出力・履歴)
  • 残課題 — 横展開で保留したもの・観察期間が必要なもの

調査結果の保存

詳細レポートは [NOTES_DIR] にタグ付きで保存する。事例は積み重ねていく(次回の調査で Phase 1 の KEDB として効く)。

  • ファイル名: [NOTES_DIR]YYYYMMDD_xangi-kaizen_<事象タイトル>.md
  • フロントマター:
    yaml
    ---
    title: <事象タイトル>
    date: YYYY-MM-DD
    type: incident
    tags:
      - xangi-kaizen
      - incident
      - <対象スキル名>
    ---
  • 保存は xs-note-taking スキルに従う(命名規則・フロントマター・同期手順を活用)

過去事例を参照したいときは:

bash
grep -rl '#xangi-kaizen' [NOTES_DIR] | sort

詳細経緯はノートや knowledge/lessons_archive.md に残し、繰り返し使う判断基準だけを短くAGENTS.mdへ反映する案を示す。調査だけの依頼で行動ルールを勝手に書き換えない。

使用例

xs-xangi-kaizen
xangi-kaizen でこの事象を調査して
原因調べて
再発防止策を立てて
調査して、横展開もしてほしい
事象を分析して

© karaage0703, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/xs-xangi-kaizen of karaage0703/ai-assistant-workspace.

  • SKILL.md
  • README.md

Open the folder on GitHubat commit c689862

Compare with similar skills

Xs Xangi Kaizen next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Xs Xangi Kaizen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xs Xangi Kaizen this skillkaraage0703/ai-assistant-workspace136—~1.3kAutomated safety check: NotesMIT
Autonomous Devbkywksj/knowledge-base330—~573Automated safety check: NotesCustom licence
RenderLeoYeAI/openclaw-master-skills2.2k—~4.8kAutomated safety check: PassMIT
Gh Issuestrpc-group/trpc-agent-go1.9k8 repos~8.7kAutomated safety check: PassApache-2.0
Dependency Watchtelegramdesktop/tdesktop33k1 repos~2.2kAutomated safety check: PassGPL-3.0
Cron Opsczl9707/build-your-own-openclaw1.9k—~593Automated safety check: PassMIT

Similar skills

  • Autonomous Dev

    bkywksj/knowledge-base

    自主连续开发方法论(Codex 版)。把一个项目按「每轮一个最小可提交单元」的方式推进到完成: 每轮读真相源 → 选下一个未做项 → 做一个最小单元 → 过验证门 → 记录勾选 → 最小提交 → 报进度。

    330 GitHub stars~573 tokensUpdated yesterday
    Productivity & AutomationAuto-check: notes
  • Render

    LeoYeAI/openclaw-master-skills

    Deploy and operate apps on Render (Blueprint + one-click Dashboard deeplink, same flow as Codex render-deploy).

    2.2k GitHub stars~4.8k tokensUpdated 2 mo ago
    Productivity & AutomationAuto-check passed
  • Gh Issues

    trpc-group/trpc-agent-go

    Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments.

    1.9k GitHub starsUsed in 8 repos~8.7k tokens
    Agent WorkflowsAuto-check passed
  • Dependency Watch

    telegramdesktop/tdesktop

    Audit Telegram Desktop dependencies on freshly fetched origin/dev for releases and security fixes, including upstream lag and backport candidates in patched forks.

    33k GitHub starsUsed in 1 repo~2.2k tokens
    Productivity & AutomationAuto-check passed
  • Cron Ops

    czl9707/build-your-own-openclaw

    Create, list, and delete scheduled cron jobs. An agent skill from czl9707/build-your-own-openclaw.

    1.9k GitHub stars~593 tokensUpdated 3 mo ago
    Productivity & AutomationAuto-check passed
  • Wp Wpcli And Ops

    Automattic/agent-skills

    A skill your agent uses when working with WP-CLI (wp) for WordPress operations: safe search-replace, db export/import, plugin/theme/user/content management, cron, cache flushing, multisite, and…

    211 GitHub starsUsed in 2 repos~988 tokens
    Productivity & AutomationAuto-check passed

More from karaage0703/ai-assistant-workspace

All 23 skills in this repo
  • Xs Arxiv

    karaage0703/ai-assistant-workspace

    arXiv論文の検索・トレンド発見・詳細分析を行う統合スキル。興味度スコアでユーザーに刺さる論文を自動選定。PDF全文読み込み・Notion蓄積対応。「arXivチェックして」「論文検索」「論文分析して」で使用。

    136 GitHub stars~1.4k tokensUpdated 18 days ago
    Auto-check passed
  • Xs Multi Agent

    karaage0703/ai-assistant-workspace

    異なるproviderのAI(Codex/Claude/Grok/Cursor/Antigravity等)から独立意見を集め、共通論点で相互検討して統合する。最初に利用可能エージェントを検出する。「みんなで考えて」「マルチエージェントで分析して」「複数のAIでレビューして」と言われたら使う。

    136 GitHub stars~1.8k tokensUpdated 18 days ago
    Auto-check passed
  • Xs Podcast

    karaage0703/ai-assistant-workspace

    ポッドキャストの音声取得・文字起こし・まとめを行う統合スキル。「ポッドキャストまとめて」「音声配信をダウンロード」「Podcastの内容を教えて」で使用。

    136 GitHub stars~557 tokensUpdated 18 days ago
    Auto-check passed
  • Xs Skill Creator

    karaage0703/ai-assistant-workspace

    スキルの作成・改善を行うスキル。既存スキルの分析から抽出したパターンとテンプレートで統一感のあるスキルを効率的に作成。スキルを作りたい、新しいスキルを追加したい、スキルを改善したい、SKILL.mdを書きたい場合に使用。

    136 GitHub stars~1k tokensUpdated 18 days ago
    Auto-check passed
  • Xs Bridge Ideas

    karaage0703/ai-assistant-workspace

    ワークスペース内の遠い知識や活動をつないで、新しいアイデアを生成する思考支援スキル。過去記事・メモ・発信資産から企画や実装ネタを出したい時に使用。「アイデア出して」「知識をつないで」「一見関係ないものをつないで」で使用。

    136 GitHub stars~487 tokensUpdated 18 days ago
    Auto-check passed
  • Xs Calendar

    karaage0703/ai-assistant-workspace

    カレンダー予定を確認するスキル。ICS(Googleカレンダー等)と手動追加(画像読み取り)を統合。「今日の予定」「明日の予定」「カレンダー画像送って」「スケジュール確認」で使用。/calendar で発動。

    136 GitHub stars~441 tokensUpdated 18 days ago
    Auto-check passed

Works with

Questions about Xs Xangi Kaizen

What does Xs Xangi Kaizen do?

xangi 上で起きた事象(再投稿・cron が回らない・データ不整合・想定外の動作・エラー等)の調査・根本原因分析・横展開・報告を行い、明示依頼時にだけ修正する汎用スキル。「調査して」「原因調べて」「再発防止」「横展開して」「xangi-kaizen」「事象を分析して」で発動。. Xs Xangi Kaizen is an agent skill from karaage0703/ai-assistant-workspace.

When should I use Xs Xangi Kaizen?

Xs Xangi Kaizen fits situations like: tasks that involve Scheduled and recurring tasks.

How do I install Xs Xangi Kaizen in Claude Code?

Run `npx skills add karaage0703/ai-assistant-workspace --skill xs-xangi-kaizen -a claude-code`. Or copy the skill folder (skills/xs-xangi-kaizen in karaage0703/ai-assistant-workspace) into .claude/skills/xs-xangi-kaizen in your project. Claude Code loads it when a task matches its description.

How do I install Xs Xangi Kaizen in Codex?

Run `npx skills add karaage0703/ai-assistant-workspace --skill xs-xangi-kaizen -a codex`. Or copy the skill folder (skills/xs-xangi-kaizen in karaage0703/ai-assistant-workspace) into .agents/skills/xs-xangi-kaizen in your project. Codex loads it when a task matches its description.

Can I use Xs Xangi Kaizen in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add karaage0703/ai-assistant-workspace --skill xs-xangi-kaizen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xs-xangi-kaizen, .gemini/skills/xs-xangi-kaizen, .github/skills/xs-xangi-kaizen and .opencode/skills/xs-xangi-kaizen in your project.

What does Xs Xangi Kaizen need to run?

Going by SKILL.md and its folder, Xs Xangi Kaizen needs the command-line tools its instructions call (git and docker). Our summary lists: Docker.

Does Xs Xangi Kaizen access the network?

SKILL.md contains no URLs. Its commands use git and docker, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Xs Xangi Kaizen safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Xs Xangi Kaizen use?

Xs Xangi Kaizen is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Xs Xangi Kaizen use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Xs Xangi Kaizen?

Skills that share tags, products or a category with Xs Xangi Kaizen: Autonomous Dev (bkywksj/knowledge-base, 330 stars), Render (LeoYeAI/openclaw-master-skills, 2.2k stars), Gh Issues (trpc-group/trpc-agent-go, 1.9k stars) and Dependency Watch (telegramdesktop/tdesktop, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xs Xangi Kaizen?

karaage0703 (a GitHub user) maintains it in karaage0703/ai-assistant-workspace, which has 136 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on September 23, 2026.

Source: karaage0703/ai-assistant-workspace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.