@joenandez/academy 0.4.0 → 0.5.13

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 (122) hide show
  1. package/.claude-plugin/marketplace.json +5 -0
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +415 -0
  4. package/README.md +67 -122
  5. package/hooks/backstory/.claude-plugin/plugin.json +11 -0
  6. package/hooks/backstory/LICENSE +21 -0
  7. package/hooks/backstory/SOURCE +2 -0
  8. package/hooks/backstory/bin/backstory +9 -0
  9. package/hooks/backstory/hooks/hooks.json +45 -0
  10. package/hooks/backstory/scripts/knowledge.mjs +87 -0
  11. package/hooks/backstory/scripts/memory.mjs +685 -0
  12. package/hooks/backstory/scripts/tool-tick.mjs +1 -0
  13. package/hooks/backstory/skills/capture/SKILL.md +71 -0
  14. package/hooks/backstory/skills/capture/references/knowledge-capture-input.json +16 -0
  15. package/hooks/backstory/skills/capture/references/tagging-policy.md +29 -0
  16. package/hooks/backstory/skills/memory/SKILL.md +70 -0
  17. package/hooks/backstory/skills/setup/SKILL.md +85 -0
  18. package/hooks/context_metrics.mjs +67 -0
  19. package/hooks/hook_runtime.mjs +43 -2
  20. package/hooks/memory_bridge.mjs +286 -52
  21. package/hooks/memory_store.mjs +78 -26
  22. package/hooks/register_session.mjs +76 -14
  23. package/hooks/roque/.claude-plugin/plugin.json +6 -0
  24. package/hooks/roque/LICENSE +21 -0
  25. package/hooks/roque/SOURCE +1 -0
  26. package/hooks/roque/hooks.json +38 -0
  27. package/hooks/roque/package.json +3 -0
  28. package/hooks/roque/roque.js +1690 -0
  29. package/hooks/sync_memory.mjs +11 -7
  30. package/package.json +10 -3
  31. package/scripts/cli/agent-gate.mjs +70 -0
  32. package/scripts/cli/agent-id.mjs +37 -0
  33. package/scripts/cli/archive.mjs +39 -38
  34. package/scripts/cli/archived.mjs +4 -2
  35. package/scripts/cli/args-kinds.mjs +33 -0
  36. package/scripts/cli/args-notes.mjs +42 -0
  37. package/scripts/cli/args-owner.mjs +37 -0
  38. package/scripts/cli/args-run.mjs +38 -0
  39. package/scripts/cli/args.mjs +47 -104
  40. package/scripts/cli/beads.mjs +57 -0
  41. package/scripts/cli/codex.mjs +66 -12
  42. package/scripts/cli/core.mjs +117 -41
  43. package/scripts/cli/create.mjs +224 -76
  44. package/scripts/cli/curator-feed-codex.mjs +81 -0
  45. package/scripts/cli/curator-feed-observations.mjs +97 -0
  46. package/scripts/cli/curator-feed-scope.mjs +124 -0
  47. package/scripts/cli/curator-feed-sources.mjs +172 -0
  48. package/scripts/cli/curator-feed.mjs +318 -0
  49. package/scripts/cli/default-name.mjs +73 -0
  50. package/scripts/cli/doctor.mjs +67 -2
  51. package/scripts/cli/eventlog.mjs +6 -2
  52. package/scripts/cli/exit-code.mjs +9 -0
  53. package/scripts/cli/first-run.mjs +115 -0
  54. package/scripts/cli/heartbeat.mjs +135 -0
  55. package/scripts/cli/helm-skip.mjs +20 -0
  56. package/scripts/cli/hire-headless.mjs +37 -22
  57. package/scripts/cli/hire.mjs +8 -2
  58. package/scripts/cli/inspect.mjs +36 -18
  59. package/scripts/cli/lifecycle.mjs +95 -49
  60. package/scripts/cli/main.mjs +32 -2
  61. package/scripts/cli/memory-env.mjs +124 -0
  62. package/scripts/cli/migrate.mjs +13 -7
  63. package/scripts/cli/next-steps.mjs +13 -0
  64. package/scripts/cli/nightly-launch.mjs +118 -0
  65. package/scripts/cli/nightly.mjs +228 -0
  66. package/scripts/cli/notes.mjs +58 -8
  67. package/scripts/cli/owner-config.mjs +181 -0
  68. package/scripts/cli/owner-jobs.mjs +201 -0
  69. package/scripts/cli/prompt-append.mjs +135 -0
  70. package/scripts/cli/rename.mjs +90 -109
  71. package/scripts/cli/run-context.mjs +50 -0
  72. package/scripts/cli/run.mjs +236 -79
  73. package/scripts/cli/scaffold.mjs +119 -126
  74. package/scripts/cli/schedule-errors.mjs +70 -0
  75. package/scripts/cli/sessions.mjs +10 -3
  76. package/scripts/cli/skills-check.mjs +147 -0
  77. package/scripts/cli/skills.mjs +170 -0
  78. package/scripts/cli/start.mjs +201 -0
  79. package/scripts/cli/templates.mjs +119 -45
  80. package/scripts/cli/tldr.mjs +184 -0
  81. package/scripts/cli/toml-string.mjs +76 -0
  82. package/scripts/cli/user-work-view.mjs +48 -0
  83. package/scripts/cli/writable-dirs.mjs +23 -0
  84. package/scripts/cli/yaml.mjs +1 -1
  85. package/skills/hire/SKILL.md +112 -100
  86. package/skills/hire/references/owner.md +68 -0
  87. package/templates/agents/claude-code/knowledge-curator.md +5 -2
  88. package/templates/agents/codex/knowledge-curator.toml +2 -1
  89. package/templates/operating-model/base.md +78 -0
  90. package/templates/operating-model/owner.md +11 -0
  91. package/templates/operating-model/principal.md +9 -0
  92. package/templates/operating-model/specialist.md +9 -0
  93. package/templates/packs/owner/craft.md +32 -0
  94. package/templates/packs/owner/identity.md +13 -0
  95. package/templates/packs/owner/mandate.md +26 -0
  96. package/templates/packs/owner/owner/SKILL.md +118 -0
  97. package/templates/packs/owner/owner-feedback/SKILL.md +49 -0
  98. package/templates/packs/owner/owner-heartbeat/SKILL.md +35 -0
  99. package/templates/packs/owner/owner-nightly/SKILL.md +114 -0
  100. package/templates/packs/owner/owner-review/SKILL.md +70 -0
  101. package/templates/packs/owner/owner-work/SKILL.md +53 -0
  102. package/templates/packs/principal/craft.md +27 -0
  103. package/templates/packs/principal/identity.md +13 -0
  104. package/templates/packs/principal/mandate.md +23 -0
  105. package/templates/packs/principal/principal-brief/SKILL.md +44 -0
  106. package/templates/packs/principal/principal-intro/SKILL.md +95 -0
  107. package/templates/packs/principal/principal-nightly/SKILL.md +152 -0
  108. package/templates/skills/check-in/SKILL.md +34 -24
  109. package/templates/skills/knowledge-curation/SKILL.md +89 -48
  110. package/templates/skills/local-rules/SKILL.md +86 -0
  111. package/templates/skills/nightly-consolidation/SKILL.md +131 -100
  112. package/templates/skills/skill-method/SKILL.md +79 -0
  113. package/templates/skills/user-nightly/SKILL.md +143 -0
  114. package/templates/skills/work-graph/SKILL.md +75 -0
  115. package/conformance/README.md +0 -60
  116. package/conformance/discovery.test.mjs +0 -140
  117. package/conformance/envelope.test.mjs +0 -185
  118. package/conformance/error-codes.test.mjs +0 -125
  119. package/conformance/harness.mjs +0 -180
  120. package/conformance/identity.test.mjs +0 -125
  121. package/docs/integration-guide.md +0 -1042
  122. package/templates/skills/self-update/SKILL.md +0 -121
