Documentation
CLI & Agent Skill
Use the AutoBlogWriter CLI and skill to automate content workflows with JSON-first commands.
CLI & Agent Skill
The AutoBlogWriter CLI gives you scriptable control over the full content pipeline. The autoblogwriter-cli skill adds a reliable operating contract for agent-driven workflows.
Official links
- CLI package (npm): @autoblogwriter/cli
- Skill repository (GitHub): auto-blog-writer-app/autoblogwriter-skill
- Skill contract file: SKILL.md
- CLI README (published package): README
Install
npm i -g @autoblogwriter/cliInstall the hosted skill:
npx skills add auto-blog-writer-app/autoblogwriter-skillCommand coverage
The CLI supports:
- Auth and setup (
status,login,set-key,logout) - Workspace and integration inspection (
workspaces:*,integrations:*) - Idea generation and draft conversion (
ideas:*) - Post creation, scheduling, and publishing (
posts:*) - Full workflow orchestration (
runs:validate,runs:start,runs:status,runs:logs,runs:list)
The default output is JSON, which makes it easier to script and automate.
Why use the skill
The skill is useful when an agent is executing CLI tasks repeatedly:
- Prefers CLI commands over custom API re-implementation
- Keeps JSON output enabled for deterministic parsing
- Validates run specs before execution
- Uses structured
errorfields and exit codes for troubleshooting
Agentic workflows
The CLI is a strong building block for agentic pipelines:
- An agent can generate ideas, create drafts, schedule, and publish blog posts without manual dashboard steps.
- The same agent can pass generated content to other tools to create social posts, newsletters, or distribution tasks for other platforms.
- JSON-first outputs make it easy for agents to transform CLI results into downstream prompts, API calls, and queue jobs.
Important: runs:status and runs:logs track CLI workflow execution (idea, draft, schedule, publish) for that run ID. Cross-tool or cross-app tracking should be handled by your broader orchestration layer.
Common scenarios
- Workspace readiness check: Run auth and integration checks before any mutating operation.
- Keyword-to-calendar pipeline: Generate ideas, convert selected ideas to drafts, and schedule them in bulk.
- Campaign publish run: Bulk publish a selected set of posts with integration-specific settings.
- Workflow run tracking:
Use
runs:statusandruns:logsto track execution of the CLI workflow steps (idea,draft,schedule,publish) for a given run ID. - Weekly automation: Validate and execute the same JSON/YAML run spec on a recurring basis.
- Multi-medium distribution pipeline: Generate or publish blog content with the CLI, then hand the resulting content to your social/email/app automation steps.
- Team visibility and audit trail: Use run IDs and local event logs to review what was generated, scheduled, published, retried, or failed in each CLI run.
- Fast incident response: Use exit codes to quickly resolve auth, validation, network, or plan limit failures.