Aider configuration for Hacker News story re-ranking system development with FastHTML and Claude Sonnet
Configuration for developing a Hacker News story re-ranking system using Aider AI pair programming assistant.
This Aider configuration optimizes the development workflow for a Python web application that re-ranks Hacker News stories. It uses Claude 3.7 Sonnet with aggressive caching, auto-commits, and file watching to streamline the development process.
When a user activates this skill, configure Aider with the following settings:
1. **Set the AI model:**
- Use `claude-3-7-sonnet-20250219` as the primary model
- Enable prompt caching with `cache-prompts: true`
- Set cache keepalive pings to 2 to maintain context
2. **Configure development workflow:**
- Disable streaming (`stream: false`) for complete responses
- Enable auto-commits (`auto-commits: true`) to save progress automatically
- Enable file watching (`watch-files: true`) to detect external changes
3. **Load project context by reading these files:**
- `Python.md` - Python coding guidelines
- `README.md` - Project documentation
- `pyproject.toml` - Project dependencies and configuration
- `main.py` - Main application entry point
- `posts.py` - Post handling logic
- `data_collection.py` - Data collection module
- `fasthtml-ctx.txt` - FastHTML framework context
4. **Maintain awareness of:**
- The project is a FastHTML-based web application
- It involves web scraping and data processing
- Code should follow Python best practices defined in Python.md
- All commits should be meaningful and automatic
```bash
cat > .aider.conf.yml << 'EOF'
model: claude-3-7-sonnet-20250219
cache-prompts: true
cache-keepalive-pings: 2
stream: false
auto-commits: true
watch-files: true
read:
- Python.md
- README.md
- pyproject.toml
- main.py
- posts.py
- data_collection.py
- fasthtml-ctx.txt
EOF
aider
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/hn-rerank-development/raw