@mytechtoday/augment-extensions 3.2.0 → 3.4.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.
Files changed (198) hide show
  1. package/AGENTS.md +25 -16
  2. package/README.md +215 -17
  3. package/augment-extensions/coding-standards/java/CHANGELOG.md +12 -0
  4. package/augment-extensions/coding-standards/java/README.md +54 -0
  5. package/augment-extensions/coding-standards/java/examples/SearchRequest.java +13 -0
  6. package/augment-extensions/coding-standards/java/metadata.json +36 -0
  7. package/augment-extensions/coding-standards/java/module.json +35 -0
  8. package/augment-extensions/coding-standards/java/rules/language-and-api-design.md +45 -0
  9. package/augment-extensions/coding-standards/java/rules/reliability-and-concurrency.md +43 -0
  10. package/augment-extensions/coding-standards/java/rules/testing-tooling-and-security.md +39 -0
  11. package/augment-extensions/coding-standards/spring/CHANGELOG.md +12 -0
  12. package/augment-extensions/coding-standards/spring/README.md +61 -0
  13. package/augment-extensions/coding-standards/spring/examples/OrderController.java +40 -0
  14. package/augment-extensions/coding-standards/spring/metadata.json +39 -0
  15. package/augment-extensions/coding-standards/spring/module.json +38 -0
  16. package/augment-extensions/coding-standards/spring/rules/beans-configuration-and-boot.md +39 -0
  17. package/augment-extensions/coding-standards/spring/rules/data-testing-and-transactions.md +36 -0
  18. package/augment-extensions/coding-standards/spring/rules/production-operations.md +40 -0
  19. package/augment-extensions/coding-standards/spring/rules/web-apis-and-security.md +43 -0
  20. package/augment-extensions/visual-design/metadata.json +1 -1
  21. package/augment-extensions/visual-design/module.json +2 -2
  22. package/augment-extensions/workflows/agent-engineering/README.md +67 -0
  23. package/augment-extensions/workflows/agent-engineering/examples/contracts.cjs +89 -0
  24. package/augment-extensions/workflows/agent-engineering/examples/demo.cjs +17 -0
  25. package/augment-extensions/workflows/agent-engineering/examples/evaluation-cases.json +7 -0
  26. package/augment-extensions/workflows/agent-engineering/examples/graphs.cjs +149 -0
  27. package/augment-extensions/workflows/agent-engineering/examples/loop.cjs +125 -0
  28. package/augment-extensions/workflows/agent-engineering/examples/recovery.cjs +51 -0
  29. package/augment-extensions/workflows/agent-engineering/examples/stub.cjs +11 -0
  30. package/augment-extensions/workflows/agent-engineering/examples/verify.cjs +21 -0
  31. package/augment-extensions/workflows/agent-engineering/module.json +24 -0
  32. package/augment-extensions/workflows/agent-engineering/rules/01-adoption.md +30 -0
  33. package/augment-extensions/workflows/agent-engineering/rules/02-agents.md +34 -0
  34. package/augment-extensions/workflows/agent-engineering/rules/03-contracts.md +34 -0
  35. package/augment-extensions/workflows/agent-engineering/rules/04-loops.md +39 -0
  36. package/augment-extensions/workflows/agent-engineering/rules/05-graphs.md +39 -0
  37. package/augment-extensions/workflows/agent-engineering/rules/06-improvement.md +38 -0
  38. package/augment-extensions/workflows/agent-engineering/schemas/contracts.schema.json +1 -0
  39. package/augment-extensions/workflows/agent-engineering/scripts/validate.cjs +32 -0
  40. package/augment-extensions/workflows/agent-engineering/sources.md +12 -0
  41. package/augment-extensions/workflows/agent-engineering/templates/agent.json +40 -0
  42. package/augment-extensions/workflows/agent-engineering/templates/check-tool.json +94 -0
  43. package/augment-extensions/workflows/agent-engineering/templates/evidence.json +29 -0
  44. package/augment-extensions/workflows/agent-engineering/templates/invocation.json +40 -0
  45. package/augment-extensions/workflows/agent-engineering/templates/node.json +27 -0
  46. package/augment-extensions/workflows/agent-engineering/templates/state.json +27 -0
  47. package/augment-extensions/workflows/agent-engineering/templates/task.json +40 -0
  48. package/augment-extensions/workflows/agent-engineering/templates/tool.json +52 -0
  49. package/augment-extensions/workflows/cross-platform/README.md +120 -0
  50. package/augment-extensions/workflows/cross-platform/examples/end-to-end-session.md +196 -0
  51. package/augment-extensions/workflows/cross-platform/module.json +91 -0
  52. package/augment-extensions/workflows/cross-platform/rules/drift-resolution.md +126 -0
  53. package/augment-extensions/workflows/cross-platform/rules/export-guide.md +139 -0
  54. package/augment-extensions/workflows/cross-platform/rules/mcp-snippet-inlining.md +99 -0
  55. package/augment-extensions/workflows/cross-platform/rules/mirror-guide.md +139 -0
  56. package/augment-extensions/workflows/cross-platform/rules/windows-fallback.md +111 -0
  57. package/augment-extensions/workflows/decision-layer/README.md +172 -0
  58. package/augment-extensions/workflows/decision-layer/examples/call-inventory.json +6 -0
  59. package/augment-extensions/workflows/decision-layer/examples/config.json +9 -0
  60. package/augment-extensions/workflows/decision-layer/examples/decision.json +13 -0
  61. package/augment-extensions/workflows/decision-layer/examples/labeled-cases.json +410 -0
  62. package/augment-extensions/workflows/decision-layer/examples/source.txt +3 -0
  63. package/augment-extensions/workflows/decision-layer/examples/task.json +8 -0
  64. package/augment-extensions/workflows/decision-layer/installation/augx-judgments/SKILL.md +14 -0
  65. package/augment-extensions/workflows/decision-layer/installation/package-lock.json +27 -0
  66. package/augment-extensions/workflows/decision-layer/installation/package.json +7 -0
  67. package/augment-extensions/workflows/decision-layer/installation/sources.json +18 -0
  68. package/augment-extensions/workflows/decision-layer/module.json +24 -0
  69. package/augment-extensions/workflows/decision-layer/rules/00-index.md +5 -0
  70. package/augment-extensions/workflows/decision-layer/rules/01-responsibilities.md +15 -0
  71. package/augment-extensions/workflows/decision-layer/rules/02-operation.md +15 -0
  72. package/augment-extensions/workflows/decision-layer/runtime/automatic.cjs +80 -0
  73. package/augment-extensions/workflows/decision-layer/runtime/chat-install.cjs +149 -0
  74. package/augment-extensions/workflows/decision-layer/runtime/chat-server.cjs +71 -0
  75. package/augment-extensions/workflows/decision-layer/runtime/cli.cjs +70 -0
  76. package/augment-extensions/workflows/decision-layer/runtime/common.cjs +85 -0
  77. package/augment-extensions/workflows/decision-layer/runtime/contracts.d.ts +21 -0
  78. package/augment-extensions/workflows/decision-layer/runtime/decisions.cjs +198 -0
  79. package/augment-extensions/workflows/decision-layer/runtime/evaluate.cjs +61 -0
  80. package/augment-extensions/workflows/decision-layer/runtime/install.cjs +199 -0
  81. package/augment-extensions/workflows/decision-layer/runtime/integrations.cjs +64 -0
  82. package/augment-extensions/workflows/decision-layer/runtime/runner.cjs +201 -0
  83. package/augment-extensions/workflows/decision-layer/runtime/worker-child.cjs +15 -0
  84. package/augment-extensions/workflows/decision-layer/runtime/workers.cjs +15 -0
  85. package/augment-extensions/workflows/decision-layer/schemas/automatic-input.schema.json +40 -0
  86. package/augment-extensions/workflows/decision-layer/schemas/config.schema.json +39 -0
  87. package/augment-extensions/workflows/decision-layer/scripts/validate.cjs +16 -0
  88. package/augment-extensions/workflows/decision-layer/sources.md +34 -0
  89. package/cli/MODULES.md +804 -302
  90. package/cli/dist/__test_file-tracking.d.ts +2 -0
  91. package/cli/dist/__test_file-tracking.d.ts.map +1 -0
  92. package/cli/dist/__test_file-tracking.js +4 -0
  93. package/cli/dist/__test_file-tracking.js.map +1 -0
  94. package/cli/dist/analysis/ast-parser.d.ts.map +1 -1
  95. package/cli/dist/analysis/ast-parser.js +25 -9
  96. package/cli/dist/analysis/ast-parser.js.map +1 -1
  97. package/cli/dist/cli.js +43 -9
  98. package/cli/dist/cli.js.map +1 -1
  99. package/cli/dist/commands/context.d.ts +8 -0
  100. package/cli/dist/commands/context.d.ts.map +1 -0
  101. package/cli/dist/commands/context.js +115 -0
  102. package/cli/dist/commands/context.js.map +1 -0
  103. package/cli/dist/commands/decision.d.ts +4 -0
  104. package/cli/dist/commands/decision.d.ts.map +1 -0
  105. package/cli/dist/commands/decision.js +34 -0
  106. package/cli/dist/commands/decision.js.map +1 -0
  107. package/cli/dist/commands/gui-decision.d.ts +6 -0
  108. package/cli/dist/commands/gui-decision.d.ts.map +1 -0
  109. package/cli/dist/commands/gui-decision.js +210 -0
  110. package/cli/dist/commands/gui-decision.js.map +1 -0
  111. package/cli/dist/commands/gui-module-manager.d.ts +14 -0
  112. package/cli/dist/commands/gui-module-manager.d.ts.map +1 -0
  113. package/cli/dist/commands/gui-module-manager.js +328 -0
  114. package/cli/dist/commands/gui-module-manager.js.map +1 -0
  115. package/cli/dist/commands/gui.d.ts +3 -9
  116. package/cli/dist/commands/gui.d.ts.map +1 -1
  117. package/cli/dist/commands/gui.js +7 -293
  118. package/cli/dist/commands/gui.js.map +1 -1
  119. package/cli/dist/commands/link.d.ts +2 -0
  120. package/cli/dist/commands/link.d.ts.map +1 -1
  121. package/cli/dist/commands/link.js +82 -84
  122. package/cli/dist/commands/link.js.map +1 -1
  123. package/cli/dist/commands/search.js +1 -11
  124. package/cli/dist/commands/search.js.map +1 -1
  125. package/cli/dist/commands/show.d.ts.map +1 -1
  126. package/cli/dist/commands/show.js +5 -18
  127. package/cli/dist/commands/show.js.map +1 -1
  128. package/cli/dist/commands/skill.d.ts.map +1 -1
  129. package/cli/dist/commands/skill.js +3 -3
  130. package/cli/dist/commands/skill.js.map +1 -1
  131. package/cli/dist/commands/unlink.d.ts +2 -0
  132. package/cli/dist/commands/unlink.d.ts.map +1 -1
  133. package/cli/dist/commands/unlink.js +51 -45
  134. package/cli/dist/commands/unlink.js.map +1 -1
  135. package/cli/dist/commands/update.js +14 -7
  136. package/cli/dist/commands/update.js.map +1 -1
  137. package/cli/dist/core/compatibility-checker.d.ts.map +1 -1
  138. package/cli/dist/core/compatibility-checker.js +5 -2
  139. package/cli/dist/core/compatibility-checker.js.map +1 -1
  140. package/cli/dist/lib/context-hosts.d.ts +16 -0
  141. package/cli/dist/lib/context-hosts.d.ts.map +1 -0
  142. package/cli/dist/lib/context-hosts.js +395 -0
  143. package/cli/dist/lib/context-hosts.js.map +1 -0
  144. package/cli/dist/lib/context-refresh.d.ts +60 -0
  145. package/cli/dist/lib/context-refresh.d.ts.map +1 -0
  146. package/cli/dist/lib/context-refresh.js +630 -0
  147. package/cli/dist/lib/context-refresh.js.map +1 -0
  148. package/cli/dist/lib/module-resolver.d.ts.map +1 -1
  149. package/cli/dist/lib/module-resolver.js +2 -2
  150. package/cli/dist/lib/module-resolver.js.map +1 -1
  151. package/cli/dist/types/gui.d.ts +4 -0
  152. package/cli/dist/types/gui.d.ts.map +1 -1
  153. package/cli/dist/utils/coordination-queries.js +2 -2
  154. package/cli/dist/utils/coordination-queries.js.map +1 -1
  155. package/cli/dist/utils/decision-runner.d.ts +20 -0
  156. package/cli/dist/utils/decision-runner.d.ts.map +1 -0
  157. package/cli/dist/utils/decision-runner.js +114 -0
  158. package/cli/dist/utils/decision-runner.js.map +1 -0
  159. package/cli/dist/utils/extensions-config.d.ts.map +1 -1
  160. package/cli/dist/utils/extensions-config.js +3 -1
  161. package/cli/dist/utils/extensions-config.js.map +1 -1
  162. package/cli/dist/utils/extractCommandHelp.d.ts +2 -2
  163. package/cli/dist/utils/extractCommandHelp.d.ts.map +1 -1
  164. package/cli/dist/utils/extractCommandHelp.js +54 -24
  165. package/cli/dist/utils/extractCommandHelp.js.map +1 -1
  166. package/cli/dist/utils/file-tracking.js +5 -5
  167. package/cli/dist/utils/file-tracking.js.map +1 -1
  168. package/cli/dist/utils/glob-match.d.ts +6 -0
  169. package/cli/dist/utils/glob-match.d.ts.map +1 -0
  170. package/cli/dist/utils/glob-match.js +8 -0
  171. package/cli/dist/utils/glob-match.js.map +1 -0
  172. package/cli/dist/utils/gui-helpers.d.ts.map +1 -1
  173. package/cli/dist/utils/gui-helpers.js +7 -3
  174. package/cli/dist/utils/gui-helpers.js.map +1 -1
  175. package/cli/dist/utils/mcp-integration.d.ts.map +1 -1
  176. package/cli/dist/utils/mcp-integration.js +5 -7
  177. package/cli/dist/utils/mcp-integration.js.map +1 -1
  178. package/cli/dist/utils/module-system.d.ts +14 -0
  179. package/cli/dist/utils/module-system.d.ts.map +1 -1
  180. package/cli/dist/utils/module-system.js +39 -13
  181. package/cli/dist/utils/module-system.js.map +1 -1
  182. package/cli/dist/utils/modules-catalog.d.ts.map +1 -1
  183. package/cli/dist/utils/modules-catalog.js +5 -0
  184. package/cli/dist/utils/modules-catalog.js.map +1 -1
  185. package/cli/dist/utils/process.d.ts +14 -0
  186. package/cli/dist/utils/process.d.ts.map +1 -0
  187. package/cli/dist/utils/process.js +57 -0
  188. package/cli/dist/utils/process.js.map +1 -0
  189. package/cli/dist/utils/version.d.ts +2 -0
  190. package/cli/dist/utils/version.d.ts.map +1 -0
  191. package/cli/dist/utils/version.js +8 -0
  192. package/cli/dist/utils/version.js.map +1 -0
  193. package/cli/dist/utils/vscode-editor.d.ts.map +1 -1
  194. package/cli/dist/utils/vscode-editor.js +14 -8
  195. package/cli/dist/utils/vscode-editor.js.map +1 -1
  196. package/modules.md +85 -6
  197. package/package.json +36 -16
  198. package/scripts/check-wsl-augx.sh +63 -0
