AgriciDaniel/claude-blog / skills/blog-audio
blog-audio
VerifiedPaid Gemini TTS audio for a finished blog post: summary, full read-aloud, or two-speaker dialogue, with an MP3 and an HTML5 embed. Asks for explicit consent before the first paid call. Runs only on an explicit request: /blog audio, "generate audio for this blog post", "narrate this blog post", "audio version of this post", or "podcast version of this post". Not for general speech or dictation questions.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.9 KB |
| references/models.md | markdown | 1.4 KB |
| references/voices.md | markdown | 6.4 KB |
| scripts/__init__.py | script | 62 B |
| scripts/generate_audio.py | script | 32.8 KB |
| scripts/requirements.lock | other | 51.3 KB |
| scripts/requirements.txt | manifest | 499 B |
| scripts/run.py | script | 3.6 KB |
| scripts/runtime_paths.py | script | 2.6 KB |
| scripts/setup_environment.py | script | 6.1 KB |
scripts/runtime_paths.py
View on GitHub"""Read-only runtime path policy, shipped identically with each integration.
CLAUDE_BLOG_RUNTIME_DIR is an explicit trusted absolute operator/host path.
No override means the original skill-local .venv/data layout. Resolution never
creates directories, expands shell expressions or migrates existing state.
"""
import os
from pathlib import Path
import re
from typing import NamedTuple
class RuntimePaths(NamedTuple):
root: Path
venv: Path
data: Path
def validate_absolute_override(raw: str, path_type=Path):
"""Validate native Path semantics, including Windows drive/UNC anchors."""
if not raw or raw != raw.strip() or "\x00" in raw:
raise ValueError("CLAUDE_BLOG_RUNTIME_DIR must be a nonempty absolute path")
if "$" in raw or re.search(r"%[^%]+%", raw) or raw.startswith("~"):
raise ValueError("CLAUDE_BLOG_RUNTIME_DIR must be resolved, without shell or host placeholders")
path = path_type(raw)
if not path.is_absolute() or ".." in path.parts:
raise ValueError("CLAUDE_BLOG_RUNTIME_DIR must be absolute, without parent traversal")
return path
def confined_directory(root: Path, *parts: str) -> Path:
"""Refuse linked managed directories and paths outside the selected root."""
root = root.resolve()
path = root
for part in parts:
path = path / part
if path.is_symlink():
raise ValueError("runtime directory must not be a symlink")
try:
path.resolve().relative_to(root)
except ValueError as exc:
raise ValueError("runtime directory escapes its selected root") from exc
if path.exists() and not path.is_dir():
raise ValueError("runtime directory must be a directory")
return path
def resolve_runtime_paths(skill_dir: Path, integration: str) -> RuntimePaths:
"""Return consistent venv/data roots without any filesystem mutation."""
if integration not in ("blog-audio", "blog-google", "blog-notebooklm"):
raise ValueError("unknown runtime integration")
skill_dir = Path(skill_dir)
if not skill_dir.is_absolute():
raise ValueError("trusted installed skill path must be absolute")
raw = os.environ.get("CLAUDE_BLOG_RUNTIME_DIR")
if raw is None:
root = skill_dir.resolve()
else:
selected = validate_absolute_override(raw).resolve()
if selected.exists() and not selected.is_dir():
raise ValueError("CLAUDE_BLOG_RUNTIME_DIR must be a directory")
root = confined_directory(selected, integration)
return RuntimePaths(root, confined_directory(root, ".venv"), confined_directory(root, "data"))
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |