agent-personalizer 0.9.0 → 0.10.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 (99) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/CONTRIBUTING.md +3 -3
  3. package/README.md +12 -10
  4. package/RELEASING.md +8 -7
  5. package/SECURITY.md +1 -1
  6. package/bin/agent-personalizer.js +21 -32
  7. package/bin/cli-util.cjs +28 -0
  8. package/bin/global.cjs +4 -4
  9. package/bin/install-plan.cjs +4 -3
  10. package/bin/learn.cjs +10 -3
  11. package/bin/sessions.cjs +195 -35
  12. package/bin/uninstall.cjs +3 -3
  13. package/check/gate.cjs +116 -17
  14. package/docs/guarantees.md +1 -1
  15. package/docs/install.md +6 -6
  16. package/docs/learning.md +7 -7
  17. package/docs/paste-guide.md +8 -6
  18. package/docs/tiers.md +1 -1
  19. package/hooks/README.md +17 -1
  20. package/hooks/gemini-cli/session-start.sh +15 -0
  21. package/llms.txt +6 -4
  22. package/package.json +6 -3
  23. package/render/onboarding.cjs +30 -47
  24. package/render/render.cjs +24 -15
  25. package/rules/00-read-the-profile-first.md +3 -0
  26. package/rules/20-one-owner-per-rule.md +3 -0
  27. package/rules/30-folder-index-is-part-of-the-change.md +3 -0
  28. package/rules/40-sign-every-edit.md +4 -1
  29. package/skills/agent-personalizer/SKILL.md +104 -0
  30. package/templates/GEMINI.md +30 -0
  31. package/examples/freelance-illustrator/.agent-personalizer.json +0 -57
  32. package/examples/freelance-illustrator/AGENTS.md +0 -244
  33. package/examples/freelance-illustrator/AGENT_ONBOARDING.md +0 -67
  34. package/examples/freelance-illustrator/CLAUDE.md +0 -248
  35. package/examples/freelance-illustrator/LEARNED.md +0 -14
  36. package/examples/freelance-illustrator/USER.md +0 -54
  37. package/examples/freelance-illustrator/notes/README.md +0 -39
  38. package/examples/freelance-illustrator/notes/decisions.md +0 -18
  39. package/examples/freelance-illustrator/notes/inbox/2026-09-03-shot-list-for-six-prints.md +0 -14
  40. package/examples/freelance-illustrator/notes/inbox/README.md +0 -19
  41. package/examples/freelance-illustrator/notes/sessions/2026-W36.md +0 -41
  42. package/examples/freelance-illustrator/rules/00-read-the-profile-first.md +0 -24
  43. package/examples/freelance-illustrator/rules/10-evidence-before-assertion.md +0 -24
  44. package/examples/freelance-illustrator/rules/20-one-owner-per-rule.md +0 -24
  45. package/examples/freelance-illustrator/rules/30-folder-index-is-part-of-the-change.md +0 -26
  46. package/examples/freelance-illustrator/rules/40-sign-every-edit.md +0 -25
  47. package/examples/freelance-illustrator/rules/50-output-style.md +0 -21
  48. package/examples/freelance-illustrator/rules/60-act-or-ask.md +0 -30
  49. package/examples/freelance-illustrator/rules/65-ask-before-it-repeats.md +0 -18
  50. package/examples/freelance-illustrator/rules/70-their-words-point-at-the-thing.md +0 -15
  51. package/examples/freelance-illustrator/rules/80-symptoms-are-not-causes.md +0 -15
  52. package/examples/freelance-illustrator/rules/90-surface-what-they-cant-see.md +0 -15
  53. package/examples/freelance-illustrator/rules/README.md +0 -61
  54. package/examples/lab-technician/.agent-personalizer.json +0 -38
  55. package/examples/lab-technician/AGENTS.md +0 -243
  56. package/examples/lab-technician/AGENT_ONBOARDING.md +0 -64
  57. package/examples/lab-technician/CLAUDE.md +0 -247
  58. package/examples/lab-technician/LEARNED.md +0 -14
  59. package/examples/lab-technician/USER.md +0 -53
  60. package/examples/lab-technician/notes/README.md +0 -26
  61. package/examples/lab-technician/notes/decisions.md +0 -4
  62. package/examples/lab-technician/notes/inbox/2026-10-06-observation-table.md +0 -3
  63. package/examples/lab-technician/notes/inbox/README.md +0 -7
  64. package/examples/lab-technician/notes/sessions/2026-W41.md +0 -7
  65. package/examples/lab-technician/rules/00-read-the-profile-first.md +0 -24
  66. package/examples/lab-technician/rules/10-evidence-before-assertion.md +0 -24
  67. package/examples/lab-technician/rules/20-one-owner-per-rule.md +0 -24
  68. package/examples/lab-technician/rules/30-folder-index-is-part-of-the-change.md +0 -26
  69. package/examples/lab-technician/rules/40-sign-every-edit.md +0 -25
  70. package/examples/lab-technician/rules/50-output-style.md +0 -21
  71. package/examples/lab-technician/rules/60-act-or-ask.md +0 -30
  72. package/examples/lab-technician/rules/65-ask-before-it-repeats.md +0 -18
  73. package/examples/lab-technician/rules/70-their-words-point-at-the-thing.md +0 -15
  74. package/examples/lab-technician/rules/80-symptoms-are-not-causes.md +0 -15
  75. package/examples/lab-technician/rules/90-surface-what-they-cant-see.md +0 -15
  76. package/examples/lab-technician/rules/README.md +0 -61
  77. package/examples/product-designer/.agent-personalizer.json +0 -38
  78. package/examples/product-designer/AGENTS.md +0 -243
  79. package/examples/product-designer/AGENT_ONBOARDING.md +0 -63
  80. package/examples/product-designer/CLAUDE.md +0 -247
  81. package/examples/product-designer/LEARNED.md +0 -14
  82. package/examples/product-designer/USER.md +0 -53
  83. package/examples/product-designer/notes/README.md +0 -26
  84. package/examples/product-designer/notes/decisions.md +0 -4
  85. package/examples/product-designer/notes/inbox/2026-10-06-cancellation-wording.md +0 -8
  86. package/examples/product-designer/notes/inbox/README.md +0 -7
  87. package/examples/product-designer/notes/sessions/2026-W41.md +0 -7
  88. package/examples/product-designer/rules/00-read-the-profile-first.md +0 -24
  89. package/examples/product-designer/rules/10-evidence-before-assertion.md +0 -24
  90. package/examples/product-designer/rules/20-one-owner-per-rule.md +0 -24
  91. package/examples/product-designer/rules/30-folder-index-is-part-of-the-change.md +0 -26
  92. package/examples/product-designer/rules/40-sign-every-edit.md +0 -25
  93. package/examples/product-designer/rules/50-output-style.md +0 -21
  94. package/examples/product-designer/rules/60-act-or-ask.md +0 -30
  95. package/examples/product-designer/rules/65-ask-before-it-repeats.md +0 -18
  96. package/examples/product-designer/rules/70-their-words-point-at-the-thing.md +0 -15
  97. package/examples/product-designer/rules/80-symptoms-are-not-causes.md +0 -15
  98. package/examples/product-designer/rules/90-surface-what-they-cant-see.md +0 -15
  99. package/examples/product-designer/rules/README.md +0 -61
