@sixsevenai/ai-dlc-installer 1.4.4 → 1.5.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/library/agents/ai-dlc-navigator.md +1 -1
- package/library/agents/ai-dlc-trainer.md +5 -5
- package/library/commands/ai-dlc/cheatsheet.md +63 -0
- package/library/commands/ai-dlc/quickstart.md +150 -0
- package/library/commands/ai-dlc/setup.md +1 -1
- package/library/commands/im-lost.md +245 -0
- package/library/commands/issue-to-done.md +320 -143
- package/library/docs/GETTING-STARTED-GUIDE.md +3 -3
- package/library/docs/MANUAL-LIFECYCLE-GUIDE.md +5 -5
- package/library/docs/NAMING_CONVENTIONS.md +1 -1
- package/library/docs/PHASE-CHECKLISTS.md +3 -3
- package/library/docs/QUICK_REFERENCE.md +6 -6
- package/library/skills/ai-dlc-knowledge/SKILL.md +44 -10
- package/library/skills/ai-dlc-knowledge/references/commands-catalog.md +198 -5
- package/library/skills/ai-dlc-knowledge/references/decision-trees.md +101 -4
- package/library/skills/ai-dlc-knowledge/references/documentation-index.md +5 -118
- package/library/skills/ai-dlc-knowledge/references/skills-catalog.md +179 -27
- package/library/skills/project-initializer/templates/readme-aidlc.template +1 -1
- package/library-aidlc/metadata/memory/ai-dlc-framework-knowledge-base.md +1 -1
- package/package.json +1 -1
|
@@ -194,7 +194,7 @@ When users express these intents, recommend activating these skills:
|
|
|
194
194
|
|
|
195
195
|
| User Says | Skill to Recommend |
|
|
196
196
|
|-----------|-------------------|
|
|
197
|
-
| "How do I manage sessions?" | `
|
|
197
|
+
| "How do I manage sessions?" | `ai-dlc-knowledge` |
|
|
198
198
|
| "How do mob elaboration?" | `mob-elaboration` |
|
|
199
199
|
| "How to model domains?" | `ddd-modeling` |
|
|
200
200
|
| "How to write tests?" | `test-suite-builder` |
|
|
@@ -18,7 +18,7 @@ color: cyan
|
|
|
18
18
|
**NEVER output internal CLI commands to users.**
|
|
19
19
|
|
|
20
20
|
When presenting next steps to the user, ALWAYS use slash commands:
|
|
21
|
-
- `/talk
|
|
21
|
+
- `/ai-dlc:talk`
|
|
22
22
|
- `/ai-dlc:status`
|
|
23
23
|
- `/ai-dlc:start-intent`
|
|
24
24
|
|
|
@@ -67,7 +67,7 @@ When spawned by orchestrating commands, you receive enforced context:
|
|
|
67
67
|
## Activation Triggers
|
|
68
68
|
|
|
69
69
|
Use this agent proactively when:
|
|
70
|
-
1. User invokes `/talk
|
|
70
|
+
1. User invokes `/ai-dlc:talk` command
|
|
71
71
|
2. Questions about AI-DLC methodology
|
|
72
72
|
3. Need explanation of phases, artifacts, or workflows
|
|
73
73
|
4. Training new team members on AI-DLC
|
|
@@ -153,7 +153,7 @@ Help teams implement AI-DLC:
|
|
|
153
153
|
After creating training artifacts, the orchestrator verifies:
|
|
154
154
|
|
|
155
155
|
```bash
|
|
156
|
-
ai-dlc verify talk
|
|
156
|
+
ai-dlc verify ai-dlc:talk "artifacts/training/training-session-20251219-001.md"
|
|
157
157
|
```
|
|
158
158
|
|
|
159
159
|
**Success Response:**
|
|
@@ -240,8 +240,8 @@ As Dr. Chen, respond to:
|
|
|
240
240
|
|
|
241
241
|
| Purpose | CLI Command |
|
|
242
242
|
|---------|-------------|
|
|
243
|
-
| Prepare Training | `ai-dlc prepare talk
|
|
244
|
-
| Verify Session | `ai-dlc verify talk
|
|
243
|
+
| Prepare Training | `ai-dlc prepare ai-dlc:talk --module <module>` |
|
|
244
|
+
| Verify Session | `ai-dlc verify ai-dlc:talk <path>` |
|
|
245
245
|
| List Modules | `ai-dlc training list` |
|
|
246
246
|
| Progress | `ai-dlc training progress` |
|
|
247
247
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
command: ai-dlc:cheatsheet
|
|
3
|
+
description: Display a quick-reference card of all AI-DLC slash commands organized by phase
|
|
4
|
+
phase: cross-cutting
|
|
5
|
+
allowed-tools: Read
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# AI-DLC Cheatsheet
|
|
9
|
+
|
|
10
|
+
Output the following quick-reference card directly to the user. Do not add commentary — just present the card as-is in a single, readable block.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
AI-DLC Quick Reference
|
|
16
|
+
======================
|
|
17
|
+
|
|
18
|
+
INCEPTION FLOW
|
|
19
|
+
/ai-dlc:start-intent Define business intent (WHAT and WHY)
|
|
20
|
+
/ai-dlc:create-units Decompose into atomic Units
|
|
21
|
+
/ai-dlc:generate-stories Create INVEST user stories
|
|
22
|
+
/ai-dlc:elicit-nfrs Define non-functional requirements
|
|
23
|
+
/ai-dlc:assess-risks Identify risks and mitigations
|
|
24
|
+
/ai-dlc:plan-bolt Estimate work in 1-3 day Bolts
|
|
25
|
+
/ai-dlc:validate-phase inception Verify phase completeness
|
|
26
|
+
|
|
27
|
+
CONSTRUCTION FLOW
|
|
28
|
+
/ai-dlc:domain-model DDD domain modeling
|
|
29
|
+
/ai-dlc:logical-design Architecture and ADRs
|
|
30
|
+
/ai-dlc:design-api OpenAPI contract design
|
|
31
|
+
/ai-dlc:generate-code Production code generation
|
|
32
|
+
/ai-dlc:build-tests Test suite generation
|
|
33
|
+
/ai-dlc:review-code 7-dimension code review
|
|
34
|
+
/ai-dlc:validate-phase construction Verify phase completeness
|
|
35
|
+
|
|
36
|
+
OPERATIONS FLOW
|
|
37
|
+
/ai-dlc:package-unit Create deployment artifacts
|
|
38
|
+
/ai-dlc:deploy Deploy to environment
|
|
39
|
+
/ai-dlc:setup-monitoring Configure observability
|
|
40
|
+
/ai-dlc:create-runbook Incident response procedures
|
|
41
|
+
/ai-dlc:validate-phase operations Verify phase completeness
|
|
42
|
+
|
|
43
|
+
UTILITY COMMANDS
|
|
44
|
+
/ai-dlc:status Show current phase and progress
|
|
45
|
+
/ai-dlc:next-phase Transition to next phase
|
|
46
|
+
/ai-dlc:archive-session Archive completed work
|
|
47
|
+
/ai-dlc:talk Interactive training with AI-DLC expert
|
|
48
|
+
/ai-dlc:quickstart Guided onboarding (~5 min)
|
|
49
|
+
|
|
50
|
+
COMPANION: SPECKIT (spec-driven development)
|
|
51
|
+
/spec:specify Create feature specification
|
|
52
|
+
/spec:clarify Fill spec gaps with questions
|
|
53
|
+
/spec:plan Generate implementation plan
|
|
54
|
+
/spec:tasks Generate dependency-ordered tasks
|
|
55
|
+
/spec:implement Execute tasks from tasks.md
|
|
56
|
+
/spec:to-intent Bridge spec to AI-DLC intent
|
|
57
|
+
|
|
58
|
+
COMPANION: TASK (lightweight task planning)
|
|
59
|
+
/task:plan Decompose prompt into task plan
|
|
60
|
+
/task:execute Execute plan step-by-step
|
|
61
|
+
/task:clarify Refine plan with questions
|
|
62
|
+
/task:complete Finalize with Complete.md + commit
|
|
63
|
+
```
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
command: ai-dlc:quickstart
|
|
3
|
+
description: Interactive 5-minute onboarding walkthrough for new AI-DLC users — covers core concepts, runs your first Intent, and shows next steps
|
|
4
|
+
argument-hint: ""
|
|
5
|
+
phase: cross-cutting
|
|
6
|
+
allowed-tools: Task, Read, AskUserQuestion
|
|
7
|
+
args: []
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# AI-DLC Quickstart
|
|
11
|
+
|
|
12
|
+
A guided, conversational onboarding flow for new team members. Covers the three phases, core concepts, and walks you through creating your first Intent.
|
|
13
|
+
|
|
14
|
+
## Command: /ai-dlc:quickstart
|
|
15
|
+
|
|
16
|
+
## Context Isolation: Required
|
|
17
|
+
|
|
18
|
+
**MANDATORY**: Use the Task tool to spawn the ai-dlc-trainer subagent. Do NOT execute the walkthrough in this context.
|
|
19
|
+
|
|
20
|
+
Use Task tool with these parameters:
|
|
21
|
+
- **subagent_type**: `ai-dlc-trainer`
|
|
22
|
+
- **prompt**: See below
|
|
23
|
+
|
|
24
|
+
## Subagent Prompt
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
You are running the AI-DLC Quickstart walkthrough for a new user. Keep everything concise and actionable — aim for ~5 minutes total.
|
|
28
|
+
|
|
29
|
+
Follow these steps IN ORDER. After each step, pause and let the user respond before continuing.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
STEP 1: WELCOME AND OVERVIEW
|
|
34
|
+
|
|
35
|
+
Print exactly:
|
|
36
|
+
|
|
37
|
+
## Welcome to AI-DLC
|
|
38
|
+
|
|
39
|
+
**AI-DLC** (AI-Driven Lifecycle) replaces the traditional SDLC with three phases:
|
|
40
|
+
|
|
41
|
+
| Phase | Purpose | Key Output |
|
|
42
|
+
|-------|---------|------------|
|
|
43
|
+
| **Inception** | Define WHAT and WHY | Intent, Units, Stories, NFRs, Risks, Bolt Plan |
|
|
44
|
+
| **Construction** | Build production software | Domain Models, Code, Tests, Reviews |
|
|
45
|
+
| **Operations** | Deploy, monitor, maintain | Deployments, Monitoring, Runbooks |
|
|
46
|
+
|
|
47
|
+
**Two concepts to know:**
|
|
48
|
+
- **Unit** — An atomic work item estimated at 1-3 Bolts
|
|
49
|
+
- **Bolt** — A 1-3 day timebox that delivers a tangible artifact
|
|
50
|
+
|
|
51
|
+
Every project starts with an **Intent** — a plain-language statement of your business goal.
|
|
52
|
+
|
|
53
|
+
Then ask: "Ready to create your first Intent? (yes / I have questions first)"
|
|
54
|
+
|
|
55
|
+
If the user has questions, answer them briefly, then proceed.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
STEP 2: CREATE YOUR FIRST INTENT
|
|
60
|
+
|
|
61
|
+
Say:
|
|
62
|
+
|
|
63
|
+
Let's start Inception. Run this command now:
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
/ai-dlc:start-intent "Build a task management app for small teams"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Or replace the text in quotes with your own idea. I'll wait while you run it.
|
|
70
|
+
|
|
71
|
+
Wait for the user to confirm they ran it.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
STEP 3: CHECK YOUR PROGRESS
|
|
76
|
+
|
|
77
|
+
Say:
|
|
78
|
+
|
|
79
|
+
Now let's see what AI-DLC recorded. Run:
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
/ai-dlc:status
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
This shows your current phase, active session, and completed artifacts. You should see your new Intent listed under Inception.
|
|
86
|
+
|
|
87
|
+
Wait for the user to confirm.
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
STEP 4: EXPLAIN NEXT STEPS
|
|
92
|
+
|
|
93
|
+
Print exactly:
|
|
94
|
+
|
|
95
|
+
## What Comes Next
|
|
96
|
+
|
|
97
|
+
With your Intent created, here is the Inception sequence:
|
|
98
|
+
|
|
99
|
+
1. `/ai-dlc:create-units` — Break your Intent into Units
|
|
100
|
+
2. `/ai-dlc:generate-stories` — Create user stories for each Unit
|
|
101
|
+
3. `/ai-dlc:elicit-nfrs` — Capture non-functional requirements
|
|
102
|
+
4. `/ai-dlc:assess-risks project` — Identify risks and mitigations
|
|
103
|
+
5. `/ai-dlc:plan-bolt` — Estimate each Unit in Bolts
|
|
104
|
+
6. `/ai-dlc:validate-phase inception` — Confirm Inception is complete
|
|
105
|
+
|
|
106
|
+
Once Inception passes validation, run `/ai-dlc:next-phase` to move into Construction.
|
|
107
|
+
|
|
108
|
+
**Alternative:** Use `/ai-dlc:mob-elaborate` for a single collaborative session that produces Units, NFRs, and Risks together.
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
STEP 5: POINT TO DEEPER RESOURCES
|
|
113
|
+
|
|
114
|
+
Say:
|
|
115
|
+
|
|
116
|
+
## Resources
|
|
117
|
+
|
|
118
|
+
- **Getting Started Guide**: Read `.claude/docs/GETTING-STARTED-GUIDE.md` for a full walkthrough
|
|
119
|
+
- **Ask the Expert**: Run `/ai-dlc:talk` to chat with Dr. Alex Chen about methodology
|
|
120
|
+
- **Agent Directory**: Run `/agent-directory` to see all 58 specialized agents
|
|
121
|
+
- **Status Anytime**: Run `/ai-dlc:status` to see where you are
|
|
122
|
+
|
|
123
|
+
You're all set. Run `/ai-dlc:create-units` to continue, or ask me anything.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
End the session after Step 5 unless the user asks follow-up questions.
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Usage Examples
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
/ai-dlc:quickstart
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## What You'll Learn
|
|
137
|
+
|
|
138
|
+
- **Core Concepts**: Phases, Units, and Bolts
|
|
139
|
+
- **First Command**: Create an Intent hands-on
|
|
140
|
+
- **Status Check**: See your progress in AI-DLC
|
|
141
|
+
- **Next Steps**: The full Inception command sequence
|
|
142
|
+
- **Resources**: Where to learn more
|
|
143
|
+
|
|
144
|
+
## Prerequisites
|
|
145
|
+
|
|
146
|
+
None — designed for first-time users.
|
|
147
|
+
|
|
148
|
+
## Duration
|
|
149
|
+
|
|
150
|
+
Approximately 5 minutes.
|
|
@@ -434,7 +434,7 @@ This command provides one-command project initialization by:
|
|
|
434
434
|
info(" AI-DLC Commands: See README.md");
|
|
435
435
|
info(" Full Documentation: .ai-dlc/README.md");
|
|
436
436
|
info(" Quick Reference: .ai-dlc/QUICK_REFERENCE.md");
|
|
437
|
-
info(" Interactive Training: /talk
|
|
437
|
+
info(" Interactive Training: /ai-dlc:talk");
|
|
438
438
|
```
|
|
439
439
|
|
|
440
440
|
## Usage Examples
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
---
|
|
2
|
+
command: im-lost
|
|
3
|
+
description: Search previous conversation sessions and memory files across Claude project folders to recover lost context across context windows
|
|
4
|
+
argument-hint: "<search-terms> [--deep] [--memory-only] [--sessions-only]"
|
|
5
|
+
allowed-tools: Read, Glob, Grep, Bash
|
|
6
|
+
args:
|
|
7
|
+
- name: search-terms
|
|
8
|
+
description: "Keywords, phrases, or topics to search for across sessions and memory"
|
|
9
|
+
required: true
|
|
10
|
+
- name: --deep
|
|
11
|
+
description: "Also search inside .jsonl conversation transcripts (slower, more thorough)"
|
|
12
|
+
required: false
|
|
13
|
+
- name: --memory-only
|
|
14
|
+
description: "Only search memory files, skip session index"
|
|
15
|
+
required: false
|
|
16
|
+
- name: --sessions-only
|
|
17
|
+
description: "Only search session index, skip memory files"
|
|
18
|
+
required: false
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# /im-lost
|
|
22
|
+
|
|
23
|
+
Search previous conversation sessions and memory files to recover context lost across context windows. Searches the local project folder first, then discovers and searches sibling project folders that share the same project name suffix.
|
|
24
|
+
|
|
25
|
+
## User Input
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
$ARGUMENTS
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
<rules enforcement="strict">
|
|
32
|
+
<rule id="1" severity="blocking">Parse $ARGUMENTS before any search. If empty, ask the user what they are looking for -- do not search with no terms.</rule>
|
|
33
|
+
<rule id="2" severity="required">Always search the primary project folder first, then related folders. Present results grouped by source.</rule>
|
|
34
|
+
<rule id="3" severity="required">Never modify any file. This command is read-only.</rule>
|
|
35
|
+
<rule id="4" severity="warning">Limit .jsonl deep search to the 20 most recent sessions to avoid excessive context consumption.</rule>
|
|
36
|
+
</rules>
|
|
37
|
+
|
|
38
|
+
<step id="1" name="Parse Input and Detect Flags">
|
|
39
|
+
<action>
|
|
40
|
+
- Extract search terms from `$ARGUMENTS` (everything that is not a flag).
|
|
41
|
+
- Detect flags: `--deep`, `--memory-only`, `--sessions-only`.
|
|
42
|
+
- Store the search terms as `SEARCH_TERMS`.
|
|
43
|
+
</action>
|
|
44
|
+
<verify>
|
|
45
|
+
- `SEARCH_TERMS` is non-empty after flag extraction.
|
|
46
|
+
</verify>
|
|
47
|
+
<on-fail>
|
|
48
|
+
Ask the user: "What are you looking for? Provide keywords, a topic, or a phrase from a previous conversation."
|
|
49
|
+
Stop execution.
|
|
50
|
+
</on-fail>
|
|
51
|
+
</step>
|
|
52
|
+
|
|
53
|
+
<step id="2" name="Identify Project Folders">
|
|
54
|
+
<action>
|
|
55
|
+
- Determine the **primary project folder** path. This is the `.claude/projects/` subfolder for the current working directory. On Windows, the folder name is the path with `\` and `:` replaced by `-` (e.g., `C--dev-GitHub-SixSevenAI`).
|
|
56
|
+
- Extract the **project name suffix** from the primary folder name. The suffix is the last segment after the final `-` that is NOT a single letter or drive prefix. For this project, the suffix is `SixSevenAI`.
|
|
57
|
+
- Implementation: split the folder name by `--` to get path segments, then take the last segment. If the last segment contains `-`, treat the full last `--`-delimited segment as the suffix (e.g., `SixSevenAI-src-installer` from `C--dev-GitHub-SixSevenAI-src-installer`).
|
|
58
|
+
- List all directories in `~/.claude/projects/` and find **related folders** -- any folder whose name contains the suffix (case-insensitive), excluding the primary folder itself.
|
|
59
|
+
- Run this command to discover folders:
|
|
60
|
+
```bash
|
|
61
|
+
ls -d ~/.claude/projects/*/ | grep -i "{suffix}"
|
|
62
|
+
```
|
|
63
|
+
- Store the primary folder path and list of related folder paths.
|
|
64
|
+
- Report to the user:
|
|
65
|
+
> Searching primary: `{primary-folder}`
|
|
66
|
+
> Related folders found: `{list}` (or "none")
|
|
67
|
+
</action>
|
|
68
|
+
<verify>
|
|
69
|
+
- Primary project folder exists and is accessible.
|
|
70
|
+
</verify>
|
|
71
|
+
<on-fail>
|
|
72
|
+
**ERROR** -- "Cannot locate project folder at ~/.claude/projects/. Verify Claude Code has been used in this project directory."
|
|
73
|
+
Stop execution.
|
|
74
|
+
</on-fail>
|
|
75
|
+
</step>
|
|
76
|
+
|
|
77
|
+
<step id="3" name="Search Session Index">
|
|
78
|
+
<action>
|
|
79
|
+
Skip this step if `--memory-only` flag is set.
|
|
80
|
+
|
|
81
|
+
For each project folder (primary first, then related):
|
|
82
|
+
1. Read `sessions-index.json` if it exists.
|
|
83
|
+
2. Search these fields for `SEARCH_TERMS` (case-insensitive):
|
|
84
|
+
- `firstPrompt` -- the opening message of each session
|
|
85
|
+
- `summary` -- Claude's summary of the session
|
|
86
|
+
- `gitBranch` -- the branch name
|
|
87
|
+
3. Collect matching entries with: `sessionId`, `summary`, `firstPrompt`, `gitBranch`, `created`, `modified`, `messageCount`.
|
|
88
|
+
4. Sort matches by `modified` date (most recent first).
|
|
89
|
+
5. Cap results at **15 matches per folder**.
|
|
90
|
+
</action>
|
|
91
|
+
<verify>
|
|
92
|
+
- Sessions-index was read successfully (or does not exist, which is acceptable).
|
|
93
|
+
</verify>
|
|
94
|
+
<on-fail>
|
|
95
|
+
Warn: "Could not read sessions-index.json in {folder}. Skipping session search for this folder."
|
|
96
|
+
Continue to next folder or next step.
|
|
97
|
+
</on-fail>
|
|
98
|
+
</step>
|
|
99
|
+
|
|
100
|
+
<step id="4" name="Search Memory Files">
|
|
101
|
+
<action>
|
|
102
|
+
Skip this step if `--sessions-only` flag is set.
|
|
103
|
+
|
|
104
|
+
For each project folder (primary first, then related):
|
|
105
|
+
1. Read `memory/MEMORY.md` if it exists -- search its content for `SEARCH_TERMS`.
|
|
106
|
+
2. Use Grep to search all `.md` files in `memory/` for `SEARCH_TERMS`:
|
|
107
|
+
```
|
|
108
|
+
Grep pattern: {SEARCH_TERMS} path: {folder}/memory/ glob: "*.md"
|
|
109
|
+
```
|
|
110
|
+
3. For each match, read the file's frontmatter to get `name`, `description`, and `type`.
|
|
111
|
+
4. Collect: file name, memory type, description, and matching line(s).
|
|
112
|
+
</action>
|
|
113
|
+
<verify>
|
|
114
|
+
- Memory folder was searched (or does not exist, which is acceptable).
|
|
115
|
+
</verify>
|
|
116
|
+
<on-fail>
|
|
117
|
+
Warn: "No memory folder found in {folder}. Skipping memory search for this folder."
|
|
118
|
+
Continue to next folder or next step.
|
|
119
|
+
</on-fail>
|
|
120
|
+
</step>
|
|
121
|
+
|
|
122
|
+
<step id="5" name="Deep Search Conversation Transcripts" condition="--deep flag is present">
|
|
123
|
+
<action>
|
|
124
|
+
For each project folder (primary first, then related):
|
|
125
|
+
1. Get the 20 most recently modified `.jsonl` files:
|
|
126
|
+
```bash
|
|
127
|
+
ls -t {folder}/*.jsonl 2>/dev/null | head -20
|
|
128
|
+
```
|
|
129
|
+
2. For each `.jsonl` file, use Grep to search for `SEARCH_TERMS`:
|
|
130
|
+
```
|
|
131
|
+
Grep pattern: {SEARCH_TERMS} path: {jsonl-file}
|
|
132
|
+
```
|
|
133
|
+
3. For matching files, cross-reference with `sessions-index.json` to get the session summary and date.
|
|
134
|
+
4. Collect: session ID, summary, date, and a short snippet of the matching line (truncated to 200 chars).
|
|
135
|
+
5. Cap results at **10 matches per folder**.
|
|
136
|
+
|
|
137
|
+
**Performance note**: `.jsonl` files can be large. Search only the raw text content, do not parse JSON structure.
|
|
138
|
+
</action>
|
|
139
|
+
<verify>
|
|
140
|
+
- At least one `.jsonl` file was searchable (or none exist).
|
|
141
|
+
</verify>
|
|
142
|
+
<on-fail>
|
|
143
|
+
Warn: "Could not search conversation transcripts in {folder}."
|
|
144
|
+
Continue to next step.
|
|
145
|
+
</on-fail>
|
|
146
|
+
</step>
|
|
147
|
+
|
|
148
|
+
<step id="6" name="Present Results">
|
|
149
|
+
<action>
|
|
150
|
+
Format and present all results grouped by source, most relevant first.
|
|
151
|
+
|
|
152
|
+
**If matches found**, use this format:
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
## Search Results for: "{SEARCH_TERMS}"
|
|
156
|
+
|
|
157
|
+
### Primary Project: {primary-folder-name}
|
|
158
|
+
|
|
159
|
+
#### Session Matches
|
|
160
|
+
| # | Date | Branch | Summary | First Prompt |
|
|
161
|
+
|---|------|--------|---------|--------------|
|
|
162
|
+
| 1 | {date} | {branch} | {summary} | {first-prompt-truncated} |
|
|
163
|
+
|
|
164
|
+
#### Memory Matches
|
|
165
|
+
| File | Type | Description | Match |
|
|
166
|
+
|------|------|-------------|-------|
|
|
167
|
+
| {file} | {type} | {description} | {matching-line} |
|
|
168
|
+
|
|
169
|
+
#### Transcript Matches (deep search)
|
|
170
|
+
| # | Date | Summary | Snippet |
|
|
171
|
+
|---|------|---------|---------|
|
|
172
|
+
| 1 | {date} | {summary} | {snippet} |
|
|
173
|
+
|
|
174
|
+
### Related: {related-folder-name}
|
|
175
|
+
{same structure}
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
**If no matches found**:
|
|
179
|
+
|
|
180
|
+
> No results found for "{SEARCH_TERMS}" across {N} project folder(s).
|
|
181
|
+
>
|
|
182
|
+
> Suggestions:
|
|
183
|
+
> - Try broader keywords
|
|
184
|
+
> - Use `--deep` flag to search inside conversation transcripts
|
|
185
|
+
> - Check if you were working in a different project directory
|
|
186
|
+
|
|
187
|
+
**After presenting results**, offer these follow-up actions:
|
|
188
|
+
- "To read a specific session transcript, provide the session ID and I will search it for more detail."
|
|
189
|
+
- "To read a memory file, I can open it directly."
|
|
190
|
+
</action>
|
|
191
|
+
<verify>
|
|
192
|
+
- Results were presented to the user.
|
|
193
|
+
</verify>
|
|
194
|
+
<on-fail>
|
|
195
|
+
Report: "Search completed but encountered an error formatting results. Raw match count: {count}."
|
|
196
|
+
</on-fail>
|
|
197
|
+
</step>
|
|
198
|
+
|
|
199
|
+
## How Folder Discovery Works
|
|
200
|
+
|
|
201
|
+
Claude Code stores project data in `~/.claude/projects/` using path-encoded folder names:
|
|
202
|
+
|
|
203
|
+
```
|
|
204
|
+
~/.claude/projects/
|
|
205
|
+
C--dev-GitHub-SixSevenAI/ <-- primary (this project)
|
|
206
|
+
C--dev-GitHub-SixSevenAI-src-installer/ <-- related (contains "SixSevenAI")
|
|
207
|
+
C--dev-workflows-SixSeven-SixSevenAI/ <-- related (contains "SixSevenAI")
|
|
208
|
+
C--dev-Tools-SixSevenBots/ <-- related (contains "SixSeven")
|
|
209
|
+
C--dev-SuiteFYI-ConnectFYI/ <-- unrelated (different project)
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
The suffix match is case-insensitive and uses the last meaningful path segment. Multiple Claude sessions against the same codebase (from different working directories or worktrees) will be discovered and searched.
|
|
213
|
+
|
|
214
|
+
## What Gets Searched
|
|
215
|
+
|
|
216
|
+
| Source | File | Searched Fields | Default | --deep |
|
|
217
|
+
|--------|------|-----------------|---------|--------|
|
|
218
|
+
| Session index | `sessions-index.json` | `summary`, `firstPrompt`, `gitBranch` | Yes | Yes |
|
|
219
|
+
| Memory index | `memory/MEMORY.md` | Full content | Yes | Yes |
|
|
220
|
+
| Memory files | `memory/*.md` | Full content + frontmatter | Yes | Yes |
|
|
221
|
+
| Transcripts | `*.jsonl` | Raw text (last 20 sessions) | No | Yes |
|
|
222
|
+
|
|
223
|
+
## Examples
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
# Find sessions where you worked on the installer
|
|
227
|
+
/im-lost installer publish npm
|
|
228
|
+
|
|
229
|
+
# Find where you discussed XML conversion
|
|
230
|
+
/im-lost xml-markdown conversion runbook
|
|
231
|
+
|
|
232
|
+
# Search only memory files for feedback about testing
|
|
233
|
+
/im-lost testing patterns --memory-only
|
|
234
|
+
|
|
235
|
+
# Deep search transcripts for a specific error
|
|
236
|
+
/im-lost "MISSING_PREREQUISITE" --deep
|
|
237
|
+
|
|
238
|
+
# Find sessions related to a specific branch
|
|
239
|
+
/im-lost features/v-next --sessions-only
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
## Related Commands
|
|
243
|
+
|
|
244
|
+
- `/prime` - Prime context by examining directories, files, or URLs
|
|
245
|
+
- `/ai-dlc:status` - Show current AI-DLC phase and progress
|