swe-research

swe-research is a skill for Claude Code, Codex from SNIKO/agent-skills. It costs 51 tokens per session (1,929 once invoked), scanned A, original, MIT.

An evidence-preserving research step for answering one concrete engineering question about a codebase, dependency, external system, feasibility, behaviour, or impact. It saves the findings in a shared research record for later reuse.

In plain words
What is it for?
Use it to investigate how an API behaves, assess the impact of a proposed change, check a dependency, test feasibility, or answer a repository question whose evidence should be kept.
Why use it?
It prevents agents from repeatedly rediscovering the same facts and keeps evidence separate from product decisions or implementation plans. Sources can include repository inspection, authoritative references, live tests, and small experiments.

Skill for Claude CodeCodex

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

Good fit Use it to investigate how an API behaves, assess the impact of a proposed change, check a dependency, test feasibility, or answer a repository question whose evidence should be kept.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sniko/agent-skills/swe-research
Install

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.

Any agent
npx skills add SNIKO/agent-skills --skill swe-research
Clone the repo
git clone --depth 1 https://github.com/SNIKO/agent-skills

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 swe-research

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sniko/agent-skills/swe-research"><img src="https://agentmods.dev/badge/skills/sniko/agent-skills/swe-research.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,929 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.00051 $0.01929
Opus 5 $0.00026 $0.00964
Sonnet 5 $0.00010 $0.00386
Haiku 4.5 $0.00005 $0.00193

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

Security

Grade A, and why

swe-research 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 8d 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.

skills/swe-research/SKILL.md · 128 lines

How it starts

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

Pipeline

swe-shapeswe-spec → [swe-plan] → [swe-worktree] → swe-executeswe-review. This skill is not one of those stages: it runs at any point, standalone or delegated by any of them, often several times between two stages.

  • This stage: answer one concrete factual question and preserve the evidence.
  • Reads: the repository, external sources, the existing corpus, and any artifact the caller supplies.
  • Writes: a subject report in the shared corpus, plus artifacts.
  • Next: return the answer to whoever asked. The caller decides what to do with it.

Purpose

Answer a concrete engineering question with evidence, and add that evidence to a shared, long-lived research corpus so later changes reuse it instead of rediscovering it.

Research returns evidence to the caller; it does not change product intent, design, or contracts.

Invoke when the answer is worth preserving. Ordinary reading — "what does this function do", "where is this defined" — is not research and needs no artifact. Research is for questions whose answer another change, or another agent, would otherwise have to rediscover: how an external API actually behaves, what the blast radius of a change is, whether a dependency supports something, why a subsystem works the way it does.

Corpus

One shared corpus per repository, organized by subject, not by question:

.swe/research/
  INDEX.md                      # generated — never edit by hand
  <subject-slug>/
    report.md
    artifacts/

There is no per-change research directory. Findings about an API, a subsystem, or a dependency outlive the change that prompted them, and changes in the same repository overwhelmingly ask about the same domain and the same external services. A change references the reports it relied on from its own brief.md and spec.html.

A subject is a thing you can keep learning about: sec-edgar-api, tenant-resolution-middleware, legacy-dto-usage, postgres-jsonb-indexing. It is not a single question. report.md holds a standing summary plus dated findings; artifacts/ holds only what is needed to inspect or reproduce the evidence — probe scripts, captured responses, fixtures, benchmark output, query results. Omit artifacts/ when repository paths and cited sources fully support the answer.

Read the full file on GitHub · 128 lines

Files

What ships with it

3 files 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. 8d ago First seen · 128 lines · 51 tokens per session scan A aac582cd9861

Subscribe to this mod's changes

swe-research is a skill published in the GitHub repository SNIKO/agent-skills (2 stars, last pushed 16d ago), licensed MIT. It adds 51 tokens to every session and 1,929 once invoked, about $0.0003 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

html-artifacts

Author the HTML for a plan artifact, dashboard iframe, or Slack attachment — structure, design plan, available runtime, theming, and craft. Read this before writing HTML for saveplan, outputiframe, or slackattachhtml.

langchain-ai/open-swe · 51 tokens

bootstrap-repo-analysis

First-time analysis of a repository with no prior reviewer outcomes. Crawl historical merged-PR review feedback with the gh CLI (plus any preloaded samples), extract the team's review norms, and synthesize the initial per-repo review-style prompt. Use this for a cold-start repo; use continual-learning instead once the…

langchain-ai/open-swe · 73 tokens

baby-sit

Monitor a GitHub pull request until CI is green, diagnose failures, and rerun only evidence-backed flaky GitHub Actions jobs.

langchain-ai/open-swe · 30 tokens

continual-learning

Nightly refinement of an existing per-repo review-style prompt using this reviewer's own finding outcomes. Read confirmed (resolved-by-commit / thumbs-up) and dismissed (thumbs-down) findings, promote the bug patterns the team actually fixes, demote the false-positive patterns, reconcile against the current prompt…

langchain-ai/open-swe · 89 tokens

oracle

Oracle second-model review: bundle prompts/files, debug, refactor, design.

steipete/oracle · 18 tokens

latent-potential

First-principles, team-of-experts assessment of a software project that surfaces latent potential; underexploited assets, a sharper north star, missing high-leverage capabilities, better framing and messaging. Produces a prioritized, evidence-grounded report with cheap probes, a reframe candidate, a stop-doing list…

petekp/claude-code-setup · 191 tokens