@adbayb/stack 3.8.2 → 3.9.0-next.1795826669431.f4b0003

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/README.md CHANGED
@@ -85,14 +85,17 @@ pnpm add -D @adbayb/stack
85
85
  pnpm approve
86
86
  ```
87
87
 
88
- If the package is already installed, run `pnpm approve`. Select `@adbayb/stack` to approve all six skills; pnpm records the approval in `pnpm-workspace.yaml`. pnpm links skills into existing agent skill directories by default. To choose a directory explicitly, configure:
88
+ If the package is already installed, run `pnpm approve`. Select `@adbayb/stack` to approve all six skills; pnpm records the approval in `pnpm-workspace.yaml`. pnpm links skills into existing agent skill directories by default. To choose directories explicitly, configure:
89
89
 
90
90
  ```yaml
91
91
  skills:
92
92
  dirs:
93
- - .agents/skills
93
+ - .agents/skills # Codex and other agents following the shared convention
94
+ - .claude/skills # Claude Code, which only reads this directory
94
95
  ```
95
96
 
97
+ Projects scaffolded with `stack create` ship this configuration.
98
+
96
99
  Links use names such as `pnpm-@adbayb+stack-software-design`. Global installs and `pnpm dlx` do not link skills.
97
100
 
98
101
  For older pnpm versions or global installation, install from the repository with:
package/dist/index.js CHANGED
@@ -924,7 +924,7 @@ const createWatchCommand = (program) => {
924
924
 
925
925
  //#endregion
926
926
  //#region package.json
927
- var version = "3.8.2";
927
+ var version = "3.9.0-next.1795826669431.f4b0003";
928
928
 
929
929
  //#endregion
930
930
  //#region src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adbayb/stack",
3
- "version": "3.8.2",
3
+ "version": "3.9.0-next.1795826669431.f4b0003",
4
4
  "description": "My opinionated JavaScript-based toolchain",
5
5
  "keywords": [
6
6
  "development",
@@ -6,8 +6,8 @@ metadata:
6
6
  author: adbayb
7
7
  repository: adbayb/stack
8
8
  requires:
9
- - "software-design >=1.2.0"
10
- version: "1.2.0"
9
+ - "software-design >=1.3.0"
10
+ version: "1.2.1"
11
11
  ---
12
12
 
13
13
  # Software Audit
@@ -5,7 +5,7 @@ license: MIT
5
5
  metadata:
6
6
  author: adbayb
7
7
  repository: adbayb/stack
8
- version: "1.2.0"
8
+ version: "1.3.0"
9
9
  ---
10
10
 
11
11
  # Software Design
@@ -43,8 +43,8 @@
43
43
  Pick one verb per contract and use it everywhere. Same verb must always mean the same thing (POLA); synonyms force readers to guess whether `fetch` differs from `get`.
44
44
 
45
45
  - **Queries (no mutation):** `get` (lookup by identity), `find` (search by criteria/filter), `exists` / `count`. Missing values use the absence convention above; failures use the project's error convention. Use `getOrThrow` only for an explicit missing-value exception contract; an I/O failure alone does not require renaming a query. Collections use a plural noun, never an `All` infix (`getOrders`, `findOverdueOrders`, not `getAllOrders`).
46
- - **Commands (side effects):** `create`, `update`, `remove` for plain lifecycle; rich domain behavior uses intention verbs (`refundOrder`, `activateAccount`) instead of `setStatus` / `updateFlag`.
47
- - **Banned synonyms:** `fetch` / `retrieve` / `load` / `read` / `list` -> `get`, `query` (as verb) -> `find` / `exists`, `delete` / `clear` -> `remove`, `add` / `insert` / `save` -> `create` / `update`, `set` -> an intention verb (`refundOrder`, not `setStatus`; plain `set` only for dumb holders/builders/DTOs or when a framework specifically requires it, as React does for state setters), `process` / `handle` / `manage` / `do` -> the specific intention verb, `data` / `info` / `util` -> a domain noun (`Order`, `RefundPolicy`). Third-party and platform APIs (e.g. `fetch`) keep their own names.
46
+ - **Commands (side effects):** `create`, `update` (partial change of an existing record), `remove` for plain lifecycle; `set` assigns or replaces one value with no domain rule attached (`setPackageManager`, `setTheme`, builder/DTO fields, framework state setters such as React's). Domain state changes use intention verbs naming the business event (`refundOrder`, `activateAccount`), never `setStatus` / `updateFlag`: if the change enforces an invariant, a state transition, or side effects beyond storing the value, name the intention.
47
+ - **Banned synonyms:** `fetch` / `retrieve` / `load` / `read` / `list` -> `get`, `query` (as verb) -> `find` / `exists`, `delete` / `clear` -> `remove`, `add` / `insert` / `save` -> `create` / `update`, `modify` / `edit` / `patch` / `change` -> `update`, `assign` / `put` / `store` -> `set`, `set` / `update` on domain state (`setStatus`, `updateFlag`) -> an intention verb (`refundOrder`), `process` / `handle` / `manage` / `do` -> the specific intention verb, `data` / `info` / `util` -> a domain noun (`Order`, `RefundPolicy`). Third-party and platform APIs (e.g. `fetch`) keep their own names.
48
48
  - **Booleans:** `is*`, `has*`, `can*` (`isOverdue`, `hasAccess`, `canRefund`).
49
49
  - **Generic utilities:** parameters with no domain meaning use `input` (`...inputs` for rest) and results use `output`, instead of `data`/`arg`/`val`/`x`. A parameter with domain meaning always takes the domain name (`userId`, not `input`); destructured properties and task keys keep distinct domain names.
50
50
  - **Boundary contracts:** when a function's input/output shape exists nowhere else (bespoke aggregation at a boundary, also serving as the Parameter Object), name it `<FunctionName>Input` / `<FunctionName>Output` (PascalCase of the verb-first function: `createMessage` takes `CreateMessageInput`). Reuse domain types directly otherwise: never alias a domain entity per function, never wrap a single existing value.
@@ -25,3 +25,4 @@ permissions:
25
25
  skills:
26
26
  dirs:
27
27
  - .agents/skills
28
+ - .claude/skills
@@ -24,3 +24,4 @@ permissions:
24
24
  skills:
25
25
  dirs:
26
26
  - .agents/skills
27
+ - .claude/skills