article-publish
Skill0 starsChanged 22 days agoMITView on GitHub
Use when: publicar artigo já aprovado (status: ready) de 01-PROJECTS/blog/drafts/ no blog Hugo em phant0um.github.io. Converte wikilink, traduz frontmatter, roda gates e builda. Push exige confirmação humana. Escrever ou revisar o rascunho é `article-draft`.
- Commits and pushes
In this repository71 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adversarial-gateSkill
- anti-over-engineeringSkill
- article-draftSkill
- audit-loggingSkill
- autonomous-loopSkill
- backend-implementationSkill
- brainstormSkill
- browser-automationSkill
- cite-or-flagSkill
- codebase-designSkill
- code-optimizeSkill
- code-reviewSkill
- connection-finderSkill
- content-analysisSkill
- content-creationSkill
- content-designSkill
- content-synthesisSkill
- contradiction-sweepSkill
- conversor-md-htmlSkill
- councilSkill
- data-ai-implementationSkill
- decisionsSkill
- diagnoseSkill
- diagram-buildSkill
- domain-modelingSkill
- drift-reviewSkill
- editor-mdSkill
- evolveSkill
- frontend-implementationSkill
- fullstack-codeSkill
- fullstack-security-auditSkill
- grill-meSkill
- handoffSkill
- hill-climbSkill
- implementSkill
- infra-implementationSkill
- ingest-proposalSkill
- ingest-verifySkill
- marketing-content-designSkill
- office-hoursSkill
- pipeline-adsSkill
- plan-handoffSkill
- pre-ingest-dedupSkill
- pre-mortemSkill
- prompt-reviewSkill
- prototypeSkill
- reason-judgeSkill
- repo-radarSkill
- report-synthesisSkill
- research-verifySkill
- resolving-merge-conflictsSkill
- retroSkill
- router-selectSkill
- shipping-checklistSkill
- simplify-codeSkill
- skillifySkill
- spec-lifecycleSkill
- study-digestSkill
- subagent-teamSkill
- The first 60 shown.
The file
Files
article-publish — draft do vault → post no ar
Cadeia: 01-PROJECTS/blog/drafts/<slug>.md → gates → content/posts/<slug>.md
no repo Hugo → commit → push (confirmação humana) → Actions → site.
Repo: ~/dev/phant0um.github.io · Site: https://phant0um.github.io/
Quando NÃO usar
- Artigo em
status: draft: falta liberação humana; o gate barra e está certo. - Escrever ou revisar texto →
article-draft. - Mexer em tema, layout, config do Hugo: trabalho de repo, não de artigo.
- Republicar sem mudança: se o conteúdo não mudou, não gere commit.
Gates (ordem fixa, para no primeiro erro)
Cada gate é determinístico e sai != 0 quando falha. Não contorne gate: se um barra, o conserto é no draft, nunca no script.
1. Conversão e privacidade
python3 04-SYSTEM/scripts/blog-publish.py <slug>.md --checkBarra: status fora de {ready, published} (published passa para republicação) · tag epistêmica remanescente · title/description
ausente · type != article · date no futuro.
O gate de data existe por incidente: um post com date de amanhã fez o Hugo
pular a página, o Actions concluir success e a URL devolver 404. Build verde
mede o processo; só o HTTP mede o artefato. Se você declarar data futura de
propósito (post agendado), o script barra — é o comportamento certo, porque
"agendado" e "publicado agora" não podem sair pelo mesmo comando.
Wikilink cujo alvo não está publicado: com alias descritivo avisa e vira texto puro; sem alias, ou com alias que só reescreve o nome da nota, barra (o nome da nota iria a público). Tabela de 4 casos em 01-PROJECTS/blog/README.md. Default fechado: nota privada nunca vaza como link. Cada aviso merece leitura. Se o parágrafo perde sentido sem o link,
volte ao draft e reescreva.
2. Voz
python3 04-SYSTEM/scripts/voice-lint.py 01-PROJECTS/blog/drafts/<slug>.md --strictRegistro A é autodetectado por type: article. --strict sai 1 só com error.
3. Build
python3 04-SYSTEM/scripts/blog-publish.py <slug>.md # escreve de verdade
cd ~/dev/phant0um.github.io && hugo --gc --minifyBuild quebrado = post não sai. Erro comum: shortcode inexistente, HTML mal fechado dentro do Markdown.
Publicação
4. Commit
Pathspec explícito. git add -A é bloqueado por hook e recolheria pendência de
outra sessão.
cd ~/dev/phant0um.github.io && git add content/posts/<slug>.md static/og/<slug>.png && git commit -m "post: <título>"5. Push (gate humano)
Push é efeito externo público e irreversível na prática (o conteúdo é
indexado). O hook block-push-main.sh exige confirmação fora da string do
comando; a skill não cria o sentinel. Peça ao usuário:
touch ~/Obsidian/vault-michel/04-SYSTEM/.push-okSó então:
cd ~/dev/phant0um.github.io && git push origin main6. Verificar no ar
gh run list --limit 1
curl -sS -o /dev/null -w "%{http_code}\n" https://phant0um.github.io/posts/<slug>/Não declare publicado sem os dois: Actions success e HTTP 200. Deploy leva
~1 min após o push.
7. Arquivar o draft
git -C ~/Obsidian/vault-michel mv 01-PROJECTS/blog/drafts/<slug>.md 01-PROJECTS/blog/published/Atualize status: ready → status: published e registre a URL no frontmatter
(url:). O draft vira registro do que foi publicado, não cópia viva; a fonte
de verdade do site é o repo Hugo.
Saída
Reportar: slug · gates (cada um pass/fail com evidência) · avisos de wikilink e o que foi feito com eles · SHA do commit · conclusão do Actions · HTTP da URL · path do draft arquivado.
Failure modes
- Declarar publicado sem checar HTTP. Actions verde e site 404 coexistem — a causa mais comum é
dateno futuro, hoje barrada no gate 1. - Publicar N artigos e checar o HTTP de um só. Cada slug tem o seu; o deploy é comum, o artefato não.
- Editar o script para calar um gate em vez de corrigir o draft.
- Criar o sentinel de push no lugar do humano.
- Deixar o draft em
drafts/após publicar; na próxima rodada republica. - Wikilink virado texto puro deixando o parágrafo truncado, e ninguém leu o aviso.
Completion
Critério de aceite (espelha verifier:), por slug:
blog-publish.py <slug>.md --checksai 0.voice-lint.py --strictno draft sai 0.hugo --gc --minifybuilda sem erro.- Push feito só depois do sentinel criado pelo humano.
gh run listmostrasuccessecurldevolve 200 na URL do slug.- Draft movido para
01-PROJECTS/blog/published/comstatus: publishedeurl:.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

