docs-to-skill
Turn a product or project documentation website into a skill backed by local references. Use when the user wants to download docs, mirror llms.txt or sitemap pages, generate a documentation skill, ref
SKILL.mdskills/docs-to-skill/SKILL.md
GitHubdocs to skill
Create or refresh a documentation skill whose SKILL.md is only an index to downloaded pages under references/.
Inputs
Collect:
- source site,
llms.txt, orsitemap.xmlURL; - generated skill name;
- concise triggering description;
- target directory, defaulting to
~/.fx/skills/<name>.
Build
Load the installed agent-browser workflow before downloading:
agent-browser skills get core --full
Run:
python3 scripts/build_docs_skill.py \
--source <url> \
--name <skill-name> \
--description '<triggering description>' \
--target ~/.fx/skills/<skill-name>
The generator:
- uses an explicit
llms.txtorsitemap.xml, or tries<site>/llms.txtthen<site>/sitemap.xml; - downloads every discovered page with
agent-browser read; - mirrors pages under
references/; - writes
references/source-index.txtandreferences/manifest.json; - generates a compact
SKILL.mdgrouped by documentation path; - on refresh, replaces only files tracked by the previous manifest and preserves unrelated files.
Verify
Run:
python3 scripts/build_docs_skill.py \
--source <url> \
--name <skill-name> \
--description '<triggering description>' \
--target ~/.fx/skills/<skill-name> \
--check
Report the target path, discovery source, downloaded page count, and validation result.