@sixsevenai/ai-dlc-installer 1.5.0 → 1.5.1
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/commands/ai-dlc/cheatsheet.md +63 -63
- package/library/commands/ai-dlc/construct-unit.md +14 -0
- package/library/commands/ai-dlc/quickstart.md +150 -150
- package/library/commands/git/branch-report.md +176 -0
- package/library/commands/git/branch-validate.md +279 -0
- package/library/commands/git/rebase.md +232 -0
- package/library/commands/im-lost.md +245 -245
- package/library/commands/issue-to-done.md +320 -320
- package/package.json +1 -1
|
@@ -1,63 +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
|
-
```
|
|
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
|
+
```
|
|
@@ -57,6 +57,20 @@ Has UI: ${has-ui !== false}
|
|
|
57
57
|
Has API: ${has-api !== false}
|
|
58
58
|
Has DB: ${has-db || false}
|
|
59
59
|
|
|
60
|
+
<auto-detection>
|
|
61
|
+
**IMPORTANT — Flag Auto-Detection:**
|
|
62
|
+
Before starting, run `ai-dlc prepare ai-dlc:construct-unit --unit ${unit-name}` and check the `suggestedDesignSteps` array in the JSON response.
|
|
63
|
+
|
|
64
|
+
If the user did NOT explicitly pass `--has-ui`, `--has-api`, or `--has-db` flags, use the CLI's detection results:
|
|
65
|
+
- **high confidence** suggestions → treat as if the flag was set to `true`
|
|
66
|
+
- **medium confidence** suggestions → treat as if the flag was set to `true`, but note it was auto-detected
|
|
67
|
+
- **low confidence** suggestions → skip unless you independently confirm the need after reading artifacts
|
|
68
|
+
|
|
69
|
+
If the user DID explicitly pass a flag, that flag always takes precedence over auto-detection.
|
|
70
|
+
|
|
71
|
+
Log which design steps were auto-detected vs explicitly requested so the user can see what happened.
|
|
72
|
+
</auto-detection>
|
|
73
|
+
|
|
60
74
|
Execute the complete Construction workflow:
|
|
61
75
|
|
|
62
76
|
<execution-steps>
|
|
@@ -1,150 +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.
|
|
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.
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
---
|
|
2
|
+
command: git:branch-report
|
|
3
|
+
description: List git branches with dates, commit messages, and behind/ahead tracking
|
|
4
|
+
argument-hint: "[--local] [--online] [--path <dir>]"
|
|
5
|
+
phase: cross-cutting
|
|
6
|
+
allowed-tools: Bash, Read
|
|
7
|
+
args:
|
|
8
|
+
- name: --local
|
|
9
|
+
description: List local branches (default if no flag specified)
|
|
10
|
+
required: false
|
|
11
|
+
- name: --online
|
|
12
|
+
description: List remote origin branches
|
|
13
|
+
required: false
|
|
14
|
+
- name: --path
|
|
15
|
+
description: Path to another git repository to report on
|
|
16
|
+
required: false
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Branch Report
|
|
20
|
+
|
|
21
|
+
List git branches with rich metadata including last commit date, commit message, and behind/ahead counts.
|
|
22
|
+
|
|
23
|
+
## Command: /git:branch-report [--local|--online] [--path <dir>]
|
|
24
|
+
|
|
25
|
+
## Execution Protocol
|
|
26
|
+
|
|
27
|
+
### Step 1: Resolve Target Directory
|
|
28
|
+
|
|
29
|
+
- Parse arguments. If `--path <dir>` is provided, set `GIT_DIR_FLAG="-C <dir>"`, otherwise `GIT_DIR_FLAG=""`.
|
|
30
|
+
- Validate the path is a git repo:
|
|
31
|
+
```bash
|
|
32
|
+
git $GIT_DIR_FLAG rev-parse --git-dir 2>/dev/null
|
|
33
|
+
```
|
|
34
|
+
- If validation fails, report error: "Not a git repository: <dir>" and stop.
|
|
35
|
+
|
|
36
|
+
### Step 2: Determine Mode
|
|
37
|
+
|
|
38
|
+
- If `--online` is specified, set MODE to "remote"
|
|
39
|
+
- Otherwise (default, or `--local`), set MODE to "local"
|
|
40
|
+
|
|
41
|
+
### Step 3: Detect Default Branch
|
|
42
|
+
|
|
43
|
+
Run these commands to auto-detect the default branch name:
|
|
44
|
+
```bash
|
|
45
|
+
# Try symbolic ref first
|
|
46
|
+
git $GIT_DIR_FLAG symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@'
|
|
47
|
+
|
|
48
|
+
# Fallback: check if main exists
|
|
49
|
+
git $GIT_DIR_FLAG show-ref --verify --quiet refs/heads/main 2>/dev/null && echo "main"
|
|
50
|
+
|
|
51
|
+
# Fallback: check if master exists
|
|
52
|
+
git $GIT_DIR_FLAG show-ref --verify --quiet refs/heads/master 2>/dev/null && echo "master"
|
|
53
|
+
```
|
|
54
|
+
Use the first successful result as `DEFAULT_BRANCH`.
|
|
55
|
+
|
|
56
|
+
### Step 4: Fetch Remote (online mode only)
|
|
57
|
+
|
|
58
|
+
If MODE is "remote":
|
|
59
|
+
```bash
|
|
60
|
+
git $GIT_DIR_FLAG fetch origin --prune
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Step 5: List Branches
|
|
64
|
+
|
|
65
|
+
**For local mode** (`refs/heads/`):
|
|
66
|
+
```bash
|
|
67
|
+
git $GIT_DIR_FLAG for-each-ref --sort=-committerdate refs/heads/ \
|
|
68
|
+
--format='%(HEAD)|%(refname:short)|%(committerdate:relative)|%(subject)'
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**For online mode** (`refs/remotes/origin/`):
|
|
72
|
+
```bash
|
|
73
|
+
git $GIT_DIR_FLAG for-each-ref --sort=-committerdate refs/remotes/origin/ \
|
|
74
|
+
--format='%(refname:short)|%(committerdate:relative)|%(subject)' \
|
|
75
|
+
| grep -v 'origin/HEAD'
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Step 6: Calculate Behind/Ahead
|
|
79
|
+
|
|
80
|
+
For each branch from Step 5, calculate behind/ahead relative to the default branch:
|
|
81
|
+
|
|
82
|
+
**Local mode:**
|
|
83
|
+
```bash
|
|
84
|
+
git $GIT_DIR_FLAG rev-list --left-right --count $DEFAULT_BRANCH...<branch> 2>/dev/null
|
|
85
|
+
```
|
|
86
|
+
Output format: `<behind>\t<ahead>`
|
|
87
|
+
|
|
88
|
+
**Online mode:**
|
|
89
|
+
```bash
|
|
90
|
+
git $GIT_DIR_FLAG rev-list --left-right --count origin/$DEFAULT_BRANCH...<branch> 2>/dev/null
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
If the command fails (e.g., unrelated histories), show `-` for both values.
|
|
94
|
+
|
|
95
|
+
### Step 7: Format Output
|
|
96
|
+
|
|
97
|
+
Display a header, then render results as a clean columnar table with a horizontal rule under the header:
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
Branch Report (local) — repo: <repo-name>
|
|
101
|
+
Default branch: <DEFAULT_BRANCH>
|
|
102
|
+
|
|
103
|
+
Branch Age Behind Ahead Last Commit
|
|
104
|
+
───────────────────────────────── ────────────── ────── ───── ──────────────────────────────────────────────
|
|
105
|
+
* main 2 hours ago — — feat: add new dashboard widget
|
|
106
|
+
───────────────────────────────── ────────────── ────── ───── ──────────────────────────────────────────────
|
|
107
|
+
feature/auth-refactor 3 days ago 12 5 fix: token refresh edge case
|
|
108
|
+
───────────────────────────────── ────────────── ────── ───── ──────────────────────────────────────────────
|
|
109
|
+
hotfix/login-crash 1 week ago 25 2 hotfix: null check on login response
|
|
110
|
+
───────────────────────────────── ────────────── ────── ───── ──────────────────────────────────────────────
|
|
111
|
+
stale/old-experiment 3 months ago 142 1 experiment: try new caching approach
|
|
112
|
+
───────────────────────────────── ────────────── ────── ───── ──────────────────────────────────────────────
|
|
113
|
+
|
|
114
|
+
4 branches | 3 ahead of main | 4 behind main
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
- No outer border or vertical pipe characters — just aligned columns with space padding
|
|
118
|
+
- Horizontal rule (`─`) under each column header AND between every row for grid-like readability
|
|
119
|
+
- `*` in the left margin indicates current branch (local mode only)
|
|
120
|
+
- Behind/Ahead columns right-aligned; use `—` (em dash) for the default branch row
|
|
121
|
+
- Truncate commit message to 50 characters, append `...` if truncated
|
|
122
|
+
- Sort by most recent commit date (descending) — already handled by `--sort=-committerdate`
|
|
123
|
+
- Summary line below the table with branch counts
|
|
124
|
+
- For online mode, header says "Branch Report (remote)" instead of "(local)"
|
|
125
|
+
|
|
126
|
+
## Usage Examples
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
# List local branches (default)
|
|
130
|
+
/git:branch-report
|
|
131
|
+
|
|
132
|
+
# Explicitly local
|
|
133
|
+
/git:branch-report --local
|
|
134
|
+
|
|
135
|
+
# List remote branches
|
|
136
|
+
/git:branch-report --online
|
|
137
|
+
|
|
138
|
+
# Report on a different repository
|
|
139
|
+
/git:branch-report --path /c/dev/other-project
|
|
140
|
+
|
|
141
|
+
# Remote branches of another repo
|
|
142
|
+
/git:branch-report --online --path /c/dev/other-project
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## Sample Output
|
|
146
|
+
|
|
147
|
+
```
|
|
148
|
+
Branch Report (local) — repo: SixSevenAI
|
|
149
|
+
Default branch: main
|
|
150
|
+
|
|
151
|
+
Branch Age Behind Ahead Last Commit
|
|
152
|
+
───────────────────────────────── ────────────── ────── ───── ──────────────────────────────────────────────
|
|
153
|
+
* hotfix/cli-false-complete 2 hours ago 0 2 fix(cli): use unit-based completion for status
|
|
154
|
+
───────────────────────────────── ────────────── ────── ───── ──────────────────────────────────────────────
|
|
155
|
+
feature/workflow-engine 1 day ago 5 8 feat: add workflow pause/resume support
|
|
156
|
+
───────────────────────────────── ────────────── ────── ───── ──────────────────────────────────────────────
|
|
157
|
+
feature/agent-voting 3 days ago 12 3 feat: implement MAKER voting consensus
|
|
158
|
+
───────────────────────────────── ────────────── ────── ───── ──────────────────────────────────────────────
|
|
159
|
+
bugfix/session-archive 1 week ago 20 1 fix: archive metadata generation
|
|
160
|
+
───────────────────────────────── ────────────── ────── ───── ──────────────────────────────────────────────
|
|
161
|
+
experiment/mcp-bridge 2 months ago 87 4 experiment: MCP server bridge prototype
|
|
162
|
+
───────────────────────────────── ────────────── ────── ───── ──────────────────────────────────────────────
|
|
163
|
+
|
|
164
|
+
5 branches | 4 ahead of main | 4 behind main
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## Prerequisites
|
|
168
|
+
|
|
169
|
+
- Git repository (local or specified via `--path`)
|
|
170
|
+
- For `--online`: network access to fetch from origin
|
|
171
|
+
|
|
172
|
+
## Related Commands
|
|
173
|
+
|
|
174
|
+
- `/git:branch-validate` — Deep comparison of a branch against another
|
|
175
|
+
- `/git:check-duplicates` — Analyze changed files for semantic duplicates
|
|
176
|
+
- `/commit` — Intelligent commit workflow
|