augment-extensions
AGENTS.md4 starsChanged 4 days agoMITView on GitHub
This repository provides extension modules for Augment Code AI that exceed the standard .augment/ character limit. You can discover and use extension modules through the augx CLI: When working on a project that has Augment Extensions linked: Each module contains: - module.json - Metadata and configuration - rules/ - Markdown files with detailed guidelines - examples/ - Code examples demonstrating best practices - README.md - Module overview When augx init is run, the CLI automatically generates .augment/COMMAND_HELP.md containing comprehensive help…
- Installs packages
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,117 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- cli/AGENTS.mdAGENTS.md
- augx-judgmentsSkill
- typesafe-aiSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
55 rules. About 0 are common, 29 are distinctive, and 26 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈29
Distinctive · estimate
This author's own choices. Worth a look.
26
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
When working on a project that has Augment Extensions linked:
- Distinctive: line 28
Apply module rules: Follow the guidelines in the module's rules/ directory
- Very specific: line 59
When augx init is run, the CLI automatically generates .augment/COMMAND_HELP.md containing comprehensive help documentation for all …
- Very specific: line 63
Check for help reference: Look for .augment/COMMAND_HELP.md in the project
- Distinctive: line 65
Generate accurate commands: Use the help text to construct correct command invocations
- Distinctive: line 102
Query before applying: Always check module content before applying rules
- Distinctive: line 103
Respect versions: Use pinned versions for consistency
- Distinctive: line 105
Report issues: If module content conflicts, notify the human
- Very specific: line 127
Draft Change Proposal: Create openspec/changes/[change-name]/proposal.md
- Very specific: line 128
Review & Align: Create spec deltas in openspec/changes/[change-name]/specs/
- Very specific: line 129
Implement Tasks: Create openspec/changes/[change-name]/tasks.md and implement
- Distinctive: line 141
When making architectural changes:
- Very specific: line 142
Create a change proposal in openspec/changes/
- Very specific: line 157
Store JIRA Tickets: Place JIRA ticket content in openspec/changes/[change-name]/jira/[TICKET-ID].md
- Distinctive: line 158
Link to Proposal: Add "Related JIRA" section in proposal.md linking to the JIRA ticket
- Distinctive: line 160
Cleanup: Remove temporary JIRA files after migration
- Distinctive: line 172
When working with JIRA tickets:
- Very specific: line 173
Create jira/ directory within the OpenSpec change
- Distinctive: line 175
Add "Related JIRA" section to proposal.md
- Distinctive: line 176
Update coordination manifest with JIRA file tracking
- Distinctive: line 177
Remove temporary JIRA files after successful migration
- Distinctive: line 186
Use 'bd' for task tracking
- Very specific: line 190
Create Task: Run bd create "Task title" --type task
- Very specific: line 191
Add Dependencies: Run bd dep add <task-id> <blocker-id> --type blocks
- Very specific: line 192
Find Ready Tasks: Run bd ready for tasks with no open blockers
- Very specific: line 193
Work on Task: Run bd update <id> --status in_progress and bd comments add <id> "Progress"
- Very specific: line 194
Close Task: Run bd close <id> --reason "Completed work", then bd sync
- Very specific: line 207
Use the installed native bd CLI for every task mutation.
- Very specific: line 208
Use hash-based IDs with "bd-" prefix: bd-<hash> (e.g., bd-a1b2)
- Very specific: line 209
All issue IDs MUST use "bd-" prefix (see openspec/specs/beads/naming-convention.md)
- Very specific: line 213
Update status and add comments through bd as work progresses.
- Very specific: line 219
Naming Convention: All issue IDs MUST use "bd-" prefix.
- Very specific: line 240
Check .augment/coordination.json for active specs
- Distinctive: line 247
Update coordination manifest when creating files
- Distinctive: line 302
When MCP is enabled, AI agents automatically:
- Very specific: line 434
When neither MCP config file declares the beads server, the snippet is omitted entirely.
- Distinctive: line 438
When reading an exported file in any of the four target tools:
- Distinctive: line 440
Treat the content between the banner and the footer as canonical static guidance.
- Very specific: line 442
Never hand-edit exported files - changes are overwritten on the next augx export.
- Very specific: line 443
If a mirrored per-module file disappears after a module rename, run augx link <module> --mirror ...
- Distinctive: line 462
File issues for remaining work: - Create issues for anything that needs follow-up
- Distinctive: line 473
Verify: - All changes committed AND pushed
- Distinctive: line 478
NEVER stop before pushing - that leaves work stranded locally
- Distinctive: line 479
NEVER say "ready to push when you are" - YOU must push
- Distinctive: line 480
If push fails, resolve and retry until it succeeds
- Very specific: line 486
After editing VERSION, run pnpm run version:sync.
- Very specific: line 487
Use pnpm run version:sync:dry-run to preview changes.
- Very specific: line 488
Use pnpm run version:sync:force in non-interactive contexts.
- Distinctive: line 493
Prefer the smallest change that satisfies the current task.
- Distinctive: line 499
Keep changes focused and avoid unrelated edits.
- Distinctive: line 500
Avoid new dependencies unless the task requires them.
- Distinctive: line 501
Prefer behavior-based validation over compile-only checks.
- Distinctive: line 502
Run the smallest relevant tests first, then broader checks when they are useful.
- Distinctive: line 503
Never claim completion if the required validation was skipped or failed.
- Very specific: line 505
Use test-artifacts/ or test-results/ for local failure artifacts when you need them.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Augment Extensions - AI Agent Integration
This repository provides extension modules for Augment Code AI that exceed the standard .augment/ character limit.
For AI Agents
Discovery
You can discover and use extension modules through the augx CLI:
# List all available modules
augx list
# Show module details
augx show <module-name>
# Search for modules
augx search <keyword>Usage in Projects
When working on a project that has Augment Extensions linked:
- Check linked modules:
augx list --linked - View module content:
augx show <module-name> - Apply module rules: Follow the guidelines in the module's rules/ directory
Module Structure
Each module contains:
module.json- Metadata and configurationrules/- Markdown files with detailed guidelinesexamples/- Code examples demonstrating best practicesREADME.md- Module overview
Integration Workflow
- Human initializes:
augx init - Human links modules:
augx link coding-standards/typescript - AI agent queries:
augx show typescript-standards - AI agent applies rules from module content
CLI Commands Reference
augx list- List all available modulesaugx list --linked- List modules linked to current projectaugx show <module>- Display module contentaugx show linked- Show all linked modulesaugx show all- Show all available modulesaugx search <term>- Search for modulesaugx update- Update all linked modulesaugx version- Show CLI version (augx --version,augx -V, andaugx --valso work)augx --help- Show CLI help (augx -handaugx --halso work on Linux and Windows)
Command Help Reference
When augx init is run, the CLI automatically generates .augment/COMMAND_HELP.md containing comprehensive help documentation for all detected workflow tools (Beads, OpenSpec, Augx).
For AI Agents:
- Check for help reference: Look for
.augment/COMMAND_HELP.mdin the project - Use for command discovery: Reference the file to learn available commands and their syntax
- Generate accurate commands: Use the help text to construct correct command invocations
- Understand tool capabilities: Learn what each tool can do without executing commands
Example workflow:
# AI agent discovers available commands
cat .augment/COMMAND_HELP.md
# AI agent learns Beads commands
# Sees: "bd create <title> - Create a new issue"
# AI agent generates correct command
bd create "Implement feature X" -p 1Benefits:
- No trial-and-error: AI agents know exact command syntax before execution
- Always current: Regenerated on
augx initto reflect latest tool versions - Comprehensive: Includes main commands and all subcommands (up to 3 levels deep)
- Multi-tool: Single reference for all workflow tools in the project
Module Types
- coding-standards - Language/framework specific standards
- domain-rules - Domain-specific guidelines (web, API, security, etc.)
- workflows - Process and methodology integration (OpenSpec, Beads, etc.)
- examples - Extensive code examples and patterns
Character Limit Context
- Standard
.augment/limit: ~49,400 characters - Extension modules: No limit (stored separately)
- Modules are loaded on-demand when relevant to current task
Best Practices for AI Agents
- Query before applying: Always check module content before applying rules
- Respect versions: Use pinned versions for consistency
- Combine modules: Multiple modules can be active simultaneously
- Report issues: If module content conflicts, notify the human
Example Usage
# AI agent working on TypeScript project
$ augx list --linked
typescript-standards (v1.0.0)
react-patterns (v2.1.0)
$ augx show typescript-standards
# Returns full module content including all rules and examplesOpenSpec Integration
This repository uses OpenSpec for spec-driven development.
OpenSpec Workflow
- Draft Change Proposal: Create
openspec/changes/[change-name]/proposal.md - Review & Align: Create spec deltas in
openspec/changes/[change-name]/specs/ - Implement Tasks: Create
openspec/changes/[change-name]/tasks.mdand implement - Archive: Move completed change to
openspec/archive/[change-name]/
OpenSpec Files
openspec/project-context.md- Project overview and architectureopenspec/specs/- Source of truth specificationsopenspec/changes/- Proposed changes (deltas)openspec/archive/- Completed changes
For AI Agents
When making architectural changes:
- Create a change proposal in
openspec/changes/ - Define spec deltas (ADDED/MODIFIED/REMOVED sections)
- Break down into tasks
- Implement and archive when complete
Learn More: See workflows/openspec/ for comprehensive workflow documentation.
JIRA Integration
This repository integrates JIRA tickets into OpenSpec changes for traceability and context preservation.
JIRA Workflow
- Store JIRA Tickets: Place JIRA ticket content in
openspec/changes/[change-name]/jira/[TICKET-ID].md - Link to Proposal: Add "Related JIRA" section in proposal.md linking to the JIRA ticket
- Update Coordination: Track JIRA file in
.augment/coordination.json - Cleanup: Remove temporary JIRA files after migration
JIRA Directory Structure
openspec/changes/[change-name]/jira/
├── [TICKET-ID].md # JIRA ticket content
└── .gitkeep # Ensures directory is trackedFor AI Agents
When working with JIRA tickets:
- Create
jira/directory within the OpenSpec change - Copy JIRA ticket content to
jira/[TICKET-ID].md - Add "Related JIRA" section to proposal.md
- Update coordination manifest with JIRA file tracking
- Remove temporary JIRA files after successful migration
Example: See openspec/changes/bash-coding-standards/spec-delta-jira-integration.md for complete workflow documentation.
Beads Integration
This repository uses Beads for task tracking and memory. Use 'bd' for task tracking
Beads Workflow
- Create Task: Run
bd create "Task title" --type task - Add Dependencies: Run
bd dep add <task-id> <blocker-id> --type blocks - Find Ready Tasks: Run
bd readyfor tasks with no open blockers - Work on Task: Run
bd update <id> --status in_progressandbd comments add <id> "Progress" - Close Task: Run
bd close <id> --reason "Completed work", thenbd sync
Beads Files
.beads/embeddeddolt/- Authoritative native Dolt database (gitignored).beads/issues.jsonl- Generated compatibility export for existing readers; never hand-edit or append task updates.beads/config.yaml- Shared native Beads settings and Dolt synchronization remote.beads/config.json- Existing Augx project metadata.beads/metadata.json- Local native storage identity (gitignored)
For AI Agents
When tracking work:
- Use the installed native
bdCLI for every task mutation. On a fresh clone, runbd bootstrapfirst. - Use hash-based IDs with "bd-" prefix:
bd-<hash>(e.g.,bd-a1b2)- All issue IDs MUST use "bd-" prefix (see
openspec/specs/beads/naming-convention.md) - Valid formats:
bd-<hash>,bd-<name>,bd-<hash>.<number>
- All issue IDs MUST use "bd-" prefix (see
- Track dependencies with
bd dep; do not mutate exported JSONL relationship fields. - Find ready tasks with
bd readyand inspect current state withbd showorbd list. - Update status and add comments through
bdas work progresses. Native writes refresh the JSONL export;bd syncexchanges Dolt history through the configured remote.
The November 27, 2026 cutover recovered the legacy task log into Beads 1.3.1 embedded Dolt. Legacy JSONL-only writers now reject mutations for Dolt projects. See .beads/README.md for commands and recovery guidance. Do not restore an old alias that shadows the installed native bd command.
Task States: open, in_progress, blocked, closed
Naming Convention: All issue IDs MUST use "bd-" prefix. See openspec/specs/beads/naming-convention.md for complete specification.
Learn More: See augment-extensions/workflows/beads/ for comprehensive workflow documentation.
Coordination System
This repository uses a coordination manifest (.augment/coordination.json) to harmonize OpenSpec, Beads, and .augment/ rules.
How It Works
The coordination manifest tracks relationships between:
- Specs (OpenSpec) - What needs to be built
- Tasks (Beads) - How it's being built
- Rules (
.augment/) - Guidelines for building - Files - What was built
For AI Agents
Before starting work:
- Check
.augment/coordination.jsonfor active specs - Find related tasks for the spec you're implementing
- Load applicable rules for your task
- Identify which files are affected
While working:
- Track file creation/modification with task IDs
- Update coordination manifest when creating files
- Reference specs and rules in task comments
Query Examples:
// Get all active specs
const coord = require('./.augment/coordination.json');
const activeSpecs = Object.entries(coord.specs)
.filter(([id, spec]) => spec.status === 'active');
// Get tasks for a spec
const tasks = coord.specs['testing/functional-tests'].relatedTasks;
// Get rules for a task
const rules = coord.tasks['bd-xyz'].relatedRules;
// Get specs governing a file
const specsForFile = Object.entries(coord.specs)
.filter(([id, spec]) =>
spec.affectedFiles.some(pattern => filePath.match(pattern))
);Learn More: See .augment-guidelines/system-integration/coordination-system.md for detailed documentation.
MCP Integration (Model Context Protocol)
This repository integrates Model Context Protocol (MCP) servers to enable real-time data access for AI agents.
Beads MCP Server
The beads-mcp server provides real-time access to Beads tasks, enabling AI agents to:
- Query tasks, dependencies, and status
- Incorporate task context into prompts
- Automate task orchestration and code generation
- Link code changes to task resolution
Configuration
MCP servers are configured in two locations:
- VS Code Integration:
.vscode/mcp.json- Automatically loaded by VS Code and Augment Code
- Enables AI agents to query Beads in real-time
- Configures context budget and priorities
- CLI Integration:
.augment/mcp/servers.json- Used by
augx mcpcommands - Enables manual MCP server management
- Used by
For AI Agents
When MCP is enabled, AI agents automatically:
- Connect to configured MCP servers on startup
- Query relevant data based on current context
- Include MCP data in prompts (within context budget)
- Suggest actions based on MCP data
Example queries:
- "Show me all open tasks for Phase 2"
- "What tasks are blocking bd-shot-list-2.3?"
- "Generate code for task bd-shot-list-2.4"
- "What's the status of the AI Shot List Generator?"
Installation
Install the beads-mcp server:
pip install beads-mcp
# or
pipx install beads-mcpVerify installation:
python -m beads_mcp --versionUsage
The MCP server runs automatically when Augment Code starts. No manual intervention needed.
Manual testing:
# List MCP servers
augx mcp list
# Execute MCP tool
augx mcp exec beads tasks/list
# Discover available tools
augx mcp discover beadsLearn More: See .vscode/MCP_SETUP.md for detailed configuration and troubleshooting.
Cross-Platform Distribution
This repository can materialize linked Augx modules into the native rules surfaces of other AI coding tools, so the same module set powers Claude Code, Cursor, Windsurf, and GitHub Copilot in addition to Augment Code. The Augment Code surface (.augment/ rules) is unchanged.
Two complementary mechanisms, both opt-in, both safe to use together:
augx export --target <tool>- aggregates linked modules into the single-file format the tool expects.augx link <module> --mirror <tool>[,<tool>...]- per-module symlink (or copy fallback on Windows) into the tool's native rules directory.
augx export Command
augx export --target <claude-code|cursor|windsurf|copilot|all>
[--output <path>] [--dry-run] [--force] [--verbose]Per-target output paths:
| Target | Path |
claude-code | CLAUDE.md |
cursor | .cursor/rules/augx.mdc |
windsurf | .windsurfrules |
copilot | .github/copilot-instructions.md |
all | all of the above |
Each generated file starts with a banner containing augx-version, generated-at, source-hash, and the contributing modules. Re-running with unchanged inputs is a byte-identical no-op. If the existing file has been hand-edited (banner hash mismatches the content), export refuses to overwrite and exits 3; pass --force to override.
--mirror Flag on augx link
augx link <module> [--mirror <tool>[,<tool>...]] [--verbose]Per-tool per-module destinations:
| Target | Per-Module Path |
claude-code | .claude/rules/<module>/... plus a one-line include stub in CLAUDE.md |
cursor | .cursor/rules/augx-<module>.mdc |
windsurf | .windsurf/rules/augx-<module>.md |
copilot | .github/instructions/augx-<module>.instructions.md |
The mirror hook tries symlink first and falls back to copyFile on Windows when EPERM/EACCES/ENOSYS is raised (no Developer Mode). The chosen mode is recorded in .augment/coordination.json.mirrors[<module>] so subsequent runs do not retry symlink. augx unlink <module> reverses both tracked symlinks and tracked copies; hand-edited targets are left in place with a warning.
export and mirrors Blocks in .augment/coordination.json
Two optional top-level keys:
{
"export": {
"targets": ["claude-code", "cursor"],
"ignore": ["**/examples/**"],
"mirror": false
},
"mirrors": {
"<module-id>": [
{ "tool": "cursor",
"sourcePath": "augment-extensions/modules/<module>/rules/<file>.md",
"targetPath": ".cursor/rules/augx-<module>.mdc",
"mode": "symlink" }
]
}
}export.targets- default target list whenaugx exportis called without--target.export.ignore- glob patterns excluded from aggregation (forward-slash, defaults to["**/examples/**"]).export.mirror- whentrue,augx linkruns the mirror hook for alltargetswithout requiring--mirror.mirrors- CLI-managed materialization log; do not hand-edit. Cleared byaugx unlink.
Loaders MUST ignore unrecognized keys silently. Absence of both blocks preserves prior behavior exactly.
MCP-First Task-Context Contract
Exported artifacts NEVER embed live task data (no bd- IDs, no statuses, no dependency snapshots). When the project declares a Beads MCP server in either .vscode/mcp.json or .augment/mcp/servers.json, augx export inlines a single tool-agnostic snippet from augment-extensions/workflows/mcp/templates/beads.md directly after the banner. The snippet:
- Names the Beads MCP
beadsserver and tells the consuming agent to query it for live task state. - Lists the public operations (
tasks/list,tasks/get,dependencies/list,status/get). - References
augment-extensions/workflows/beads/for the command guide. - Contains no IDs, statuses, secrets, or endpoint URLs.
When neither MCP config file declares the beads server, the snippet is omitted entirely. This keeps exported files focused on static guidance and prevents stale task data from leaking into rule surfaces.
For AI Agents
When reading an exported file in any of the four target tools:
- Treat the content between the banner and the footer as canonical static guidance.
- For ANY task-related question, query the Beads MCP server (
beads) rather than parsing prose for task state. - Never hand-edit exported files - changes are overwritten on the next
augx export. Edit module sources underaugment-extensions/and re-run export. - If a mirrored per-module file disappears after a module rename, run
augx link <module> --mirror ...again to refresh the tracked set; stale targets are pruned automatically.
Learn More: See augment-extensions/workflows/cross-platform/ for the day-to-day guide (per-tool paths, drift-resolution playbook, end-to-end session walkthrough).
Note: This is a meta-repository for extending Augment Code AI. The actual project-specific .augment/ folder remains in individual projects.
myTech.Today Company Profile
The canonical company services, service area, business claims, and contact details are maintained in docs/company-profile.md. Keep the public profile in README.md, the npm author in package.json, and the publishing guides aligned with that record when those details change. Do not copy company-specific marketing claims into project-agnostic extension modules.
Landing the Plane (Session Completion)
When ending a work session, you MUST complete ALL steps below. Work is NOT complete until git push succeeds.
MANDATORY WORKFLOW:
- File issues for remaining work - Create issues for anything that needs follow-up
- Run quality gates (if code changed) - Tests, linters, builds
- Update issue status - Close finished work, update in_progress items
- PUSH TO REMOTE - This is MANDATORY:
git pull --rebase bd sync git push git status # MUST show "up to date with origin" - Clean up - Clear stashes, prune remote branches
- Verify - All changes committed AND pushed
- Hand off - Provide context for next session
CRITICAL RULES:
- Work is NOT complete until
git pushsucceeds - NEVER stop before pushing - that leaves work stranded locally
- NEVER say "ready to push when you are" - YOU must push
- If push fails, resolve and retry until it succeeds
Version Synchronization
The root VERSION file is the single source of truth for the workspace version.
- After editing
VERSION, runpnpm run version:sync. - Use
pnpm run version:sync:dry-runto preview changes. - Use
pnpm run version:sync:forcein non-interactive contexts. VERSIONING.mddefines the SemVer rules and supported rewrite targets.
YAGNI
Prefer the smallest change that satisfies the current task. Add abstractions only when there is a clear current use case or when the cost of changing later is high.
Working Rules
- Inspect the repository before editing.
- Reuse existing scripts, utilities, fixtures, and test harnesses.
- Keep changes focused and avoid unrelated edits.
- Avoid new dependencies unless the task requires them.
- Prefer behavior-based validation over compile-only checks.
- Run the smallest relevant tests first, then broader checks when they are useful.
- Never claim completion if the required validation was skipped or failed.
- Record skipped checks and any remaining risk.
- Use
test-artifacts/ortest-results/for local failure artifacts when you need them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

