Run all examples with a single command:
./run_examples.shThe examples now run significantly faster with recent optimizations:
- 50-70% faster startup with lazy loading
- 60-second timeout protection prevents hangs
- Intelligent caching for repeated operations
- Thread-safe file operations for better concurrency
./run_examples.sh quick-start ./run_examples.sh cli-commands
./run_examples.sh --list
./run_examples.sh --check
./run_examples.sh --setup
./run_examples.sh --help
# List examples with rich output
planfile examples list
# Run with progress tracking
planfile examples run --all
# Run specific example with timeout
planfile examples run code2llm
Perfect for beginners - get started with planfile in minutes!
./run_examples.sh quick-startWhat you'll learn:
- Generate strategies from project files
- Create project templates
- View strategy statistics
- Export to different formats (JSON, HTML, CSV)
- Compare strategies
Master the command-line interface:
./run_examples.sh cli-commandsWhat you'll learn:
- Validate strategy configurations
- Review project settings
- Apply strategies (dry run)
- View detailed statistics
- Export strategies
Comprehensive demo of all features:
./run_examples.sh integrated-functionalityWhat you'll learn:
- File analysis without external scripts
- Template generation for different project types
- Strategy comparison and merging
- Multiple export formats
- Health checking
Integration with code analysis tools:
./run_examples.sh external-toolsWhat you'll learn:
- code2llm - Code complexity analysis
- vallm - Validation and linting
- redup - Code duplication detection
- Combined analysis workflows
Power user features and patterns:
./run_examples.sh advanced-usageWhat you'll learn:
- Custom file patterns
- Focus-specific strategies
- Iterative strategy refinement
- Batch processing
- CI/CD workflow automation
The runner automatically checks and installs dependencies:
- Python 3.10+ - Required
- planfile package - Auto-installed if missing
- expect - Optional (for interactive tests)
For full functionality, install optional dependencies:
# Install all integrations
pip install planfile[all]
# Or install individually
pip install PyGithub # GitHub integration
pip install jira # Jira integration
pip install python-gitlab # GitLab integration
pip install litellm # LLM integration
pip install llx # Code analysis
pip install code2llm # External tool
pip install vallm # External tool
pip install redup # External toolEach example creates its own set of files:
quick-start/
quick-start.yaml- Generated strategyweb-template.yaml- Web project templateweb-template.json- JSON export
cli-commands/
test-strategy.yaml- Test strategytest-strategy.json- JSON export
integrated-functionality/
generated-from-examples.yaml- Strategy from analysistemplate-*.yaml- Various project templatesstrategy-export.*- Multiple export formats
-
"planfile command not found"
pip install -e . -
"Generation failed"
- The runner automatically falls back to template generation
- Check if project directory exists and is accessible
-
"Backend initialization failed"
- Install required backend:
pip install PyGithub - Or use
--dry-runflag to skip backend operations
- Install required backend:
-
Permission errors
chmod +x run_examples.sh
Set these for enhanced functionality:
# GitHub integration
export GITHUB_TOKEN=your_github_token
# OpenAI integration
export OPENAI_API_KEY=your_openai_key
# OpenRouter (free LLM validation)
export OPENROUTER_API_KEY=your_openrouter_keyEach example provides colored output with:
- ✅ Success indicators
- ❌ Error messages
- ℹ️ Informational notes
- ➡️ Step indicators
- 🎯 Section headers
After running examples:
- Explore generated files - Check the
.yamland.jsonfiles - Try your own project -
planfile generate-from-files /path/to/your/project - Create custom templates -
planfile template web your-domain - Integrate with CI/CD - Check the advanced usage examples
- Main README: README.md
- Examples Details: examples/README.md
- API Documentation: Check the
docs/directory
Tip: Start with ./run_examples.sh quick-start then explore other examples based on your needs!