$ cli-blog docs

Agent skill

Install the launched Cli Blog skill and use it with draft-first publishing rules.

The Cli Blog skill gives agents the product context they need before they touch content. Use it when an agent will create drafts, update posts, inspect resources, or prepare content for review.

Install the skill

Install it with the open Agent Skills CLI:

npx skills add https://github.com/cli-blog/cli-blog-skill --skill cli-blog

The installer detects supported agents and lets you choose the target. Install it globally when you want it available across projects:

npx skills add https://github.com/cli-blog/cli-blog-skill --skill cli-blog -g

You can review the skill on skills.sh before installing it. The GitHub repository contains the source and other installation options.

Choose a workflow

Use the skill in the workflow that matches the agent runtime:

WorkflowUse
Draft a postAgent writes Markdown, creates a draft, and returns review details
Update existing contentAgent fetches the post, proposes changes, and waits before writing
Prepare a release noteAgent turns commits or notes into a draft post
Import contentAgent maps source fields to posts, authors, media, categories, and tags
Check publication stateAgent lists posts, filters by status, and reports what needs review

Prompt a draft-first workflow

Use the Cli Blog skill.
Create a draft post from this Markdown.
Return the post ID, slug, locale, status, and review notes.
Do not publish until I approve.

Prompt a content update

Use the Cli Blog skill.
Fetch the post by slug.
Suggest title, excerpt, SEO, and body edits.
Wait for approval before updating the post.

Prompt a release note

Use the Cli Blog skill.
Turn these release notes into a draft post.
Assign the Release notes tag.
Return the draft details and any missing fields.

Safety rules

Use these rules in agent prompts and automation:

  • Keep public keys for published-content reads
  • Keep private keys in trusted agent runtimes only
  • Create drafts before public changes
  • Ask for approval before publish, delete, or wide updates
  • Do not print, commit, screenshot, or document private key values

References inside the skill

The skill repository includes references for:

  • Public API usage
  • Node SDK usage
  • CLI commands
  • Framework patterns
  • Agent-specific prompts

On this page