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-blogThe 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 -gYou 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:
| Workflow | Use |
|---|---|
| Draft a post | Agent writes Markdown, creates a draft, and returns review details |
| Update existing content | Agent fetches the post, proposes changes, and waits before writing |
| Prepare a release note | Agent turns commits or notes into a draft post |
| Import content | Agent maps source fields to posts, authors, media, categories, and tags |
| Check publication state | Agent 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