explain-code
Analyze and Explain Code Functionality
Available Tools
- Playwright CLI (
playwright-cli): Use to retrieve external documentation, browse web content, and extract data from documentation sites, forums, and GitHub repositories — especially useful for understanding third-party dependencies and their APIs. Invoke via the/playwright-cliskill or runnpx playwright-clicommands directly.
<EXTREMELY_IMPORTANT>
- PREFER to use the playwright-cli (refer to playwright-cli skill) OVER web fetch/search tools
- ALWAYS load the playwright-cli skill before usage with the Skill tool.
- ALWAYS ASSUME you have the playwright-cli tool installed (if the
playwright-clicommand fails, fallback tonpx playwright-cli). </EXTREMELY_IMPORTANT>
Web Fetch Strategy (token-efficient order)
When you need external documentation about a library, framework, or API, use the playwright-cli skill (or curl) and apply these techniques in order — stop as soon as you have what you need:
- Check
/llms.txtfirst — Many modern docs sites publish an AI-friendly index at/llms.txt(spec: llmstxt.org). Trycurl https://<site>/llms.txtbefore anything else; it often links directly to the most relevant pages in plain text. - Request Markdown via
Accept: text/markdown— For any HTML page, trycurl <url> -H "Accept: text/markdown"first. Sites behind Cloudflare with Markdown for Agents will return pre-converted Markdown (look forcontent-type: text/markdownand thex-markdown-tokensheader), which is far cheaper than raw HTML. - Fall back to HTML parsing — If neither above yields usable content, navigate the page with
playwright-clito extract the rendered DOM, orcurlthe raw HTML and parse locally.
More from flora131/atomic
research-codebase
Document codebase as-is with research directory for historical context
180prompt-engineer
Create, improve, or optimize prompts using best practices
170gh-create-pr
Commit unstaged changes, push changes, submit a pull request.
169gh-commit
Create well-formatted commits with conventional commit format.
168context-compression
This skill should be used when the user asks to "compress context", "summarize conversation history", "implement compaction", "reduce token usage", or mentions context compression, structured summarization, tokens-per-task optimization, or long-running agent sessions exceeding context limits. A core context engineering skill — also activates when the user mentions "context engineering" or "context-engineering" in the context of managing token budgets and session longevity.
168sl-commit
Create well-formatted commits with conventional commit format using Sapling.
168