Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Personal blog built with Astro 5, deployed at https://blog.70-10.net. Uses pnpm workspace architecture with custom tools for post creation and OGP card generation.
pnpm dev - Start development server (accessible at http://localhost:4321)pnpm build - Production build (generates OGP images)pnpm build:local - Local build (skips OGP image generation via SKIP_OG_GENERATION=true)pnpm preview - Preview production build locallypnpm test - Run tests in watch mode (Vitest)pnpm test:run - Run tests oncepnpm test:ui - Launch Vitest UIpnpm lint - Run all linters in parallel (ESLint, Prettier, textlint)pnpm fix - Auto-fix all linting issuespnpm lint:eslint - ESLint only (with friendly formatter)pnpm lint:prettier - Prettier check onlypnpm lint:textlint - Japanese text linting for markdown posts in src/content/posts/**/*.mdNote: Pre-commit hooks automatically run
lint-staged which applies ESLint, Prettier, and textlint fixes to staged files.
pnpm create-post - Interactive CLI tool to create new blog posts (uses tools/create-post)src/content.config.ts using Astro's glob loadersrc/content/posts/ with frontmatter schema:
{ title: string publishDate: Date tags: string[] description?: string }
src/content/images/src/pages/og/[slug].png.tssrc/components/OgpImage.tsxSKIP_OG_GENERATION=true (check src/lib/environments.ts)tools/remark-ogp-card/ - Custom plugin for embedding OGP cards from URLs
astro.config.tsapplyBaseStyles: false)github-markdown-css)src/styles/src/layouts/Layout.astro - Base layout with SEO, analyticssrc/layouts/MarkdownLayout.astro - Post layout with reading progress barProductionOnly.astro)pnpm-workspace.yaml)mise.toml for pnpm version).devcontainer/devcontainer.jsonsrc/lib/repositories/posts.test.ts)@vitest/coverage-v8.textlintrcsrc/lib/repositories/posts.tssrc/lib/cdate-jst.tscdate library for date formatting/rss.xml from src/pages/rss.xml.ts/posts/[id], /tags/[tag], /og/[slug].png