xp-harness: Skill for Claude Code

.apm/skills/research-spike/SKILL.md

research-spike is a skill for Claude Code, Codex from sei-newbear/xp-harness. It costs 132 tokens per session (3,045 once invoked), scanned A, original, MIT.

A structured research and experiment process for answering questions that block an important decision. It starts by agreeing on the decision to support, tests possible explanations including counterevidence, and reports a conclusion that can guide the next step.

In plain words
What is it for?
Use it for technical investigations, feasibility checks, and short experiments whose results will affect a design, estimate, or other decision. Routine background checking that is immediately consumed is outside its scope.
Why use it?
It prevents research from stopping after one supporting source or becoming an unfocused collection of facts. It turns investigation into evidence that can safely support a choice or estimate.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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

Reuse

Borrowing it

Nothing to install: this file belongs to sei-newbear/xp-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/sei-newbear/xp-harness/main/.apm/skills/research-spike/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/sei-newbear/xp-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 research-spike

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sei-newbear/xp-harness/research-spike"><img src="https://agentmods.dev/badge/skills/sei-newbear/xp-harness/research-spike.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,045 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.00132 $0.03045
Opus 5 $0.00066 $0.01522
Sonnet 5 $0.00026 $0.00609
Haiku 4.5 $0.00013 $0.00304

Measured 9d ago against content hash 6cfeda4867d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

research-spike 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 9d 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.

.apm/skills/research-spike/SKILL.md · 141 lines

How it starts

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

調査スパイク — 判断の危険を潰すまで走り切る

なぜこの skill があるか

調査は成果物が情報そのもので、次の判断や工程に渡って初めて価値になる。ふつうのストーリーと同じ型で扱うと、「問いに答えた」で完了にしてしまう。

そして「問いに答える」ために調べると、最初に思いついた枠を一つ裏付けたところで手が止まる。枠の外で判断が壊れていても気づけない。

この skill の核は「問いに答える」ではなく「判断の危険を潰す」。

調査そのものが小さな一巡になっている。計画を立てて合意するまでは依頼者と対話し、調べ出したら自走し、最後に報告する。

扱う調査、扱わない調べ物

扱うのは、それ自体が成果物になる調査。 ある問いを潰さないと次の判断・見積もりができない、というときの調べ物。

下調べは止めない。 どちらのモードで進めるかを決めるための情報集めや、手を動かす流れの中でその場で消費される確認は、この skill の対象ではない。そのまま進めてよい。

調査の計画を立てて合意する

ここは対話。要件を固めるときと同じ深さで、依頼者と認識を揃えてから調べ始める。対話の進め方そのものは dialogue-principles を呼ぶ。

計画に置くものは 3 種類あって、埋め方が違う。

  • 土台 — 依頼者に聞いて埋める。埋まるまで確かめどころを建てない
  • 確かめどころ — こちらが出し切って、依頼者に足してもらう
  • 持ち越してよいもの — この調査の結果を誰が使うか。分からなければ持ち越す。ここで止めない

土台 — 幹から枝へ聞く

いきなり枝葉を聞くと、答えは返ってくるが的がずれる。この順で進む。

  1. 何を決めるための調査かを聞く(依頼文に書かれていれば、そこから読む)
  2. ゴールの像を返す — 「こういうことがわかればいいですか」と自分の理解を言葉にして、直してもらう。ここだけは聞く工程ではないので、依頼文がどれだけ詳しくても省けない
  3. 既に調べたこと、分かっていることを聞く
  4. 動かせない条件・やってはいけないことを当て切る — 併せて、ゴールに向けて他に足りないものも一つずつ聞く

ゴールの像は往復のたびに変わる。変わったら、像を返し直すところまで戻る。

なぜこの順か。 何を決めるためかが無いと的が定まらない。ゴールの像を返さないと、以降の問いが全部ずれた的に向く。既に調べたことを聞かないと、相手が知っていることを発見として差し出すことになる(調べる範囲もそのぶん減らせない)。制約はゴールが定まる前に開いて聞いても的が無く答えようがないが、遅れて出てくると組んだ枠ごと崩れるので、定まった直後に当てる。

問い方。 選択肢を作って選ばせない。選択肢を出した時点で枠はこちらのものになり、依頼者は実態が外にあっても「最も近いもの」を選ぶしかなくなる。一度に何問も出さず、一つ聞いて、返ってきたものを踏まえて次を聞く。往復は増えるが、外れた土台の上に建てた計画を建て直すより速い。

確かめどころ — 出し切って、ファイルに見せる

土台が埋まったら、ゴールの像を確かめどころに割り、確かめどころごとに 何が確かめられていればその判断をしてよいか まで降ろす。これが完了の基準になる。docs/working/<題名>/調査計画.md に書く。

確かめどころを自分一人の想像力で決めないため。頭の中で意図を揃えても依頼者には見えないので、足しようがない。出し切ってから「他にありますか」と聞ける形にする。

落ちるのはたいていここ。調べる側は自分が思いついた角度しか計画に入れられず、現場の実態は依頼者の側が持っている。出さないままだと、後から指摘されて初めて穴が空く。

書き方は「壊れる道」ではなく「何が確かめられていればよいか」で。判断が外れる形は壊れることだけではない。前提が違った、情報が古かった、規模が変わると成り立たない、も同じくらい起きる。破壊の語彙で書くと、そこが視界から落ちる。

自走に入ってよいのは、合意を受け取ってからだけ

合意はこちらが宣言するものではない。「合意できました」「計画を確定しました」と自分で言って進まない。判子を自分で押せる形になっていると、揃っていなくても通る。

走り出す直前に、前段をもう一度通す。ひとつでも当てはまるなら、まだ入らない。

  • 計画そのものに同意する言葉を、依頼者から受け取っていない — 別の論点への回答・沈黙・話題の移動を、同意に読み替えない
  • ゴールの像に、依頼者の直しが入っていない — 自分の中で像が固まったことを、合意と読み替えない
  • 土台 — 何を決めるための調査か・既に調べたこと・動かせない条件 — に、依頼者の言葉で埋まっていないものが残っている
  • 依頼者が食い違いを表明した項目が残っている — 自分の判断で「後で決める」に変換して通さない
  • 計画をファイルに出して、依頼者に見せていない

Read the full file on GitHub · 141 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. 9d ago First seen · 141 lines · 132 tokens per session scan A 6cfeda4867d9

Subscribe to this mod's changes

research-spike is a skill published in the GitHub repository sei-newbear/xp-harness (9 stars, last pushed 1mo ago), licensed MIT. It adds 132 tokens to every session and 3,045 once invoked, about $0.0007 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-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens