create-sessions-dir 0.3.5 → 0.3.7
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 +3 -1
- package/package.json +1 -1
- package/templates/claude/commands/archive-session.md +7 -3
- package/templates/claude/commands/document.md +8 -4
- package/templates/claude/commands/end-session.md +5 -1
- package/templates/claude/commands/plan.md +8 -4
- package/templates/claude/commands/start-session.md +8 -4
- package/templates/sessions/README.md +4 -0
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ Claude reads your context and asks what you want to work on. You can provide a G
|
|
|
65
65
|
```
|
|
66
66
|
/end-session
|
|
67
67
|
```
|
|
68
|
-
Claude updates your context with
|
|
68
|
+
Claude updates your context with session accomplishments and commits the changes.
|
|
69
69
|
|
|
70
70
|
### Plan Implementation
|
|
71
71
|
```
|
|
@@ -85,6 +85,8 @@ Claude launches an exploration agent to understand the topic, then creates docum
|
|
|
85
85
|
```
|
|
86
86
|
Claude moves finished work to the archive to keep your context file clean.
|
|
87
87
|
|
|
88
|
+
**Automatic Prompts**: After merging to main, a git hook automatically prompts whether to archive completed sessions - archiving happens at the right moment without manual tracking.
|
|
89
|
+
|
|
88
90
|
### Change Git Strategy
|
|
89
91
|
```
|
|
90
92
|
/change-git-strategy
|
package/package.json
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
description: Archive completed session work
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**First**: Find the git root to locate session files (supports monorepos):
|
|
6
|
+
- Run: `git rev-parse --show-toplevel` to get the repository root path
|
|
7
|
+
- Session files live at `<git-root>/.sessions/`
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
Review completed work in `<git-root>/.sessions/` and archive it.
|
|
10
|
+
|
|
11
|
+
Move finished session notes to `<git-root>/.sessions/archive/` organized by date or topic.
|
|
12
|
+
Clean up `<git-root>/.sessions/index.md` by removing completed items.
|
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
description: Create topic-specific documentation
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**First**: Find the git root to locate session files (supports monorepos):
|
|
6
|
+
- Run: `git rev-parse --show-toplevel` to get the repository root path
|
|
7
|
+
- Session files live at `<git-root>/.sessions/`
|
|
8
|
+
|
|
9
|
+
Create or update documentation for a specific topic in `<git-root>/.sessions/docs/`
|
|
6
10
|
|
|
7
11
|
The user will provide a topic name (e.g., "authentication", "api-design", "testing-strategy").
|
|
8
12
|
|
|
9
13
|
Steps:
|
|
10
|
-
1. If
|
|
14
|
+
1. If `<git-root>/.sessions/docs/` doesn't exist, create it first
|
|
11
15
|
2. Ask: "What should be documented about [topic]?"
|
|
12
16
|
3. Launch an Explore agent with:
|
|
13
17
|
"Thoroughly explore the codebase to understand [topic].
|
|
@@ -20,13 +24,13 @@ Steps:
|
|
|
20
24
|
|
|
21
25
|
Return a structured summary suitable for documentation."
|
|
22
26
|
|
|
23
|
-
4. Use the agent's findings to create
|
|
27
|
+
4. Use the agent's findings to create `<git-root>/.sessions/docs/<topic>.md` with:
|
|
24
28
|
- Overview of the topic
|
|
25
29
|
- Current decisions and rationale
|
|
26
30
|
- Implementation details or patterns
|
|
27
31
|
- Key files and code references (use file:line format)
|
|
28
32
|
- Open questions or considerations
|
|
29
33
|
|
|
30
|
-
5. Add reference to this doc in index.md under relevant section
|
|
34
|
+
5. Add reference to this doc in `<git-root>/.sessions/index.md` under relevant section
|
|
31
35
|
|
|
32
36
|
Keep documentation scannable with clear headings and bullet points.
|
|
@@ -3,9 +3,13 @@ allowed-tools: Bash(git:*), Bash(.claude/scripts/*:*)
|
|
|
3
3
|
description: End session and update context
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
**First**: Find the git root to locate session files (supports monorepos):
|
|
7
|
+
- Run: `git rev-parse --show-toplevel` to get the repository root path
|
|
8
|
+
- Session files live at `<git-root>/.sessions/`
|
|
9
|
+
|
|
6
10
|
## Your task
|
|
7
11
|
|
|
8
|
-
Update
|
|
12
|
+
Update `<git-root>/.sessions/index.md` with session accomplishments.
|
|
9
13
|
|
|
10
14
|
Include:
|
|
11
15
|
- Today's date
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
description: Create implementation plan
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**First**: Find the git root to locate session files (supports monorepos):
|
|
6
|
+
- Run: `git rev-parse --show-toplevel` to get the repository root path
|
|
7
|
+
- Session files live at `<git-root>/.sessions/`
|
|
8
|
+
|
|
9
|
+
Create or update a plan in `<git-root>/.sessions/plans/`
|
|
6
10
|
|
|
7
11
|
Steps:
|
|
8
|
-
1. If
|
|
12
|
+
1. If `<git-root>/.sessions/plans/` doesn't exist, create it first
|
|
9
13
|
2. Ask: "What are you planning to implement?"
|
|
10
14
|
3. Launch a Plan agent with:
|
|
11
15
|
"Help design the implementation for [description].
|
|
@@ -17,7 +21,7 @@ Steps:
|
|
|
17
21
|
- Implementation steps
|
|
18
22
|
- Risks and open questions"
|
|
19
23
|
|
|
20
|
-
4. Create
|
|
24
|
+
4. Create `<git-root>/.sessions/plans/YYYY-MM-DD-<name>.md` with structured plan:
|
|
21
25
|
|
|
22
26
|
```markdown
|
|
23
27
|
# Plan: [Feature Name]
|
|
@@ -48,6 +52,6 @@ Steps:
|
|
|
48
52
|
- Links to issues, PRs, other plans
|
|
49
53
|
```
|
|
50
54
|
|
|
51
|
-
5. Add reference to plan in index.md
|
|
55
|
+
5. Add reference to plan in `<git-root>/.sessions/index.md`: "Planning: [Feature] (see plans/YYYY-MM-DD-<name>.md)"
|
|
52
56
|
|
|
53
57
|
Then ask: "Ready to start implementing?"
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: Bash(gh:*), Bash(linearis:*)
|
|
2
|
+
allowed-tools: Bash(gh:*), Bash(linearis:*), Bash(git rev-parse --show-toplevel)
|
|
3
3
|
description: Start a new session
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
**First**: Find the git root to locate session files (supports monorepos):
|
|
7
|
+
- Run: `git rev-parse --show-toplevel` to get the repository root path
|
|
8
|
+
- Session files live at `<git-root>/.sessions/`
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
Read `<git-root>/.sessions/index.md` and report when ready.
|
|
11
|
+
|
|
12
|
+
Check if `<git-root>/.sessions/WORKSPACE.md` exists (don't error if missing). If it exists, mention that monorepo support is active and show detected packages.
|
|
9
13
|
|
|
10
14
|
Summarize:
|
|
11
15
|
- Current state
|
|
@@ -21,7 +25,7 @@ If user provides a GitHub/Linear URL or issue ID:
|
|
|
21
25
|
- **GitHub**: gh issue view [URL] --json title,body,state,labels
|
|
22
26
|
- **Linear**: linearis issues read [ID] (e.g., DEV-456, GTMENG-304)
|
|
23
27
|
- Summarize the fetched context
|
|
24
|
-
- Store in
|
|
28
|
+
- Store in `<git-root>/.sessions/prep/YYYY-MM-DD-topic.md`
|
|
25
29
|
- Add reference to index.md
|
|
26
30
|
|
|
27
31
|
Otherwise (continuing work, ad-hoc task, etc.):
|
|
@@ -87,6 +87,8 @@ Updates your session context with what happened. Claude will:
|
|
|
87
87
|
- Set next session priorities
|
|
88
88
|
- Commit the changes
|
|
89
89
|
|
|
90
|
+
**Note**: Archiving is prompted automatically by a git hook after merging to main - you don't need to manually track when to archive.
|
|
91
|
+
|
|
90
92
|
### `/document <topic>`
|
|
91
93
|
Creates topic-specific documentation as your project grows. Claude will:
|
|
92
94
|
- Create `.sessions/docs/` folder (first time only)
|
|
@@ -101,6 +103,8 @@ Archives completed work to keep your context file clean. Claude will:
|
|
|
101
103
|
- Move finished notes to `.sessions/archive/`
|
|
102
104
|
- Clean up completed items from index.md
|
|
103
105
|
|
|
106
|
+
**When to archive**: A git hook automatically prompts you after merging to main. This ensures archiving happens at the right moment (when work is complete and merged) without manual tracking.
|
|
107
|
+
|
|
104
108
|
---
|
|
105
109
|
|
|
106
110
|
## Conversational Prompts
|