package/AGENTS.md CHANGED
@@ -51,7 +51,8 @@ Each module contains:
51
51
  - `augx show all` - Show all available modules
52
52
  - `augx search <term>` - Search for modules
53
53
  - `augx update` - Update all linked modules
54
- - `augx version` - Show CLI version
54
+ - `augx version` - Show CLI version (`augx --version`, `augx -V`, and `augx --v` also work)
55
+ - `augx --help` - Show CLI help (`augx -h` and `augx --h` also work on Linux and Windows)
55
56
 
56
57
  ### Command Help Reference
57
58
 
@@ -186,28 +187,32 @@ Use 'bd' for task tracking
186
187
 
187
188
  ### Beads Workflow
188
189
 
189
- 1. **Create Task**: Append to `.beads/issues.jsonl` with unique hash-based ID
190
- 2. **Add Dependencies**: Use `blocks` and `blocked_by` fields
191
- 3. **Find Ready Tasks**: Tasks with no open blockers
192
- 4. **Work on Task**: Update status to `in_progress`, add comments
193
- 5. **Close Task**: Update status to `closed`
190
+ 1. **Create Task**: Run `bd create "Task title" --type task`
191
+ 2. **Add Dependencies**: Run `bd dep add <task-id> <blocker-id> --type blocks`
192
+ 3. **Find Ready Tasks**: Run `bd ready` for tasks with no open blockers
193
+ 4. **Work on Task**: Run `bd update <id> --status in_progress` and `bd comments add <id> "Progress"`
194
+ 5. **Close Task**: Run `bd close <id> --reason "Completed work"`, then `bd sync`
194
195
 
