roninforge/roninforge-astro/astro-validate

Claude Code and agent skill by roninforge/roninforge-astro

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Run the plugin validator (tests/validation/validate-plugin.sh), then astro check, then vitest, then a grep audit for tracked Astro 5+ regressions that the type checker does not catch (getEntryBySlug, Astro.glob, ViewTransitions, output:'hybrid', @astrojs/tailwind, import.meta.env.SECRET_*, entry.render(, entry.slug, lowercase get/post endpoint exports, raw <img> for src/ paths, 'from \\'zod\\'' inside src/actions/). Reports each finding with file:line and the canonical replacement. Pairs with astro-anti-patterns rule.

Install

npx vskill@latest install roninforge/roninforge-astro/astro-validate

SKILL.md

The same SKILL.md was published earlier as roninforge/roninforge-astro/astro-validate.

Validate Astro 6 Project

When to use

Run when:

  • Before committing a change touching .astro, astro.config.mjs, src/content.config.ts, src/actions/, or src/middleware.ts
  • Before merging a migration from Astro 4/5 to Astro 6
  • Before opening a release PR

Workflow

1. Plugin structure validator
bash
bash tests/validation/validate-plugin.sh

Verifies the plugin's own files (rules, skills, agent, fixtures, no em dashes, no emojis, fixture violation count).

2. Astro type check
bash
pnpm astro check

Catches:

  • Schema mismatches in content collections
  • Missing imports in .astro frontmatter
  • Type errors in actions, middleware, endpoints
  • Missing App.Locals declarations
3. Unit tests
bash
pnpm vitest run
4. Grep audit (regressions the type checker misses)

Run each grep against src/:

bash
# anti-pattern #6: getEntryBySlug removed in Astro 5
grep -rn "getEntryBySlug" src/
# anti-pattern #7: Astro.glob removed in Astro 5
grep -rn "Astro\.glob" src/
# anti-pattern #8: entry.render() removed
grep -rn "\.render()" src/
# anti-pattern #10: entry.slug renamed entry.id
grep -rEn "\.slug\b" src/
# anti-pattern #11: output: 'hybrid' removed
grep -rn "output: ['\"]hybrid['\"]" .
# anti-pattern #16: @astrojs/tailwind for Tailwind v4
grep -rn "@astrojs/tailwind" .
# anti-pattern #23: ViewTransitions renamed ClientRouter
grep -rn "ViewTransitions" src/
# anti-pattern #14: raw <img src="/src/...">
grep -rEn "<img[^>]+src=['\"]/src/" src/
# anti-pattern #46: zod imported into actions
grep -rn "from 'zod'" src/actions/
# anti-pattern #47: legacy content config path
[ -f src/content/config.ts ] && echo "src/content/config.ts is the legacy path; move to src/content.config.ts"
# anti-pattern #1: secrets read via import.meta.env
grep -rEn "import\.meta\.env\.(STRIPE|SECRET|PRIVATE|API_KEY)" src/
5. Build
bash
pnpm astro check && pnpm astro build

The combined script form is recommended in package.json:

json
{
"scripts": {
"check": "astro check",
"build": "astro check && astro build"
}
}

This guards against anti-pattern #40 (CI runs astro build only, missing type errors).

Output format

# astro-validate
PASS validate-plugin.sh
PASS astro check
PASS vitest (12 passed)
FAIL grep audit
src/components/Old.astro:14: getEntryBySlug call (anti-pattern #6)
src/pages/index.astro:5: Astro.glob call (anti-pattern #7)
src/layouts/Base.astro:3: ViewTransitions import (anti-pattern #23, rename ClientRouter)
3 regressions found. See rules/astro-anti-patterns.mdc for the canonical replacements.

Common mistakes

  • Running only astro build and assuming it ran astro check. It does not.
  • Skipping the grep audit because astro check passed. The check does not flag deprecated module imports that still type-check (e.g. from 'zod' inside actions).
  • Trusting that output: 'hybrid' triggers an explicit error message; in some 5.x point releases it became a warning, in 6.x it is a hard error. Better to grep.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/roninforge/roninforge-astro/astro-validate/badge)](https://verified-skill.com/skills/roninforge/roninforge-astro/astro-validate)

Something wrong with this skill or its page? Tell us.