astro-strapi-loader
Skill by VirtusLab-Open-Source
Guides developers in using the @sensinum/astro-strapi-loader package to load Strapi 5 content into Astro content collections. It is for teams building Astro 6 or 7 sites on Strapi.
Install astro-strapi-loader
Built from the published package, never by AI.
git clone --depth 1 https://github.com/VirtusLab-Open-Source/astro-strapi-loader /tmp/astro-strapi-loader && mkdir -p ~/.claude/skills && cp -r /tmp/astro-strapi-loader/.ai/astro-strapi-loader ~/.claude/skills/astro-strapi-loaderRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/VirtusLab-Open-Source/astro-strapi-loader /tmp/astro-strapi-loader && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/astro-strapi-loader/.ai/astro-strapi-loader ~/.gemini/antigravity-cli/skills/astro-strapi-loaderAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install astro-strapi-loader in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an assistant in using the @sensinum/astro-strapi-loader package with Astro's Content Layer. It loads Strapi content into Astro content collections at build time. It covers configuring generateCollections, defining collections with name, query, collectionName, locale and idGenerator, and expanding dynamic zones with the on key. It also explains locale strategies and runtime fetches with fetchContent.
The skill stresses building Strapi REST query objects as plain data, with populate written as nested objects, arrays of dot-paths, or both. Requests are serialized with qs.stringify instead of hand-written query strings. It is aimed at developers who connect Strapi 5 to Astro 6 or 7 sites and want consistent populate graphs and multilingual content.
Written from the project's SKILL.md and checked against it.
What it can do
- Query object authoringBuilds Strapi REST query objects with populate, filters, sort, fields and pagination.
- Dynamic zone handlingExpands dynamic zone components with the on key and per-component populate.
- Locale strategiesCovers single locales, per-locale collections and multi-locale ids such as locale:documentId.
- Collection generationTurns definitions into Astro collections with generateCollections.
- Query fragmentsComposes shared populate fragments and a central query module for reuse.
- Runtime fetchesUses fetchContent with qs.stringify params that can reuse build-time queries.
- Native Markdown renderingRenders string Markdown or HTML fields through render() when the markdown option is set.
- TroubleshootingHelps diagnose empty data, 400 errors and build schema errors.
What you need
- Strapi 5 instance
- Astro 6 or 7 project
- @sensinum/astro-strapi-loader package
- STRAPI_URL environment variable
- Strapi API token with Content API and Content-Type Builder GET access, if the API is protected
Try asking
- Set up astro-strapi-loader to load my Strapi homepage into Astro.
- Write a populate object for a Strapi page with a dynamic zone called blocks.
- Add Polish and German locales for my Strapi pages collection in Astro.
Good to know
- Markdown rendering applies only to string Markdown or HTML fields, not Strapi Blocks JSON.
- The token must allow Content-Type Builder GET requests so the Zod schema can be generated.
- Strapi data is loaded at build time through the loader, with runtime fetches as a separate path.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .ai/astro-strapi-loader/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to astro-strapi-loader
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
astro-strapi-loader: common questions
How does astro-strapi-loader build Strapi request URLs?
The loader takes a plain query object and serializes it with qs.stringify. The skill advises against hand-built query strings or JSON.stringify for the URL.
Which Strapi and Astro versions does it support?
The source says it targets Strapi 5 and Astro 6 or 7, with the astro peer dependency set to ^6 || ^7.
How are multilingual entries identified?
When locale is an array, the loader stores ids as locale:documentId and adds _locale to each item's data.
How do I install astro-strapi-loader?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is astro-strapi-loader free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is astro-strapi-loader safe to use?
It scores 58 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to astro-strapi-loader?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