195
196
  ### Beads Files
196
197
 
197
- - `.beads/issues.jsonl` - All issues (append-only JSONL log)
198
- - `.beads/config.json` - Beads configuration
199
- - `.beads/cache.db` - SQLite cache (gitignored, CLI only)
198
+ - `.beads/embeddeddolt/` - Authoritative native Dolt database (gitignored)
199
+ - `.beads/issues.jsonl` - Generated compatibility export for existing readers; never hand-edit or append task updates
200
+ - `.beads/config.yaml` - Shared native Beads settings and Dolt synchronization remote
201
+ - `.beads/config.json` - Existing Augx project metadata
202
+ - `.beads/metadata.json` - Local native storage identity (gitignored)
200
203
 
201
204
  ### For AI Agents
202
205
 
203
206
  When tracking work:
204
- 1. Create tasks by appending JSON to `.beads/issues.jsonl`
207
+ 1. Use the installed native `bd` CLI for every task mutation. On a fresh clone, run `bd bootstrap` first.
205
208
  2. Use hash-based IDs with **"bd-" prefix**: `bd-<hash>` (e.g., `bd-a1b2`)
206
209
  - All issue IDs MUST use "bd-" prefix (see `openspec/specs/beads/naming-convention.md`)
207
210
  - Valid formats: `bd-<hash>`, `bd-<name>`, `bd-<hash>.<number>`
208
- 3. Track dependencies with `blocks`/`blocked_by` fields
209
- 4. Find ready tasks (status: "open", no blockers)
210
- 5. Update status and add comments as work progresses
211
+ 3. Track dependencies with `bd dep`; do not mutate exported JSONL relationship fields.
212
+ 4. Find ready tasks with `bd ready` and inspect current state with `bd show` or `bd list`.
213
+ 5. Update status and add comments through `bd` as work progresses. Native writes refresh the JSONL export; `bd sync` exchanges Dolt history through the configured remote.
214
+
215
+ 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.
211
216
 
212
217
  **Task States**: `open`, `in_progress`, `blocked`, `closed`
213
218
 
@@ -443,6 +448,10 @@ When reading an exported file in any of the four target tools:
443
448
 
444
449
  **Note**: This is a meta-repository for extending Augment Code AI. The actual project-specific `.augment/` folder remains in individual projects.
445
450
 
451
+ ## myTech.Today Company Profile
452
+
453
+ 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.
454
+
446
455
 
447
456
  ## Landing the Plane (Session Completion)
448
457
 
@@ -474,9 +483,9 @@ When reading an exported file in any of the four target tools:
474
483
 
475
484
  The root `VERSION` file is the single source of truth for the workspace version.
476
485
 
477
- - After editing `VERSION`, run `pnpm version:sync`.
478
- - Use `pnpm version:sync:dry-run` to preview changes.
479
- - Use `pnpm version:sync:force` in non-interactive contexts.
486
+ - After editing `VERSION`, run `pnpm run version:sync`.
487
+ - Use `pnpm run version:sync:dry-run` to preview changes.
488
+ - Use `pnpm run version:sync:force` in non-interactive contexts.
480
489
  - `VERSIONING.md` defines the SemVer rules and supported rewrite targets.
