Astro Cta Injector
Injects customizable Astro Content Tokens (CTAs) into your frontend components for dynamic promotions and user engagement.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add astro-cta-injector npx -- -y @trustedskills/astro-cta-injector
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"astro-cta-injector": {
"command": "npx",
"args": [
"-y",
"@trustedskills/astro-cta-injector"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The Astro Cta Injector skill enables AI agents to automatically insert customizable Call-to-Action (CTA) blocks into your Astro website content. It supports multiple CTA types like newsletters, product promotions, and custom CTAs, allowing for dynamic user engagement and targeted marketing within your site's blog posts or other content files. The skill uses relevance scoring based on keywords to determine optimal placement of these CTAs.
When to use it
- You want to add newsletter signup forms to your blog posts.
- You need to inject product promotion blocks into your website content.
- You're looking for a way to batch-add CTA content blocks across multiple posts.
- You want to strategically place calls to action within your Astro site’s content.
- You require automated injection of CTAs based on content relevance and placement strategies.
Key capabilities
- Supports multiple CTA types (newsletter, product, custom).
- Offers intelligent placement strategies like "end," "after-paragraph-50%," "after-heading," and "before-conclusion."
- Uses content-based relevance scoring to determine optimal CTA placement.
- Provides batch processing with preview functionality.
- Utilizes customizable HTML templates for CTA design, including variables for titles, descriptions, URLs, and images.
Example prompts
- "Add a newsletter signup CTA to my blog posts."
- "Inject a product promotion block into content."
- "Batch-add calls to action to my Astro site's posts."
Tips & gotchas
- Requires an Astro site with content in
.astroor.mdfiles. - Python 3.10+ and BeautifulSoup4 are prerequisites for the skill to function.
- Configuration requires creating a
config.jsonfile specifying content paths, file patterns, CTA types, and output locations.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.