light-research
Skill1 starsChanged 12 days agoMITView on GitHub
Light research over a large scope (auditing a whole repository, rereading many documents) at reduced token cost, by splitting the work into batches read by Haiku subagents. Use when a request is vague ("audit all the code", "read all the documents") and the scope exceeds about 30 files or 50,000 estimated tokens.
- Reads credentials
In this repository12 other files it gives its agents.
- kit/CLAUDE.mdCLAUDE.md
- apple-designSkill
- geo-seoSkill
- mac-controlSkill
- media-downloadSkill
- promo-codesSkill
- repo-showcaseSkill
- site-designSkill
- skill-forgeSkill
- unslopSkill
- video-transcriptSkill
- web-fetchSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Ask before acting: Write: "Do you want light research by Haiku subagents to reduce tokens?"
- Very specific: line 19
Measure the scope: Run python3 ~/.claude/skills/light-research/scripts/plan_batches.py <folder> --budget 25000.
- Distinctive: line 46
Never launch the batches in series: parallelism (one message, several calls) is what saves time.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
light-research
Objective: reduce the token cost of a vague task over a large scope. The splitting is done by a deterministic script (zero model tokens). Haiku subagents read the batches. Opus writes the synthesis, on the findings only, never on the sources.
Procedure
- Judge the prompt. Precise (explicit steps and deliverable): do not use this skill. Vague (open scope): continue.
- Ask before acting. Write: "Do you want light research by Haiku subagents to reduce tokens?"
- No: handle the request as best you can, without batches.
- Yes: continue.
- Measure the scope. Run
python3 ~/.claude/skills/light-research/scripts/plan_batches.py <folder> --budget 25000. The JSON gives the number of files, the estimated tokens and the batches. If the scope is under 30 files and 50,000 tokens, do it yourself: do not launch subagents. - Specify the question. One sentence: what you are looking for in each batch (bugs, debt, inconsistencies, security...). Without a precise question, the findings will be vague.
- Launch the batches. One
researchersubagent (Haiku 5.5, medium) per batch, all in a single message (at most 10 at a time). Each brief contains: objective, exact list of the batch's files, question, output file (<scratchpad>/lot-<id>.json), output schema, stop condition. See the template below. - Synthesize. One
analystsubagent (Opus 5.5, medium) reads only the findings files, deduplicates them, ranks them by severity and returns the report. It rereads the sources only to confirm a doubtful finding, backed byfile:line. - Deliver the result: report, number of batches, estimated tokens, failed batches.
Per-batch brief template
Objective: read the files of batch <id> and answer: <question>.
Context: <one sentence about the project and what is already known>.
Inputs: files (exact paths): <list>. Read nothing else.
Scope and limits: no modification; do not reread files outside the batch.
Acceptance criteria: each finding cites file:line and evidence (excerpt of 1 to 3 lines).
Format: write a JSON to <output path>: [{"file": "...", "line": n, "severity": "blocking|major|minor", "finding": "...", "evidence": "..."}] ; empty list if nothing.
Stop: if a file is unreadable or binary, note it in the JSON and move on to the next one.Safeguards
- Never launch the batches in series: parallelism (one message, several calls) is what saves time.
- A failed batch does not stop the others: flag it in the final report.
- The script ignores dependency folders and binaries, but not secrets: never include
.envor*credentials*in a scope, check the list before launching.
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
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.

