with one click
fix-links
// Auto-correct relative links, asset paths, and related links in markdown documents based on folder depth.
// Auto-correct relative links, asset paths, and related links in markdown documents based on folder depth.
Import YouTube video details using yt-dlp, automatically generating Astro Markdown pages with metadata, iframe embeds, and descriptions.
Ensure all markdown documents have their frontmatter titles injected as standard H1 headings at the start of the body.
Scrape, download, and localize external or relative images referenced in markdown files to Astro's src/assets folder and rewrite image links.
Process all markdown documentation files to generate AI summaries and embeddings (using Ollama), apply taxonomy tags, and compute KNN related links.
Full developer documentation for Astro
| name | Fix Links |
| description | Auto-correct relative links, asset paths, and related links in markdown documents based on folder depth. |
This skill allows you to automatically scan the entire src/content/docs directory and fix broken or misaligned relative links, asset paths, and related links in the frontmatter of Markdown files.
Use this skill whenever:
assets/ or other internal markdown references (.md) become misaligned.related: section) need deep-path relative adjustments.The under-the-hood script:
.md files in src/content/docs.src/content/docs. or HTML <iframe src="..."> / <img src="...">) to have the correct depth prefix.[text](file.md) so they don't break when browsed.related: in the YAML frontmatter of each file.Run this command from the project root directory:
node .agents/skills/fix-links/scripts/fix-links.cjs