Convert a docs URL into a cleaned local .mdx file at a path the user specifies.
Use this skill when the user wants reproducible, file-based docs snapshots for local knowledge bases, RAG prep, or project docs folders.
Run:
scripts/mdnew_to_mdx.sh <source_url> <output_mdx_path>
Example:
scripts/mdnew_to_mdx.sh \
https://docs.convex.dev/agents/agent-usage \
docs/convex/agent-usage.mdx
https://... form.scripts/mdnew_to_mdx.sh.title, description, sourceUrl, retrievedAt.index.mdx.docs/ exists, docs/index.mdx must exist.title, description, sourceUrl (local://... allowed), retrievedAt.The generated MDX must include frontmatter:
titledescriptionsourceUrlretrievedAt (UTC YYYY-MM-DD)Body is cleaned to remove common docs-site artifacts and excess blank lines.
For behavior details and cleanup rules, read:
references/mdnew_to_mdx.mdUse the bundled script directly:
scripts/mdnew_to_mdx.shbash, curl, awk, mktemp.共 1 个版本