@@ -1,61 +0,0 @@
1
- # rules/
2
-
3
- One rule per file. Each file is the owning copy of that rule; everything else points here. `render/render.cjs` turns these files plus `USER.md` into the per-AI instruction files.
4
-
5
- Install levels 1 and 2 render the Core 5: `00-read-the-profile-first.md`, `10-evidence-before-assertion.md`, `50-output-style.md`, `60-act-or-ask.md` and `65-ask-before-it-repeats.md`. Level 3 copies all eleven rules here for editing and renders them with the existing surface and preference filters; the signature rule still follows the signature preference. The source rule files below remain the full set.
6
-
7
- ## Format
8
-
9
- ```markdown
10
- ---
11
- id: 10-evidence-before-assertion # matches the filename
12
- title: Evidence before assertion
13
- inject: false # true = also emitted by the session-start contract (few!)
14
- surfaces: [claude, agents, gemini, chatgpt, prompt] # which renders include it
15
- ---
16
-
17
- ## universal
18
- The rule, stated for any AI. No tool names, no paths, no personal detail.
19
- End with one line starting "In practice:" that says the rule in plain words for
20
- someone new to this.
21
-
22
- ## personal
23
- Your curation of the rule: how it applies to you specifically. Omitted from the
24
- plain system-prompt render, which is meant to be shareable.
25
-
26
- ## binding:claude
27
- Tool names, paths, hook names that make the rule concrete for this one AI.
28
- Add binding:agents, binding:gemini, binding:chatgpt as needed. A missing
29
- binding is fine; an empty universal block is not.
30
-
31
- ## origin
32
- Written after: the failure that produced this rule, in two or three lines.
33
- Prevents: the failure it stops, in one line.
34
- ```
35
-
36
- ## Ordering
37
-
38
- Files render in filename order. The two-digit prefix is the order; leave gaps.
39
-
40
- ## Writing a new rule
41
-
42
- 1. Name the failure first. A rule without an origin block is a preference wearing a uniform.
43
- 2. State it in the `universal` block without a single tool name. If you cannot, it is a binding, not a rule.
44
- 3. Decide whether it needs injection. Most do not. Injection is for rules that lose arguments to tools at the moment of decision.
45
- 4. Run `node render/render.cjs --dir .`, then the same command with `--check`.
46
-
47
- ## The rules that ship here
48
-
49
- | File | Rule | Inject |
50
- |---|---|---|
51
- | `00-read-the-profile-first.md` | Read `USER.md` before anything else | yes |
52
- | `10-evidence-before-assertion.md` | Read the source before stating a fact about the user's setup | no |
53
- | `20-one-owner-per-rule.md` | Never restate; link to the owner | no |
54
- | `30-folder-index-is-part-of-the-change.md` | A write to a folder corrects its README in the same pass | no |
55
- | `40-sign-every-edit.md` | One signature line, overwritten | no |
56
- | `50-output-style.md` | Lead with the answer, one item per line, no recap | yes |
57
- | `60-act-or-ask.md` | Fetch a missing fact; ask for a missing mandate | no |
58
- | `65-ask-before-it-repeats.md` | Ask once before keeping a repeated correction | yes |
59
- | `70-their-words-point-at-the-thing.md` | Find the result, problem or quality behind the user's word | no |
60
- | `80-symptoms-are-not-causes.md` | Measure when the same symptom survives a fix | no |
61
- | `90-surface-what-they-cant-see.md` | Name one relevant risk, cost, faster path or stale assumption | no |