@khanhspring/forge-module 1.1.0 → 1.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/package.json
CHANGED
|
@@ -61,12 +61,15 @@ If `tasks.md` is missing → stop: "No tasks found. Run `/forge-tasks {slug}` in
|
|
|
61
61
|
|
|
62
62
|
Then research the existing codebase — do this before asking any questions:
|
|
63
63
|
|
|
64
|
-
1. **Read `
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
1. **Read `{spec_submodule_path}/CONTEXT.md`** (if present) — project-wide domain context:
|
|
65
|
+
actors, domain glossary, principles, and forbidden patterns. Use glossary terms verbatim
|
|
66
|
+
when naming things — never invent synonyms for existing domain terms.
|
|
67
|
+
2. **Read `CLAUDE.md`** — this repo's architectural principles, conventions, and forbidden patterns.
|
|
68
|
+
3. **Find similar existing endpoints** — look for controllers/routes with similar patterns to what the contract defines. Note how they're structured.
|
|
69
|
+
4. **Find existing service/repository patterns** — how are services and data access layers organized in this codebase?
|
|
70
|
+
5. **Find existing test patterns** — how are unit and integration tests structured? What test utilities exist?
|
|
71
|
+
6. **Find existing error handling** — how does this service return errors? Does it match the `ApiError` schema (`shared/api-error.yaml`) in the contract — `code`, `message`, `traceId`, `details[]`?
|
|
72
|
+
7. **Find existing auth/middleware** — how is authentication enforced on existing endpoints?
|
|
70
73
|
|
|
71
74
|
Report findings before asking questions:
|
|
72
75
|
|
|
@@ -256,6 +256,8 @@ _(Single app: show Stack + Port inline. Monorepo: replace with a table.)_
|
|
|
256
256
|
Linked via git submodule at `specs/`.
|
|
257
257
|
Run `git submodule update --remote specs` before starting a new feature,
|
|
258
258
|
and again after `/forge-close` is run in the spec repo to sync task status.
|
|
259
|
+
Project-wide domain context (actors, glossary, principles) lives at `specs/CONTEXT.md`
|
|
260
|
+
— read it before implementing.
|
|
259
261
|
|
|
260
262
|
## Principles
|
|
261
263
|
{list each as a bullet — or "None defined yet."}
|