agents/README.md
This directory contains instruction files for various AI coding assistants to help them better understand and work with the Salt codebase.
These files provide AI agents with:
Each instruction file provides a quick reference and links to detailed documentation (see below).
The docs/ directory contains comprehensive guides that are referenced by all agent instruction files. This provides a single source of truth for detailed information:
development-setup.md - Complete virtual environment setup
architecture.md - Salt architecture deep dive
module-templates.md - Complete code templates
__virtual__() patterns (5 variations)testing.md - Comprehensive testing guide
git-and-ci.md - Git workflow and CI
troubleshooting.md - Common issues and solutions
Recommended approach: Create a symlink from the root directory to the agent file you want to use.
Creating a symlink keeps your local setup in sync with updates to the canonical instructions:
# From the root of the Salt repository
ln -s agents/CLAUDE.md CLAUDE.md
# or
ln -s agents/CURSOR.md .cursorrules
# or
ln -s agents/GEMINI.md GEMINI.md
# or
ln -s agents/COPILOT.md COPILOT.md
Why symlink?
agents/docs/ work correctlySome tools may allow you to specify a custom path to instruction files in their settings. Consult your tool's documentation.
Note: If you need to customize the instructions, it's better to propose changes to the canonical files in agents/ so everyone benefits, rather than maintaining a personal copy.
This directory also contains Model Context Protocol (MCP) servers that expose Salt development tools to AI agents:
See mcp/README.md for setup and usage instructions.
pip install mcp~/.config/claude-code/mcp_config.json (see mcp/mcp-config.json for template)export GITHUB_TOKEN="your_token"With MCP configured, you can ask Claude:
The root-level instruction files (CLAUDE.md, GEMINI.md, etc.) are intentionally ignored by git to prevent personal configurations from being committed. Only the canonical versions in this directory are tracked.
If you discover better patterns, common issues, or ways to improve these instructions:
agents/ directory.cursorrules).github/copilot-instructions.md)Note: Some tools may use different filenames. Check your tool's documentation for the correct filename and location.