@ulysses-ai/create-workspace 0.16.0-beta.1 → 0.18.0-beta.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/README.md +5 -5
- package/lib/init.mjs +19 -0
- package/package.json +1 -1
- package/template/.claude/hooks/_utils.mjs +1 -1
- package/template/.claude/hooks/repo-write-detection.mjs +161 -64
- package/template/.claude/hooks/session-end.mjs +68 -2
- package/template/.claude/hooks/session-start.mjs +35 -1
- package/template/.claude/hooks/subagent-start.mjs +89 -22
- package/template/.claude/lib/session-frontmatter.mjs +28 -0
- package/template/.claude/rules/coherent-revisions.md +1 -1
- package/template/.claude/rules/config-review.md.skip +29 -0
- package/template/.claude/rules/forge-operations.md +51 -0
- package/template/.claude/rules/git-conventions.md +16 -11
- package/template/.claude/rules/goal-driven-work.md +8 -403
- package/template/.claude/rules/honest-pushback.md +37 -37
- package/template/.claude/rules/memory-guidance.md +43 -90
- package/template/.claude/rules/superpowers-workflow.md.skip +1 -1
- package/template/.claude/rules/work-item-tracking.md +30 -72
- package/template/.claude/rules/workspace-structure.md +49 -69
- package/template/.claude/scripts/build-workspace-context.mjs +61 -16
- package/template/.claude/scripts/chat-record.mjs +282 -0
- package/template/.claude/scripts/cleanup-work-session.mjs +363 -36
- package/template/.claude/scripts/context-footprint.mjs +282 -0
- package/template/.claude/scripts/forges/github.mjs +255 -0
- package/template/.claude/scripts/forges/gitlab.mjs +20 -0
- package/template/.claude/scripts/forges/interface.mjs +125 -0
- package/template/.claude/scripts/generate-claude-local.mjs +21 -2
- package/template/.claude/scripts/migrate-sessions.mjs +1571 -0
- package/template/.claude/scripts/migrate-to-workspace-context.mjs +7 -2
- package/template/.claude/scripts/task-worktree.mjs +525 -0
- package/template/.claude/scripts/workspace-diagnostics.mjs +654 -0
- package/template/.claude/settings.json +5 -13
- package/template/.claude/skills/braindump/SKILL.md +11 -4
- package/template/.claude/skills/build-docs-site/SKILL.md +5 -5
- package/template/.claude/skills/build-docs-site/templates/spec.md.tmpl +1 -1
- package/template/.claude/skills/complete-work/SKILL.md +255 -215
- package/template/.claude/skills/context-placement/SKILL.md +199 -0
- package/template/.claude/skills/goal-driven-work/SKILL.md +459 -0
- package/template/.claude/skills/handoff/SKILL.md +11 -4
- package/template/.claude/skills/maintenance/SKILL.md +39 -6
- package/template/.claude/skills/migrate-sessions/SKILL.md +70 -0
- package/template/.claude/skills/pause-work/SKILL.md +33 -8
- package/template/.claude/skills/release/SKILL.md +44 -108
- package/template/.claude/skills/start-work/SKILL.md +89 -7
- package/template/.claude/skills/workspace-init/SKILL.md +34 -0
- package/template/.claude/skills/workspace-update/SKILL.md +4 -0
- package/template/.claudeignore +3 -0
- package/template/CLAUDE.md.tmpl +20 -2
- package/template/CODEBASE.md.tmpl +13 -0
- package/template/_gitignore +9 -0
- package/template/repo-claude.md.tmpl +10 -0
- package/template/workspace.json.tmpl +5 -3
- package/template/.claude/hooks/worktree-create.mjs +0 -53
|
@@ -13,7 +13,7 @@ Capture discussion reasoning, exploration results, and design rationale into wor
|
|
|
13
13
|
|
|
14
14
|
> **Note:** `/braindump side` has moved to `/aside`. If the user invokes `/braindump side`, redirect them: "The side braindump is now `/aside`. Running it for you." Then invoke the `/aside` skill with their text.
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## Lifecycle-Aware Behavior
|
|
17
17
|
|
|
18
18
|
When called within an active work session (the active-session pointer at `.claude/.active-session.json` exists inside the current worktree):
|
|
19
19
|
|
|
@@ -26,9 +26,16 @@ When called within an active work session (the active-session pointer at `.claud
|
|
|
26
26
|
git commit -m "braindump: update {session-name} tracker"
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
29
|
+
Under the task model — `workspace.sessionModel` is `"task"` in `workspace.json` AND the SessionStart hook injected a `Chat record:` line (`{chat}` is its name):
|
|
30
|
+
|
|
31
|
+
- Default behavior: write `braindump_{topic}.md` directly into that chat's drawer at `workspace-scratchpad/chats/{chat}/` — the drawer sits outside `workspace-context/`, so `capture-context.mjs` is not involved
|
|
32
|
+
- No commit for drawer writes: the drawer is gitignored and machine-local; `/complete-work` lists it and asks what to promote into `workspace-context/`
|
|
33
|
+
|
|
34
|
+
When called from the workspace root with no active session — every other case, including a `sessionModel: "session"` workspace (the `Chat record:` line is injected in every chat, so it alone does not select the drawer):
|
|
35
|
+
|
|
36
|
+
- Use `--local-only` so the captured file is gitignored (the root only allows local-only writes), landing in `team-member/{user}/`
|
|
37
|
+
- If the task model applies but the `Chat record:` line is absent, say the drawer destination is unavailable for that reason
|
|
38
|
+
- Suggest starting work (`/start-work`) if the braindump is about actionable work
|
|
32
39
|
|
|
33
40
|
The flows below apply when NOT in an active work session, or when the user explicitly asks for a standalone braindump file.
|
|
34
41
|
|
|
@@ -96,11 +96,11 @@ For the codebase:
|
|
|
96
96
|
- Read actual implementations, not just existing docs about them
|
|
97
97
|
|
|
98
98
|
For shared context:
|
|
99
|
-
- Walk `workspace-context/` for handoffs, braindumps, locked team knowledge
|
|
99
|
+
- Walk `workspace-context/` for handoffs, braindumps, and locked team knowledge
|
|
100
100
|
|
|
101
101
|
For work-session history:
|
|
102
|
-
- Walk `work-sessions/*/workspace/session.md` for any currently-active session trackers — their bodies may contain decisions not yet
|
|
103
|
-
-
|
|
102
|
+
- Walk `work-sessions/*/workspace/session.md` for any currently-active session trackers — their bodies may contain decisions not yet captured anywhere durable
|
|
103
|
+
- Walk the chat drawers `workspace-scratchpad/chats/*/` for in-progress task-model material — designs, plans, braindumps, research not yet promoted into `workspace-context/` — same rationale: it is thinking the site may need that no merged artifact carries
|
|
104
104
|
|
|
105
105
|
For existing project documentation (from Phase 1 Q2):
|
|
106
106
|
- Read every file the user pointed at
|
|
@@ -312,11 +312,11 @@ Produce a final report:
|
|
|
312
312
|
- **Files needing user decision.** Any old docs with content that didn't migrate cleanly — coverage check found gaps the user needs to resolve.
|
|
313
313
|
- **URLs that may need redirects.** If the old docs had live URLs, list them. The skill flags but does not set up redirects.
|
|
314
314
|
|
|
315
|
-
Update the session tracker with the final state. The skill's work ends here. `/complete-work` handles the merge,
|
|
315
|
+
Update the session tracker with the final state. The skill's work ends here. `/complete-work` handles the merge, the PR, and cleanup.
|
|
316
316
|
|
|
317
317
|
## Notes
|
|
318
318
|
|
|
319
|
-
- Specs and plans live at the project worktree root, not inflight (per workspace-structure rule). They are consumed by `/complete-work` into
|
|
319
|
+
- Specs and plans live at the project worktree root, not inflight (per workspace-structure rule). They are consumed by `/complete-work` when it builds the PR body, or promoted into `workspace-context/`.
|
|
320
320
|
- Diagrams primitives are deliberately fixed (no project customization) because the class-based fill pattern is load-bearing for theme support.
|
|
321
321
|
- The leak grep is project-accurate because it derives the list from the project's own dependency manifests. Do not maintain a hardcoded master list — it would over-trigger for projects whose docs legitimately discuss their own dependencies.
|
|
322
322
|
- The forbidden-word grep is per-project — each project supplies its own list from Phase 1 Q5. There is no default.
|
|
@@ -116,4 +116,4 @@ Terms that came from brainstorming sessions and need to be translated to descrip
|
|
|
116
116
|
|
|
117
117
|
## Notes
|
|
118
118
|
|
|
119
|
-
This spec
|
|
119
|
+
This spec feeds the PR body when `/complete-work` finishes the session (or is promoted into `workspace-context/`). Update it as decisions change during writing.
|