pi-fetch-markdown
Pi skill: fetch any web page as clean markdown via Cloudflare content negotiation or Jina Reader
Package details
Install pi-fetch-markdown from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-fetch-markdown- Package
pi-fetch-markdown- Version
0.1.1- Published
- Apr 30, 2026
- Downloads
- not available
- Author
- ruliana
- License
- MIT
- Types
- skill
- Size
- 6.3 KB
- Dependencies
- 0 dependencies ยท 0 peers
Pi manifest JSON
{
"skills": [
"./"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-fetch-markdown
A pi skill that fetches any web page as clean, token-efficient markdown.
How It Works
Two strategies, tried in order:
- Content Negotiation โ Sends
Accept: text/markdownheader. Sites using Cloudflare's Markdown for Agents return markdown directly (~80% fewer tokens than HTML). - Jina Reader (fallback) โ Routes through
r.jina.aiwhich renders the page and extracts clean markdown.
Usage
# Basic
bash ./fetch-markdown.sh "https://example.com/page"
# With metadata (method used, token count, content signals)
bash ./fetch-markdown.sh "https://example.com/page" --info
Installation
Install it as a pi package:
pi install npm:pi-fetch-markdown
pi installs the package and loads the skill automatically.
Requirements
curl
License
MIT