agentleFS
jam7jam7/ai-dev-gates/.claude/skills/triage/SKILL.md

triage

Skill0 starsChanged 3 months agoMITView on GitHub

Triage lit test failures from check-* logs. Extracts FAIL/XPASS/UNRESOLVED/TIMEOUT, diffs against a baseline or previous run, investigates new failures, and produces a classified report. Use when the user asks to triage/analyze test results, check a lit log, or compare test runs.

189 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use writing-beats, setup-matt-pocock-skills and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LesaniSkill

    writing-beats

    Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.

    Also in 66 projects that use this

  • GoogleSkill

    setup-matt-pocock-skills

    Configure this repo for the engineering skills — set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

    Also in 167 projects that use this

  • liufeng1976Skill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 42 projects that use this

  • SethGammonSkill

    ascii-diagram

    Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification.

    Also in 4 projects that use this

  • simo97Skill

    migrate-to-shoehorn

    Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.

    Also in 68 projects that use this

  • LesaniSkill

    writing-shape

    Take a markdown file of raw material and shape it into an article through a conversational session — drafting candidate openings, growing the piece paragraph by paragraph, arguing about format (lists, tables, callouts, quotes) at each step. Use when the user has a pile of notes, fragments, or a rough draft and wants help turning it into something publishable.

    Also in 63 projects that use this

  • +1 more from Lesani

The file

Files
SKILL.md

lit テスト失敗トリアージ

対象: llvm-lit ベースのテストログ (make check-llvm / check-clang / ninja check-* など)。 どのプロジェクトでも使える。プロジェクト固有の事情 (既知の失敗、方針) は各プロジェクトの CLAUDE.md や test-baselines/ を参照する。

ツール

parse-lit-log.py — この SKILL.md と同じディレクトリにある (stdlib のみ、Python 3.6+)。 以下 $SKILL はこの Skill のディレクトリを指す (ホーム導入なら ~/.claude/skills/triage、 プロジェクト導入なら <repo>/.claude/skills/triage)。

python3 $SKILL/parse-lit-log.py summary <log>...     # 集計+失敗一覧
python3 $SKILL/parse-lit-log.py fails <log>...       # 失敗名のみ (機械可読)
python3 $SKILL/parse-lit-log.py diff <old> <new>     # NEW/FIXED/STILL
python3 $SKILL/parse-lit-log.py detail <log> [pat]   # 失敗の詳細ブロック
python3 $SKILL/parse-lit-log.py save <log> <base>    # ベースライン保存
python3 $SKILL/parse-lit-log.py check <log> <base>   # ベースライン比較

check / diff は NEW failure があると exit 1 を返す (スクリプトからの利用向け)。

手順

  1. 抽出: summary でログ全体の状況を把握する。巨大ログを直接 Read しない。
  2. 比較基準の確定:
    • プロジェクトに test-baselines/ があれば最新ベースラインと check
    • 前回のログが指定されていれば diff
    • どちらも無ければ全失敗を NEW として扱い、ベースライン作成を提案する
  3. NEW failure の調査 (1 件ずつ):
    • detail <log> <テスト名の一部> で失敗詳細を取得
    • テストファイル本体を読み、何を検証するテストか把握する
    • git log --oneline -10 -- <テストファイル> <関連ソース> で最近の変更を確認
    • 分類する:
      • regression: 最近の自分/マージの変更が原因
      • test-update-needed: 実装は正しいがテストの期待値が古い
      • environment: ツールチェーン/環境依存 (パス、バージョン、並列数)
      • flaky: タイミング依存・再実行で通る可能性
      • pre-existing: ベースライン漏れの既知問題
  4. 報告: 以下の表で出す。
テスト種別分類原因 (推定)推奨アクション確度
  1. ベースライン更新: save の実行は必ずユーザー確認を取ってから。 NEW failure を調査せずにベースラインへ入れて隠さない。

ルール

  • ログ・テスト・ソースの読み取りは自由に行ってよい。ビルドやテストの再実行 (make / ninja / apptainer 等) はプロジェクトのルールに従い、必要ならユーザーに確認する。
  • 原因が確定できない場合は「確度: 低」と明記し、確認に必要な次の一手 (実行すべきコマンド) を添える。
  • FAIL 0 件のときも summary の数値 (Passed/Unsupported 等) を報告し、前回と大きな乖離が ないか (テスト数の急減など) を確認する。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.