agentleFS
mhmtsrfglumhmtsrfglu/superwiki/skills/sw-search/SKILL.md

sw-search

Skill30 starsChanged 55 days agoMITView on GitHub

Use when the user asks the Superwiki vault a question in plain words, such as what the wiki says about something, whether anything is recorded on a topic, or what was decided and where it is written down, or invokes sw-search. Not for a reported bug or failure (sw-triage) or a question about one task (sw-explain).

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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
  1. Distinctive:

    Run commands from the project root.

    line 10
  2. Very specific:

    Read the catalog lines of docs/index.md that mention the terms.

    line 15

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

sw-search

Answers a question from the vault, every claim with its reference. Changes no file.

Run commands from the project root.

Steps

  1. Turn the question into two to five content words and any ids it names, in the language the vault is written in, and run node docs/.sw/sw.mjs search <terms>. It lists the pages, raw sources and log entries that mention the words, best match first, each with the matching line and the heading it sits under. No page: run it once more with synonyms or fewer terms. The vault is the only record of earlier sessions this skill can read; on Copilot the user can run /chronicle search <words> (Copilot CLI) or /chronicle:search <words> (VS Code Copilot Chat), which searches Copilot's own session store, to find an earlier session of the project and resume it. Name it when the vault has no record of the topic, and say that the skill cannot run it.
  2. Read the catalog lines of docs/index.md that mention the terms. A page the catalog describes as the topic belongs in the answer even when the search ranked it low.
  3. Open at most four hits, in this order: lessons and decisions, other wiki pages, tasks and plans, and of a raw source only the section the heading names. Log entries are used as the search printed them, not opened.
  4. Answer in the user's language. Each claim carries its reference:

    • a wiki page, task or plan: [[page]], [[T-12]], [[T-12-plan]];
    • a raw source: [title](docs/raw/<file>), naming the section;
    • a log entry: log <date> <kind> | <title>.

    A claim no page supports is said to be not recorded in the vault. It is not taken from the code or from memory; looking in the code is offered as a separate step. No hit at all: say so and name the pages nearest the question.

The answer is given in chat and nothing is written to the vault: no page, no log entry, no offer to save the answer.

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.