agentleFS
n24q02mn24q02m/wet-mcp/skills/research-topic/SKILL.md

research-topic

Skill23 starsChanged 9 months agoApache-2.0View on GitHub

Multi-step research orchestration. Use when user asks "research X", "summarize current state of Y", "what's the latest on Z", or compares approaches. Calls extract(action="agent") which searches the web, extracts top results, then synthesises a citation-preserving Markdown answer with one configured LLM.

  • Reads credentials

7 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

6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when:

    line 14
  2. Distinctive:

    Do NOT use this skill when:

    line 22
  3. Very specific:

    Pick synthesis_model: only if the user asked for a specific model.

    line 38
  4. Very specific:

    Do NOT chain multiple agent calls back-to-back without informing the user.

    line 76
  5. Distinctive:

    Do NOT post-edit the synthesised Markdown to drop citations -- the citation markers are the user's audit trail.

    line 78
  6. Very specific:

    Do NOT replace extract(action="agent") with manual search + extract loops "to save tokens".

    line 80

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “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

research-topic

Drive wet's extract(action="agent") to answer a research question end to end: one search round + concurrent extracts of the top hits + a single LLM synthesis pass that preserves numbered [N] citations matching the returned sources.

Use this skill when:

  • The user asks an open-ended question that needs multiple sources.
  • "Summarise the current state of X."
  • "What's the latest on Y?"
  • "Compare approaches to Z."
  • The user needs a quoted, cited answer (the citations are first-class output, not an afterthought).

Do NOT use this skill when:

  • The user already gave you a specific URL -- call extract(action="extract").
  • The user wants a single search result list -- call search(action="web").
  • The question is about library API documentation -- call search(action="docs_query") against a Tier 1 / locked stack.

Steps

  1. Restate the question to the user in 1-2 sentences (calibration: confirm scope before spending tokens).
  2. Pick max_urls based on breadth:
    • 3-5 for a tight question (single technology, single timeframe).
    • 6-10 for a broad survey (multiple competitors, multi-year window).
    • Hard ceiling is 20 (cost guard).
  3. Pick synthesis_model only if the user asked for a specific model. Otherwise omit and let wet resolve it from the [models.chat] cell (~/.wet/config.toml, or HULL_CHAT_API_KEY / OPENROUTER_API_KEY).
  4. Call
    extract(action="agent", query="<question>", max_urls=<N>)
    Optional knobs: synthesis_model="...", token_budget=<int> (default 10000; raise for long-form questions, lower for tight cost control).
  5. Quote the synthesised Markdown verbatim to the user, then list the sources from the sources array as clickable URLs. If per_url_metadata shows any error, mention which URL failed and that the synthesis used the remaining N-K sources.
  6. If wet returns Error: no LLM provider detected, surface the exact error to the user (do not silently retry against search(action="research")); they need to set one of the supported API keys before agent works.

Output contract

{
  "markdown": "# Synthesised answer with [1] inline citations...",
  "sources": [
    {"index": 1, "url": "https://...", "title": "..."}
  ],
  "per_url_metadata": [
    {"url": "...", "extract_strategy": "basic_http", "tokens": 487, "error": null}
  ]
}

Anti-patterns

  • Do NOT chain multiple agent calls back-to-back without informing the user; each call is a full search + N extracts + LLM round.
  • Do NOT post-edit the synthesised Markdown to drop citations -- the citation markers are the user's audit trail.
  • Do NOT replace extract(action="agent") with manual search + extract loops "to save tokens"; the orchestrator enforces token budgets per source and avoids re-implementation drift.

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.