ai-content-operations-skill
Design, implement, audit, or operate a complete AI-assisted website content system covering topic queues, scheduled article generation, editorial and factual quality gates, publishing, live verificati
SKILL.mdSKILL.md
GitHubAI Content Operations
Build a content supply chain, not a one-shot writing prompt. Keep generation, validation, publishing, live verification, tracking, and weekly governance as separate stages with explicit state transitions.
Start here
- Inspect the target repository, deployment path, content format, existing automation, analytics, and credentials interface.
- Read references/architecture.md to map the system and ownership boundaries.
- Read only the references needed for the requested work:
- Daily generation and publishing: references/daily-pipeline.md
- Editorial, factual, SEO, and public-copy gates: references/quality-gates.md
- Google Sheets tracking and idempotent sync: references/google-sheets.md
- Weekly clusters, internal links, and cannibalization: references/weekly-governance.md
- Installation and rollout: references/adoption.md
- Copy and adapt the contracts in
assets/; never hard-code a production spreadsheet ID, service-account JSON, provider key, site origin, or brand-specific prompt. - Run
scripts/validate_content_record.pyagainst representative records andscripts/audit_content_clusters.pyagainst the full content index before enabling writes.
Required operating model
Use this state machine:
planned -> drafting -> generated -> validated -> committed -> deployed -> live_verified -> tracked
Allow blocked, failed, and needs_review from every mutating stage. Never mark an item published or tracked before the corresponding evidence exists.
Daily run
- Lock the pipeline so two runs cannot publish the same topic.
- Select one
plannedqueue item or an explicit operator override. - Compare its primary intent with recent titles, summaries, FAQs, key insights, and cluster metadata. Refine or reject overlapping topics.
- Generate structured output that separates public copy from internal governance metadata.
- Create or select a unique cover image and keep article, Open Graph, and tracker URLs consistent.
- Run deterministic gates before any commit. Fail closed on missing sources, invalid contracts, leaked internal metadata, broken links, or build failures.
- Rebuild every derived artifact used by the live site: index, search data, HTML, structured data, sitemap, feed, and production build.
- Commit and push only the validated artifact set. Rebase safely if the target branch moved.
- Poll the canonical public URL and verify status, canonical, metadata, structured data, and visible content.
- Upsert the tracking row by stable article ID or canonical URL. Record commit, deployment run, verification result, and review state.
- Advance the queue item only after successful publication; send a concise notification if configured.
Quality policy
- Treat model output as an untrusted draft.
- Require source URLs and freshness context for prices, laws, grants, health, finance, product specifications, research, comparisons, reviews, and affiliate claims.
- Distinguish hard failures from warnings. Hard failures block publication; warnings create review work.
- Keep
clusterRole,primaryIntent, cannibalization notes, review notes, and link-role labels out of public copy. - Require a clear reader problem, direct answer, actionable next step, limitations, disclosure where relevant, and intentional internal links.
- Validate repository artifacts and live behavior. A successful commit is not proof of a successful publication.
Tracking policy
- Make the repository the source of truth for content; use Sheets as the operational view unless the adopter explicitly chooses another authority.
- Use deterministic headers and idempotent upserts. Update existing rows when metadata changes; append only when the stable key is absent.
- Provide dry-run mode and reject local production writes unless explicitly enabled.
- Support full backfill so missed webhook or workflow runs are recoverable.
- Store references to secrets, never secrets themselves.
Weekly governance run
- Rebuild all derived content artifacts.
- Identify content created or materially changed during the review window.
- Group the full corpus by cluster and role:
core,supporting,conversion,regional, orupdate. - Detect intent overlap using normalized metadata; treat similarity as a review signal, not an automatic deletion decision.
- Enforce a bounded set of core pages per hub and default new daily articles to
supporting. - Review role-based internal links, orphan pages, missing cluster coverage, stale claims, and conversion paths.
- Produce a human-readable governance report and machine-readable findings.
- Apply only deterministic safe changes automatically. Route merges, redirects, canonical changes, noindex, and deletion to explicit review.
Release safeguards
- Keep generation, deployment, tracking, and governance jobs independently retryable.
- Use concurrency groups and do not cancel an in-progress publishing mutation.
- Stage an explicit allowlist of generated files; do not commit unrelated worktree changes.
- Verify that deployed code, deployed content contracts, and live behavior agree after contract changes.
- Stop and report if tests fail, authentication is missing, a rebase conflicts, the live site remains stale, or the tracking destination rejects the contract.
Completion evidence
Report the queue item, generated files, validation results, commit, deployment/run identifier, public URL, live verification, tracking upsert, and outstanding weekly-governance work. Do not report success from local generation alone.