ds-agent-rules¶
A portable, composable rules system for AI coding agents — one source of truth for Data Science, Machine Learning, and AI Engineering projects.
Write rules once. Sync to Claude Code · GitHub Copilot · OpenAI Codex · Gemini Code · Cursor · Windsurf — all at once.
Install¶
Why?¶
Without explicit rules, AI agents silently introduce bad habits:
| What goes wrong | Impact |
|---|---|
| No random seeds | Irreproducible experiments |
| Random train/test splits on time-series | Data leakage |
| Skipped evaluation baselines | Unverifiable model claims |
| Hardcoded hyperparameters | Untrackable experiments |
How It Works¶
┌────────────────────┐
│ base/core.md │ ← always loaded
│ base/ds-ml.md │ ← project-type overlay
│ snippets/rag.md │ ← domain-specific rules
│ team/*.md │ ← team overrides (optional)
└────────┬───────────┘
│ sync.sh
▼
┌────────────────────────────────────┐
│ CLAUDE.md │
│ AGENTS.md │
│ .github/copilot-instructions.md │
│ .gemini/styleguide.md │
│ .cursorrules │
│ .windsurfrules │
└────────────────────────────────────┘
Layer model: core (always) → overlay (project type) → snippets (domains) → team (overrides)
Quick Links¶
- Quickstart — get up and running in 2 minutes
- Browse Snippets — 23 domain-specific rule modules
- Presets — one-command setups for common project types
- Contributing — how to add or improve rules
Supported AI Tools¶
| AI Tool | Config File |
|---|---|
| Claude Code | CLAUDE.md |
| GitHub Copilot | .github/copilot-instructions.md |
| OpenAI Codex / ChatGPT | AGENTS.md |
| Google Gemini Code | .gemini/styleguide.md |
| Cursor | .cursorrules |
| Windsurf | .windsurfrules |