astro-cta-injector

Inject CTA templates into Astro content with configurable placements and dry-run previews.

14|1|Updated Nov 29, 2025
One-click install
npx skills add https://github.com/dragosroua/claude-content-skills --skill astro-cta-injector-dragosroua
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astro-cta-injector
Source: https://github.com/dragosroua/claude-content-skills/tree/main/skills/astro-cta-injector
Command: npx skills add https://github.com/dragosroua/claude-content-skills --skill astro-cta-injector-dragosroua

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bs4, rich, and includes scripts (resource) components.

What problem does it solve?

Injects Call-to-Action blocks into Astro site content with intelligent placement strategies, enabling consistent engagements without manual edits across posts.

Core Features & Use Cases

  • Supports multiple placement strategies (end, after-paragraph-50%, after-paragraph-60%, after-heading, before-conclusion).
  • Handles multiple CTA types (newsletter, product) with templated HTML and data binding.
  • Offers dry-run previews, automatic backups, and rollback to ensure safe production usage.
  • Enables batch processing by scoring posts for relevance and injecting CTAs where appropriate.

Quick Start

Provide your content path and CTA type, then run the preview to see injected CTAs before applying changes.

Frequently Asked Questions about astro-cta-injector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically inject CTAs into Astro blog posts?

Automate CTA injection into Astro blog posts by scoring post relevance and inserting templates at configurable placements like end or after-heading. The tool processes .astro and .md formats, handling newsletter and product CTAs batch processing.

Can I preview CTA injections in my Astro content before applying changes?

Yes, you can preview CTA injections in your Astro content using the dry-run feature. Provide your content path and CTA type, run the preview to see injected CTAs, and safely apply changes later with automatic backups ensuring production safety.

Does the CTA injector support both Markdown and Astro file formats?

The CTA injector supports both .md and .astro file formats for Astro site content. It scores posts for relevance and inserts templated HTML with data binding for multiple CTA types, including newsletter and product blocks.

What are the available placement strategies for inserting CTAs in Astro articles?

Available placement strategies for inserting CTAs include end, after-paragraph-50%, after-paragraph-60%, after-heading, and before-conclusion. These configurable placements ensure intelligent CTA positioning across batch-processed Astro articles.

How do I rollback injected CTAs if they break my Astro site layout?

Rollback injected CTAs using the provided automatic backup and rollback options. The tool enforces safety by skipping posts with existing CTAs and maintaining backups, ensuring you can revert changes if injected templates break your Astro site layout.