agentleFS
patrickbdevaneypatrickbdevaney/hermes-max/skills/workflow-learn-framework/SKILL.md

workflow-learn-framework

Skill1 starsChanged 6 months agoMITView on GitHub

Learn a novel/domain-specific framework from its real docs BEFORE coding, to prevent hallucinated APIs.

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
  1. Very specific:

    When the work involves a framework/library/API you cannot reason about reliably from pretraining, ground yourself in its real documentation …

    line 19
  2. Distinctive:

    Do NOT invoke for the standard library or frameworks you already know well — that just burns time.

    line 35
  3. Distinctive:

    Every backend degrades gracefully: Crawl4AI down → trafilatura.

    line 53

≈ “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
<!-- TRIGGERS WHEN: "Learn a novel/domain-specific framework from its real docs BEFORE coding, to prevent hallucinated APIs." version: 1.0.0 author: Hermes Max license: MIT platfor -->

Learn a framework before coding against it

When the work involves a framework/library/API you cannot reason about reliably from pretraining, ground yourself in its real documentation first — don't guess signatures. This closes the hallucinated-API trap at the knowledge layer (prevention), complementing mcp-verify's detection of bad APIs after the fact.

Trigger — when to invoke

Invoke research_topic BEFORE writing code when ANY of these hold:

  • mcp-verify (or a test/import) reports a hallucinated / nonexistent API more than once for the same library — a clear signal you don't know its surface.
  • You're about to use an unfamiliar or domain-specific import and you're low-confidence on its exact API (names, parameters, version differences).
  • The task is flagged novel/hard by the shared classify_difficulty / novelty signal and hinges on a specific framework.

Do NOT invoke for the standard library or frameworks you already know well — that just burns time.

How (fully local — no external API)

  1. research_topic("<framework> <the specific thing you need>", n=3) — searches the self-hosted SearXNG, extracts the top pages via Crawl4AI, distils them with the local model, and stores the notes under a docs/<topic> RAG namespace plus framework→api edges in the knowledge graph.
  2. Then search_code("<framework> <api you need>") — it now returns the real signatures from the distilled docs, co-retrieved alongside your own code.
  3. Implement against the retrieved signatures. If a needed page wasn't ingested, ingest_doc("<url>", "<topic>") a specific one.

Notes

  • It's on-demand: you don't need a pre-built corpus. (To pre-seed an operator's stack up front, scripts/seed-docs.sh <urls> exists — optional.)
  • Every backend degrades gracefully: Crawl4AI down → trafilatura; SearXNG down → reported; model down → raw note stored. You always continue, with a warning.
  • Bound it: a few targeted topics, not a crawl of the whole docs site.

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.