publish-sns
Publish SNS
Overview
Publish channel notes from the Obsidian vault through the native adapter, record verified results in the Supabase published_posts ledger, and handle deletion. Tistory·Maily use the loopback FastAPI publisher; Threads·LinkedIn·Instagram use n8n webhooks. X is suspended because of the API paywall.
Three iron rules:
- Never publish or delete without an explicit user approval AFTER showing a preview. Channel agreement is not approval. Body shown ≠ body changed later — re-preview after any edit.
- The ledger is the only memory. post_id/url live in
published_posts, never in conversation memory. - Blog/Tistory needs a section image plan, not merely “an image.” Every Blog publish or update must include a hero image as
cover_imageand section-specific body images distributed through the article. Give every major##section a matching image; two short adjacent sections may share one only when they express the same visual concept. For a post with 3 or more##sections, require at least 3 images total (hero + at least 2 body images) and never leave more than 2 consecutive##sections without an image. Place each body image after the opening paragraph of the section it illustrates, not as a gallery at the top or bottom. Prefer the user’s real screenshots/assets; otherwise generate withget-ai-imagewhen appropriate. A factual depiction of a real person, place, customer, product state, or event requires a supplied or verified asset and must never be fabricated with AI. The first image remains the hero/cover so body, list thumbnail, and OG image stay aligned. A hero plus a final related-video thumbnail does not satisfy this gate.
Content formats are NOT defined here. Text drafts are owned by writing-social-content; this skill accepts only finalized text and finalized image files and owns the upload and publishing contract. It does not generate cards or finished Shorts/video files.
Post-publication review boundary
성공한 실발행 결과가 published_posts에 저장되면 existing DB trigger가 발행 완료 이벤트를 생성한다. 이 이벤트를 소비하는 자동 파이프라인은 2026-10에 은퇴했다. publish-sns는 CORE/Snippet/MOC를 직접 생성하거나 후보를 적용하지 않는다. 대신 실발행과 장부 확인이 끝난 같은 턴에서 extract-core 발행 단계로 넘긴다 (작성 단계에서 이미 CORE가 연결된 글이면 논지 변화 확인과 파생 채널 연결만, 아니면 CORE 후보 제안) (사용자가 LinkedIn 등을 직접 올렸다고 말한 경우도 같다). 같은 주제의 다른 채널이 이미 환류됐으면 그 CORE에 core_principle만 맞춘다. webhook 실패, 장부 저장 실패, preview, dry-run, reconciliation은 실발행이 아니므로 넘기지 않는다.