Shinmun now includes an AI-powered CLI assistant that helps streamline the blog writing workflow. With a simple --ai flag, you can generate structured drafts, auto-populate metadata, and create SEO descriptions without leaving your terminal.
Writing blog posts involves more than just content. You need to:
These tasks can slow down the creative process, especially when you want to quickly capture an idea.
Shinmun’s AI assistant handles the boilerplate so you can focus on refining content:
shinmun post "Building RESTful APIs with Sinatra" --aiThis single command creates a complete draft with:
config.ymlThe assistant uses either Anthropic’s Claude or OpenAI’s GPT-4 (depending on which API key you’ve configured) to:
All processing happens through direct API calls—your content stays between you and the LLM provider.
Already have posts without metadata? The ai-enhance command analyzes existing content:
shinmun ai-enhance posts/2024/12/my-older-post.mdThis fills in empty category, tags, and description fields while preserving any existing metadata.
Add your API key as an environment variable:
export ANTHROPIC_API_KEY="your-key"
# or
export OPENAI_API_KEY="your-key"That’s it. No additional dependencies or configuration required.
The AI assistant is a drafting tool, not a replacement for your voice. Use it to:
Always review and refine the generated content before publishing.
For complete documentation, see the AI Assistant Guide.
Posted in category Ruby. Tagged with ai, cli, productivity, automation.