@@ -1,121 +0,0 @@
1
- ---
2
- name: self-update
3
- description: Use when maintaining this Academy agent's own context files, routing new steering to the right surface, or deciding whether a durable self-edit is warranted.
4
- ---
5
-
6
- # Self-Update
7
-
8
- This skill teaches {{agent_name}} how to maintain itself without treating every
9
- observation as permanent truth. Use it to route new information to the right
10
- surface, keep boot context tight, and explain self-edits back to the user.
11
-
12
- ## Agent Paths
13
-
14
- These files are already loaded into the session context. Do not re-read them
15
- just to discover what they are. Open or edit them when you need to verify exact
16
- current text, make a change, or preserve surrounding context.
17
-
18
- - Agent home: `{{agent_dir}}`
19
- - `identity.md`: `{{identity_path}}`
20
- - `role.md`: `{{role_path}}`
21
- - `knowledge.md`: `{{knowledge_path}}`
22
- - `goals.md`: `{{goals_path}}`
23
- - `priorities.md`: `{{priorities_path}}`
24
- - `threads.md`: `{{threads_path}}`
25
- - `notes.md`: `{{notes_path}}`
26
- - `dailys.md`: `{{dailys_path}}`
27
- - `{{skills_surface}}`: `{{skills_dir}}`
28
- - This skill: `{{self_update_path}}`
29
-
30
- ## When To Use
31
-
32
- - The user gives durable steering: "remember this," "work this way," "update
33
- your role," or "that is not what I meant."
34
- - A session reveals a reusable domain pattern.
35
- - A repeated workflow deserves a skill.
36
- - Priorities, goals, or threads have changed.
37
- - You notice stale, contradictory, or low-value context.
38
- - During or after a check-in when the user agrees the agent should adjust.
39
-
40
- ## Core Rule
41
-
42
- Default to `notes.md` first unless the user explicitly requested the durable
43
- change. Autonomous graduation happens in the nightly knowledge-curator phase
44
- when the note proves reusable, not merely because it is recent.
45
-
46
- ## Capturing To notes.md
47
-
48
- Write transient steering with the CLI, not by hand-editing the file:
49
-
50
- - Append: `academy notes add "User prefers short status updates before edits"`
51
- - Review recent: `academy notes list` (last 12) or `academy notes list --last 20`
52
-
53
- `add` is append-only and never reads the whole file, so it is the cheap, default
54
- way to jot a note mid-task. Capture proactively — corrections, stakeholder
55
- facts, caveats, gotchas, and raw learnings — the moment they appear, rather than
56
- waiting for a check-in. Reserve manual `Edit` of `notes.md` for curation:
57
- pruning stale bullets, or rewriting before graduating content elsewhere. Keep
58
- the visible list within the ~8-12 cap; if it is overflowing, graduate or expire,
59
- do not just keep appending.
60
-
61
- ## File Routing
62
-
63
- - `identity.md`: rare. Mission, principles, voice, durable persona. Update only
64
- when the agent's character or operating philosophy changes.
65
- - `role.md`: responsibilities, autonomy, guardrails, deliverables, quality bar,
66
- definition of done. Update when the job changes.
67
- - `knowledge.md`: durable domain knowledge, mental models, frameworks,
68
- heuristics, canonical references. Update when the agent learned something
69
- reusable for future work.
70
- - `goals.md`: strategic objectives. Update sparingly, usually with user
71
- confirmation.
72
- - `priorities.md`: current near-term direction. Update often enough to keep the
73
- agent pointed at useful work.
74
- - `threads.md`: active work pursuits and their state. Update when starting,
75
- pausing, resuming, parking, or finishing work.
76
- - `notes.md`: temporary steering, observations, corrections, raw learnings,
77
- pending curation. Append with `academy notes add "..."` (see "Capturing To
78
- notes.md"); hand-edit only to curate or graduate.
79
- - `dailys.md`: concise session/day summaries. What happened, decisions,
80
- blockers, next step.
81
- - `{{skills_surface}}/`: repeatable procedures. Create or edit only when there is a
82
- clear trigger, procedure, and output shape.
83
-
84
- ## Update Procedure
85
-
86
- 1. Identify the new information.
87
- 2. Decide whether it is transient, durable, procedural, or strategic.
88
- 3. Pick exactly one primary destination.
89
- 4. Make the smallest useful edit.
90
- 5. Preserve existing useful context; do not rewrite whole files casually.
91
- 6. If changing identity, role, goals, or skills, explain why.
92
- 7. Report what changed and what did not change.
93
-
94
- ## Graduation Rules
95
-
96
- - `notes.md` -> `knowledge.md` through the nightly knowledge-curator when it
97
- becomes a reusable pattern. Outside nightly consolidation, apply this route
98
- only for an explicit user request; otherwise keep the note and propose it.
99
- - `notes.md` -> `role.md` when it changes behavior or responsibility.
100
- - `notes.md` -> `identity.md` only when it changes durable principles or voice.
101
- - `knowledge.md` -> skill when "how to do this" becomes a repeatable procedure.
102
- - Stale notes expire instead of accumulating.
103
-
104
- ## Consent And Autonomy
105
-
106
- - You may autonomously update `threads.md`, `notes.md`, `dailys.md`, and usually
107
- `priorities.md`.
108
- - Outside nightly consolidation, change `knowledge.md` only for an explicit
109
- user request and summarize the change. Otherwise stage or propose it for the
110
- nightly knowledge-curator.
111
- - Ask or clearly propose before changing `identity.md`, `role.md`, `goals.md`,
112
- or creating/editing skills, unless the user explicitly requested it.
113
-
114
- ## Anti-Patterns
115
-
116
- - Turning every user preference into identity.
117
- - Dumping raw research into knowledge.
118
- - Creating skills for one-off tasks.
119
- - Letting `notes.md` become permanent storage.
120
- - Rewriting boot files for style instead of substance.
121
- - Hiding self-edits from the user.