@mytechtoday/augment-extensions 3.1.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +123 -0
- package/README.md +981 -32
- package/augment-extensions/coding-standards/q/CHANGELOG.md +16 -0
- package/augment-extensions/coding-standards/q/README.md +53 -0
- package/augment-extensions/coding-standards/q/examples/ArrayAndTupleNamingConventions.qs +27 -0
- package/augment-extensions/coding-standards/q/examples/CallableAliasNamingConventions.qs +20 -0
- package/augment-extensions/coding-standards/q/examples/CircuitCompositionNamingConventions.qs +24 -0
- package/augment-extensions/coding-standards/q/examples/ConstantValueNamingConventions.qs +19 -0
- package/augment-extensions/coding-standards/q/examples/EntryPointAttributeNamingConventions.qs +17 -0
- package/augment-extensions/coding-standards/q/examples/FunctorApplicationInControlledCircuits.qs +84 -0
- package/augment-extensions/coding-standards/q/examples/FunctorSpecializationNamingConventions.qs +29 -0
- package/augment-extensions/coding-standards/q/examples/GenericTypeParameterNamingConventions.qs +20 -0
- package/augment-extensions/coding-standards/q/examples/HamiltonianOperatorNamingConventions.qs +24 -0
- package/augment-extensions/coding-standards/q/examples/MeasurementResultNamingConventions.qs +48 -0
- package/augment-extensions/coding-standards/q/examples/NamespaceNamingConventions.qs +30 -0
- package/augment-extensions/coding-standards/q/examples/OperationAndFunctionNamingConventions.qs +31 -0
- package/augment-extensions/coding-standards/q/examples/OracleCallableNamingConventions.qs +41 -0
- package/augment-extensions/coding-standards/q/examples/PauliBasisNamingConventions.qs +42 -0
- package/augment-extensions/coding-standards/q/examples/PauliOperatorNamingConventions.qs +24 -0
- package/augment-extensions/coding-standards/q/examples/QubitManagementAndTeleportation.qs +94 -0
- package/augment-extensions/coding-standards/q/examples/QubitNamingConventions.qs +53 -0
- package/augment-extensions/coding-standards/q/examples/QubitRegisterNamingConventions.qs +30 -0
- package/augment-extensions/coding-standards/q/examples/StateVectorNamingConventions.qs +23 -0
- package/augment-extensions/coding-standards/q/examples/UserDefinedTypeNamingConventions.qs +22 -0
- package/augment-extensions/coding-standards/q/examples/VariableAndParameterNamingConventions.qs +26 -0
- package/augment-extensions/coding-standards/q/examples/bell-state.qs +21 -0
- package/augment-extensions/coding-standards/q/metadata.json +38 -0
- package/augment-extensions/coding-standards/q/module.json +29 -0
- package/augment-extensions/coding-standards/q/rules/q-error-handling.md +143 -0
- package/augment-extensions/coding-standards/q/rules/q-naming-conventions.md +82 -0
- package/augment-extensions/coding-standards/q/rules/q-performance-optimization.md +10 -0
- package/augment-extensions/coding-standards/q/rules/q-qubit-management.md +10 -0
- package/augment-extensions/coding-standards/q/rules/q-security.md +10 -0
- package/augment-extensions/coding-standards/q/rules/q-standards.md +127 -0
- package/augment-extensions/coding-standards/q/rules/q-testing.md +10 -0
- package/augment-extensions/visual-design/CHANGELOG.md +2 -2
- package/augment-extensions/visual-design/README.md +31 -8
- package/augment-extensions/visual-design/VERSION +1 -0
- package/augment-extensions/visual-design/__tests__/README.md +32 -18
- package/augment-extensions/visual-design/__tests__/guidance-contract.test.ts +355 -0
- package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +23 -5
- package/augment-extensions/visual-design/domains/other/dotnet-application.ts +1 -1
- package/augment-extensions/visual-design/domains/other/mobile-application.ts +3 -4
- package/augment-extensions/visual-design/domains/other/os-application.ts +1 -1
- package/augment-extensions/visual-design/domains/other/windows-platform.ts +1 -1
- package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +4 -4
- package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +10 -10
- package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +3 -3
- package/augment-extensions/visual-design/examples/README.md +2 -0
- package/augment-extensions/visual-design/examples/basic-usage.md +5 -3
- package/augment-extensions/visual-design/examples/vendor-comparison.md +2 -2
- package/augment-extensions/visual-design/guidelines/coverage-map.md +30 -0
- package/augment-extensions/visual-design/guidelines/design-levels.md +211 -0
- package/augment-extensions/visual-design/guidelines/index.md +5 -0
- package/augment-extensions/visual-design/metadata.json +26 -5
- package/augment-extensions/visual-design/module.json +39 -6
- package/augment-extensions/visual-design/rules/accessibility-and-color.md +51 -0
- package/augment-extensions/visual-design/rules/design-practice.md +55 -0
- package/augment-extensions/visual-design/rules/index.md +34 -0
- package/augment-extensions/visual-design/rules/platform-guidance.md +47 -0
- package/augment-extensions/visual-design/scripts/validate-guidance.cjs +233 -0
- package/augment-extensions/visual-design/skills/README.md +11 -0
- package/augment-extensions/visual-design/skills/design-brief.md +40 -0
- package/augment-extensions/visual-design/skills/design-review.md +38 -0
- package/augment-extensions/visual-design/skills/responsive-validation/SKILL.md +94 -0
- package/augment-extensions/visual-design/skills/responsive-validation/scripts/responsive-sweep.cjs +457 -0
- package/augment-extensions/visual-design/style-selector.ts +4 -4
- package/augment-extensions/visual-design/types.ts +101 -46
- package/augment-extensions/visual-design/visual-design-core.ts +8 -8
- package/cli/dist/adapters/banner.d.ts +62 -0
- package/cli/dist/adapters/banner.d.ts.map +1 -0
- package/cli/dist/adapters/banner.js +105 -0
- package/cli/dist/adapters/banner.js.map +1 -0
- package/cli/dist/adapters/claude-code.d.ts +13 -0
- package/cli/dist/adapters/claude-code.d.ts.map +1 -0
- package/cli/dist/adapters/claude-code.js +79 -0
- package/cli/dist/adapters/claude-code.js.map +1 -0
- package/cli/dist/adapters/copilot.d.ts +17 -0
- package/cli/dist/adapters/copilot.d.ts.map +1 -0
- package/cli/dist/adapters/copilot.js +81 -0
- package/cli/dist/adapters/copilot.js.map +1 -0
- package/cli/dist/adapters/cursor.d.ts +16 -0
- package/cli/dist/adapters/cursor.d.ts.map +1 -0
- package/cli/dist/adapters/cursor.js +99 -0
- package/cli/dist/adapters/cursor.js.map +1 -0
- package/cli/dist/adapters/index.d.ts +25 -0
- package/cli/dist/adapters/index.d.ts.map +1 -0
- package/cli/dist/adapters/index.js +59 -0
- package/cli/dist/adapters/index.js.map +1 -0
- package/cli/dist/adapters/types.d.ts +113 -0
- package/cli/dist/adapters/types.d.ts.map +1 -0
- package/cli/dist/adapters/types.js +13 -0
- package/cli/dist/adapters/types.js.map +1 -0
- package/cli/dist/adapters/windsurf.d.ts +14 -0
- package/cli/dist/adapters/windsurf.d.ts.map +1 -0
- package/cli/dist/adapters/windsurf.js +78 -0
- package/cli/dist/adapters/windsurf.js.map +1 -0
- package/cli/dist/analysis/index.d.ts +1 -0
- package/cli/dist/analysis/index.d.ts.map +1 -1
- package/cli/dist/analysis/index.js +1 -0
- package/cli/dist/analysis/index.js.map +1 -1
- package/cli/dist/analysis/pattern-analyzer.d.ts +6 -0
- package/cli/dist/analysis/pattern-analyzer.d.ts.map +1 -0
- package/cli/dist/analysis/pattern-analyzer.js +100 -0
- package/cli/dist/analysis/pattern-analyzer.js.map +1 -0
- package/cli/dist/cli.js +62 -35
- package/cli/dist/cli.js.map +1 -1
- package/cli/dist/commands/code-analysis.d.ts.map +1 -1
- package/cli/dist/commands/code-analysis.js +22 -2
- package/cli/dist/commands/code-analysis.js.map +1 -1
- package/cli/dist/commands/export.d.ts +81 -0
- package/cli/dist/commands/export.d.ts.map +1 -0
- package/cli/dist/commands/export.js +334 -0
- package/cli/dist/commands/export.js.map +1 -0
- package/cli/dist/commands/gui.d.ts +3 -1
- package/cli/dist/commands/gui.d.ts.map +1 -1
- package/cli/dist/commands/gui.js +263 -22
- package/cli/dist/commands/gui.js.map +1 -1
- package/cli/dist/commands/init.d.ts +2 -0
- package/cli/dist/commands/init.d.ts.map +1 -1
- package/cli/dist/commands/init.js +84 -3
- package/cli/dist/commands/init.js.map +1 -1
- package/cli/dist/commands/lifecycle.d.ts +14 -0
- package/cli/dist/commands/lifecycle.d.ts.map +1 -0
- package/cli/dist/commands/lifecycle.js +463 -0
- package/cli/dist/commands/lifecycle.js.map +1 -0
- package/cli/dist/commands/link.d.ts +3 -0
- package/cli/dist/commands/link.d.ts.map +1 -1
- package/cli/dist/commands/link.js +126 -16
- package/cli/dist/commands/link.js.map +1 -1
- package/cli/dist/commands/list.js +2 -2
- package/cli/dist/commands/list.js.map +1 -1
- package/cli/dist/commands/mcp.d.ts +1 -2
- package/cli/dist/commands/mcp.d.ts.map +1 -1
- package/cli/dist/commands/mcp.js +20 -20
- package/cli/dist/commands/mcp.js.map +1 -1
- package/cli/dist/commands/module-management.d.ts +9 -0
- package/cli/dist/commands/module-management.d.ts.map +1 -0
- package/cli/dist/commands/module-management.js +420 -0
- package/cli/dist/commands/module-management.js.map +1 -0
- package/cli/dist/commands/self-remove.d.ts.map +1 -1
- package/cli/dist/commands/self-remove.js +98 -44
- package/cli/dist/commands/self-remove.js.map +1 -1
- package/cli/dist/commands/show.d.ts +1 -1
- package/cli/dist/commands/show.d.ts.map +1 -1
- package/cli/dist/commands/show.js +21 -10
- package/cli/dist/commands/show.js.map +1 -1
- package/cli/dist/commands/showCompleted.d.ts +1 -0
- package/cli/dist/commands/showCompleted.d.ts.map +1 -1
- package/cli/dist/commands/showCompleted.js +4 -3
- package/cli/dist/commands/showCompleted.js.map +1 -1
- package/cli/dist/commands/skill.d.ts +7 -1
- package/cli/dist/commands/skill.d.ts.map +1 -1
- package/cli/dist/commands/skill.js +79 -21
- package/cli/dist/commands/skill.js.map +1 -1
- package/cli/dist/commands/unlink.d.ts.map +1 -1
- package/cli/dist/commands/unlink.js +38 -2
- package/cli/dist/commands/unlink.js.map +1 -1
- package/cli/dist/commands/update.d.ts.map +1 -1
- package/cli/dist/commands/update.js +6 -16
- package/cli/dist/commands/update.js.map +1 -1
- package/cli/dist/commands/upgrade.d.ts +2 -0
- package/cli/dist/commands/upgrade.d.ts.map +1 -1
- package/cli/dist/commands/upgrade.js +22 -5
- package/cli/dist/commands/upgrade.js.map +1 -1
- package/cli/dist/commands/use.d.ts.map +1 -1
- package/cli/dist/commands/use.js +2 -68
- package/cli/dist/commands/use.js.map +1 -1
- package/cli/dist/core/compatibility-checker.d.ts +37 -1
- package/cli/dist/core/compatibility-checker.d.ts.map +1 -1
- package/cli/dist/core/compatibility-checker.js +133 -12
- package/cli/dist/core/compatibility-checker.js.map +1 -1
- package/cli/dist/gui/state/navigation-state.d.ts +20 -0
- package/cli/dist/gui/state/navigation-state.d.ts.map +1 -0
- package/cli/dist/gui/state/navigation-state.js +115 -0
- package/cli/dist/gui/state/navigation-state.js.map +1 -0
- package/cli/dist/gui/state/selection-state.d.ts +21 -0
- package/cli/dist/gui/state/selection-state.d.ts.map +1 -0
- package/cli/dist/gui/state/selection-state.js +117 -0
- package/cli/dist/gui/state/selection-state.js.map +1 -0
- package/cli/dist/lib/export-runner.d.ts +76 -0
- package/cli/dist/lib/export-runner.d.ts.map +1 -0
- package/cli/dist/lib/export-runner.js +111 -0
- package/cli/dist/lib/export-runner.js.map +1 -0
- package/cli/dist/lib/mcp-detection.d.ts +40 -0
- package/cli/dist/lib/mcp-detection.d.ts.map +1 -0
- package/cli/dist/lib/mcp-detection.js +167 -0
- package/cli/dist/lib/mcp-detection.js.map +1 -0
- package/cli/dist/lib/mirror-coordination.d.ts +57 -0
- package/cli/dist/lib/mirror-coordination.d.ts.map +1 -0
- package/cli/dist/lib/mirror-coordination.js +151 -0
- package/cli/dist/lib/mirror-coordination.js.map +1 -0
- package/cli/dist/lib/mirror-runner.d.ts +123 -0
- package/cli/dist/lib/mirror-runner.d.ts.map +1 -0
- package/cli/dist/lib/mirror-runner.js +579 -0
- package/cli/dist/lib/mirror-runner.js.map +1 -0
- package/cli/dist/lib/module-resolver.d.ts +65 -0
- package/cli/dist/lib/module-resolver.d.ts.map +1 -0
- package/cli/dist/lib/module-resolver.js +211 -0
- package/cli/dist/lib/module-resolver.js.map +1 -0
- package/cli/dist/lib/source-hash.d.ts +62 -0
- package/cli/dist/lib/source-hash.d.ts.map +1 -0
- package/cli/dist/lib/source-hash.js +99 -0
- package/cli/dist/lib/source-hash.js.map +1 -0
- package/cli/dist/types/coordination-export.d.ts +33 -0
- package/cli/dist/types/coordination-export.d.ts.map +1 -0
- package/cli/dist/types/coordination-export.js +28 -0
- package/cli/dist/types/coordination-export.js.map +1 -0
- package/cli/dist/types/lifecycle.d.ts +81 -0
- package/cli/dist/types/lifecycle.d.ts.map +1 -0
- package/cli/dist/types/lifecycle.js +3 -0
- package/cli/dist/types/lifecycle.js.map +1 -0
- package/cli/dist/utils/beads-sync.d.ts +4 -0
- package/cli/dist/utils/beads-sync.d.ts.map +1 -1
- package/cli/dist/utils/beads-sync.js.map +1 -1
- package/cli/dist/utils/catalog-sync.d.ts.map +1 -1
- package/cli/dist/utils/catalog-sync.js +41 -8
- package/cli/dist/utils/catalog-sync.js.map +1 -1
- package/cli/dist/utils/coordination-queries.d.ts +3 -0
- package/cli/dist/utils/coordination-queries.d.ts.map +1 -1
- package/cli/dist/utils/coordination-queries.js.map +1 -1
- package/cli/dist/utils/extensions-config.d.ts +29 -0
- package/cli/dist/utils/extensions-config.d.ts.map +1 -0
- package/cli/dist/utils/extensions-config.js +151 -0
- package/cli/dist/utils/extensions-config.js.map +1 -0
- package/cli/dist/utils/extractCommandHelp.d.ts.map +1 -1
- package/cli/dist/utils/extractCommandHelp.js +6 -0
- package/cli/dist/utils/extractCommandHelp.js.map +1 -1
- package/cli/dist/utils/file-tracking.d.ts +4 -0
- package/cli/dist/utils/file-tracking.d.ts.map +1 -1
- package/cli/dist/utils/file-tracking.js.map +1 -1
- package/cli/dist/utils/inspection-cache.d.ts +8 -0
- package/cli/dist/utils/inspection-cache.d.ts.map +1 -1
- package/cli/dist/utils/inspection-cache.js +12 -0
- package/cli/dist/utils/inspection-cache.js.map +1 -1
- package/cli/dist/utils/inspection-handlers.d.ts.map +1 -1
- package/cli/dist/utils/inspection-handlers.js +230 -52
- package/cli/dist/utils/inspection-handlers.js.map +1 -1
- package/cli/dist/utils/install-rules.d.ts +15 -0
- package/cli/dist/utils/install-rules.d.ts.map +1 -1
- package/cli/dist/utils/install-rules.js +247 -0
- package/cli/dist/utils/install-rules.js.map +1 -1
- package/cli/dist/utils/interactive-prompt.d.ts +7 -0
- package/cli/dist/utils/interactive-prompt.d.ts.map +1 -0
- package/cli/dist/utils/interactive-prompt.js +41 -0
- package/cli/dist/utils/interactive-prompt.js.map +1 -0
- package/cli/dist/utils/lifecycle.d.ts +47 -0
- package/cli/dist/utils/lifecycle.d.ts.map +1 -0
- package/cli/dist/utils/lifecycle.js +841 -0
- package/cli/dist/utils/lifecycle.js.map +1 -0
- package/cli/dist/utils/mcp-integration.d.ts +24 -3
- package/cli/dist/utils/mcp-integration.d.ts.map +1 -1
- package/cli/dist/utils/mcp-integration.js +364 -151
- package/cli/dist/utils/mcp-integration.js.map +1 -1
- package/cli/dist/utils/module-system.d.ts +5 -0
- package/cli/dist/utils/module-system.d.ts.map +1 -1
- package/cli/dist/utils/module-system.js +113 -29
- package/cli/dist/utils/module-system.js.map +1 -1
- package/cli/dist/utils/openspec-sync.d.ts +4 -0
- package/cli/dist/utils/openspec-sync.d.ts.map +1 -1
- package/cli/dist/utils/openspec-sync.js.map +1 -1
- package/cli/dist/utils/plugin-system.js +1 -1
- package/cli/dist/utils/plugin-system.js.map +1 -1
- package/cli/dist/utils/skill-system.d.ts +11 -0
- package/cli/dist/utils/skill-system.d.ts.map +1 -1
- package/cli/dist/utils/skill-system.js +101 -3
- package/cli/dist/utils/skill-system.js.map +1 -1
- package/cli/dist/utils/zip-archive.d.ts +25 -0
- package/cli/dist/utils/zip-archive.d.ts.map +1 -0
- package/cli/dist/utils/zip-archive.js +287 -0
- package/cli/dist/utils/zip-archive.js.map +1 -0
- package/modules.md +21 -4
- package/package.json +138 -137
package/README.md
CHANGED
|
@@ -1,61 +1,1010 @@
|
|
|
1
1
|
# Augment Extensions
|
|
2
2
|
|
|
3
|
-
**Reusable augmentation modules for Augment Code AI
|
|
3
|
+
**Reusable augmentation modules for Augment Code AI, with cross-platform distribution to Claude Code, Cursor, Windsurf, and GitHub Copilot.**
|
|
4
4
|
|
|
5
|
-
[](https://github.com/mytech-today-now/augment-extensions)
|
|
6
6
|
[](./LICENSE)
|
|
7
7
|
[](https://www.npmjs.com/package/@mytechtoday/augment-extensions)
|
|
8
8
|
|
|
9
|
-
Augment Extensions
|
|
9
|
+
Augment Extensions is the structural layer between your rule modules and the AI coding tools that consume them. It treats coding standards, domain rules, workflows, and examples as versioned, composable units, and ships them into the native rules surface of every major AI coding tool from a single source of truth. The `augx` CLI links modules into projects, materializes them into per-tool locations, aggregates them into per-tool single-file rule artifacts, and keeps the whole arrangement coordinated through a manifest that links specs, tasks, rules, and the files they govern.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
The repository exists because rule content for AI agents has outgrown the surfaces individual tools provide. Each tool reserves a small budget for instructions the agent sees before it reasons about your code. Augment Code allocates roughly 49,400 characters to `.augment/`. Cursor, Windsurf, Copilot, and Claude Code each have their own constraints. The modules here live outside those budgets, are loaded on demand, and are emitted into the tool-native shapes those budgets expect, so the same module set can drive every tool without manual duplication.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Current release: 3.2.0 adds repository-scoped linked-module inheritance, lifecycle management, and expanded Visual Design guidance, with tighter MCP and skill execution safety.
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Table of Contents
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
- [Why This Exists](#why-this-exists)
|
|
18
|
+
- [Quickstart](#quickstart)
|
|
19
|
+
- [Concepts](#concepts)
|
|
20
|
+
- [CLI Reference](#cli-reference)
|
|
21
|
+
- [Cross-Platform Distribution](#cross-platform-distribution)
|
|
22
|
+
- [Coordination Manifest Schema](#coordination-manifest-schema)
|
|
23
|
+
- [MCP Integration](#mcp-integration)
|
|
24
|
+
- [OpenSpec Integration](#openspec-integration)
|
|
25
|
+
- [Beads Integration](#beads-integration)
|
|
26
|
+
- [Authoring Modules](#authoring-modules)
|
|
27
|
+
- [Operability](#operability)
|
|
28
|
+
- [Project Layout](#project-layout)
|
|
29
|
+
- [Module Catalog](#module-catalog)
|
|
30
|
+
- [Per-Tool Consumer Notes](#per-tool-consumer-notes)
|
|
31
|
+
- [Contributing](#contributing)
|
|
32
|
+
- [License](#license)
|
|
18
33
|
|
|
19
|
-
|
|
34
|
+
## Why This Exists
|
|
20
35
|
|
|
21
|
-
|
|
36
|
+
Every AI coding tool ships a "rules" surface: a place where you tell the agent how your project expects it to behave. Augment Code reads `.augment/`. Claude Code reads `CLAUDE.md` and `.claude/rules/`. Cursor reads `.cursor/rules/*.mdc`. Windsurf reads `.windsurfrules` and `.windsurf/rules/`. GitHub Copilot reads `.github/copilot-instructions.md` and `.github/instructions/`.
|
|
22
37
|
|
|
23
|
-
|
|
38
|
+
Three problems compound as a project grows:
|
|
24
39
|
|
|
25
|
-
|
|
40
|
+
1. **Budget.** Augment Code limits `.augment/` to roughly 49,400 characters. Comprehensive coding standards, security rules, workflow guidance, and worked examples cannot fit in that budget for any non-trivial project. The other tools have softer limits but the same diminishing-returns curve: the larger the rules file, the less the agent actually applies.
|
|
41
|
+
2. **Duplication.** Without a structural layer, teams maintain four or five parallel copies of the same guidelines, one per tool. Edits drift. Tools fall out of sync. A change to a TypeScript naming rule has to be made in five places by hand.
|
|
42
|
+
3. **Context discipline.** Rules embedded inline in a giant rules file cannot be selectively loaded, and they mix static guidance with volatile data like task state. The agent ends up parsing prose for state that should come from a live source.
|
|
26
43
|
|
|
27
|
-
|
|
44
|
+
Augment Extensions answers all three. Modules live in `augment-extensions/`, outside any tool's rules budget. The `augx` CLI links the modules a project actually needs, then either aggregates them into the single-file shape each tool expects (`augx export`) or materializes per-module files into each tool's per-module location (`augx link --mirror`). A coordination manifest in `.augment/coordination.json` tracks which specs are active, which tasks are in flight, which rules govern which files, and which mirror entries were materialized as symlinks versus copies. When the project declares a Beads MCP server, exported artifacts inline a snippet that points the consuming agent at the live task source instead of embedding stale snapshots.
|
|
28
45
|
|
|
29
|
-
|
|
46
|
+
The result: rules are authored once in plain Markdown and JSON, versioned per module, and propagate deterministically to every tool a developer might use.
|
|
30
47
|
|
|
31
|
-
|
|
48
|
+
## Quickstart
|
|
32
49
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
SEO best practices · Copywriting · CTAs · Social proof · Content architecture
|
|
36
|
-
|
|
37
|
-
## 🚀 Quick Start
|
|
50
|
+
Install the CLI globally and link a module:
|
|
38
51
|
|
|
39
52
|
```bash
|
|
40
53
|
npm install -g @mytechtoday/augment-extensions
|
|
54
|
+
|
|
55
|
+
# In the project that will consume the modules
|
|
41
56
|
augx init
|
|
42
57
|
augx link coding-standards/typescript
|
|
43
58
|
augx list --linked
|
|
44
59
|
```
|
|
45
60
|
|
|
46
|
-
|
|
61
|
+
Mirror the module into one or more tools' native per-module rules locations:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
augx link coding-standards/typescript --mirror cursor,windsurf
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Or aggregate every currently linked module into one tool's single-file rules artifact:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
augx export --target claude-code
|
|
71
|
+
augx export --target all --dry-run # preview without writing
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
From a clean clone to a working `CLAUDE.md`, `.cursor/rules/augx-coding-standards-typescript.mdc`, and `.windsurf/rules/augx-coding-standards-typescript.md` is four commands.
|
|
75
|
+
|
|
76
|
+
## Concepts
|
|
77
|
+
|
|
78
|
+
### Modules
|
|
79
|
+
|
|
80
|
+
A module is a directory under `augment-extensions/` with a `module.json` manifest, a `rules/` directory of Markdown files, and optional `examples/` and `CHANGELOG.md`. Modules are versioned per semver, project-agnostic, and addressable by their canonical id (for example `coding-standards/typescript`, `workflows/cross-platform`, `domain-rules/security`).
|
|
81
|
+
|
|
82
|
+
Four module categories exist:
|
|
83
|
+
|
|
84
|
+
- **coding-standards** - language- or framework-specific guidance. Currently shipped: Bash, C, CSS, Go, HTML, HTML+CSS+JS, JavaScript, Perl, PHP, PowerShell, Python, Q, React, TypeScript.
|
|
85
|
+
- **domain-rules** - subject-matter guidance independent of language. Currently shipped: API Design, Database, Design (color), MCP, Security, SEO/Sales/Marketing, Software Architecture, WordPress, WordPress Plugin. The `visual-design/` module ships alongside as a sibling tree with its own vendor and domain palettes.
|
|
86
|
+
- **workflows** - process integration for spec-driven development, task tracking, and multi-tool distribution. Currently shipped: adr-support, cross-platform, database, mcp, wordpress-plugin.
|
|
87
|
+
- **examples** - canned working examples that illustrate the rules. Currently shipped: design-patterns, gutenberg-block-plugin, rest-api-plugin, woocommerce-extension.
|
|
88
|
+
|
|
89
|
+
### Linked vs. mirrored vs. exported
|
|
90
|
+
|
|
91
|
+
These three verbs are orthogonal and stack:
|
|
92
|
+
|
|
93
|
+
- **Linked** means a module is recorded in the project's `.augment/extensions.json` as one of the rule sets this project pulls from. It does not by itself write into any tool's rules surface.
|
|
94
|
+
- **Mirrored** means the linked module's `rules/` content has been materialized into one or more tools' per-module rules locations, one target file (or directory) per module. `augx link --mirror` writes these.
|
|
95
|
+
- **Exported** means the union of all currently linked modules has been concatenated into the single aggregated rules file each tool expects (`CLAUDE.md`, `.cursor/rules/augx.mdc`, `.windsurfrules`, `.github/copilot-instructions.md`). `augx export` writes these.
|
|
96
|
+
|
|
97
|
+
A project can use export only, mirror only, both, or neither. The two surfaces never share a target path.
|
|
98
|
+
|
|
99
|
+
### Coordination manifest
|
|
100
|
+
|
|
101
|
+
`.augment/coordination.json` is the harmonizer. It stores four kinds of relationships:
|
|
102
|
+
|
|
103
|
+
- **Specs** - active OpenSpec proposals or canonical specs, each with the tasks they spawned, the rules that govern them, and the file patterns they affect.
|
|
104
|
+
- **Tasks** - Beads issue ids referenced from specs, with the rules they applied while running.
|
|
105
|
+
- **Rules** - the `.augment/rules/` files that apply to specs and tasks.
|
|
106
|
+
- **Files** - the working-tree files created or modified under a given spec/task pair, with the rules that were in force at the time.
|
|
107
|
+
|
|
108
|
+
Two additional blocks, `export` and `mirrors`, are populated by the CLI when cross-platform features are in use. Both are optional and forward-compatible: loaders ignore unknown keys silently and missing keys preserve prior behavior.
|
|
109
|
+
|
|
110
|
+
### Context engineering, in practice
|
|
111
|
+
|
|
112
|
+
A consequence of the linked/mirrored/exported split is that the context an agent sees before it reasons can be tuned per tool, per module, and per session. Mirrored modules let you commit one file per module to source control and selectively prune what each tool sees. Aggregated exports keep the agent's static surface lean by routing volatile data (task state, dependency graphs) to the Beads MCP server instead of inlining it in the rules file. The repo's defaults push hard in this direction: exports inline an MCP wiring snippet only when a Beads MCP server is declared, and they never embed live task data.
|
|
113
|
+
|
|
114
|
+
## CLI Reference
|
|
115
|
+
|
|
116
|
+
Every command below is implemented by the `augx` binary shipped from `cli/`. Flags marked as defaults appear when omitted.
|
|
117
|
+
|
|
118
|
+
### Project lifecycle
|
|
119
|
+
|
|
120
|
+
#### `augx init`
|
|
121
|
+
|
|
122
|
+
Initialize Augment Extensions in the current project. Creates `.augment/extensions.json`, installs the `.augment/rules/character-count-management.md` and `.augment/rules/no-em-dash.md` rules, generates `.augment/COMMAND_HELP.md` with help text for the detected workflow tools, and (when `.beads/` is present) wires Beads integration. Prompts interactively for optional rules unless overridden.
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
augx init # interactive
|
|
126
|
+
augx init -y # accept defaults for optional-rule prompts
|
|
127
|
+
augx init --no-optional-rules # skip optional-rule prompts entirely
|
|
128
|
+
augx init --from-submodule # initialize when augment-extensions/ is a git submodule
|
|
129
|
+
augx init beads # nested subcommand: stand up Beads task tracking
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
#### `augx self-remove`
|
|
133
|
+
|
|
134
|
+
Safely unlink Augment Extensions from the project. It clears linked-module entries from `.augment/extensions.json`, prunes Augment recommendations from `.vscode/extensions.json` when present, writes `.augment-removal.log`, and preserves the `.augment/` directory plus user-generated content. Pair with `--dry-run` to preview the exact preserved and cleaned paths, or `--force` to skip confirmation.
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
augx self-remove --dry-run
|
|
138
|
+
augx self-remove --force
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
#### `augx lifecycle [action]`
|
|
142
|
+
|
|
143
|
+
Inspect and manage the project lifecycle artifact. The command supports `status`, `repair`, `rollback`, `report`, and `uninstall`. When run without an action in an interactive terminal, it opens a menu. Use `--dry-run` to preview changes, `--fix <ids>` or `--all-safe` to control repairs, and `--report <path>` to write a redacted diagnostic report.
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
augx lifecycle status
|
|
147
|
+
augx lifecycle repair --all-safe
|
|
148
|
+
augx lifecycle rollback --dry-run
|
|
149
|
+
augx lifecycle report --report .augment/lifecycle/reports/latest.json
|
|
150
|
+
augx lifecycle uninstall --force
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
See [docs/LIFECYCLE.md](./docs/LIFECYCLE.md) for the state model, artifact schema, repair flow, and recovery notes.
|
|
154
|
+
|
|
155
|
+
### Module discovery
|
|
156
|
+
|
|
157
|
+
Linked-module commands resolve the nearest ancestor .augment/extensions.json within the current Git repository. Nested folders inherit that manifest, while a nested copy with its own manifest uses its own linked-module set.
|
|
158
|
+
|
|
159
|
+
#### `augx list`
|
|
160
|
+
|
|
161
|
+
List available or linked modules.
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
augx list # every module shipped by the package
|
|
165
|
+
augx list --linked # only modules linked into this project
|
|
166
|
+
augx list --json # machine-readable
|
|
167
|
+
augx list --versions # include available versions per module
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
#### `augx show <module> [file-path]`
|
|
171
|
+
|
|
172
|
+
Display module metadata, aggregated content, or a single file inside a module. The same command surfaces three special pseudo-modules: `completed` (Beads completed tasks), `linked` (the linked-module set), `all` (every available module).
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
augx show coding-standards/typescript
|
|
176
|
+
augx show coding-standards/typescript rules/naming-conventions.md
|
|
177
|
+
augx show coding-standards/typescript --content --format markdown
|
|
178
|
+
augx show coding-standards/typescript --search "naming"
|
|
179
|
+
augx show coding-standards/typescript --filter "rules/*.md"
|
|
180
|
+
augx show coding-standards/typescript --depth 2
|
|
181
|
+
augx show coding-standards/typescript --page 1 --page-size 10
|
|
182
|
+
augx show coding-standards/typescript --secure # redact API keys/tokens/passwords in output
|
|
183
|
+
augx show coding-standards/typescript --open # open in VS Code editor
|
|
184
|
+
augx show linked
|
|
185
|
+
augx show all
|
|
186
|
+
augx show completed --since 2026-01-01 --priority 1
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
`--no-cache` disables the inspection cache for one call. `--preview` opens a VS Code preview pane instead of the editor.
|
|
190
|
+
|
|
191
|
+
#### `augx search <keyword>`
|
|
192
|
+
|
|
193
|
+
Search modules by keyword. `--type` restricts to a single category.
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
augx search typescript
|
|
197
|
+
augx search security --type domain-rules
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### Linking and mirroring
|
|
201
|
+
|
|
202
|
+
#### `augx link <module>`
|
|
203
|
+
|
|
204
|
+
Link a module into the current project. Records the entry in `.augment/extensions.json`. With `--mirror`, materializes the module's `rules/` content into the per-module rules location of one or more target tools.
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
augx link coding-standards/typescript
|
|
208
|
+
augx link coding-standards/typescript --version 2.0.0
|
|
209
|
+
augx link coding-standards/typescript --mirror cursor
|
|
210
|
+
augx link coding-standards/typescript --mirror cursor,windsurf
|
|
211
|
+
augx link coding-standards/typescript --mirror all --verbose
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
When `.augment/coordination.json.export.mirror` is `true`, `--mirror` is implied and the targets are taken from `.export.targets`.
|
|
215
|
+
|
|
216
|
+
#### `augx unlink <module>`
|
|
217
|
+
|
|
218
|
+
Unlink a module from the project. Reverses tracked mirror entries: tracked symlinks are removed and tracked copies whose content still matches the recorded source are removed. Hand-edited copies are left in place with a warning, so user edits are never silently destroyed. `--force` overrides dependency-based refusal.
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
augx unlink coding-standards/typescript
|
|
222
|
+
augx unlink coding-standards/typescript --force
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
#### `augx use <module>`
|
|
226
|
+
|
|
227
|
+
Select and load a specific module version, optionally pinning it for the project.
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
augx use coding-standards/typescript --version 2.0.0
|
|
231
|
+
augx use coding-standards/typescript --version 2.0.0 --pin
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### Module maintenance
|
|
235
|
+
|
|
236
|
+
#### `augx update`
|
|
237
|
+
|
|
238
|
+
Update the CLI itself, linked modules, or both.
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
augx update # update linked modules
|
|
242
|
+
augx update --module coding-standards/typescript
|
|
243
|
+
augx update --cli # update the CLI to latest
|
|
244
|
+
augx update --all # update CLI and modules
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
#### `augx upgrade <module>`
|
|
248
|
+
|
|
249
|
+
Upgrade a specific module to its latest version, with optional dry-run and forced upgrade through compatibility errors.
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
augx upgrade coding-standards/typescript
|
|
253
|
+
augx upgrade coding-standards/typescript --dry-run
|
|
254
|
+
augx upgrade coding-standards/typescript --force
|
|
255
|
+
augx upgrade coding-standards/typescript --json
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
#### `augx version-info <module>`
|
|
259
|
+
|
|
260
|
+
Show detailed version information including changelog and compatibility.
|
|
261
|
+
|
|
262
|
+
```bash
|
|
263
|
+
augx version-info coding-standards/typescript
|
|
264
|
+
augx version-info coding-standards/typescript --json
|
|
265
|
+
augx version-info coding-standards/typescript --no-changelog --no-compatibility
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
#### `augx validate <module>`
|
|
269
|
+
|
|
270
|
+
Validate a module's structure and `module.json` metadata.
|
|
271
|
+
|
|
272
|
+
```bash
|
|
273
|
+
augx validate coding-standards/typescript
|
|
274
|
+
augx validate coding-standards/typescript --verbose
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
#### `augx migrate`
|
|
278
|
+
|
|
279
|
+
Migrate existing Beads and OpenSpec data into the coordination manifest. A backup is created before any write.
|
|
280
|
+
|
|
281
|
+
```bash
|
|
282
|
+
augx migrate
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### Cross-platform distribution
|
|
286
|
+
|
|
287
|
+
#### `augx export`
|
|
288
|
+
|
|
289
|
+
Aggregate every currently linked module into the native single-file rules artifact of one or more target tools. See [Cross-Platform Distribution](#cross-platform-distribution) for the full path table and drift semantics.
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
augx export --target claude-code
|
|
293
|
+
augx export --target cursor,windsurf
|
|
294
|
+
augx export --target all
|
|
295
|
+
augx export --target claude-code --output build/claude-rules.md
|
|
296
|
+
augx export --target all --dry-run
|
|
297
|
+
augx export --target claude-code --force # overwrite drift
|
|
298
|
+
augx export --target all --verbose
|
|
299
|
+
augx export # uses export.targets from coordination.json
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### Coordination queries
|
|
303
|
+
|
|
304
|
+
#### `augx coord specs`
|
|
305
|
+
|
|
306
|
+
List all active specs from the coordination manifest.
|
|
307
|
+
|
|
308
|
+
```bash
|
|
309
|
+
augx coord specs
|
|
310
|
+
augx coord specs --json
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
#### `augx coord tasks <spec-id>`
|
|
314
|
+
|
|
315
|
+
List the tasks for a specific spec.
|
|
316
|
+
|
|
317
|
+
```bash
|
|
318
|
+
augx coord tasks bash-coding-standards
|
|
319
|
+
augx coord tasks bash-coding-standards --json
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
#### `augx coord rules <task-id>`
|
|
323
|
+
|
|
324
|
+
List the `.augment/` rules that applied while a task was in flight.
|
|
325
|
+
|
|
326
|
+
```bash
|
|
327
|
+
augx coord rules bd-xplat2-1
|
|
328
|
+
augx coord rules bd-xplat2-1 --json
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
#### `augx coord file <path>`
|
|
332
|
+
|
|
333
|
+
Show the coordination record for a specific file: which task created it, which tasks modified it, which specs govern it, and which rules applied.
|
|
334
|
+
|
|
335
|
+
```bash
|
|
336
|
+
augx coord file cli/src/adapters/banner.ts
|
|
337
|
+
augx coord file cli/src/adapters/banner.ts --json
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### Sync
|
|
341
|
+
|
|
342
|
+
The `sync` subcommands keep the coordination manifest current with Beads and OpenSpec without manual edits.
|
|
343
|
+
|
|
344
|
+
```bash
|
|
345
|
+
augx sync beads # sync Beads tasks to coordination manifest
|
|
346
|
+
augx sync openspec # sync OpenSpec specs to coordination manifest
|
|
347
|
+
augx sync all # sync both
|
|
348
|
+
augx sync watch # watch for changes and auto-sync
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### Catalog
|
|
352
|
+
|
|
353
|
+
The catalog command keeps the `MODULES.md` table of all available modules in sync with the on-disk module tree.
|
|
354
|
+
|
|
355
|
+
```bash
|
|
356
|
+
augx catalog
|
|
357
|
+
augx catalog --check # exit 1 if out of date
|
|
358
|
+
augx catalog --auto # update only if out of date
|
|
359
|
+
augx catalog --output cli/MODULES.md
|
|
360
|
+
augx catalog-hook # install pre-commit git hook
|
|
361
|
+
augx catalog-hook --type post-commit
|
|
362
|
+
augx catalog-hook --remove
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
### Rule installation
|
|
366
|
+
|
|
367
|
+
`install-rules` re-installs the character-count and em-dash management rules (and any other repo-mandated rule files) into `.augment/rules/`. Use the hook flags to keep rules current across branch switches and merges.
|
|
368
|
+
|
|
369
|
+
```bash
|
|
370
|
+
augx install-rules
|
|
371
|
+
augx install-rules --force
|
|
372
|
+
augx install-rules --interactive
|
|
373
|
+
augx install-rules --setup-hooks --git-hook-type post-checkout
|
|
374
|
+
augx install-rules --setup-hooks --git-hook-type post-merge
|
|
375
|
+
augx install-rules --remove-hooks
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
### MCP server management
|
|
379
|
+
|
|
380
|
+
The `augx mcp` family configures and exercises MCP servers from the CLI.
|
|
381
|
+
|
|
382
|
+
```bash
|
|
383
|
+
augx mcp list # list configured MCP servers
|
|
384
|
+
augx mcp list --json
|
|
385
|
+
augx mcp add beads python --args="-m beads_mcp" --transport stdio
|
|
386
|
+
augx mcp remove beads
|
|
387
|
+
augx mcp exec beads tasks/list # invoke a tool on a configured server
|
|
388
|
+
augx mcp exec beads tasks/get --args '{"id":"bd-init"}' --json
|
|
389
|
+
augx mcp discover beads # list tools the server exposes
|
|
390
|
+
augx mcp discover beads --json
|
|
391
|
+
augx mcp wrap beads tasks/list my-skill # generate a skill wrapper for a tool
|
|
392
|
+
augx mcp generate-cli beads ./generated-cli # generate a CLI from a server via mcporter
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
HTTP transport is not yet supported, use stdio.
|
|
396
|
+
|
|
397
|
+
### Skills
|
|
398
|
+
|
|
399
|
+
The `augx skill` family manages discoverable skills (small, addressable units of agent capability), separate from rule modules.
|
|
400
|
+
|
|
401
|
+
```bash
|
|
402
|
+
augx skill list
|
|
403
|
+
augx skill list --category retrieval
|
|
404
|
+
augx skill show <skillId>
|
|
405
|
+
augx skill validate <skillId>
|
|
406
|
+
augx skill search "<query>"
|
|
407
|
+
augx skill exec <skillId> [args...]
|
|
408
|
+
augx skill inject <skillId> --max-tokens 4000
|
|
409
|
+
augx skill load <skillId> <skillId> --max-tokens 8000
|
|
410
|
+
augx skill cache-clear
|
|
411
|
+
augx skill cache-stats
|
|
412
|
+
augx skill create-mcp --name beads --description "Beads tasks" \
|
|
413
|
+
--category retrieval --token-budget 2000 \
|
|
414
|
+
--tags tasks,beads
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
`augx skill inject` and `augx skill load` honor a token budget, so the agent's static context surface stays bounded even when several skills are active.
|
|
418
|
+
|
|
419
|
+
### Code analysis
|
|
420
|
+
|
|
421
|
+
`augx code-analysis` (aliased `augx analyze`) runs quality, complexity, security, and dependency checks against the project tree.
|
|
422
|
+
|
|
423
|
+
```bash
|
|
424
|
+
augx analyze --dir src --type quality
|
|
425
|
+
augx analyze --dir src --type security --severity high
|
|
426
|
+
augx analyze --file src/index.ts --type complexity
|
|
427
|
+
augx analyze --pattern "src/**/*.ts" --type patterns --format json
|
|
428
|
+
augx analyze --dir src --type dependencies --fix
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
### GUI
|
|
432
|
+
|
|
433
|
+
```bash
|
|
434
|
+
augx gui # launch the interactive TUI module browser
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
### Help reference
|
|
438
|
+
|
|
439
|
+
After `augx init`, the file `.augment/COMMAND_HELP.md` is regenerated and contains the comprehensive help text for every workflow tool detected in the project (Augx, Beads, OpenSpec). Agents and humans can read it without invoking any command. It is regenerated each time `augx init` runs.
|
|
440
|
+
|
|
441
|
+
## Cross-Platform Distribution
|
|
442
|
+
|
|
443
|
+
The cross-platform feature materializes the same module set into four AI coding tools in addition to Augment Code, through two complementary surfaces. Both are opt-in. Neither touches `.augment/` or the canonical module source.
|
|
444
|
+
|
|
445
|
+
### Aggregated export (`augx export`)
|
|
446
|
+
|
|
447
|
+
`augx export --target <tool>` produces one file per target, containing the concatenated `rules/` content of every linked module, in alphabetical module-id order.
|
|
448
|
+
|
|
449
|
+
| Target | Output path | Format |
|
|
450
|
+
|---|---|---|
|
|
451
|
+
| `claude-code` | `CLAUDE.md` | Markdown |
|
|
452
|
+
| `cursor` | `.cursor/rules/augx.mdc` | Markdown with YAML frontmatter |
|
|
453
|
+
| `windsurf` | `.windsurfrules` | Markdown |
|
|
454
|
+
| `copilot` | `.github/copilot-instructions.md` | Markdown |
|
|
455
|
+
| `all` | all of the above | per format |
|
|
456
|
+
|
|
457
|
+
#### Banner anatomy
|
|
458
|
+
|
|
459
|
+
Every exported file starts with a five-line HTML-comment banner. For Cursor, the banner sits immediately below the required YAML frontmatter.
|
|
460
|
+
|
|
461
|
+
```text
|
|
462
|
+
<!-- GENERATED BY augx export - DO NOT EDIT -->
|
|
463
|
+
<!-- augx-version: 3.2.0 -->
|
|
464
|
+
<!-- generated-at: 2026-05-25T21:13:00Z -->
|
|
465
|
+
<!-- source-hash: a1b2c3d4e5f60718 -->
|
|
466
|
+
<!-- modules: coding-standards/typescript@2.0.0, workflows/cross-platform@1.0.0 -->
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
| Field | Meaning |
|
|
470
|
+
|---|---|
|
|
471
|
+
| `augx-version` | The version of the `augx` CLI that produced the file. |
|
|
472
|
+
| `generated-at` | ISO-8601 UTC timestamp, replaced only when content actually changes. |
|
|
473
|
+
| `source-hash` | 16 hex characters covering the canonical encoding of `{ sortedModuleIds, versions, contentDigests, ignorePatterns }`. |
|
|
474
|
+
| `modules` | The contributing modules in `<id>@<version>` form, alphabetical by id. |
|
|
475
|
+
|
|
476
|
+
The hash is the drift control point: the banner's recorded `source-hash` is compared against a hash recomputed from the file's current body. If they diverge, the file has been hand-edited.
|
|
477
|
+
|
|
478
|
+
#### Drift refusal (exit code 3)
|
|
479
|
+
|
|
480
|
+
If `augx export` finds the existing target file's body hash does not match the banner-recorded `source-hash`, it treats the file as hand-edited and refuses to overwrite. The export exits 3 and the file is preserved. Two resolution paths:
|
|
481
|
+
|
|
482
|
+
- Edit module sources under `augment-extensions/` and re-run `augx export`. Preferred; preserves traceability.
|
|
483
|
+
- Re-run with `--force`. Discards local edits.
|
|
484
|
+
|
|
485
|
+
#### `--dry-run` output
|
|
486
|
+
|
|
487
|
+
```text
|
|
488
|
+
[dry-run] claude-code -> CLAUDE.md (12_345 bytes, 7 modules)
|
|
489
|
+
[dry-run] cursor -> .cursor/rules/augx.mdc (13_010 bytes, 7 modules)
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
No filesystem writes. Exit 0 on success.
|
|
493
|
+
|
|
494
|
+
#### Idempotency invariants
|
|
495
|
+
|
|
496
|
+
- Modules are emitted in alphabetical order of canonical id.
|
|
497
|
+
- All generated files use LF line endings regardless of host OS.
|
|
498
|
+
- All paths in generated content are forward-slash.
|
|
499
|
+
- Timestamps are only refreshed when content actually changes; a re-run with no upstream changes is a byte-identical no-op (exit 0, no writes).
|
|
500
|
+
- Glob patterns in `export.ignore` use forward slashes and are evaluated relative to each module root.
|
|
501
|
+
|
|
502
|
+
#### Exit codes
|
|
503
|
+
|
|
504
|
+
| Code | Meaning |
|
|
505
|
+
|---|---|
|
|
506
|
+
| 0 | Success (including no-op when nothing changed) |
|
|
507
|
+
| 1 | Usage error (missing or unknown `--target`, `--output` with multiple targets, empty `--mirror`) |
|
|
508
|
+
| 2 | Resolution error (no linked modules, broken module) |
|
|
509
|
+
| 3 | Drift refusal (re-run with `--force` to overwrite) |
|
|
510
|
+
| 4 | I/O error (cannot read or write, permission denied) |
|
|
511
|
+
|
|
512
|
+
#### Safety rules
|
|
513
|
+
|
|
514
|
+
- Never writes outside the project root.
|
|
515
|
+
- Never follows symlinks out of `augment-extensions/` during resolution.
|
|
516
|
+
- The Augment Code surface (`.augment/`) is never touched.
|
|
517
|
+
|
|
518
|
+
### Per-module mirror (`augx link --mirror`)
|
|
519
|
+
|
|
520
|
+
`augx link <module> --mirror <tool>` materializes a single module's `rules/` content into the per-module rules location of one or more tools. The aggregated `augx export` artifact and the per-module mirror artifacts never share a path; running both for the same project is supported and common.
|
|
521
|
+
|
|
522
|
+
| Target | Per-module path |
|
|
523
|
+
|---|---|
|
|
524
|
+
| `claude-code` | `.claude/rules/<module>/...` (directory, source layout preserved file-for-file) plus a one-line include stub appended to `CLAUDE.md` |
|
|
525
|
+
| `cursor` | `.cursor/rules/augx-<module>.mdc` (one file per module, frontmatter generated) |
|
|
526
|
+
| `windsurf` | `.windsurf/rules/augx-<module>.md` (one file per module) |
|
|
527
|
+
| `copilot` | `.github/instructions/augx-<module>.instructions.md` (one file per module) |
|
|
528
|
+
|
|
529
|
+
Module ids use forward slashes (`coding-standards/typescript`); the materializer collapses the slash to a dash when constructing the per-module segment (`coding-standards-typescript`).
|
|
530
|
+
|
|
531
|
+
The Claude Code include stub takes the form:
|
|
532
|
+
|
|
533
|
+
```text
|
|
534
|
+
<!-- augx-include: .claude/rules/coding-standards-typescript/ -->
|
|
535
|
+
```
|
|
536
|
+
|
|
537
|
+
#### Materialization strategy
|
|
538
|
+
|
|
539
|
+
For each rule file in the linked module:
|
|
540
|
+
|
|
541
|
+
1. Compute the destination path under the target tool's convention.
|
|
542
|
+
2. Try `symlink(source, destination)`.
|
|
543
|
+
3. If `symlink` raises `EPERM`, `EACCES`, or `ENOSYS`, fall back to `copyFile(source, destination)`.
|
|
544
|
+
4. Record `{ tool, sourcePath, targetPath, mode }` in `.augment/coordination.json.mirrors[<moduleId>]`, where `mode` is `"symlink"` or `"copy"`.
|
|
545
|
+
|
|
546
|
+
Subsequent invocations consult the recorded `mode` and skip the symlink attempt entirely, so there is no per-run retry storm on systems where symlink will never succeed.
|
|
547
|
+
|
|
548
|
+
#### Windows symlink-to-copy fallback
|
|
549
|
+
|
|
550
|
+
On Windows without Developer Mode, `fs.symlinkSync` raises `EPERM`. The mirror hook catches `EPERM`, `EACCES`, and `ENOSYS`, falls back to `copyFile`, records `mode: "copy"` once in `.augment/coordination.json.mirrors[<module>]`, and uses that recorded mode on every subsequent run. Users with Developer Mode enabled (or any non-Windows host) get `mode: "symlink"` recorded once and reused.
|
|
551
|
+
|
|
552
|
+
#### Idempotency and unlink reconciliation
|
|
553
|
+
|
|
554
|
+
`augx link <module> --mirror ...` is fully idempotent. On each run, the desired set of `(tool, targetPath)` tuples is reconciled against the tracked set:
|
|
555
|
+
|
|
556
|
+
- Tuples in desired AND tracked, source unchanged: left alone.
|
|
557
|
+
- Tuples in desired AND tracked, source changed: re-materialized.
|
|
558
|
+
- Tuples in desired AND not in tracked: created.
|
|
559
|
+
- Tuples in tracked AND not in desired (for example, a renamed source file): pruned.
|
|
560
|
+
|
|
561
|
+
`augx unlink <module>` walks the same tracked set in reverse:
|
|
562
|
+
|
|
563
|
+
1. Tracked symlinks pointing at the recorded source are deleted.
|
|
564
|
+
2. Tracked copies whose content still matches the recorded source hash are deleted.
|
|
565
|
+
3. Tracked copies whose content has been hand-edited are left in place with a warning.
|
|
566
|
+
4. The entire `mirrors[<module>]` entry is removed when cleanup completes.
|
|
567
|
+
|
|
568
|
+
This guarantees rename-safe, edit-preserving cleanup. User edits to mirrored files are never silently destroyed.
|
|
569
|
+
|
|
570
|
+
### Coordination block-driven defaults
|
|
571
|
+
|
|
572
|
+
When `--target` (export) or `--mirror` (link) is omitted, `augx` consults `.augment/coordination.json.export` for defaults:
|
|
573
|
+
|
|
574
|
+
- `export.targets[]` provides the default target list for `augx export`.
|
|
575
|
+
- `export.mirror: true` makes `augx link` run the mirror hook for every entry in `export.targets[]` without requiring `--mirror`.
|
|
576
|
+
- `export.ignore[]` provides glob patterns excluded from aggregation; defaults to `["**/examples/**"]`.
|
|
577
|
+
|
|
578
|
+
```bash
|
|
579
|
+
augx export # uses export.targets
|
|
580
|
+
augx link coding-standards/typescript # mirrors when export.mirror is true
|
|
581
|
+
```
|
|
582
|
+
|
|
583
|
+
## Coordination Manifest Schema
|
|
584
|
+
|
|
585
|
+
`.augment/coordination.json` is the structural map of the repository. It is written and read by the CLI; manual edits are tolerated but the CLI may overwrite top-level blocks it owns (`mirrors`). Unknown top-level keys are preserved on round-trip.
|
|
586
|
+
|
|
587
|
+
Annotated example:
|
|
588
|
+
|
|
589
|
+
```json
|
|
590
|
+
{
|
|
591
|
+
"version": "1.0.0",
|
|
592
|
+
"lastUpdated": "2026-05-25T21:13:00Z",
|
|
593
|
+
|
|
594
|
+
"specs": {
|
|
595
|
+
"bash-coding-standards": {
|
|
596
|
+
"path": "openspec/changes/bash-coding-standards/proposal.md",
|
|
597
|
+
"status": "active",
|
|
598
|
+
"relatedTasks": ["bd-0bqd", "bd-0bqd.2"],
|
|
599
|
+
"relatedRules": [
|
|
600
|
+
"module-development.md",
|
|
601
|
+
"character-count-management.md"
|
|
602
|
+
],
|
|
603
|
+
"affectedFiles": [
|
|
604
|
+
"openspec/changes/bash-coding-standards/**/*",
|
|
605
|
+
"augment-extensions/coding-standards/bash/**/*",
|
|
606
|
+
".augment/coordination.json"
|
|
607
|
+
],
|
|
608
|
+
"dependencies": []
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
|
|
612
|
+
"tasks": {
|
|
613
|
+
"bd-xplat2-1": {
|
|
614
|
+
"specs": ["cross-platform/export-command"],
|
|
615
|
+
"rulesApplied": ["module-development.md", "no-em-dash.md"]
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
|
|
619
|
+
"rules": {
|
|
620
|
+
"no-em-dash.md": {
|
|
621
|
+
"appliedBy": ["bd-xplat1-3", "bd-xplat2-1"]
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
|
|
625
|
+
"files": {
|
|
626
|
+
"cli/src/adapters/banner.ts": {
|
|
627
|
+
"createdBy": "bd-xplat1-3",
|
|
628
|
+
"modifiedBy": ["bd-xplat2-6", "bd-xplat4-2"],
|
|
629
|
+
"governedBy": [
|
|
630
|
+
"cross-platform/export-command",
|
|
631
|
+
"cross-platform/mcp-template"
|
|
632
|
+
],
|
|
633
|
+
"rulesApplied": ["module-development.md", "no-em-dash.md"]
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
|
|
637
|
+
"export": {
|
|
638
|
+
"targets": ["claude-code", "cursor"],
|
|
639
|
+
"ignore": ["**/examples/**", "**/CHANGELOG.md"],
|
|
640
|
+
"mirror": true
|
|
641
|
+
},
|
|
642
|
+
|
|
643
|
+
"mirrors": {
|
|
644
|
+
"coding-standards/typescript": [
|
|
645
|
+
{
|
|
646
|
+
"tool": "cursor",
|
|
647
|
+
"sourcePath": "augment-extensions/coding-standards/typescript/rules/naming-conventions.md",
|
|
648
|
+
"targetPath": ".cursor/rules/augx-coding-standards-typescript.mdc",
|
|
649
|
+
"mode": "symlink"
|
|
650
|
+
}
|
|
651
|
+
]
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
```
|
|
655
|
+
|
|
656
|
+
| Block | Owner | Purpose |
|
|
657
|
+
|---|---|---|
|
|
658
|
+
| `specs` | OpenSpec sync / manual | Active and archived specs with their related tasks, rules, and file globs. |
|
|
659
|
+
| `tasks` | Beads sync / manual | Task records keyed by Beads id, with the specs and rules each task touched. |
|
|
660
|
+
| `rules` | manual | `.augment/rules/*.md` files with their applying tasks. |
|
|
661
|
+
| `files` | manual | Working-tree files with creator/modifier task ids, governing specs, and applied rules. |
|
|
662
|
+
| `export` | manual | Defaults for `augx export` and `augx link --mirror`. Optional. |
|
|
663
|
+
| `mirrors` | CLI | Tracked materialization log for `augx link --mirror`. Do not hand-edit. Cleared by `augx unlink`. |
|
|
664
|
+
|
|
665
|
+
Loader rules per the spec:
|
|
666
|
+
|
|
667
|
+
- Loaders MUST treat missing keys as `undefined`.
|
|
668
|
+
- Loaders MUST preserve unknown top-level keys when round-tripping.
|
|
669
|
+
- Writers serialize keys in alphabetical order at each object level.
|
|
670
|
+
- Files end with a trailing newline, two-space indentation, LF line endings.
|
|
671
|
+
|
|
672
|
+
## MCP Integration
|
|
673
|
+
|
|
674
|
+
The repository treats live task state as something the agent should fetch from a Model Context Protocol server, not parse out of a static rules file. Two configuration surfaces are recognized:
|
|
675
|
+
|
|
676
|
+
- `.vscode/mcp.json` - the VS Code / Augment Code MCP configuration file.
|
|
677
|
+
- `.augment/mcp/servers.json` - the CLI-managed MCP configuration file.
|
|
678
|
+
|
|
679
|
+
Example `.vscode/mcp.json` declaring the Beads MCP server:
|
|
680
|
+
|
|
681
|
+
```json
|
|
682
|
+
{
|
|
683
|
+
"mcpServers": {
|
|
684
|
+
"beads": {
|
|
685
|
+
"command": "python",
|
|
686
|
+
"args": ["-m", "beads_mcp"],
|
|
687
|
+
"env": {
|
|
688
|
+
"BEADS_DIR": "${workspaceFolder}/.beads"
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
```
|
|
694
|
+
|
|
695
|
+
### MCP-first task-context contract
|
|
696
|
+
|
|
697
|
+
Exported artifacts NEVER embed live task data: no `bd-` IDs, no statuses, no dependency snapshots, no endpoint URLs. This is enforced by construction. When the project declares an MCP server with id `beads` in either of the two configuration files above, `augx export` inlines a single tool-agnostic snippet (loaded from `augment-extensions/workflows/mcp/templates/beads.md`) directly after the banner. The snippet:
|
|
698
|
+
|
|
699
|
+
- Names the `beads` server and tells the consuming agent to query it for live task state.
|
|
700
|
+
- Lists the public operations: `tasks/list`, `tasks/get`, `dependencies/list`, `status/get`.
|
|
701
|
+
- References `augment-extensions/workflows/beads/` for the day-to-day command guide.
|
|
702
|
+
- Contains no IDs, statuses, secrets, or endpoint URLs.
|
|
703
|
+
|
|
704
|
+
When neither configuration file declares the `beads` server, the snippet is omitted entirely. Exported files remain static guidance; task state is fetched on demand.
|
|
705
|
+
|
|
706
|
+
This separation is intentional. The static surface stays small and stable. The volatile surface (open tasks, blockers, dependency graph) is queried from the server when the agent actually needs it. Stale task data never leaks into rule surfaces.
|
|
707
|
+
|
|
708
|
+
### Installing the Beads MCP server
|
|
709
|
+
|
|
710
|
+
```bash
|
|
711
|
+
pipx install beads-mcp
|
|
712
|
+
# or
|
|
713
|
+
pip install beads-mcp
|
|
714
|
+
|
|
715
|
+
python -m beads_mcp --version
|
|
716
|
+
```
|
|
717
|
+
|
|
718
|
+
Once installed and declared in `.vscode/mcp.json`, the Augment Code agent connects to the server automatically. `augx mcp list`, `augx mcp discover`, and `augx mcp exec` exercise the server from the command line.
|
|
719
|
+
|
|
720
|
+
## OpenSpec Integration
|
|
721
|
+
|
|
722
|
+
The repository uses OpenSpec for spec-driven development. Architectural changes start as a proposal, become a set of spec deltas, decompose into Beads tasks, and archive when complete.
|
|
723
|
+
|
|
724
|
+
### Workflow
|
|
725
|
+
|
|
726
|
+
1. **Draft proposal.** Create `openspec/changes/<change-name>/proposal.md` with motivation, scope, and acceptance criteria.
|
|
727
|
+
2. **Draft spec deltas.** Create `openspec/changes/<change-name>/specs/*.md` describing ADDED / MODIFIED / REMOVED sections relative to the source-of-truth specs in `openspec/specs/`.
|
|
728
|
+
3. **Break down into tasks.** Create `openspec/changes/<change-name>/tasks.md`. Each task corresponds to a Beads issue with a `bd-` id.
|
|
729
|
+
4. **Implement.** Each commit references the relevant task id. `augx sync beads` and `augx sync openspec` keep `.augment/coordination.json` current.
|
|
730
|
+
5. **Archive.** When all tasks close, move `openspec/changes/<change-name>/` to `openspec/archive/<change-name>/`.
|
|
731
|
+
|
|
732
|
+
### Layout
|
|
733
|
+
|
|
734
|
+
```
|
|
735
|
+
openspec/
|
|
736
|
+
├── project-context.md # Project overview and architecture
|
|
737
|
+
├── specs/ # Source-of-truth canonical specs
|
|
738
|
+
│ ├── cross-platform/ # export-command, mirror-hook, ...
|
|
739
|
+
│ ├── beads/ # naming-convention, ...
|
|
740
|
+
│ ├── coding-standards/
|
|
741
|
+
│ └── augment-config/
|
|
742
|
+
├── changes/ # Active proposals (deltas)
|
|
743
|
+
└── archive/ # Completed proposals
|
|
744
|
+
```
|
|
745
|
+
|
|
746
|
+
Canonical cross-platform specs live under `openspec/specs/cross-platform/`:
|
|
747
|
+
|
|
748
|
+
- `export-command.md` - grammar, flags, exit codes, drift detection.
|
|
749
|
+
- `mirror-hook.md` - materialization strategy, idempotency, unlink cleanup.
|
|
750
|
+
- `coordination-export-block.md` - schema for the `export` and `mirrors` keys.
|
|
751
|
+
- `mcp-template.md` - canonical Beads MCP snippet contract.
|
|
752
|
+
|
|
753
|
+
## Beads Integration
|
|
754
|
+
|
|
755
|
+
The repository uses Beads for task tracking. Beads is an append-only JSONL log under `.beads/` with a SQLite cache for queries.
|
|
756
|
+
|
|
757
|
+
### Workflow
|
|
758
|
+
|
|
759
|
+
1. **Create task.** Append a JSON record to `.beads/issues.jsonl` (or run `bd create "<title>"`).
|
|
760
|
+
2. **Track dependencies.** Use `blocks` and `blocked_by` fields.
|
|
761
|
+
3. **Find ready tasks.** Tasks whose status is `open` and whose blockers are all closed.
|
|
762
|
+
4. **Work on task.** Update status to `in_progress`, add comments referencing commits.
|
|
763
|
+
5. **Close task.** Update status to `closed` with a close reason.
|
|
764
|
+
|
|
765
|
+
### Status lifecycle
|
|
766
|
+
|
|
767
|
+
| Status | Meaning |
|
|
768
|
+
|---|---|
|
|
769
|
+
| `open` | Created, not yet started. |
|
|
770
|
+
| `in_progress` | Actively being worked on. |
|
|
771
|
+
| `blocked` | Waiting on another task or external dependency. |
|
|
772
|
+
| `closed` | Complete. |
|
|
773
|
+
|
|
774
|
+
### Issue ID naming convention
|
|
775
|
+
|
|
776
|
+
All Beads issue IDs in this project use the `bd-` prefix.
|
|
777
|
+
|
|
778
|
+
| Form | Pattern | Examples |
|
|
779
|
+
|---|---|---|
|
|
780
|
+
| Standard hash | `bd-<hash>` | `bd-a1b2`, `bd-c3d4` |
|
|
781
|
+
| Named | `bd-<name>` | `bd-init`, `bd-rename1` |
|
|
782
|
+
| Hierarchical (dot) | `bd-<hash>.<number>` | `bd-a1b2.1`, `bd-a1b2.1.1` |
|
|
783
|
+
| Hierarchical (dash) | `bd-<name>-<number>` | `bd-rename1-1`, `bd-prefix1-1` |
|
|
784
|
+
|
|
785
|
+
The full normative specification is `openspec/specs/beads/naming-convention.md`. Invalid prefixes are rejected by the validator at `scripts/validate-beads-prefix.ps1`.
|
|
786
|
+
|
|
787
|
+
### Sync with the coordination manifest
|
|
788
|
+
|
|
789
|
+
```bash
|
|
790
|
+
augx sync beads # mirror current Beads tasks into coordination.json
|
|
791
|
+
augx sync openspec # mirror current OpenSpec specs into coordination.json
|
|
792
|
+
augx sync all
|
|
793
|
+
augx sync watch # auto-sync on change
|
|
794
|
+
```
|
|
795
|
+
|
|
796
|
+
`bd sync` (provided by the Beads CLI) handles the upstream JSONL log; the Augx sync subcommands handle the downstream coordination map.
|
|
797
|
+
|
|
798
|
+
## Authoring Modules
|
|
799
|
+
|
|
800
|
+
A module is the unit of distribution. Each module is self-contained, versioned, and addressable by canonical id.
|
|
801
|
+
|
|
802
|
+
### Anatomy
|
|
803
|
+
|
|
804
|
+
```
|
|
805
|
+
augment-extensions/<category>/<module-name>/
|
|
806
|
+
├── module.json # Required: metadata, version, dependencies
|
|
807
|
+
├── README.md # Required: module overview
|
|
808
|
+
├── rules/ # Required: Markdown guidance files
|
|
809
|
+
│ ├── <rule-1>.md
|
|
810
|
+
│ └── <rule-2>.md
|
|
811
|
+
├── examples/ # Optional: worked code examples
|
|
812
|
+
└── CHANGELOG.md # Optional but encouraged
|
|
813
|
+
```
|
|
814
|
+
|
|
815
|
+
### `module.json` schema
|
|
816
|
+
|
|
817
|
+
```json
|
|
818
|
+
{
|
|
819
|
+
"id": "coding-standards/typescript",
|
|
820
|
+
"name": "TypeScript Standards",
|
|
821
|
+
"version": "2.0.0",
|
|
822
|
+
"category": "coding-standards",
|
|
823
|
+
"description": "TypeScript coding conventions, type safety, and module structure.",
|
|
824
|
+
"rules": ["rules/naming-conventions.md", "rules/type-safety.md"],
|
|
825
|
+
"dependencies": [],
|
|
826
|
+
"tags": ["typescript", "language"]
|
|
827
|
+
}
|
|
828
|
+
```
|
|
829
|
+
|
|
830
|
+
| Field | Required | Notes |
|
|
831
|
+
|---|---|---|
|
|
832
|
+
| `id` | yes | Canonical id, `<category>/<name>` form, forward-slash. |
|
|
833
|
+
| `version` | yes | Semver. |
|
|
834
|
+
| `category` | yes | One of `coding-standards`, `domain-rules`, `workflows`, `examples`. |
|
|
835
|
+
| `rules` | yes | Ordered list of relative paths to `.md` files. |
|
|
836
|
+
| `dependencies` | no | Other module ids this module needs. |
|
|
837
|
+
| `tags` | no | Free-form search tags. |
|
|
838
|
+
|
|
839
|
+
### Authoring guidance
|
|
840
|
+
|
|
841
|
+
- Keep each rule file focused on a single concept. Smaller files compose better in aggregated exports.
|
|
842
|
+
- Use plain Markdown. Avoid HTML except for the comment-banner pattern.
|
|
843
|
+
- Reference other modules by canonical id, never by relative path. The materializer rewrites paths as needed.
|
|
844
|
+
- No em-dashes anywhere in module content. The `no-em-dash.md` rule applies to module sources as well as agent output.
|
|
845
|
+
- Run `augx validate <module>` before committing.
|
|
846
|
+
|
|
847
|
+
### Versioning
|
|
848
|
+
|
|
849
|
+
- Patch: typo fixes, formatting, non-normative edits.
|
|
850
|
+
- Minor: new rule files or expanded guidance that preserves prior behavior.
|
|
851
|
+
- Major: removed rules, renamed canonical ids, or guidance that contradicts a prior major.
|
|
852
|
+
|
|
853
|
+
The catalog (`MODULES.md` at the package root and `cli/MODULES.md` at the CLI root) is regenerated by `augx catalog`. The pre-commit hook installed by `augx catalog-hook` keeps it from drifting.
|
|
854
|
+
|
|
855
|
+
## Operability
|
|
856
|
+
|
|
857
|
+
### Character-count discipline
|
|
858
|
+
|
|
859
|
+
The `.augment/` directory has a hard target of 48,599 - 49,299 characters. The rule file `.augment/rules/character-count-management.md` is installed by `augx init` and pinned by `augx install-rules`. The verification command is:
|
|
860
|
+
|
|
861
|
+
```powershell
|
|
862
|
+
Get-ChildItem -Path ".augment" -Recurse -File |
|
|
863
|
+
Get-Content -Raw |
|
|
864
|
+
Measure-Object -Character |
|
|
865
|
+
Select-Object -ExpandProperty Characters
|
|
866
|
+
```
|
|
867
|
+
|
|
868
|
+
When the total exceeds the target, the priority order is: condense examples, then remove low-value examples, then reduce redundancy, then streamline language. Core requirements and validation rules are never removed.
|
|
869
|
+
|
|
870
|
+
### No em-dashes
|
|
871
|
+
|
|
872
|
+
The repository's `no-em-dash.md` rule forbids the em-dash character in all generated text, code, and documentation, including this README. Use `-` or `--` instead. Em-dashes cause encoding and copy-paste issues in terminals and cross-platform tooling.
|
|
873
|
+
|
|
874
|
+
### Testing
|
|
875
|
+
|
|
876
|
+
Unit and integration tests live under `tests/`, `__tests__/`, and the CLI's own `cli/src/__tests__/`. Vitest is the primary runner.
|
|
877
|
+
|
|
878
|
+
```bash
|
|
879
|
+
npm test # full suite
|
|
880
|
+
npm run test:unit # unit tests only
|
|
881
|
+
npm run test:integration # integration tests
|
|
882
|
+
npm run test:coverage # with coverage
|
|
883
|
+
```
|
|
884
|
+
|
|
885
|
+
Cross-platform-specific suites:
|
|
886
|
+
|
|
887
|
+
- `tests/export-e2e.test.ts` - end-to-end `augx export` runs.
|
|
888
|
+
- `tests/drift-detection.test.ts` - hash-based drift refusal.
|
|
889
|
+
- `tests/dry-run.test.ts` - `--dry-run` writes nothing.
|
|
890
|
+
- `tests/mirror-idempotent.test.ts` - mirror is idempotent across runs.
|
|
891
|
+
- `tests/mirror-symlink-fallback.test.ts` - Windows EPERM fallback.
|
|
892
|
+
- `tests/source-hash.test.ts` - canonical hash properties.
|
|
893
|
+
- `tests/tool-parse.test.ts` - `--target` and `--mirror` parsing.
|
|
894
|
+
|
|
895
|
+
### Logging and debugging
|
|
896
|
+
|
|
897
|
+
Most commands accept `--verbose` for structured trace output. `augx export --verbose` prints per-target hash computations and the resolved module set. `augx link --verbose --mirror cursor` prints each materialization decision and the fallback mode chosen.
|
|
898
|
+
|
|
899
|
+
## Project Layout
|
|
900
|
+
|
|
901
|
+
```
|
|
902
|
+
augment-extensions/
|
|
903
|
+
├── augment-extensions/ # Module source tree (modules live here)
|
|
904
|
+
│ ├── coding-standards/
|
|
905
|
+
│ ├── domain-rules/
|
|
906
|
+
│ ├── workflows/
|
|
907
|
+
│ ├── examples/
|
|
908
|
+
│ ├── skills/
|
|
909
|
+
│ └── visual-design/
|
|
910
|
+
├── cli/ # The augx CLI (TypeScript)
|
|
911
|
+
│ ├── src/
|
|
912
|
+
│ ├── config/
|
|
913
|
+
│ └── MODULES.md # Generated catalog
|
|
914
|
+
├── openspec/ # Spec-driven development
|
|
915
|
+
│ ├── specs/ # Canonical specs
|
|
916
|
+
│ ├── changes/ # Active proposals
|
|
917
|
+
│ └── archive/ # Completed proposals
|
|
918
|
+
├── .beads/ # Beads task tracker (JSONL log)
|
|
919
|
+
├── .augment/ # Augment Code rules and coordination
|
|
920
|
+
│ ├── rules/
|
|
921
|
+
│ ├── coordination.json
|
|
922
|
+
│ └── extensions.json
|
|
923
|
+
├── .vscode/ # VS Code / Augment Code MCP config
|
|
924
|
+
│ └── mcp.json
|
|
925
|
+
├── tests/ # Cross-platform test suites
|
|
926
|
+
├── docs/ # Operator-facing documentation
|
|
927
|
+
└── scripts/ # Repository automation
|
|
928
|
+
```
|
|
929
|
+
|
|
930
|
+
## Module Catalog
|
|
931
|
+
|
|
932
|
+
The canonical catalog is generated at `MODULES.md` (package root) and `cli/MODULES.md` (CLI root). Run `augx catalog` to regenerate it, `augx catalog --check` to fail CI on drift, and `augx catalog-hook` to install a pre-commit hook that regenerates it automatically. A representative slice of what ships today:
|
|
933
|
+
|
|
934
|
+
### coding-standards
|
|
935
|
+
|
|
936
|
+
`bash`, `c`, `css`, `go`, `html`, `html-css-js`, `javascript`, `perl`, `php`, `powershell`, `python`, `q-sharp`, `react`, `typescript`.
|
|
937
|
+
|
|
938
|
+
### domain-rules
|
|
939
|
+
|
|
940
|
+
`api-design`, `database`, `design`, `mcp`, `security`, `seo-sales-marketing`, `software-architecture`, `wordpress`, `wordpress-plugin`, plus the sibling `visual-design/` tree of vendor and domain palettes.
|
|
941
|
+
|
|
942
|
+
### workflows
|
|
943
|
+
|
|
944
|
+
`adr-support`, `beads`, `cross-platform`, `database`, `mcp`, `openspec`, `wordpress-plugin`.
|
|
945
|
+
|
|
946
|
+
### examples
|
|
947
|
+
|
|
948
|
+
`design-patterns`, `gutenberg-block-plugin`, `rest-api-plugin`, `woocommerce-extension`.
|
|
949
|
+
|
|
950
|
+
### skills
|
|
951
|
+
|
|
952
|
+
The `augment-extensions/skills/` tree and the top-level `skills/` tree contain reusable agent skills, addressable through `augx skill`. Categories include `analysis`, `generation`, `integration`, `retrieval`, `transformation`, and `utility`.
|
|
953
|
+
|
|
954
|
+
For the authoritative, up-to-the-commit list, run:
|
|
955
|
+
|
|
956
|
+
```bash
|
|
957
|
+
augx list
|
|
958
|
+
augx list --json
|
|
959
|
+
```
|
|
960
|
+
|
|
961
|
+
## Per-Tool Consumer Notes
|
|
962
|
+
|
|
963
|
+
How the agent in each tool actually sees the materialized rules.
|
|
964
|
+
|
|
965
|
+
### Augment Code
|
|
966
|
+
|
|
967
|
+
- Reads `.augment/` (rules, coordination, extensions).
|
|
968
|
+
- Source of truth for `coordination.json`.
|
|
969
|
+
- Subject to the character-count rule. Volume control: prefer skills and MCP for volatile or large-volume context.
|
|
970
|
+
|
|
971
|
+
### Claude Code
|
|
972
|
+
|
|
973
|
+
- Aggregated export target: `CLAUDE.md`.
|
|
974
|
+
- Per-module mirror target: `.claude/rules/<module>/...` plus include stubs appended to `CLAUDE.md`.
|
|
975
|
+
- The include-stub convention keeps `CLAUDE.md` itself small while still surfacing per-module content.
|
|
976
|
+
|
|
977
|
+
### Cursor
|
|
978
|
+
|
|
979
|
+
- Aggregated export target: `.cursor/rules/augx.mdc`.
|
|
980
|
+
- Per-module mirror target: `.cursor/rules/augx-<module>.mdc`.
|
|
981
|
+
- Frontmatter is generated. Hand-editing the body invalidates the banner hash and triggers drift refusal on next export.
|
|
982
|
+
|
|
983
|
+
### Windsurf
|
|
984
|
+
|
|
985
|
+
- Aggregated export target: `.windsurfrules`.
|
|
986
|
+
- Per-module mirror target: `.windsurf/rules/augx-<module>.md`.
|
|
987
|
+
|
|
988
|
+
### GitHub Copilot
|
|
989
|
+
|
|
990
|
+
- Aggregated export target: `.github/copilot-instructions.md`.
|
|
991
|
+
- Per-module mirror target: `.github/instructions/augx-<module>.instructions.md`.
|
|
992
|
+
|
|
993
|
+
For any of the four, the rule for agents reading exported files is identical: treat content between banner and footer as canonical static guidance, query the Beads MCP server for live task state, never hand-edit (changes are overwritten on next export).
|
|
994
|
+
|
|
995
|
+
## Contributing
|
|
996
|
+
|
|
997
|
+
See [CONTRIBUTING.md](./CONTRIBUTING.md) and [AGENTS.md](./AGENTS.md) for the full workflow. The short form:
|
|
998
|
+
|
|
999
|
+
1. Discuss substantial changes as an OpenSpec proposal under `openspec/changes/<change-name>/`.
|
|
1000
|
+
2. Decompose into Beads tasks with `bd-` prefixed ids. Append to `.beads/issues.jsonl`.
|
|
1001
|
+
3. Implement the work, referencing the task id in each commit.
|
|
1002
|
+
4. Run `npm test`, `augx validate <module>` for any touched modules, and `augx catalog --check`.
|
|
1003
|
+
5. Run `augx export --target all --dry-run` to confirm no unintended drift.
|
|
1004
|
+
6. Open a PR with a description that links the proposal and the closing task ids.
|
|
47
1005
|
|
|
48
|
-
|
|
49
|
-
|---------|-------------|
|
|
50
|
-
| `augx init` | Initialize in a project |
|
|
51
|
-
| `augx link <module>` | Link a module to the current project |
|
|
52
|
-
| `augx list` | List all available modules |
|
|
53
|
-
| `augx show <module>` | Display module content |
|
|
54
|
-
| `augx search <term>` | Search modules by keyword |
|
|
55
|
-
| `augx gui` | Interactive TUI module browser |
|
|
56
|
-
| `augx upgrade` | Upgrade linked modules to latest |
|
|
57
|
-
| `augx validate` | Validate module structure |
|
|
1006
|
+
Branch and commit-message conventions live in `CONTRIBUTING.md`. The `Landing the Plane` section in `AGENTS.md` describes the mandatory session-close workflow for any AI agent contributing work.
|
|
58
1007
|
|
|
59
|
-
##
|
|
1008
|
+
## License
|
|
60
1009
|
|
|
61
|
-
MIT
|
|
1010
|
+
MIT. See [LICENSE](./LICENSE).
|