codex-harness: Skill for Claude Code

.codex/skills/troubleshoot/SKILL.md

troubleshoot is a skill for Claude Code, Codex from Chachamaru127/codex-harness. It costs 62 tokens per session (3,069 once invoked), scanned A, original, MIT.

A troubleshooting guide for diagnosing and repairing software errors, failed tests, build problems, and CI failures. CI is the automated system that checks code changes.

In plain words
What is it for?
Investigating broken interfaces, missing packages, type errors, build failures, runtime problems, connection issues, and failed CI pipelines.
Why use it?
It gives a repeatable path from a reported symptom to logs, environment checks, dependency checks, and a possible fix.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also installed under .codex/. Also seen: mentions Claude Code.

This is Chachamaru127/codex-harness's own configuration. It tells Claude Code and Codex how to work on codex-harness 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 codex-harness configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Chachamaru127/codex-harness. 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/Chachamaru127/codex-harness/main/.codex/skills/troubleshoot/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Chachamaru127/codex-harness

Made for: Claude Code, Codex.

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 troubleshoot

README.md
[![agentmods](https://agentmods.dev/badge/skills/chachamaru127/codex-harness/troubleshoot/github.svg)](https://agentmods.dev/skills/chachamaru127/codex-harness/troubleshoot)
Your own site
<a href="https://agentmods.dev/skills/chachamaru127/codex-harness/troubleshoot"><img src="https://agentmods.dev/badge/skills/chachamaru127/codex-harness/troubleshoot/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 troubleshoot

Your own site · 80×15
<a href="https://agentmods.dev/skills/chachamaru127/codex-harness/troubleshoot"><img src="https://agentmods.dev/badge/skills/chachamaru127/codex-harness/troubleshoot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,069 The whole file, excluding the scripts and references it only reads on demand.
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.00062 $0.03069
Opus 5.5 $0.00025 $0.01228
Sonnet 5.5 $0.00012 $0.00614
Haiku 4.5 $0.00006 $0.00307

Measured 1mo ago against content hash 8afb97123905, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

troubleshoot 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.

.codex/skills/troubleshoot/SKILL.md · 373 lines

How it starts

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

Troubleshoot Skill

問題発生時の診断と解決をガイドするスキル。 VibeCoder が技術的な知識なしで問題を解決できるよう支援します。


トリガーフレーズ

このスキルは以下のフレーズで自動起動します:

  • 「動かない」「エラーが出た」「壊れた」
  • 「うまくいかない」「失敗した」
  • 「なぜ?」「原因は?」
  • "it's broken", "doesn't work", "error", "why?"

概要

問題が発生したとき、VibeCoder は技術的な詳細を理解する必要はありません。 このスキルが自動的に診断し、解決策を提示します。


診断フロー

Step 1: 症状の確認

🔍 何が起きましたか?

簡単に教えてください:

  • 「画面が真っ白」
  • 「ボタンが動かない」
  • 「データが保存されない」

Step 2: 自動診断

# 環境チェック
node -v
npm -v
git status -sb

# エラーログ確認
npm run build 2>&1 | tail -20
npm test 2>&1 | tail -20

# 依存関係チェック
npm ls --depth=0

Step 3: 問題カテゴリの特定

カテゴリ 症状 自動対応
依存関係 Cannot find module npm install
型エラー Type error error-recovery agent
ビルドエラー Build failed error-recovery agent
ランタイム 画面が表示されない ログ分析
環境設定 接続エラー 環境変数確認
CI/CD CI が落ちた、パイプライン失敗 ci スキルに dispatch

CI/CD 問題: CI 障害・テスト失敗・パイプライン問題を検出した場合、ci スキル(skills/ci/)に処理を委譲します。ci スキルは ci-cd-fixer エージェントを使用して自動診断・修正を行います。


問題別対応

「ボタンが動かない / フォームが送信されない / UIが崩れる」

UIの不具合は、画面で再現して観測→修正→再検証するのが最短です。

  1. agent-browser を最優先で使う(インストール: npm install -g agent-browser)
    # ページを開いてスナップショット取得
    agent-browser open https://example.com/target-page
    agent-browser snapshot -i -c
    
    # 要素参照でクリック・入力
    agent-browser click @e1
    agent-browser fill @e2 "test"
    
    • 対象URLで再現 → スナップショット/コンソールを根拠に原因を絞る
    • ソースコード(UI/状態管理/API/バリデーション)を確認して修正
    • 同じ手順で再現しないことを確認
    • 参考: docs/OPTIONAL_PLUGINS.md
  2. agent-browser が使えない場合のフォールバック
    • MCP ブラウザツール(chrome-devtools, playwright)
    • 再現手順(URL/手順/期待値/実際)
    • スクリーンショット/動画
    • コンソールログ/ネットワークログ

「画面が真っ白」

🔍 診断中...

考えられる原因:
1. ビルドエラー
2. JavaScript エラー
3. ルーティング問題

🔧 自動チェック:
- ビルドログを確認... ✅ エラーなし
- コンソールエラーを確認... ❌ エラー発見

💡 解決策:
「直して」と言ってください。自動修正を試みます。

「npm install が失敗」

🔍 診断中...

エラー: `ERESOLVE unable to resolve dependency tree`

🔧 解決策:
1. キャッシュをクリア
2. node_modules を再インストール

実行してもいいですか?(はい/いいえ)

Read the full file on GitHub · 373 lines

Files

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.

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. 1mo ago First seen · 373 lines · 62 tokens per session scan A 8afb97123905

Subscribe to this mod's changes

troubleshoot is a skill published in the GitHub repository Chachamaru127/codex-harness (2 stars, last pushed 8mo ago), licensed MIT. It adds 62 tokens to every session and 3,069 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

repair-github-ci

Fix failing GitHub CI / Actions checks via fixgithubprci and push to the existing PR head, or fix a branch's failing CI via a linked repair worktree.

Tracer-Cloud/opensre · 40 tokens

mcore-create-issue

Investigate a failing GitHub Actions run or job and create a GitHub issue for the failure.

NVIDIA/skills · 26 tokens

debug-task

Diagnose and fix moon tasks that are broken, misconfigured, or behaving unexpectedly. Use this skill when a moon task is failing, not running, skipped, hanging, producing stale or wrong output, cached when it shouldn't be, re-running every time, or missing outputs after a cache hit. Also covers pipeline hangs, tasks…

moonrepo/moon · 203 tokens

operating-github-ci-fixer

Use when the user asks OpenSRE to fix failing GitHub CI, GitHub Actions checks, failing pull request checks, a broken PR branch, or CI on a named branch such as main.

Tracer-Cloud/opensre · 48 tokens

meta-long-running-build-watchdog

Watches a long-running command via tmux, lets sub-agent diagnose failures and propose a fix, and records the diagnosis to memory. Designed for overnight model fine-tunes, CI image builds, or repeated regression suites that may fail intermittently.

opensquilla/opensquilla · 131 tokens

gh-fix-ci

Use when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions; use gh to inspect checks and logs, summarize failure context, draft a fix plan, and implement only after explicit approval. Treat external providers (for example Buildkite) as out of scope and report only the details URL.

foryourhealth111-pixel/Vibe-Skills · 72 tokens