Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/nicepkg/ai-workflownpx agentmods add skills/nicepkg/ai-workflow/astro-cta-injectorWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/nicepkg/ai-workflow/astro-cta-injector)<a href="https://agentmods.dev/skills/nicepkg/ai-workflow/astro-cta-injector"><img src="https://agentmods.dev/badge/skills/nicepkg/ai-workflow/astro-cta-injector/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/nicepkg/ai-workflow/astro-cta-injector"><img src="https://agentmods.dev/badge/skills/nicepkg/ai-workflow/astro-cta-injector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00072 | $0.01125 |
| Opus 5.5 | $0.00029 | $0.00450 |
| Sonnet 5.5 | $0.00014 | $0.00225 |
| Haiku 4.5 | $0.00007 | $0.00112 |
Grade A, and why
astro-cta-injector scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Astro CTA Injector Skill
Purpose
This skill injects Call-to-Action (CTA) blocks into Astro site content. It supports:
- Multiple CTA types (newsletter, product, custom)
- Intelligent placement strategies
- Content-based relevance scoring
- Batch processing with preview
When to Use This Skill
- User asks to "add CTAs to blog posts"
- User wants to "inject newsletter signup" into content
- User mentions "add product promotion" to posts
- User needs to batch-add any type of content block to posts
- User wants to "add calls to action" to their Astro site
Prerequisites
- Astro site with content in
.astroor.mdfiles - Python 3.10+
- BeautifulSoup4 for HTML parsing
Configuration
Create a config.json in the skill directory:
{
"content_path": "./src/content/blog",
"file_patterns": ["*.astro", "*.md"],
"cta_types": {
"newsletter": {
"template": "newsletter.html",
"default_placement": "after-paragraph-50%",
"keywords": ["tip", "guide", "learn", "strategy"]
},
"product": {
"template": "product.html",
"default_placement": "end",
"keywords": ["productivity", "task", "habit", "goal"]
}
},
"output": {
"state_file": "./state/cta_injection_progress.json",
"backup_dir": "./backups",
"report_file": "./reports/cta_injection_report.md"
},
"dry_run": true
}
Placement Strategies
| Strategy | Description | Best For |
|---|---|---|
end |
After all content | Non-intrusive CTAs |
after-paragraph-50% |
After 50% of paragraphs | Mid-content engagement |
after-paragraph-60% |
After 60% of paragraphs | Later engagement |
after-heading |
After first H2 | Early engagement |
before-conclusion |
Before last paragraph | Strong finish |
CTA Templates
Templates are HTML files in the templates/ directory:
<!-- templates/newsletter.html -->
<aside class="cta-newsletter" data-cta-type="newsletter">
<h3>{{title}}</h3>
<p>{{description}}</p>
<form action="{{form_url}}" method="post">
<input type="email" placeholder="Your email" required />
<button type="submit">Subscribe</button>
</form>
</aside>
What ships with it
7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 161 lines · 72 tokens per session scan A 0ea2742f7140
astro-cta-injector is a skill published in the GitHub repository nicepkg/ai-workflow (298 stars, last pushed 10mo ago), licensed MIT. It adds 72 tokens to every session and 1,125 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
astro-cta-injector compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| astro-cta-injectornicepkg/ai-workflow | Skill | 298 | 10mo ago | MIT | A | 72 | Claude Code |
| headroomheadroomlabs-ai/headroom | Skill | 81k | today | Apache-2.0 | A | 76 | Claude Code |
| html-artifactslangchain-ai/open-swe | Skill | 11k | today | MIT | A | 52 | Claude Code, Codex |
| hive.slack-notifications-setupaden-hive/hive | Skill | 11k | yesterday | Apache-2.0 | A | 136 | Claude Code, Codex |
| hive.chart-creation-foundationsaden-hive/hive | Skill | 11k | yesterday | Apache-2.0 | A | 133 | Claude Code, Codex |
| browser-edge-casesaden-hive/hive | Skill | 11k | yesterday | Apache-2.0 | A | 40 | Claude Code |
| hive.pdfaden-hive/hive | Skill | 11k | yesterday | Apache-2.0 | A | 98 | Claude Code, Codex |