agentleFS
shimo4228shimo4228/search-first/llms.txt

search-first

llms.txt3 starsChanged 2 months agoMITView on GitHub

A Claude Code skill (MIT) that enforces a research-before-coding workflow. Before writing custom code, the agent articulates the requirement as text, searches by source priority (this repo, npm, PyPI, MCP registries, installed skills, GitHub), then records an informed Adopt / Extend / Compose / Build verdict. The skill is discipline (articulate → search → verdict), not search mechanism — the latter is delegated to the agent harness.

The file

Files
llms.txt
# search-first

> A Claude Code skill (MIT) that enforces a research-before-coding workflow. Before writing custom code, the agent articulates the requirement as text, searches by source priority (this repo, npm, PyPI, MCP registries, installed skills, GitHub), then records an informed Adopt / Extend / Compose / Build verdict. The skill is discipline (articulate → search → verdict), not search mechanism — the latter is delegated to the agent harness.

## Core documentation

- [llms-full.txt](llms-full.txt): self-contained Q&A reference for AI agents (Project Facts, Prior Research, 9 question-form H2 sections)
- [README.md](README.md): human-facing narrative (install, decision matrix, worked example)
- [SKILL.md](skills/search-first/SKILL.md): full skill specification — trigger conditions, the three-step discipline (Step 0 articulation → search by source priority → decide & record a verdict line), decision matrix, quick mode vs full mode, skip-research handling

## Architecture

- Three-step discipline (not a search mechanism — the *how* of searching is delegated to the agent harness):
  - **Step 0 — Articulate** the requirement as mandatory user-visible text before any tool call
  - **Step 1 — Search by source priority**: this repo (`rg`) → package registries (npm / PyPI / …) → configured MCP servers → installed skills/tools → maintained OSS / templates; query live docs at decision time
  - **Step 2 — Decide and record a Verdict line**: `Verdict: <Adopt|Extend|Compose|Build> — <package(s) or "custom"> — <evidence-based reason>`. A pass with no verdict line is incomplete.
- 4-way decision matrix: **Adopt** (exact match, well-maintained, permissive license), **Extend** (partial match, thin wrapper), **Compose** (multiple small packages), **Build** (nothing suitable, informed by research)
- Evaluation is qualitative prose — **no numeric scores, grades, or weighted tables** (they manufacture false precision)
- Modes: **Quick Mode** (inline) for a single obvious need; **Full Mode** delegates the search sweep to whatever research subagent the harness provides
- Skip-research handling: when the user explicitly says "don't research", skipping is itself a decision — the agent records it as a verdict line (`Verdict: <Adopt|Build> — <choice> — chosen without research at your request`) instead of a silent skip, preserving the user's intent while keeping the course-correct window open (and keeping a single structural marker — the verdict line — for every pass)

## Standard reference

- [Agent Skill specification](https://agentskills.io/specification): the Claude Code skill format used by this repo
- [SkillsMP marketplace](https://agentskills.io/specification): one-step install via `/skills add`

## Sibling skills

- [llms-txt-writer](https://github.com/shimo4228/llms-txt-writer): writes AI-facing docs optimized for ChatGPT / Perplexity / Gemini citation
- [skill-comply](https://github.com/shimo4228/skill-comply): measures whether agents actually follow skill / rule definitions (v0.3.0)
- [context-sync](https://github.com/shimo4228/context-sync): audits and fixes project documentation roles
- [skill-stocktake](https://github.com/shimo4228/skill-stocktake): quality audit for skills and commands
- [rules-distill](https://github.com/shimo4228/rules-distill): scan installed skills, extract cross-cutting principles, and distill them into rules
- [learn-eval](https://github.com/shimo4228/learn-eval): extract reusable patterns from sessions, self-evaluate quality, and save to the right location
- [daily-research](https://github.com/shimo4228/daily-research): cron-driven daily research digest — theme selection, multi-stage web research, LLM-as-Judge evaluation

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.