Markdown Converter
Agent skill for markdown-converter
This document explains how AI coding agents should work in this repository to automate tasks, keep quality high, and stay aligned with our Astro setup and content standards.
Sign in to like and favorite skills
This document explains how AI coding agents should work in this repository to automate tasks, keep quality high, and stay aligned with our Astro setup and content standards.
The project is an Astro 5.x site with Tailwind CSS and the Content Layer API for Markdown/MDX posts.
.github/instructions/astro.instructions.md.github/instructions/markdown.instructions.md.github/instructions/a11y.instructions.mdNode requirement: use Node 22+ (see
package.json engines). Use pnpm for commands (pnpm-lock.yaml present).
src/content/post/ — MD/MDX posts loaded via Content Layer API (see src/content/config.ts)src/components/ — UI components and islandssrc/layouts/ — page and markdown layoutssrc/pages/ — route files (Astro pages and endpoints)src/assets/ — local images and styles for bundlingpublic/ — static files served as-is (e.g., public/assets/images/...)astro.config.mjs, tsconfig.json, tailwind.config.cjs — core configThere are experimental folders under
apps/ that aren’t part of the primary site build; focus on the root app unless explicitly requested.
When making changes, prefer server-rendered Astro components and minimal client JS. Follow the repo instructions linked above.
Content authoring
src/content/post/ using MD/MDX.src/content/config.ts schema: title, optional description/image/canonical/publishDate/draft/excerpt/category/tags/author..github/instructions/markdown.instructions.md for headings, code blocks, links, images (alt text required), and structure.public/assets/images/... and reference via absolute path (/assets/images/...).Components and pages
.astro files in src/components and src/pages.client:idle, client:visible, etc.).Accessibility and SEO
.github/instructions/a11y.instructions.md (landmarks, focus order, labels, color contrast, skip links, etc.).Images and performance
Run these from the repo root with pnpm:
pnpm devpnpm buildpnpm previewpnpm lintpnpm formatpnpm typecheckpnpm astro syncBefore considering a task complete, ensure all of the following pass locally:
pnpm build)pnpm lint)pnpm typecheck)pnpm preview and spot-check key routesIf you change public behavior, update or add minimal docs in the repo to explain the change.
Add a new blog post
src/content/post/my-post-slug.mdx (or .md).src/content/config.ts and markdown guidelines.public/assets/images/my-post-slug/ and reference with /assets/images/... paths.pnpm astro sync (if types change), pnpm lint, pnpm typecheck, pnpm build.Create a new component
src/components/MyComponent.astro.Update site styles
feat/content-new-post-slug or fix/layout-header-skiplink.This guide and any code generated were created with accessibility in mind, but issues may still exist. Please review changes manually and test with tools like Accessibility Insights.
Clone and install dependencies:
git clone https://github.com/TheRoks/astro-theroks-blog.git cd astro-theroks-blog pnpm install
Then start developing with
pnpm dev.