Blog

From cubxxw/blog · View interactive version

Blog is an AI agent skill from the GitHub repository cubxxw/blog. Maintain the cubxxw bilingual Hugo blog, including brief-driven writing, interactive explanations and instructional animation, content metadata, PaperMod templates, CSS and JavaScript, SEO, proportional validation, and GitHub delivery. Use for content, design, implementation, validation, or publishi

How to use this skill

Skill file

Blog repository workflow

Start with repository truth

  1. Read CLAUDE.md before changing content or code. Treat it as the authoritative project guide.
  2. Inspect the current branch, remote state, and working tree before editing. Preserve unrelated local changes.
  3. Read the files that own the behavior before proposing a change.

Route the task

Preserve content invariants

Implement with the existing architecture

Interactive explanations and animation

During planning, writing, or presentation review, proactively consider whether readers would understand a claim better by changing a condition, comparing outcomes, or stepping through state changes. When that teaching benefit exists, prefer the repository's native Web Components + interactive shortcode + build-time data approach. The author need not explicitly ask for animation each time; preserve the task's content and publication authorization.

Keep the field vocabulary, examples, limits, and detailed acceptance commands in the author guide and acceptance reference, rather than duplicating the schema in this skill. For data/shortcode additions run npm run interactive:check and inspect the affected localized pages; for shared component behavior changes also run npm run interactive:test. Add manual checks for the changed surface and report unrun checks honestly.

Validate proportionally

Choose the lowest-cost validation layer that covers the changed surface.

For skill or workflow documentation only, validate skill metadata, linked paths, routing consistency, and git diff --check; a site build or browser run is unnecessary unless rendered content or code also changes.

For a standard article-only change using existing Markdown, front matter, routes, and cover conventions:

Escalate only when the article introduces raw HTML, shortcodes, a new content type or route, unusual media, generated markup, or another rendering risk.

For template, CSS, JavaScript, configuration, or shared rendering changes:

Leave the full Hugo build, full npm test suite, and cross-site visual regression to CI/CD. Repeat them locally only when CI is unavailable, the user requests it, a cross-cutting release is unusually risky, or a CI failure needs diagnosis. Wait for required CI checks before merging.

Deliver through GitHub

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.