@kiwidata/grimoire 0.2.0 → 0.2.2

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 (37) hide show
  1. package/AGENTS.md +9 -4
  2. package/dist/core/check-complexity.d.ts +4 -0
  3. package/dist/core/check-complexity.d.ts.map +1 -0
  4. package/dist/core/check-complexity.js +79 -0
  5. package/dist/core/check-complexity.js.map +1 -0
  6. package/dist/core/check-llm.d.ts +5 -0
  7. package/dist/core/check-llm.d.ts.map +1 -0
  8. package/dist/core/check-llm.js +108 -0
  9. package/dist/core/check-llm.js.map +1 -0
  10. package/dist/core/check.d.ts +1 -2
  11. package/dist/core/check.d.ts.map +1 -1
  12. package/dist/core/check.js +2 -179
  13. package/dist/core/check.js.map +1 -1
  14. package/dist/core/init-config.d.ts +22 -0
  15. package/dist/core/init-config.d.ts.map +1 -0
  16. package/dist/core/init-config.js +118 -0
  17. package/dist/core/init-config.js.map +1 -0
  18. package/dist/core/init-prompts.d.ts +8 -0
  19. package/dist/core/init-prompts.d.ts.map +1 -0
  20. package/dist/core/init-prompts.js +166 -0
  21. package/dist/core/init-prompts.js.map +1 -0
  22. package/dist/core/init.d.ts +0 -1
  23. package/dist/core/init.d.ts.map +1 -1
  24. package/dist/core/init.js +3 -279
  25. package/dist/core/init.js.map +1 -1
  26. package/package.json +1 -1
  27. package/skills/grimoire-apply/SKILL.md +65 -12
  28. package/skills/grimoire-draft/SKILL.md +5 -3
  29. package/skills/grimoire-plan/SKILL.md +4 -1
  30. package/skills/grimoire-pr/SKILL.md +14 -15
  31. package/skills/grimoire-refactor/SKILL.md +3 -1
  32. package/skills/references/code-quality.md +1 -1
  33. package/skills/references/principles.md +4 -3
  34. package/skills/references/refactor-scan-categories.md +15 -0
  35. package/skills/references/review-personas.md +30 -13
  36. package/skills/references/testing-contracts.md +19 -0
  37. package/templates/learnings.md +40 -0
@@ -0,0 +1,40 @@
1
+ # Learnings — <change-id>
2
+
3
+ <!--
4
+ Ephemeral working memory for this change. Lives only in
5
+ `.grimoire/changes/<change-id>/` and is **removed at finalize** with the rest
6
+ of the scaffolding — nothing here persists to the repo. Re-read it at the start
7
+ of every task section and before every retry.
8
+
9
+ Two sections, two lifecycles. Keep them separate; never write either into
10
+ `AGENTS.md`.
11
+ -->
12
+
13
+ ## Failure-mode notes
14
+
15
+ <!--
16
+ Transient. One line per dead end: what was tried and why it failed, so the next
17
+ attempt does not repeat it. This is the antidote to thrashing — a stuck retry
18
+ MUST read this section first. Pruned per task: delete a task's entries the
19
+ moment that task goes green. Never promoted anywhere.
20
+ -->
21
+
22
+ Format: `- <task-id> · tried <approach> · failed: <observed error / why>`
23
+
24
+ - 2.2 · tried mocking the client wrapper · failed: mock satisfied an assertion prod code never reaches — mock at the HTTP boundary instead
25
+
26
+ ## Discovered facts
27
+
28
+ <!--
29
+ Durable facts about the project learned while implementing — a build flag, a
30
+ convention, an undocumented contract, an architectural constraint. Staged here
31
+ only until reconciled into the one home that owns that fact at finalize, then
32
+ cleared. Recording the destination home makes reconciliation mechanical and
33
+ lets the user correct the routing — that reconciliation is what keeps the fact
34
+ from going stale, because it then lives where the project's own changes keep it
35
+ honest.
36
+ -->
37
+
38
+ Format: `- fact: <what was learned> → home: <area doc | decision | constraint | schema | feature>`
39
+
40
+ - fact: the bdd suite needs `TZ=UTC` or time-based scenarios flake → home: `.grimoire/docs/<area>.md`