/team-shared:content-blog-publish-tickfrom team-shared
Use when running the daily Leda tick (08:00, server time) — checks for scheduled posts whose ledaPublishAt already passed, verifies they weren't cancelled, and flips them to published in the CMS. Pairs with content-blog-publisher (which schedules): a post written by the early-morning cron goes out with the next morning's tick and can be cancelled until then. Lightweight: when nothing is due, the wrapper answers without calling the model.
Ships in team-shared. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
HITL 2 — ejecuta el publish después de la ventana. Tick diario, a las 08:00 (hora del server). Liviano: lista los programados vencidos, chequea la señal de cancelación, publica o aborta. Sin pulido, sin imagen, sin escritura larga.
scripts\leda-helpers.ps1 debe poder llamar al CMS (verificar PAYLOAD_API_KEY).linear para chequear el thread del issue [Content].projects/<slug>/brand-bible.md / project.json (ej. https://acme.example).powershell -File scripts\leda-helpers.ps1 -Action list-scheduled-due
Output: array de posts donde ledaStatus='scheduled' AND ledaPublishAt < now(). Lo normal es un post por tick: el que escribió el publisher en la madrugada anterior (su ledaPublishAt quedó a media mañana, después del tick de ese día).
Si está vacío: sal sin hacer nada. Brief mínimo: "Tick limpio — 0 posts para publicar." En el cron casi nunca llegas a este caso: run-skill.ps1 corre esta misma lista antes de llamarte y, si viene vacía, deja el brief y sale sin modelo.
Usa el MCP de Linear (list_issues con label agent-proposal filtrando por título [Content] <title del post>, o search_issues con el slug del post en el body). El issue se creó cuando el publisher programó este post.
Si no encuentras el issue (raro): publica igual (la programación está en el CMS; el issue es para la UX de cancelación). Comenta en algún issue de tracking general si hay alguno. Log al brief: "issue Linear no encontrado para post , publicado igual".
Listar los comentarios del issue (mcp__linear__list_comments). Buscar comentarios POSTERIORES a la programación (timestamp > ledaPublishAt - 6h, aprox. cuando se creó el issue) que coincidan con cualquiera de:
Leda: stop (case-insensitive)Leda: cancela, Leda: cancelar o Leda: cancelá (case-insensitive; acepta también la forma voseante que pueda escribir un humano)Cancelled (chequear el state del issue)Si hay señal de cancelación:
powershell -File scripts\leda-helpers.ps1 -Action cancel-schedule -PostId <postId>
Comentar en el issue (con la firma exacta 🤖 Leda 📖: por anti-loop):
🤖 Leda 📖: Cancelado por tu pedido. El post queda como draft en el CMS con ledaStatus='cancelled' (el cron diario no toma drafts: escribe desde el banco de ideas). Si quieres cambios, pídemelos aquí con `Leda: ...` y después lo publicas tú desde el admin. Si no va, elimina el draft.
Mover el issue a status Cancelled (o Done si Cancelled no existe en este team — ver convención).
powershell -File scripts\leda-helpers.ps1 -Action publish-now -PostId <postId>
Esto cambia _status='published' (un hook beforeChange del CMS setea publishedAt = now() automáticamente) y ledaStatus='published_by_leda'.
Comentar en el issue (firma exacta):
🤖 Leda 📖: Publicado → <URL pública del proyecto>/blog/<slug>
Featured image: <familia visual usada>.
Si después de leerlo quieres cambios chicos: edita en el admin del CMS directamente (no hace falta despublicar). Si quieres despublicar: cambia _status='draft' en el CMS.
Mover el issue a status Done.
# Tick content-blog-publish-tick — <fecha y hora>
## Resumen
- Posts scheduled-due encontrados: <N>
- Publicados: <M>
- Cancelados: <K>
## Publicados
| PostId | Title | URL pública |
|---|---|---|
| ... | ... | ... |
## Cancelados
| PostId | Title | Issue Linear |
|---|---|---|
| ... | ... | ACM-... |
## Costo
USD <total_cost_usd>.
## Próximo tick
Mañana a las 08:00 (hora del server).
_status=published y ledaStatus=published_by_leda?ledaPublishAt=null y ledaStatus=cancelled?automation/n8n/leda-publish-tick.json). Un tick horario no hace falta: el publisher de la madrugada deja ledaPublishAt a media mañana, así que cada post sale con el tick de la mañana siguiente, ~28 h después de escrito, y hasta ese tick se puede frenar con Leda: stop. El health check diario (scripts/run-health-check.ps1) mira el último tick: avisa si no dejó brief (no corrió) o si un post que vencía antes de ese tick sigue programado (el tick no lo publicó).run-skill.ps1 corre list-scheduled-due antes de llamar a claude. Si la lista viene vacía, escribe el brief "Tick limpio" (sin pisar el de una corrida anterior del día), anota la corrida en audit\ con model: precheck y sale. Si el helper falla o hay posts, corre el agente como siempre. -NoPreCheck lo saltea para probar la skill a mano.agents.ps1. No Haiku: alucinaba que no podía ejecutar PowerShell y no publicaba. El JSON del workflow no pasa -Model.scheduled → published_by_leda). Si por algún motivo dos ticks corrieran a la vez (raro), el segundo no encuentra el post como scheduled-due y no hace nada.ledaStatus (queda scheduled-due, el próximo tick reintenta). Idempotente.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub elibrachas/agent-team-template --plugin team-shared7 skills in this plugin
/brand-voiceUse when writing or reviewing any customer-facing content for the active project — blog posts, ads copy, emails, product pages, push notifications, social posts, in-product copy, support replies. Loads the project's brand bible (projects/<slug>/brand-bible.md) and the language convention from project.json, then enforces voice, tone by channel, lexicon and forbidden terms. Always invoke before publishing-facing copy./content-blog-improverUse when polishing a single existing blog post of the project to publishable quality (interactive `Leda:` requests — a draft written by hand in the CMS admin, or a correction on a scheduled/published post) — improves text, adds internal + external authority links, fills SEO fields (title, slug, excerpt, meta), assigns category and tags from canonical taxonomy, validates brand voice. Also the rulebook (Steps 4-11) that content-blog-publisher applies when it writes a post from scratch. Does NOT generate the image or schedule publish. Input: a postId. Respeta la audiencia objetivo y lo que el strategicFocus de project.json declara fuera de scope./content-blog-publisherUse when running the daily Leda cron for the active project — picks a topic from the CMS `topics` idea bank and either WRITES a new post from scratch (Gemini image with random style family and anti-repetition; scheduled with ledaPublishAt = +6h and published by the daily tick at 08:00 the next morning, cancellable via Linear until that tick — HITL-2 con default-publish) or, for a `refresh:` topic, rewrites an existing published post to the current standard and publishes it in the same run once it passes the gates (HITL-3: the owner reviews what is published and can restore the previous version). Respeta la audiencia objetivo del proyecto y lo que el strategicFocus declara fuera de scope./customer-personasUse when generating customer-facing content, planning campaigns, prioritizing features, or analyzing user research for the active project. Loads the ICP and personas from projects/<slug>/icp.md (ICP one-liner, quantitative/qualitative criteria, personas, triggers, objections, anti-personas) and explains how to apply them./design-systemUse when proposing, designing, implementing, or reviewing UI changes in the active project — loads the project's design system (tokens, typography, component inventory, a11y guidelines and where each lives in the product repo, documented in projects/<slug>/design-system.md) plus universal UI principles. Load BEFORE any UI work — Daly always, Pico when proposing UI, Cody when implementing UI./glossaryUse when discussing the active project's products, surfaces, terminology, metrics, funnel stages, payment states, user segments, or any term where a generic interpretation might miss internal nuance. Loads projects/<slug>/glossary.md. Especially important for data, growth and PM skills.