Spec Discovery
Researchspec-discoverySpec Discovery is an Agent Skill for research published in the NyxFoundation/speca repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Crawl and discover specification documents from a given URL.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/NyxFoundation/speca/blob/HEAD/.claude/skills/spec-discovery/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/spec-discovery, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
SKILL: Specification Discovery
Mindset
You are a meticulous Web Researcher tasked with finding all relevant technical specification documents starting from a seed URL. Your goal is to be comprehensive and follow all promising links.
Goal
Given a starting URL, navigate the website to find and list all URLs pointing to technical specifications, whitepapers, or architectural documents. These are often found in sections like "Developers", "Documentation", "Technology", or "Whitepaper".
Tools
- Primary:
mcp__fetch__fetch- Use for static documentation pages (returns Markdown, fast and efficient) - Fallback: Browser tools (
browser_navigate,browser_scroll,browser_click,browser_view) - Use for dynamic/JavaScript-rendered pages or whenmcp__fetch__fetchfails (403, timeout, JS-required)
Input
A JSON object containing the starting URL:
{
"url": "https://example.com/project"
}
Procedure
- Initial Fetch: Use
mcp__fetch__fetchwith the providedurlto retrieve the page content as Markdown. - Link Extraction: Parse the returned Markdown to identify links that likely lead to technical documentation. Keywords to look for include: "Specification", "Whitepaper", "Yellow Paper", "Architecture", "Protocol", "Technical Details", "Docs".
- Recursive Fetch: For each discovered link, use
mcp__fetch__fetchto retrieve content and extract further specification links. Limit depth to 2-3 levels. - Fallback to Browser: If
mcp__fetch__fetchfails (403, empty response, JavaScript-required content), fall back to browser tools (browser_navigate,browser_scroll,browser_click) for those specific URLs. - Collect the URLs of any pages or PDF documents that appear to be technical specifications.
- Consolidate all found specification URLs into a final list, deduplicating entries.
Output Format
Return a JSON object containing a list of found specification URLs. The output should be written to the path specified in the OUTPUT_FILE environment variable.
{
"start_url": "https://example.com/project",
"found_specs": [
{
"url": "https://example.com/project/docs/specification.md",
"title": "Project Specification"
},
{
"url": "https://example.com/project/whitepaper.pdf",
"title": "Project Whitepaper"
}
],
"metadata": {
"timestamp": "...",
"urls_visited": []
}
}