@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 +5 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/skills/software-audit/SKILL.md +2 -2
- package/skills/software-design/SKILL.md +1 -1
- package/skills/software-design/references/clean-code.md +2 -2
- package/templates/multi-projects/pnpm-workspace.yaml +1 -0
- package/templates/single-project/pnpm-workspace.yaml +1 -0
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
|
|
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
package/package.json
CHANGED
|
@@ -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
|
|
47
|
-
- **Banned synonyms:** `fetch` / `retrieve` / `load` / `read` / `list` -> `get`, `query` (as verb) -> `find` / `exists`, `delete` / `clear` -> `remove`, `add` / `insert` / `save` -> `create` / `update`, `
|
|
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.
|