481
490
 
482
491
  ## YAGNI
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **Reusable augmentation modules for Augment Code AI, with cross-platform distribution to Claude Code, Cursor, Windsurf, and GitHub Copilot.**
4
4
 
5
- [![Version](https://img.shields.io/badge/version-3.2.0-blue.svg)](https://github.com/mytech-today-now/augment-extensions)
5
+ [![Version](https://img.shields.io/badge/version-3.4.0-blue.svg)](https://github.com/mytech-today-now/augment-extensions)
6
6
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](./LICENSE)
7
7
  [![npm](https://img.shields.io/badge/npm-%40mytechtoday%2Faugment--extensions-red.svg)](https://www.npmjs.com/package/@mytechtoday/augment-extensions)
8
8
 
@@ -10,15 +10,17 @@ Augment Extensions is the structural layer between your rule modules and the AI
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
- 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.
13
+ Current release: 3.4.0 adds automatic linked-rule refresh in Codex and Claude Code chats, opt-in automatic Jev judgments, installed-version discovery in the CLI and terminal manager, and version/help aliases. It also improves Linux, WSL, and Windows CLI handling. See [the changelog](CHANGELOG.md#340---2026-11-27) for the release notes.
14
14
 
15
15
  ## Table of Contents
16
16
 
17
17
  - [Why This Exists](#why-this-exists)
18
18
  - [Quickstart](#quickstart)
19
+ - [What's New in 3.4.0](#whats-new-in-340)
19
20
  - [Concepts](#concepts)
20
21
  - [CLI Reference](#cli-reference)
21
22
  - [Cross-Platform Distribution](#cross-platform-distribution)
23
+ - [Automatic Rule Refresh in Chat](#automatic-rule-refresh-in-chat)
22
24
  - [Coordination Manifest Schema](#coordination-manifest-schema)
23
25
  - [MCP Integration](#mcp-integration)
24
26
  - [OpenSpec Integration](#openspec-integration)
@@ -29,6 +31,7 @@ Current release: 3.2.0 adds repository-scoped linked-module inheritance, lifecyc
29
31
  - [Module Catalog](#module-catalog)
30
32
  - [Per-Tool Consumer Notes](#per-tool-consumer-notes)
31
33
  - [Contributing](#contributing)
34
+ - [About myTech.Today](#about-mytech-today)
32
35
  - [License](#license)
33
36
 
34
37
  ## Why This Exists
@@ -47,6 +50,8 @@ The result: rules are authored once in plain Markdown and JSON, versioned per mo
47
50
 
48
51
  ## Quickstart
49
52
 
53
+ For WSL, first verify that Linux Node.js and npm are selected as described in [WSL install and first run](#wsl-install-and-first-run). Installing with Windows npm can create an `augx` shim that cannot find Linux `node`.
54
+
50
55
  Install the CLI globally and link a module:
51
56
 
52
57
  ```bash
@@ -73,6 +78,98 @@ augx export --target all --dry-run # preview without writing
73
78
 
74
79
  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
80
 
81
+ ### Linux install and first run
82
+
83
+ Augx requires Node.js 16 or newer and npm. Check that both are available, install the CLI, and verify it starts:
84
+
85
+ ```bash
86
+ node --version
87
+ npm --version
88
+ npm install --global @mytechtoday/augment-extensions
89
+ augx --version
90
+ augx --v
91
+ augx version
92
+ augx -h
93
+ augx --h
94
+ augx --help
95
+ ```
96
+
97
+ If npm reports a permissions error for its global package directory, use a user-owned prefix instead of running npm with `sudo`:
98
+
99
+ ```bash
100
+ npm config set prefix "$HOME/.local"
101
+ export PATH="$HOME/.local/bin:$PATH"
102
+ npm install --global @mytechtoday/augment-extensions
103
+ ```
104
+
105
+ Add the `PATH` export to your shell startup file so `augx` remains available in new terminals. If you use a Node version manager that already provides a user-writable global package directory, keep that configuration.
106
+
107
+ From the project where you want to use the extensions, initialize Augx and link the guidance that fits the project:
108
+
109
+ ```bash
110
+ cd /path/to/your/project
111
+ augx init --no-optional-rules
112
+ augx link coding-standards/java
113
+ augx link coding-standards/spring
114
+ augx link workflows/agent-engineering
115
+ augx list --linked
116
+ ```
117
+
118
+ ### WSL install and first run
119
+
120
+ Run the install from a WSL Linux terminal with Linux Node.js and npm. Windows npm can add a shell wrapper under `/mnt/c/Users/.../AppData/Roaming/npm`; that wrapper runs `node`, so it fails with `node: not found` when Linux Node is missing from the WSL `PATH`.
121
+
122
+ Check that the selected tools and npm prefix belong to Linux before installing:
123
+
124
+ ```bash
125
+ node --version
126
+ node -p 'process.platform' # must print linux
127
+ command -v npm # must be a Linux path, not /mnt/c/...
128
+ npm config get prefix # must be a Linux path, not /mnt/c/...
129
+ ```
130
+
131
+ If `node` is missing or `process.platform` prints `win32`, install a Linux build of Node.js and npm inside WSL using your preferred Linux Node version manager. Ensure its `bin` directory is on `PATH` before the imported Windows npm directories. Then install and verify Augx from WSL:
132
+
133
+ ```bash
134
+ npm install -g @mytechtoday/augment-extensions
135
+ command -v augx # should resolve to a Linux path
136
+ augx --version
137
+ ```
138
+
139
+ From a checkout of this repository, `bash scripts/check-wsl-augx.sh` checks the selected Node, npm, global prefix, and Augx command without requiring Augx itself to start. If it reports a Windows path, correct the Linux Node/npm `PATH` order, reinstall Augx from WSL, and open a new terminal.
140
+
141
+ The check is also included in the npm package. If `command -v augx` points into the Windows npm directory, run it directly from that installation:
142
+
143
+ ```bash
144
+ AUGX_BIN=$(command -v augx)
145
+ bash "$(dirname "$AUGX_BIN")/node_modules/@mytechtoday/augment-extensions/scripts/check-wsl-augx.sh"
146
+ ```
147
+
148
+ Link only the modules you need. Run `augx gui` to browse modules, inspect their content, and manage links interactively. See [CLI Reference](#cli-reference) for initialization, linking, exporting, and other commands.
149
+
150
+ ### What's New in 3.4.0
151
+
152
+ - **Automatic linked-rule refresh** adds `augx context setup`, `disable`, and `status` for Codex and Claude Code. Configured hooks select current linked guidance for each prompt and refresh it after compaction without storing chat text or rule contents. See [Automatic Rule Refresh in Chat](#automatic-rule-refresh-in-chat).
153
+ - **Automatic Jev judgments** can be enabled for eligible Codex and Claude Code chats with saved consent and a bounded request budget. Setup makes no provider call; the host controls selection. See the [Decision Layer guide](augment-extensions/workflows/decision-layer/README.md) and [chat integration evidence report](docs/reports/decision-chat-2026-11-27.md).
154
+ - **Installed-version discovery** adds `augx version` and `augx --v`; `augx --version` and `augx -V` remain supported. The terminal manager displays the same installed version when it opens.
155
+ - **Help aliases** include `augx -h`, `augx --h`, and `augx --help` on Linux and Windows.
156
+ - **Cross-platform CLI handling** improves Windows process execution and adds checks and guidance for selecting Linux Node.js/npm when installing from WSL.
157
+
158
+ For optional automatic Jev judgments in normal chat, configure the native MCP integration once for Codex or Claude Code:
159
+
160
+ ```bash
161
+ augx link workflows/decision-layer
162
+ augx decision setup --host codex --automatic --requests 6 --dry-run
163
+ augx decision setup --host codex --automatic --requests 6
164
+ augx decision doctor
165
+ ```
166
+
167
+ Use `--host claude-code` for Claude Code. Review the plan and public-data consent before setup, then restart the host and trust or approve the project. Setup makes no provider calls; live requests need `TYPESAFE_API_KEY` in the host's environment. Once configured, the host may select Jev for an eligible ambiguous classification or evidence-ranking decision without a per-turn terminal command. Selection is controlled by the host model and is not guaranteed; real ordinary-chat selection and a live Jev response remain unverified. See the [chat integration evidence report](docs/reports/decision-chat-2026-11-27.md).
168
+
169
+ ## Runtime Compatibility
170
+
171
+ The package declares Node.js `>=16` and builds the CLI as CommonJS. The CLI supports Linux and Windows, including Linux executables and Windows command wrappers for external tools. It loads Chalk synchronously for command output, so it uses Chalk 4, which supports the fluent color and bold methods used by the CLI and can be required from CommonJS on Node 16. Chalk 5 is ESM-only and fails when loaded by this CommonJS entry point on Node 16. Inquirer remains on version 9 and is loaded with native dynamic import only when an interactive prompt is needed. UUID remains unchanged because the CLI startup path does not import it.
172
+
76
173
  ## Concepts
77
174
 
78
175
  ### Modules
@@ -81,11 +178,30 @@ A module is a directory under `augment-extensions/` with a `module.json` manifes
81
178
 
82
179
  Four module categories exist:
83
180
 
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.
181
+ - **coding-standards** - language- or framework-specific guidance. Currently shipped: Bash, C, CSS, Go, HTML, HTML+CSS+JS, Java, JavaScript, Perl, PHP, PowerShell, Python, Q, React, Spring Framework and Spring Boot, TypeScript.
85
182
  - **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.
183
+ - **workflows** - process integration for spec-driven development, task tracking, and multi-tool distribution. Currently shipped: adr-support, agent-engineering, cross-platform, database, decision-layer, mcp, wordpress-plugin.
87
184
  - **examples** - canned working examples that illustrate the rules. Currently shipped: design-patterns, gutenberg-block-plugin, rest-api-plugin, woocommerce-extension.
88
185
 
186
+ The [Agent Engineering workflow](augment-extensions/workflows/agent-engineering/README.md) covers scoped agents, harnesses, bounded loops, and dependency graphs with validated contracts and runnable deterministic local examples. Link it with `augx link workflows/agent-engineering` from a checkout or package that contains the module.
187
+
188
+ The [Decision Layer workflow](augment-extensions/workflows/decision-layer/README.md) adds an optional TypeSafe integration with project-local software setup, eleven typed decision capabilities, bounded local workers, independent artifact verification, recovery, and labeled evaluation. Link it with `augx link workflows/decision-layer` and explicitly run setup. To enable selective native chat judgments once, use `augx decision setup --host codex --automatic --requests 6` (or `--host claude-code`) after reviewing the dry-run and public-data consent. Restart and trust/approve the project in the host. Saved runtime policy controls requests; ordinary discovery and static exports do not activate it. See the module guide for exact host support, fixtures, verification gaps, limits and removal.
189
+
190
+ ### Automatic Rule Refresh in Chat
191
+
192
+ Augx can refresh relevant linked rule files automatically in Codex and Claude Code chats. Run setup once in the project:
193
+
194
+ ```bash
195
+ augx context setup --host all
196
+ augx context status
197
+ ```
198
+
199
+ This adds project lifecycle hooks to `.codex/hooks.json` and `.claude/settings.json`. Trust the Codex project configuration and review its hook, or approve the Claude Code project settings when prompted. Each user prompt is evaluated against linked module metadata, rule headings, and referenced rule paths. The matching current rule files are reread and injected with their canonical module ID, version, source path, and SHA-256 hash. A compact or resumed session refreshes the saved module IDs before the next model request.
200
+
201
+ Augx stores only a schema version, host, project root, hashed session key, update time, canonical module IDs, selection modes, and relative rule paths for each session under the local user state directory. It does not store prompt text, transcripts, or rule contents. The next refresh checks current links and versions again. It does not fetch remote module updates or change pinned versions. Diagnostics identify missing links, unavailable versions, unsafe paths, unreadable files, and files omitted to stay within the host context budget.
202
+
203
+ Cursor, Windsurf, and GitHub Copilot remain supported through static export or mirrors and do not have automatic rule refresh from this integration. Remove Augx-owned hooks with `augx context disable --host all`; edited hooks and unrelated settings are preserved.
204
+
89
205
  ### Linked vs. mirrored vs. exported
90
206
 
91
207
  These three verbs are orthogonal and stack:
@@ -152,6 +268,28 @@ augx lifecycle uninstall --force
152
268
 
153
269
  See [docs/LIFECYCLE.md](./docs/LIFECYCLE.md) for the state model, artifact schema, repair flow, and recovery notes.
154
270
 
271
+ ### CLI information
272
+
273
+ #### `augx version`
274
+
275
+ Print the installed Augx CLI version. The `augx --version`, `augx -V`, and `augx --v` options report the same value.
276
+
277
+ ```bash
278
+ augx version
279
+ augx --version
280
+ augx --v
281
+ ```
282
+
283
+ #### `augx --help`
284
+
285
+ Print application help. The `-h` and `--h` options are aliases, and all three work on Linux and Windows.
286
+
287
+ ```bash
288
+ augx -h
289
+ augx --h
290
+ augx --help
291
+ ```
292
+
155
293
  ### Module discovery
156
294
 
157
295
  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.
@@ -190,7 +328,7 @@ augx show completed --since 2026-01-01 --priority 1
190
328
 
191
329
  #### `augx search <keyword>`
192
330
 
193
- Search modules by keyword. `--type` restricts to a single category.
331
+ Search canonical IDs, manifest names, display names, descriptions, types and actual tags case-insensitively. `--type` restricts to a single category. For example, `augx search Jev` finds `workflows/decision-layer`.
194
332
 
195
333
  ```bash
196
334
  augx search typescript
@@ -350,18 +488,16 @@ augx sync watch # watch for changes and auto-sync
350
488
 
351
489
  ### Catalog
352
490
 
353
- The catalog command keeps the `MODULES.md` table of all available modules in sync with the on-disk module tree.
491
+ The catalog command generates the CLI catalog from the on-disk module tree. This repository also maintains the curated root index in `modules.md`.
354
492
 
355
493
  ```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
494
  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
495
+ augx catalog --output cli/MODULES.md --check # exit 1 if out of date
496
+ augx catalog --output cli/MODULES.md --auto # update only if out of date
363
497
  ```
364
498
 
499
+ The optional `catalog-hook` uses the default package-root `MODULES.md` path. This checkout keeps its curated root index as `modules.md`, so the hook is not installed here.
500
+
365
501
  ### Rule installation
366
502
 
367
503
  `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.
@@ -432,8 +568,15 @@ augx analyze --dir src --type dependencies --fix
432
568
 
433
569
  ```bash
434
570
  augx gui # launch the interactive TUI module browser
571
+ augx gui --project "path/to/project" # choose project scope explicitly
435
572
  ```
436
573
 
574
+ The terminal manager uses keyboard-operated Inquirer menus. Search module metadata, manage links, link valid collections, browse canonical READMEs/rules/examples/templates, or browse existing skills. Java and Spring are independently selectable: Java covers language/platform practices and Spring covers framework behavior. Agent Engineering details expose its contracts, bounded-loop/graph examples and local validator guidance as static content. Linking guidance never executes these files.
575
+
576
+ Selections affect only the displayed modules. Review the project scope and proposed changes, then apply or cancel. The menu refreshes discovery and linked state after actions, preserves pinned and unavailable entries outside the selection, and reports partial failures. Up/Down navigates, Space toggles checkboxes, Enter confirms, `a` toggles all checkboxes and `i` inverts them. Use Back/Cancel choices to return. Ctrl+C exits the menu; during a decision child it requests cancellation and retains durable accounting.
577
+
578
+ Open **Jev / TypeSafe Decision Workflow** for setup planning, explicit installation, doctor, decide, run, resume, evaluate, examples, inventory and ownership-protected removal. Installation always previews the plan first. Offline fixtures are labeled and need no provider credentials; existing valid decision configuration and a compatible optional execution runtime are still required. Live work requires explicit selection, a request budget within policy and confirmation. Credentials come from the environment. Resume accepts the exact digest from the persisted review file and keeps original budgets/deadlines. Unlinking guidance and removing software are separate actions. See [terminal workflows](cli/docs/GUI_CONFIGURATION.md) and the [Decision Layer guide](augment-extensions/workflows/decision-layer/README.md).
579
+
437
580
  ### Help reference
438
581
 
439
582
  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.
@@ -460,7 +603,7 @@ Every exported file starts with a five-line HTML-comment banner. For Cursor, the
460
603
 
461
604
  ```text
462
605
  <!-- GENERATED BY augx export - DO NOT EDIT -->
463
- <!-- augx-version: 3.2.0 -->
606
+ <!-- augx-version: 3.4.0 -->
464
607
  <!-- generated-at: 2026-05-25T21:13:00Z -->
465
608
  <!-- source-hash: a1b2c3d4e5f60718 -->
466
609
  <!-- modules: coding-standards/typescript@2.0.0, workflows/cross-platform@1.0.0 -->
@@ -850,7 +993,7 @@ augment-extensions/<category>/<module-name>/
850
993
  - Minor: new rule files or expanded guidance that preserves prior behavior.
851
994
  - Major: removed rules, renamed canonical ids, or guidance that contradicts a prior major.
852
995
 
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.
996
+ This checkout keeps a curated root index at `modules.md` and a generated CLI catalog at `cli/MODULES.md`. Regenerate or check the CLI catalog with `augx catalog --output cli/MODULES.md` or `augx catalog --output cli/MODULES.md --check`. The optional `catalog-hook` uses the package-root `MODULES.md` default and is not installed here.
854
997
 
855
998
  ## Operability
856
999
 
@@ -929,11 +1072,11 @@ augment-extensions/
929
1072
 
930
1073
  ## Module Catalog
931
1074
 
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:
1075
+ The curated root index is `modules.md`. The generated CLI catalog is `cli/MODULES.md`; regenerate or check it with `augx catalog --output cli/MODULES.md` and `augx catalog --output cli/MODULES.md --check`. A representative slice of what ships today:
933
1076
 
934
1077
  ### coding-standards
935
1078
 
936
- `bash`, `c`, `css`, `go`, `html`, `html-css-js`, `javascript`, `perl`, `php`, `powershell`, `python`, `q-sharp`, `react`, `typescript`.
1079
+ `bash`, `c`, `css`, `go`, `html`, `html-css-js`, `java`, `javascript`, `perl`, `php`, `powershell`, `python`, `q-sharp`, `react`, `spring`, `typescript`.
937
1080
 
938
1081
  ### domain-rules
939
1082
 
@@ -999,12 +1142,67 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) and [AGENTS.md](./AGENTS.md) for the fu
999
1142
  1. Discuss substantial changes as an OpenSpec proposal under `openspec/changes/<change-name>/`.
1000
1143
  2. Decompose into Beads tasks with `bd-` prefixed ids. Append to `.beads/issues.jsonl`.
1001
1144
  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`.
1145
+ 4. Run `npm test`, `augx validate <module>` for any touched modules, and `augx catalog --output cli/MODULES.md --check`.
1003
1146
  5. Run `augx export --target all --dry-run` to confirm no unintended drift.
1004
1147
  6. Open a PR with a description that links the proposal and the closing task ids.
1005
1148
 
1006
1149
  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.
1007
1150
 
1151
+ <a id="about-mytech-today"></a>
1152
+ ## About myTech.Today
1153
+
1154
+ <table role="presentation">
1155
+ <tr>
1156
+ <td width="50%" valign="top">
1157
+ <h3>🛠️ Our Services</h3>
1158
+ <ul>
1159
+ <li>IT Consulting and Support</li>
1160
+ <li>Custom PowerShell Automation and Scripting</li>
1161
+ <li>Infrastructure Optimization and System Administration</li>
1162
+ <li>Cloud Integration (Azure, AWS, GCS, Microsoft 365)</li>
1163
+ <li>Network Design and Management</li>
1164
+ <li>Cybersecurity and Compliance Solutions</li>
1165
+ <li>Database Management and Custom Development</li>
1166
+ <li>System Setup, Upgrades, and Troubleshooting</li>
1167
+ <li>Virus and Spyware Removal</li>
1168
+ <li>Hardware Procurement, Installation, and Configuration</li>
1169
+ </ul>
1170
+ <h3>📍 Service Area</h3>
1171
+ <ul>
1172
+ <li>Omaha, NE</li>
1173
+ <li>Lincoln, NE</li>
1174
+ </ul>
1175
+ </td>
1176
+ <td width="50%" valign="top">
1177
+ <h3>⭐ Why Choose myTech.Today?</h3>
1178
+ <ul>
1179
+ <li>20+ years of IT consulting and software development experience</li>
1180
+ <li>Personalized service to 190+ satisfied clients</li>
1181
+ <li>5-star review rating with consistent 24-hour solution delivery</li>
1182
+ <li>Payment-upon-success terms available</li>
1183
+ <li>Expertise in Windows automation, PowerShell scripting, and system optimization</li>
1184
+ </ul>
1185
+ <h3>📬 Contact Information</h3>
1186
+ <table>
1187
+ <tr><th scope="row">📧 Email</th><td><a href="mailto:sales@mytech.today">sales@mytech.today</a></td></tr>
1188
+ <tr><th scope="row">🌐 Website</th><td><a href="https://mytech.today">mytech.today</a></td></tr>
1189
+ <tr><th scope="row">💻 GitHub</th><td><a href="https://github.com/mytech-today-now">@mytech-today-now</a></td></tr>
1190
+ <tr><th scope="row">🔗 LinkedIn</th><td><a href="https://linkedin.com/in/kylerode">linkedin.com/in/kylerode</a></td></tr>
1191
+ </table>
1192
+ </td>
1193
+ </tr>
1194
+ </table>
1195
+
1196
+ <table role="presentation">
1197
+ <tr>
1198
+ <td colspan="2" align="center">
1199
+ <sub><strong>myTech.Today</strong> · Professional IT Services · Serving Omaha and Lincoln · <a href="https://mytech.today">mytech.today</a></sub>
1200
+ </td>
1201
+ </tr>
1202
+ </table>
1203
+
1204
+ The canonical company profile is maintained in [docs/company-profile.md](./docs/company-profile.md). Keep it aligned with this public profile and the npm package author metadata.
1205
+
1008
1206
  ## License
1009
1207
 
1010
1208
  MIT. See [LICENSE](./LICENSE).
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+
3
+ All notable changes to this module are documented here.
4
+
5
+ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [1.0.0] - 2026-11-26
8
+
9
+ ### Added
10
+
11
+ - Initial Java standards module covering project baselines, language and API design, reliability, concurrency, testing, tooling, and secure coding.
12
+ - Added a Java 17 illustrative immutable request example.
@@ -0,0 +1,54 @@
1
+ # Java Coding Standards
2
+
3
+ Version 1.0.0 provides practical, project-agnostic guidance for modern Java development. It is designed to be linked by itself or alongside the Spring module.
4
+
5
+ ## Overview
6
+
7
+ Use these rules for Java language and platform decisions that apply across application types: packages, naming, API design, types, collections, null handling, exceptions, resources, concurrency, tests, build tools, documentation, and secure coding.
8
+
9
+ This module does not assume a JDK release, framework, build system, or project layout. Before generating code, inspect the project's Maven or Gradle configuration, toolchain settings, wrapper, CI configuration, and supported runtime. Keep generated syntax and APIs within that declared baseline. The included value-object example is explicitly labeled for Java 17.
10
+
11
+ ## Installation
12
+
13
+ Link the module directly:
14
+
15
+ ```bash
16
+ augx link coding-standards/java
17
+ ```
18
+
19
+ It can also be inspected without linking:
20
+
21
+ ```bash
22
+ augx show coding-standards/java
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ 1. Read the project's JDK toolchain, compiler release, CI matrix, and supported runtime before selecting language features.
28
+ 2. Load the rule file that matches the change: language and API design, reliability and concurrency, or testing, tooling, and security.
29
+ 3. Use this module for Java decisions. If the project uses Spring, use the Spring module for container and framework behavior.
30
+
31
+ ## Contents
32
+
33
+ - [Language and API design](rules/language-and-api-design.md): project baseline, naming, packages, encapsulation, generics, collections, null handling, and stable language features.
34
+ - [Reliability and concurrency](rules/reliability-and-concurrency.md): validation, exceptions, resource management, concurrency, and measured performance.
35
+ - [Testing, tooling, and security](rules/testing-tooling-and-security.md): useful tests, Maven and Gradle practices, documentation, and secure coding.
36
+ - [SearchRequest.java](examples/SearchRequest.java): an illustrative Java 17 record with boundary validation and a defensive collection copy.
37
+
38
+ ## Relationship to Spring guidance
39
+
40
+ This module owns general Java language and platform guidance. [Spring Framework and Spring Boot Standards](../spring/README.md) owns dependency injection, bean configuration, Boot behavior, HTTP endpoints, framework testing, transactions, Spring Security integration, and Actuator operations. Link either module on its own. When both are linked, use this module for Java decisions and the Spring module for Spring-specific decisions.
41
+
42
+ ## Version and source policy
43
+
44
+ Treat the JDK release and compiler target configured by the consuming project as authoritative. Use stable language features supported by that target. Do not enable preview features by default. Preview and incubator APIs require explicit project approval, matching build and runtime flags, and tests on every supported runtime.
45
+
46
+ For language and API changes, consult the [Java SE specifications](https://docs.oracle.com/javase/specs/) and the version-specific [Java language changes by release](https://docs.oracle.com/en/java/javase/21/language/java-language-changes-release.html). For reproducible builds, use the project's existing Maven or Gradle wrapper and toolchain configuration. See the official [Maven toolchains guide](https://maven.apache.org/guides/mini/guide-using-toolchains.html) and [Gradle toolchains guide](https://docs.gradle.org/current/userguide/toolchains.html).
47
+
48
+ ## Character count
49
+
50
+ The count covers every file in this module directory, including manifests, documentation, rules, and examples: see `module.json` and `metadata.json` for the verified total.
51
+
52
+ ## Changelog
53
+
54
+ See [CHANGELOG.md](CHANGELOG.md).
@@ -0,0 +1,13 @@
1
+ // Illustrative Java 17 example. Adapt nullness and validation choices to the consuming project.
2
+ import java.util.List;
3
+ import java.util.Objects;
4
+
5
+ public record SearchRequest(String term, List<String> tags) {
6
+ public SearchRequest {
7
+ term = Objects.requireNonNull(term, "term").strip();
8
+ if (term.isEmpty()) {
9
+ throw new IllegalArgumentException("term must not be blank");
10
+ }
11
+ tags = List.copyOf(tags);
12
+ }
13
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "name": "java-standards",
4
+ "displayName": "Java Coding Standards",
5
+ "description": "Version-aware Java development guidance for project structure, language features, APIs, reliability, testing, tooling, and secure coding.",
6
+ "type": "coding-standards",
7
+ "language": "java",
8
+ "tags": [
9
+ "java",
10
+ "jdk",
11
+ "jvm",
12
+ "coding-standards",
13
+ "language-features",
14
+ "api-design",
15
+ "testing",
16
+ "concurrency",
17
+ "security",
18
+ "maven",
19
+ "gradle"
20
+ ],
21
+ "compatibility": {
22
+ "augmentMinVersion": "1.0.0"
23
+ },
24
+ "characterCount": 19105,
25
+ "lastUpdated": "2026-11-26",
26
+ "files": {
27
+ "rules": [
28
+ "language-and-api-design.md",
29
+ "reliability-and-concurrency.md",
30
+ "testing-tooling-and-security.md"
31
+ ],
32
+ "examples": [
33
+ "SearchRequest.java"
34
+ ]
35
+ }
36
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "java-standards",
3
+ "version": "1.0.0",
4
+ "displayName": "Java Coding Standards",
5
+ "description": "Version-aware Java development guidance for project structure, language features, APIs, reliability, testing, tooling, and secure coding.",
6
+ "type": "coding-standards",
7
+ "author": "Augment Extensions",
8
+ "license": "MIT",
9
+ "tags": [
10
+ "java",
11
+ "jdk",
12
+ "jvm",
13
+ "coding-standards",
14
+ "language-features",
15
+ "api-design",
16
+ "testing",
17
+ "concurrency",
18
+ "security",
19
+ "maven",
20
+ "gradle"
21
+ ],
22
+ "files": [
23
+ "rules/language-and-api-design.md",
24
+ "rules/reliability-and-concurrency.md",
25
+ "rules/testing-tooling-and-security.md",
26
+ "examples/SearchRequest.java"
27
+ ],
28
+ "dependencies": [],
29
+ "augment": {
30
+ "characterCount": 19105,
31
+ "priority": "high",
32
+ "category": "coding-standards",
33
+ "language": "java"
34
+ }
35
+ }
@@ -0,0 +1,45 @@
1
+ # Java Language and API Design
2
+
3
+ Use these rules when designing Java types, packages, public APIs, and language-level changes.
4
+
5
+ ## Start with the project's actual baseline
6
+
7
+ 1. Read the configured JDK and release target in Maven or Gradle, the wrapper version, CI jobs, and supported deployment runtimes. Check compiler and runtime settings together; a locally installed JDK does not raise the project's baseline by itself.
8
+ 2. Prefer a toolchain or compiler `release` setting already established by the project. Keep source, target, and runtime compatibility aligned. Do not recommend a language feature until the project's minimum compiler accepts it.
9
+ 3. Treat preview and incubator features as opt-in experiments. Identify the exact JDK release, enable flags, deployment constraints, and removal risk. Do not enable them in ordinary production code without an explicit project decision.
10
+ 4. When documentation and examples disagree with the configured baseline, follow the project and call out the mismatch instead of silently raising the target.
11
+
12
+ Records became a permanent feature in Java 16, sealed classes in Java 17, and pattern matching for `switch` in Java 21. Check the selected release's official language changes before applying a feature. A feature being stable in one release does not make it valid for an older target.
13
+
14
+ ## Name and organize code consistently
15
+
16
+ - Use the repository's formatter and checkstyle rules if present. If none exist, follow nearby code and avoid introducing a new formatter or style dependency as part of a routine change.
17
+ - Use `UpperCamelCase` for types, `lowerCamelCase` for methods and variables, and uppercase underscore-separated names only for `static final` constants that represent named constants. Prefer descriptive names over abbreviations.
18
+ - Keep package names lowercase and stable. Organize packages around a domain or feature when that matches the application, and avoid a large catch-all `util` package.
19
+ - Keep types cohesive and limit visibility. Use package-private visibility for implementation details unless a wider API is needed. Do not expose fields or mutable collections as an accidental API.
20
+ - Keep imports explicit and remove unused imports. Avoid wildcard imports when they hide ownership or create ambiguity.
21
+ - Follow the existing source, test, and resource layout. Do not move project files solely to match a generic template.
22
+
23
+ ## Design types and APIs for callers
24
+
25
+ - Prefer small interfaces that describe a real boundary. Avoid interfaces with one implementation when they add no substitution, testing, or API value.
26
+ - Use generics to preserve useful type information. Avoid raw types, unchecked casts, and broad `Object` APIs when a parameterized type expresses the contract.
27
+ - Choose a collection based on required behavior: ordering, uniqueness, lookup, mutability, and expected size. Return the narrowest useful abstraction and document ordering when callers rely on it.
28
+ - Make value objects immutable where practical. Copy mutable inputs and outputs at ownership boundaries. A `final` reference does not make its referenced object immutable.
29
+ - Prefer enums for a fixed set of alternatives. Use sealed hierarchies when the project baseline supports them and limiting implementations is part of the model.
30
+ - Keep public API changes deliberate. Check source and binary compatibility expectations, nullability conventions, serialization format, and downstream callers before changing a public signature.
31
+
32
+ ## Handle null and use language features deliberately
33
+
34
+ - Inspect the project's nullness annotations and static analysis configuration. Apply the established convention consistently. Validate required inputs at system boundaries and at constructors that enforce invariants.
35
+ - Use `Optional<T>` mainly to express a possibly absent return value. Do not use it as a substitute for validation or as a default field, parameter, or collection type unless project conventions require that shape.
36
+ - Use a primitive when absence is not part of the contract. If absence matters, model it explicitly rather than using a magic value.
37
+ - Use a record for a transparent data carrier when its component model fits the domain. Records are shallowly immutable: copy mutable collections and validate invariants in the canonical constructor where needed.
38
+ - Use pattern matching and other newer syntax only when the project's release supports the stable form and the result remains clearer to maintainers. Avoid preview syntax in general-purpose examples.
39
+
40
+ See [SearchRequest.java](../examples/SearchRequest.java) for an illustrative Java 17 record that validates input and defensively copies a collection. It is not a complete project or a substitute for the consuming project's nullness and validation conventions.
41
+
42
+ ## Official references
43
+
44
+ - [Java SE specifications](https://docs.oracle.com/javase/specs/)
45
+ - [Java language changes by release](https://docs.oracle.com/en/java/javase/21/language/java-language-changes-release.html)