astro-developer
withastro/astro · Agent Skill
Astro monoreposunda geliştirme için mimari, hata ayıklama ve testleri kapsayan bir kılavuz sunar, kod tabanı görevlerinde yardımcı olur.
Kuruluma geç ↓Genel bakış
| Yayıncı | |
|---|---|
| Depo | withastro/astro ↗ |
| Skill klasörü | astro-developer |
| Yıldız | 62.485 |
| Dosyalar | 5 |
| Lisans | belirtilmemiş — yazara danışın |
| Son güncelleme | 12 Ağustos 2026 |
| Bağlantılar | Skill kaynağı ↗ · Depo ↗ |
Mozgi kontrolü
Skill dosyalarında bulduklarımız. Ayrıntılar abonelikle.
Kurulum
Skill, SKILL.md dosyası içeren bir klasördür. Ajanınızı seçin ve komutları proje kökünde bir terminalde çalıştırın (macOS, Linux veya Windows'ta Git Bash).
Promptu Claude, Codex veya başka bir asistana yapıştırın: skill'i inceleyip sizin için kuracaktır.
Install the “astro-developer” skill from mozgi.io (https://mozgi.io/skills/astro-developer/) for me. 1. Download the archive: https://mozgi.io/skills/astro-developer/download If it fails, take the skill folder from the source: https://github.com/withastro/astro/tree/main/.agents/skills/astro-developer 2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me. 3. Put the “astro-developer” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.). 4. Make sure <skills folder>/astro-developer/SKILL.md exists. 5. Briefly tell me what this skill does and offer to try it on my task. If you cannot do a step yourself, tell me what to click or type.
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'u yeniden başlatın — skill listede görünür; elle çağırmak için /astro-developer. Tüm projeler için ~/.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 skill'leri geçerli klasörden depo köküne kadar .agents/skills içinde arar; /skills veya $astro-developer ile çağırın. Tüm projeler için ~/.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 skill'i açılışta yükler; Agent sohbetinde “/” ile çağırın. Cursor .claude/skills ve .agents/skills klasörlerini de okur. Tüm projeler için ~/.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, görev uyduğunda skill'i etkinleştirmeyi önerir — siz onaylarsınız. Tüm projeler için ~/.gemini/skills.
Kurulumdan önce SKILL.md ve eşlik eden dosyaları inceleyin. Önizleme için dosyaya tıklayın.
SKILL.md içeriği
Yazarın orijinal metni · salt okunurAstro 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
Sık sorulan sorular
astro-developer skill'i ne yapar?
Astro monoreposunda geliştirme için mimari, hata ayıklama ve testleri kapsayan bir kılavuz sunar, kod tabanı görevlerinde yardımcı olur.
astro-developer nasıl kurulur?
Bu sayfadaki “Kurulum” bölümünü açın ve ajanınızı seçin — Claude Code, Codex, Cursor veya Gemini CLI: skill klasörünü doğru yere kopyalayan hazır komutlar orada. Ya da “Asistanla” sekmesindeki promptu kopyalayın; asistan skill'i inceleyip kuracaktır.
astro-developer hangi yapay zekâlarla çalışır?
Skill'ler düz Markdown talimatlarıdır (Agent Skills formatı), bu yüzden astro-developer SKILL.md okuyan her ajanla çalışır: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode ve diğerleri. Model talimatları yalnızca görev skill açıklamasına uyduğunda yükler.
astro-developer ücretsiz mi?
Skill, withastro tarafından açık olarak yayımlandı. Skill'in kendisi ücretsizdir — yalnızca kullandığınız token'lar için yapay zekâ sağlayıcınıza ödeme yaparsınız. Depoda lisans belirtilmemiş — ticari kullanımdan önce koşulları yazara danışın.
Skill kurmak güvenli mi?
Skill, ajanınızın izleyeceği talimatlardır; kurmadan önce SKILL.md ve eşlik eden dosyaları okuyun. Skill klasöründeki betikler yalnızca ajanınız çalıştırırsa çalışır — ne yaptığını izleyin ve gereksiz izin vermeyin.
Skill, MCP sunucusu veya eklentiden nasıl farklıdır?
MCP sunucusu veya eklenti modele yeni araçlar verir — çalışıp sonuç döndüren kod. Skill ise bilgi ve süreç verir: göreve nasıl yaklaşılacağı, hangi adımların izleneceği ve iyi sonucun neye benzediği. Sunucu veya API anahtarı gerekmez.