agentleFS
danielvm-gitdanielvm-git/bigpowers/skills/search-skills/SKILL.md

search-skills

Skill288 starsChanged 8 days agoMITView on GitHub

Find the right bigpowers skill from natural-language intent using a local lexical index over SKILL.md frontmatter. Use when unsure which skill to invoke, or at start of research-first.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When a user asks "is there a skill for X?"

    line 23
  2. Distinctive:

    Before calling a skill by name, to confirm it's the right one

    line 24

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- story: e09s01 --><!-- story: e21s01 -->

Search Skills

HARD GATE — Search results must be ranked by relevance. Do NOT return all matches without prioritization. Use skill metadata (phase, purpose, frequency) to rank.

HARD GATE — Do NOT use external embedding APIs or AI-based semantic search. This is a lexical-only index (ADR: zero external dependency).

Lexical search only — no embedding service (ADR: zero external dependency). The index is a flat markdown file (specs/SKILL-SEARCH-INDEX_LATEST.md) built from every SKILL.md's YAML frontmatter — name, description, and key phrases. No vector DB, no API calls, no network dependency.

When to use

  • You're unsure which skill to invoke for a user's request
  • At the start of research-first to find pre-existing skills that might solve the problem
  • When a user asks "is there a skill for X?"
  • Before calling a skill by name, to confirm it's the right one

Pre-flight

  • Does specs/SKILL-SEARCH-INDEX_LATEST.md exist? If not, run bash scripts/build-skill-index.sh.
  • Is the index fresh? Check its timestamp — if > 24 hours old or after any SKILL.md change, regenerate.

Process

  1. Refresh index if stale — Run bash scripts/build-skill-index.sh if specs/SKILL-SEARCH-INDEX_LATEST.md doesn't exist or was modified before the last SKILL.md change.
  2. Search the index — Use ripgrep on the lexical index:
    rg -i "<keywords>" specs/SKILL-SEARCH-INDEX_LATEST.md
    The index contains each skill's name, description, phase, and key use-case phrases, so natural language queries work well even without embeddings.
  3. Rank results — Read the top 3 matches. Evaluate by:
    • Exactness — Does the description literally match the user's intent?
    • Phase fit — Is the skill designed for the current lifecycle phase?
    • Trigger phrases — Does the skill's "Use when" section match the situation?
  4. Recommend one skill — Select the single best-matching skill. Provide:
    • The skill name
    • Why it's the best match (citing the description or trigger phrase)
    • What it produces (artifact, dialogue, or state change)
  5. Invoke — Call the skill directly or through the orchestrator. If no match found, suggest the closest phase-appropriate skill or using-bigpowers as a general entry point.

Index Format

specs/SKILL-SEARCH-INDEX_LATEST.md contains one section per skill:

## <skill-name>
- **Description:** <from frontmatter>
- **Phase:** <lifecycle phase>
- **Triggers:** <key phrases from description>
- **Keywords:** <extracted terms>

Why Not Semantic Search?

  • Zero network dependency — works fully offline
  • Zero cost — no API keys, no usage limits
  • Instant — ripgrep on a local file is sub-second
  • Deterministic — same query always returns same results
  • Auditable — you can read the full index

Verify

→ verify: test -f specs/SKILL-SEARCH-INDEX_LATEST.md || (bash scripts/build-skill-index.sh && test -f specs/SKILL-SEARCH-INDEX_LATEST.md)

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.