create-sessions-dir 0.3.6 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sessions-dir",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Scaffold a Sessions Directory for working with AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,7 +2,11 @@
2
2
  description: Archive completed session work
3
3
  ---
4
4
 
5
- Review completed work in .sessions/ and archive it.
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
- Move finished session notes to .sessions/archive/ organized by date or topic.
8
- Clean up .sessions/index.md by removing completed items.
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
- Create or update documentation for a specific topic in .sessions/docs/
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 .sessions/docs/ doesn't exist, create it first
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 .sessions/docs/<topic>.md with:
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 .sessions/index.md with session accomplishments.
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
- Create or update a plan in .sessions/plans/
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 .sessions/plans/ doesn't exist, create it first
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 .sessions/plans/YYYY-MM-DD-<name>.md with structured plan:
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: "Planning: [Feature] (see plans/YYYY-MM-DD-<name>.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
- Read .sessions/index.md and report when ready.
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
- Check if .sessions/WORKSPACE.md exists (don't error if missing). If it exists, mention that monorepo support is active and show detected packages.
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 .sessions/prep/YYYY-MM-DD-topic.md
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.):