gw-media-content-now
Produce one unpublished post piece (texts per channel plus images) in a dated folder, from a proposal id or a free topic. Use when the user picks a proposal from gw-media-content, or asks for a single
SKILL.mdskills/gw-media-content-now/SKILL.md
GitHubgw-media-content-now
If .claude/gw/gw-media-content-now.md exists in the project, read it first: it holds what is specific to the project.
Then read .claude/gw/gw-media-content.md if it exists, and its shape in .claude/skills/gw-media-content/nota.md
(folder <dir>, languages, channels, extra channels, palette, screenshots, task prefixes, Reddit rules).
You make one piece: <dir>/AAAA-MM-DD/NN-<tema>/, with texts for each channel and the images that go with
them. Pieces accumulate in the day's folder. Nothing is ever published: the user posts and records where. Shared
material is in .claude/skills/gw-media-content/: catalogo.md, reglas.json, nota.md, plantilla/, scripts/.
Steps
- Input. A proposal id (
AAAA-MM-DD/P3: read its block in<dir>/propuestas/AAAA-MM-DD.md) or a free topic (pick the row ofcatalogo.mdthat fits; with no repo data behind it, say so and stop). Done when you can name the topic, the facts to use and the channels: the proposal's networks (or the request's) among the active ones. - Folder.
<dir>/AAAA-MM-DD/for today;NNis the next free two-digit number there (01 if none);<tema>is a lowercase slug (a-z,0-9,-). Copy.claude/skills/gw-media-content/plantilla/intoNN-<tema>/and shape it:- delete the channel files not in use; for an extra channel of own format, copy its template (note) as
<canal>.md; - in
ficha.mdsetIdiomas:(the first language is the main one) and## Canales, delete the## Redditblock whenredditis not a channel, and delete the example rows of## Hechos comprobadosand## Imágenes; - replace every
<tema>,AAAA-MM-DDand{{...}}placeholder in the folder, or delete its line. Done when the piece folder holdsficha.mdplus one file per channel, with no placeholder left.
- delete the channel files not in use; for an extra channel of own format, copy its template (note) as
- Facts first:
ficha.md. Every claim in the piece goes in the tableHechos comprobadoswith its source. Numbers come frompython3 .claude/skills/gw-media-content/scripts/cifras.py [--desde REF]; the rest from a cited file and line or commit. Only what is merged; if the project has a canon (lore, design docs), claims about it come only from there. Task ids, branches and internal notes go inUso interno. Done when each fact a channel will use has a source cell. - Media. Every image a channel carries exists in
medios/and is listed in## Imágeneswith alt text in every language; a text-only piece leaves## Imágeneswith no rows.- From the template:
mv(notcp) the source for the chosen format inmedios/fuente/to its final name, delete the other template sources, and fill every{{...}}. Names per language: the first languagemedios/fuente/<n>.html; any other language that needs its own imagemedios/fuente/<n>.<lang>.html(never a suffix for the first language:comprobar.pyrejects it). Apply the palette from the note. - Screenshots: steps in the note; crop to what matters, save in
medios/fuente/as.pngor.jpg; no personal data, no placeholder or broken text on screen. - Render:
node .claude/skills/gw-media-content/scripts/render.mjs <piece-folder>(it names what is missing and the command to fix it). Frommedios/fuente/<n>.htmlit writesmedios/<n>.webp,medios/<n>-mini.webpandmedios/<n>.png; from<n>.<lang>.html,medios/<n>.<lang>.webp(+-mini,.png); acarrusel*.htmlgives a.pdf. Use the.pngfor LinkedIn (it takes.png,.jpg,.gif, not WebP), the.webpfor X, Reddit and Discord,.webp,.pngor.jpgfor an extra channel, the.pdfcarousel for LinkedIn only. Read each render image before using it.
- From the template:
- Channels. Write each channel file in every language, from the ficha only, in the shape of its template file and
within
reglas.json(comprobar.pyenforces it). Each post names its image on anImagen:line; in an own-format channel there is noImagen:line: the image path (medios/x.webp) appears in the file's text.- Reddit (
## Redditinficha.md): the- **Subreddit:** r/<x>,- **Normas leídas:** AAAA-MM-DDand- **Autopromoción:**lines go before the first###, then one### Normas de r/<x>per subreddit holding the rules the user pasted (at leastreddit.normas_min_caracterescharacters, no#headings inside: paste them as plain lines).Normas leídas:is counted from the piece's date folder and is at mostreddit.normas_diasdays old. Take the rules from the note or the ficha when they are dated within that limit; otherwise ask the user to paste them (Reddit cannot be read automatically, and rules are never invented), then continue. - Extra channels (declared in the note): one
<canal>.mdas the note says: a section per language within itslímite, or the copied own-format template filled in. If the note gives neither, ask.
- Reddit (
- Check. Build the command from the note as
nota.mdsays (--prefijos-tarea, and--limite <canal>=Nor--formato-propio <canal>for each extra channel of the piece) and runpython3 .claude/skills/gw-media-content/scripts/comprobar.py [options] <piece-folder>; it printsOK, and each line it prints is a fix to make. Then reread the English: natural, not a literal translation. Done whenOKis printed and the reread found nothing to change. - Close. Mark the proposal
**Status:** done → <piece folder>. Commit with the project's commit format; the log row names the folder, its channels and that it is ready to publish. Show the user the texts and image paths. After publishing, the user fills## Publicadoinficha.md.