astro-developer
withastro/astro · Agent Skill
Предоставляет руководство по разработке в монорепозитории Astro, включая архитектуру, отладку и тестирование, для помощи в работе с кодом.
Перейти к установке ↓Обзор
| Автор | |
|---|---|
| Репозиторий | withastro/astro ↗ |
| Папка скилла | astro-developer |
| Звёзды | 62 485 |
| Файлы | 5 |
| Лицензия | не указана — уточните у автора |
| Обновлён | 12 августа 2026 г. |
| Ссылки | Исходник скилла ↗ · Репозиторий ↗ |
Проверка Mozgi
Что мы нашли в файлах скилла. Подробности — по подписке.
Установка
Скилл — это папка с файлом SKILL.md. Выберите своего агента и скопируйте команды в терминал (macOS, Linux или Git Bash на Windows) в корне проекта.
Скопируйте промпт и вставьте в Claude, Codex или другого ассистента: он сам проверит скилл и подключит его.
Установи мне скилл «astro-developer» с mozgi.io (https://mozgi.io/skills/astro-developer/). 1. Скачай архив: https://mozgi.io/skills/astro-developer/download Если не скачивается — возьми папку скилла из исходника: https://github.com/withastro/astro/tree/main/.agents/skills/astro-developer 2. Прочитай SKILL.md и остальные файлы. Проверь, что скилл безопасен: нет скрытых команд, отправки данных наружу или скриптов, которые делают не то, что описано. Если что-то подозрительно — остановись и скажи мне. 3. Положи папку «astro-developer» в папку скиллов своего агента: .claude/skills/ для Claude Code, .agents/skills/ для Codex, .cursor/skills/ для Cursor, .gemini/skills/ для Gemini CLI. В проекте — внутри проекта, иначе в домашней папке (~/.claude/skills/ и т. п.). 4. Убедись, что получилось <папка скиллов>/astro-developer/SKILL.md. 5. Коротко расскажи, что умеет этот скилл, и предложи попробовать его на моей задаче. Если какой-то шаг не можешь сделать сам — подскажи, что нажать или ввести.
git clone --depth 1 --branch main https://github.com/withastro/astro.git /tmp/astro mkdir -p .claude/skills cp -r /tmp/astro/.agents/skills/astro-developer .claude/skills/astro-developer
Перезапустите Claude Code — скилл появится в списке, вызвать вручную: /astro-developer. Для всех проектов сразу — папка ~/.claude/skills.
git clone --depth 1 --branch main https://github.com/withastro/astro.git /tmp/astro mkdir -p .agents/skills cp -r /tmp/astro/.agents/skills/astro-developer .agents/skills/astro-developer
Codex ищет скиллы в .agents/skills от текущей папки до корня репозитория; вызвать вручную — /skills или $astro-developer. Для всех проектов — ~/.agents/skills.
git clone --depth 1 --branch main https://github.com/withastro/astro.git /tmp/astro mkdir -p .cursor/skills cp -r /tmp/astro/.agents/skills/astro-developer .cursor/skills/astro-developer
Cursor подхватит скилл при запуске; вызвать вручную — «/» в чате агента. Cursor также читает .claude/skills и .agents/skills. Для всех проектов — ~/.cursor/skills.
git clone --depth 1 --branch main https://github.com/withastro/astro.git /tmp/astro mkdir -p .gemini/skills cp -r /tmp/astro/.agents/skills/astro-developer .gemini/skills/astro-developer
Gemini CLI сам предложит включить скилл, когда задача подходит, — вы подтверждаете. Для всех проектов — ~/.gemini/skills.
Просмотрите SKILL.md и сопутствующие файлы перед установкой. Клик по файлу — предпросмотр.
Содержимое SKILL.md
Оригинальный текст автора · только чтениеAstro Developer Skill
Context-loading skill for AI agents and developers working in the Astro monorepo. Loads relevant documentation based on your task.
Quick Decision Matrix
What are you doing? → Read these files:
| Task | Primary Docs | Supporting Docs |
| -------------------------- | -------------------------------------------------------------------- | ---------------------------------- |
| Adding a core feature | architecture.md ↗, constraints.md ↗ | testing.md ↗ |
| Fixing a bug | debugging.md ↗ | architecture.md ↗ |
| Writing/fixing tests | testing.md ↗ | constraints.md ↗ |
| Creating an integration | Explore packages/integrations/ for examples | testing.md ↗ |
| Understanding architecture | architecture.md ↗ | - |
| Dealing with errors | debugging.md ↗, constraints.md ↗ | testing.md ↗ |
| Understanding constraints | constraints.md ↗ | architecture.md ↗ |
Critical Warnings
Before you start, be aware of these common pitfalls:
1. Prefer Unit Tests: Write unit-testable code by default. Use integration tests only when necessary → testing.md ↗
2. Node.js API Restrictions: Cannot use Node.js APIs in runtime/ code → constraints.md ↗
3. Test Isolation: Must set unique outDir for each integration test → testing.md ↗
4. Runtime Boundaries: Core vs Vite vs Browser execution contexts → architecture.md ↗
5. Prerelease Mode: Changesets target origin/next branch (check .changeset/config.json)
Quick Command Reference
# Development
pnpm install # Install (root only)
pnpm run build # Build all packages
pnpm run dev # Watch mode
pnpm run lint # Lint codebase
# Testing
pnpm -C packages/astro exec astro-scripts test "test/**/*.test.js" # All tests
pnpm -C packages/astro exec astro-scripts test -m "pattern" # Filter tests
pnpm run test:e2e # E2E tests
node --test test/file.test.js # Single test
# Examples
pnpm --filter @example/minimal run dev # Run example
# Changesets
pnpm exec changeset --empty # Create changeset, no interactive mode
Key File Paths
packages/astro/src/
├── core/ # Node.js execution context (build/dev commands)
├── runtime/
│ ├── server/ # Vite SSR execution context
│ └── client/ # Browser execution context
├── virtual-modules/ # Virtual module entry points
├── content/ # Content layer system
├── vite-plugin-*/ # Vite plugins
└── types/ # Centralized TypeScript types
packages/integrations/ # Official integrations
examples/ # Test your changes here
test/fixtures/ # Test fixtures
Note: Error stack traces in node_modules/ map to source in packages/. See architecture.md ↗ for details.
Usage
This skill loads relevant context—it doesn't orchestrate workflows. After loading appropriate docs:
1. Read the recommended files for your task
2. Apply the patterns and constraints described
3. Use the commands and file paths provided
4. Search docs for error messages if you encounter issues
Architecture Quick Summary
Three Execution Contexts:
- core/ → Node.js, build/dev commands, avoid Node APIs except in Vite plugins
- runtime/server/ → Vite SSR, CANNOT use Node APIs
- runtime/client/ → Browser, CANNOT use Node APIs at all
Five Pipeline Types:
- RunnablePipeline →
astro devwith Vite loader system - NonRunnablePipeline →
astro devwithout runtime module loading (Cloudflare adapter) - BuildPipeline →
astro build+ prerendering - AppPipeline → Production serverless/SSR
- ContainerPipeline → Container API
See architecture.md ↗ for complete details.
Testing Quick Summary
Philosophy: Prefer unit tests over integration tests. Write unit-testable code by default.
Unit tests (fast, preferred):
- Test pure functions and business logic
- Extract business logic from infrastructure
- Use dependency injection
Integration tests (slow, use sparingly):
- Only for features that cannot be unit tested (virtual modules, full build pipeline)
- Always set unique
outDirto avoid cache pollution
See testing.md ↗ for complete patterns and examples.
When NOT to Use This Skill
- Bug triage: Use the
triageskill instead - GitHub Actions analysis: Use the
analyze-github-action-logsskill - Simple questions: Just ask directly, don't load this skill
Related Documentation
- Root: /AGENTS.md
- Root: /CONTRIBUTING.md
- Astro docs: https://docs.astro.build/
- Package: packages/astro/src/core/README.md
- Build plugins: packages/astro/src/core/build/plugins/README.md
Вопросы и ответы
Что делает скилл astro-developer?
Предоставляет руководство по разработке в монорепозитории Astro, включая архитектуру, отладку и тестирование, для помощи в работе с кодом.
Как установить astro-developer?
Откройте блок «Установка» на этой странице и выберите своего агента — Claude Code, Codex, Cursor или Gemini CLI: там готовые команды, которые копируют папку скилла в нужное место. Либо скопируйте промпт из вкладки «Через ассистента» — ассистент сам проверит и подключит скилл.
С какими нейросетями работает astro-developer?
Скиллы — это обычные инструкции в Markdown (формат Agent Skills), поэтому astro-developer подходит любому агенту, который читает SKILL.md: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode и другие. Модель загружает инструкции только когда задача подходит под описание скилла.
Скилл astro-developer бесплатный?
Скилл опубликован автором withastro в открытом доступе. Сам скилл ничего не стоит — вы платите только своему провайдеру нейросети за использованные токены. Лицензия в репозитории не указана — перед коммерческим использованием уточните условия у автора.
Безопасно ли устанавливать скиллы?
Скилл — это инструкции, которые агент будет выполнять, поэтому перед установкой прочитайте SKILL.md и сопутствующие файлы. Скрипты из папки скилла запускаются только если их запустит агент — следите за тем, что он делает, и не давайте лишних прав.
Чем скилл отличается от MCP-сервера или плагина?
MCP-сервер и плагин дают модели новые инструменты — код, который выполняется и возвращает результат. Скилл даёт знания и порядок действий: как подходить к задаче, какие шаги делать и как выглядит хороший результат. Ему не нужен сервер или ключ API.