Next steps
You’ve got AlignTrue set up and syncing. Here’s what to explore next based on your needs.
Edit rules in .aligntrue/rules/*.md. aligntrue sync writes exports (like AGENTS.md and .cursor/rules/*.mdc)—treat those as read-only.
Essential commands
These commands will be part of your daily workflow:
Preview changes
See what would change without writing files:
aligntrue sync --dry-runValidate rules
Check rules for errors (great for CI):
aligntrue checkCheck syntax
Lint your markdown rules file:
aligntrue md lintFull command reference: CLI Reference
Auto-sync on save
Want rules to sync automatically when you save? Set up a file watcher on .aligntrue/rules (and config if needed).
VS Code (quick option)
Add to .vscode/tasks.json:
{
"version": "2.0.0",
"tasks": [
{
"label": "AlignTrue Auto-Sync",
"type": "shell",
"command": "aligntrue sync",
"runOptions": {
"runOn": "folderOpen"
}
}
]
}Universal option (any editor)
Use nodemon to watch for changes:
Install nodemon:
npm
bash npm install -g nodemon Run nodemon:
nodemon --watch .aligntrue/rules --watch .aligntrue/config.yaml --exec "aligntrue sync"Learn more: CLI reference
Using git sources
Pull rules from any git repository to share across projects or teams.
Recommended: Add as a connected source to keep it updated on sync:
aligntrue add source https://github.com/yourorg/rules
aligntrue syncThe add source subcommand automatically adds the source to your .aligntrue/config.yaml and fetches updates on each sync. First sync will prompt for privacy consent.
Alternative: Manually edit .aligntrue/config.yaml if you prefer:
sources:
- type: git
url: https://github.com/yourorg/rules
ref: main
path: . # Scans directory for .md/.mdc filesFull documentation: Git Sources Guide
Team collaboration
Enable team mode for shared rules with lockfiles and drift detection.
For repository owners
# 1. Enable team mode
aligntrue team enable
# 2. Approve rule sources
# 3. Sync to generate lockfile
aligntrue sync
# 4. Commit team files
git add .aligntrue/
git commit -m "Enable AlignTrue team mode"For team members
# Clone and sync
git clone <repo> && cd <repo>
aligntrue syncTeam mode provides:
- Lockfile generation for reproducibility
- Drift detection (
aligntrue drift --gatesfor CI) - Git-based approval workflows
- Reproducible builds
Complete workflows: Team Mode Guide
Supporting more agents
AlignTrue supports 28+ AI coding agents out of the box.
List available exporters
aligntrue exporters listEnable additional agents
Recommended: Use the exporters command to enable agents interactively:
aligntrue exporters list # See all available agents
aligntrue exporters enable --interactive # Choose which ones to enableOr enable specific agents directly:
aligntrue exporters enable windsurf claude clineAlternative: Manually edit .aligntrue/config.yaml:
exporters:
- cursor
- agents
- windsurf
- claude
- cline
- copilot
- aiderCommon agent formats:
- cursor - Cursor
.mdcfiles - agents - Universal AGENTS.md format (works with Copilot, Claude Code, Aider)
- windsurf - Windsurf rules format
- cline - Cline configuration
- vscode-mcp - VS Code MCP configuration
Customization features
AlignTrue provides three powerful mechanisms for customizing rules without forking:
Plugs
Fill template slots with stack-specific values:
aligntrue plugs set test.cmd "pnpm test"Overlays
Customize third-party Aligns without losing upstream updates:
aligntrue override add --selector 'rule[id=no-console-log]' --set severity=errorScopes
Apply different rules to different directories:
scopes:
- path: "apps/web"
rulesets: ["base-rules", "nextjs-rules"]
- path: "packages/api"
rulesets: ["base-rules", "node-rules"]Complete guides: Customization Overview
Custom exporters
Add support for new agents by creating custom exporters.
Extension guide: Adding Exporters
Migrating existing rules
Copy rules from existing agent files to AlignTrue.
Manual migration
Create or open a file under .aligntrue/rules/ and paste your existing rules from agent files (Cursor .mdc, AGENTS.md, etc.). Keep exports read-only.
# After copying rules into .aligntrue/rules/imported.md (for example)
aligntrue syncNext steps: Natural Markdown Sections
Workflow examples
Solo developer workflow
# Daily workflow
cd your-project
vim .aligntrue/rules/base.md # Edit rules at the source
aligntrue sync # Update agents
git add .
git commit -m "Update project rules"Team workflow
# Repository owner
aligntrue team enable
aligntrue sync
git add .aligntrue/
git commit -m "Add AlignTrue configuration"
git push
# Team member
git pull
aligntrue sync # Validates against lockfileMulti-project workflow
# Create shared rules in a separate repo
cd shared-rules
aligntrue init
# Add rules that apply to all projects
git add . && git commit -m "Add shared rules"
# Use in projects - add as connected source
cd project-1
aligntrue add source ../shared-rules
aligntrue syncTroubleshooting
Common issues and solutions:
Rules not showing in agent?
- Check agent is enabled in
.aligntrue/config.yaml - Run
aligntrue syncagain - Restart your IDE
Syntax errors?
- Run
aligntrue checkfor validation - Run
aligntrue md lintfor markdown issues
Network consent prompts?
- First-time git source access requires consent
- Use
--offlineflag to skip network operations - Run
aligntrue privacy grant gitto enable network access
Full troubleshooting: Troubleshooting Guide
Learning resources
Guides
- Sync Behavior - How centralized rule management works
- Drift Detection - Track alignment changes
- Git Workflows - Pull workflows and source management
- Backup & Restore - Protect your configuration
Reference
- CLI Reference - Complete command documentation
Contributing
- Getting Started - Contribute to AlignTrue
- Testing Workflow - Test standards
- Team Onboarding - Internal dev guide
Community
Need help?
Want to contribute?
Ready to dive deeper? Pick a topic from the guides above and explore AlignTrue’s full capabilities.