`filecannon` is an AI-powered CLI tool that generates files based on examples and natural language descriptions. Perfect for developers who want to maintain consistency while creating new configuration files, documentation, or content.
Features
- 🚀 Generate new files using natural language prompts
- 📝 Learn from example files to match your existing patterns
- 🎯 Smart path handling and directory creation
- 🤖 Anthropic Claude and OpenAI support
Installation
bash
pip install filecannon
Basic Usage
bash
filecannon "create a new consulting service yaml for AI training" \
--example src/content/consulting/ai/existing-service.yaml \
--output src/content/consulting
Requirements
- Python 3.8+
- OpenAI API key (set as OPENAI_API_KEY environment variable)
Notes
- This is an initial release focused on core functionality
- Requires example files for best results
Known Limitations
- Single file generation per invocation
We're excited to see how developers use filecannon to streamline their file generation workflows! Feedback and contributions welcome.
---
*Part of the 255labs.xyz toolkit for AI-first development.*