lite-kits 0.1.0__py3-none-any.whl
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.
- lite_kits/__init__.py +9 -0
- lite_kits/cli.py +481 -0
- lite_kits/installer.py +417 -0
- lite_kits/kits/README.md +191 -0
- lite_kits/kits/git/README.md +374 -0
- lite_kits/kits/git/claude/commands/cleanup.md +361 -0
- lite_kits/kits/git/claude/commands/commit.md +612 -0
- lite_kits/kits/git/claude/commands/pr.md +593 -0
- lite_kits/kits/git/github/prompts/cleanup.prompt.md +382 -0
- lite_kits/kits/git/github/prompts/commit.prompt.md +591 -0
- lite_kits/kits/git/github/prompts/pr.prompt.md +603 -0
- lite_kits/kits/git/scripts/bash/get-git-context.sh +208 -0
- lite_kits/kits/git/scripts/powershell/Get-GitContext.ps1 +242 -0
- lite_kits/kits/multiagent/README.md +395 -0
- lite_kits/kits/multiagent/claude/commands/sync.md +331 -0
- lite_kits/kits/multiagent/github/prompts/sync.prompt.md +331 -0
- lite_kits/kits/multiagent/memory/git-worktrees-protocol.md +370 -0
- lite_kits/kits/multiagent/memory/parallel-work-protocol.md +536 -0
- lite_kits/kits/multiagent/memory/pr-workflow-guide.md +281 -0
- lite_kits/kits/multiagent/templates/collaboration-structure/README.md +166 -0
- lite_kits/kits/multiagent/templates/decision.md +79 -0
- lite_kits/kits/multiagent/templates/handoff.md +95 -0
- lite_kits/kits/multiagent/templates/session-log.md +68 -0
- lite_kits/kits/project/README.md +244 -0
- lite_kits/kits/project/claude/commands/orient.md +163 -0
- lite_kits/kits/project/github/prompts/orient.prompt.md +163 -0
- lite_kits-0.1.0.dist-info/METADATA +415 -0
- lite_kits-0.1.0.dist-info/RECORD +31 -0
- lite_kits-0.1.0.dist-info/WHEEL +4 -0
- lite_kits-0.1.0.dist-info/entry_points.txt +2 -0
- lite_kits-0.1.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,244 @@
|
|
1
|
+
# Project Kit
|
2
|
+
|
3
|
+
**Status**: ✅ Recommended (Default)
|
4
|
+
|
5
|
+
Essential project-level utilities and enhancements for vanilla spec-kit. Includes agent orientation, code review, quality checks, and enhanced feature creation scripts.
|
6
|
+
|
7
|
+
## What It Adds
|
8
|
+
|
9
|
+
### Commands (AI Agents)
|
10
|
+
|
11
|
+
| Command | Claude Code | GitHub Copilot | Description |
|
12
|
+
|---------|-------------|----------------|-------------|
|
13
|
+
| `/orient` | ✅ | ✅ | Agent orientation protocol (most essential!) |
|
14
|
+
| `/review` | 🚧 | 🚧 | Code review helper |
|
15
|
+
| `/audit` | 🚧 | 🚧 | Security & quality audit |
|
16
|
+
| `/stats` | 🚧 | 🚧 | Project statistics |
|
17
|
+
|
18
|
+
### Scripts (Enhanced Vanilla)
|
19
|
+
|
20
|
+
| Script | Bash | PowerShell | Description |
|
21
|
+
|--------|------|------------|-------------|
|
22
|
+
| Feature creation | 🚧 | 🚧 | Custom feature numbering/naming |
|
23
|
+
|
24
|
+
✅ = Implemented | 🚧 = Coming Soon
|
25
|
+
|
26
|
+
## Installation
|
27
|
+
|
28
|
+
### As part of recommended kits:
|
29
|
+
```bash
|
30
|
+
lite-kits install -Recommended # project + git
|
31
|
+
```
|
32
|
+
|
33
|
+
### Individually:
|
34
|
+
```bash
|
35
|
+
lite-kits install -Kit project
|
36
|
+
```
|
37
|
+
|
38
|
+
## What Gets Installed
|
39
|
+
|
40
|
+
```
|
41
|
+
your-project/
|
42
|
+
├── .claude/commands/ # If Claude Code detected
|
43
|
+
│ ├── orient.md # ✅ Essential!
|
44
|
+
│ ├── review.md # 🚧 Coming Soon
|
45
|
+
│ ├── audit.md # 🚧 Coming Soon
|
46
|
+
│ └── stats.md # 🚧 Coming Soon
|
47
|
+
├── .github/prompts/ # If GitHub Copilot detected
|
48
|
+
│ ├── orient.prompt.md # ✅ Essential!
|
49
|
+
│ ├── review.prompt.md # 🚧 Coming Soon
|
50
|
+
│ ├── audit.prompt.md # 🚧 Coming Soon
|
51
|
+
│ └── stats.prompt.md # 🚧 Coming Soon
|
52
|
+
└── .specify/scripts/ # Enhanced vanilla scripts
|
53
|
+
├── bash/
|
54
|
+
│ └── create-feature-enhanced.sh # 🚧 Coming Soon
|
55
|
+
└── powershell/
|
56
|
+
└── Create-Feature-Enhanced.ps1 # 🚧 Coming Soon
|
57
|
+
```
|
58
|
+
|
59
|
+
**Note**: Vanilla spec-kit files are **never modified** - only new files are added.
|
60
|
+
|
61
|
+
## Commands
|
62
|
+
|
63
|
+
### `/orient` - Agent Orientation ⭐ ESSENTIAL
|
64
|
+
|
65
|
+
**Purpose**: Help AI agents quickly understand project context before starting work.
|
66
|
+
|
67
|
+
**What it does**:
|
68
|
+
1. Reads `.github/copilot-instructions.md` (primary source)
|
69
|
+
2. Reads `.specify/memory/constitution.md` (project philosophy)
|
70
|
+
3. Checks current git state (branch, recent commits)
|
71
|
+
4. Reviews collaboration directories (if multiagent-kit installed)
|
72
|
+
5. Determines agent role (Claude = leader, Copilot = specialist)
|
73
|
+
6. Outputs concise summary (~150-200 words)
|
74
|
+
|
75
|
+
**Example usage**:
|
76
|
+
```
|
77
|
+
/orient
|
78
|
+
|
79
|
+
## Orientation Complete - Primary Agent
|
80
|
+
|
81
|
+
**I am**: claude-sonnet-4.5 @ Claude Code (Primary)
|
82
|
+
|
83
|
+
**Project**: Pip-installable add-on for spec-kit
|
84
|
+
|
85
|
+
**Stack**: Python 3.11+, typer, rich
|
86
|
+
|
87
|
+
**Principles**:
|
88
|
+
- Add-on pattern (no vanilla modifications)
|
89
|
+
- Cross-platform (Bash + PowerShell)
|
90
|
+
- Cross-agent (Claude + Copilot)
|
91
|
+
|
92
|
+
**State**: Branch dev/001-starter-kits, 3 files changed
|
93
|
+
|
94
|
+
**Coordination**: Solo work
|
95
|
+
|
96
|
+
**Next**: Implement project-kit structure
|
97
|
+
|
98
|
+
**Confirm?**: Ready to proceed?
|
99
|
+
```
|
100
|
+
|
101
|
+
**Why this is essential**: Every AI agent should run `/orient` at the start of each session to get up to speed quickly without wasting tokens.
|
102
|
+
|
103
|
+
---
|
104
|
+
|
105
|
+
### `/review` - Code Review (Coming Soon)
|
106
|
+
|
107
|
+
**Purpose**: Review code changes against project constitution and best practices.
|
108
|
+
|
109
|
+
**What it will do**:
|
110
|
+
- Check staged changes against constitution principles
|
111
|
+
- Identify common code smells
|
112
|
+
- Suggest improvements
|
113
|
+
- Verify test coverage
|
114
|
+
- Check documentation completeness
|
115
|
+
|
116
|
+
---
|
117
|
+
|
118
|
+
### `/audit` - Security & Quality Audit (Coming Soon)
|
119
|
+
|
120
|
+
**Purpose**: Scan for security issues and quality problems.
|
121
|
+
|
122
|
+
**What it will do**:
|
123
|
+
- Scan for hardcoded secrets/credentials
|
124
|
+
- Check for common vulnerabilities (SQL injection, XSS, CSRF)
|
125
|
+
- Analyze dependencies for known CVEs
|
126
|
+
- Verify input validation
|
127
|
+
- Check file permissions
|
128
|
+
|
129
|
+
---
|
130
|
+
|
131
|
+
### `/stats` - Project Statistics (Coming Soon)
|
132
|
+
|
133
|
+
**Purpose**: Show project health metrics.
|
134
|
+
|
135
|
+
**What it will do**:
|
136
|
+
- Lines of code by language
|
137
|
+
- Test coverage percentage
|
138
|
+
- Git activity with agent attribution
|
139
|
+
- Complexity metrics
|
140
|
+
- Dependency count
|
141
|
+
- Health score
|
142
|
+
|
143
|
+
---
|
144
|
+
|
145
|
+
## Enhanced Scripts
|
146
|
+
|
147
|
+
### Feature Creation Enhancement (Coming Soon)
|
148
|
+
|
149
|
+
**Problem**: Vanilla `create-new-feature` script auto-generates feature numbers and uses first 3 words of description for naming.
|
150
|
+
|
151
|
+
**Enhancement**: Full control over feature numbering and naming.
|
152
|
+
|
153
|
+
**Usage** (planned):
|
154
|
+
```bash
|
155
|
+
# Vanilla (auto number, auto name from "Add user authentication system")
|
156
|
+
.specify/scripts/bash/create-new-feature.sh "Add user authentication system"
|
157
|
+
# Creates: 003-add-user-authentication
|
158
|
+
|
159
|
+
# Enhanced (custom number and name)
|
160
|
+
.specify/scripts/bash/create-feature-enhanced.sh --num 010 --name user-auth-v2 "Add user authentication system"
|
161
|
+
# Creates: 010-user-auth-v2
|
162
|
+
|
163
|
+
# Enhanced (custom number, auto name)
|
164
|
+
.specify/scripts/bash/create-feature-enhanced.sh --num 007 "Add user authentication system"
|
165
|
+
# Creates: 007-add-user-authentication
|
166
|
+
```
|
167
|
+
|
168
|
+
**Benefits**:
|
169
|
+
- Match feature numbers to issue/ticket numbers
|
170
|
+
- Use shorter, clearer names
|
171
|
+
- Support feature name conventions (e.g., `api-`, `ui-`, `db-` prefixes)
|
172
|
+
|
173
|
+
---
|
174
|
+
|
175
|
+
## Use Cases
|
176
|
+
|
177
|
+
### Solo Developer with AI Agent
|
178
|
+
**Install**: `--recommended` (includes project-kit)
|
179
|
+
**Use**: `/orient` at start of every session (essential!)
|
180
|
+
|
181
|
+
### Team with Multiple Agents
|
182
|
+
**Install**: `--recommended` + `--kit=multiagent`
|
183
|
+
**Use**: `/orient` + `/review` before committing
|
184
|
+
|
185
|
+
### Security-Focused Project
|
186
|
+
**Install**: `--recommended`
|
187
|
+
**Use**: `/audit` regularly, `/review` on every change
|
188
|
+
|
189
|
+
### Custom Workflow Needs
|
190
|
+
**Install**: `--kit=project`
|
191
|
+
**Use**: Enhanced scripts for precise feature naming
|
192
|
+
|
193
|
+
---
|
194
|
+
|
195
|
+
## Configuration
|
196
|
+
|
197
|
+
No configuration needed - works out of the box.
|
198
|
+
|
199
|
+
**Optional customization**:
|
200
|
+
- Edit `.github/copilot-instructions.md` - Affects `/orient` output
|
201
|
+
- Edit `.specify/memory/constitution.md` - Project principles for `/review`
|
202
|
+
|
203
|
+
---
|
204
|
+
|
205
|
+
## Dependencies
|
206
|
+
|
207
|
+
**None** - project-kit is standalone.
|
208
|
+
|
209
|
+
**Note**: multiagent-kit recommends project-kit for `/review` and best practices.
|
210
|
+
|
211
|
+
---
|
212
|
+
|
213
|
+
## Compatibility
|
214
|
+
|
215
|
+
- ✅ **Agents**: Claude Code, GitHub Copilot
|
216
|
+
- ✅ **Platforms**: Linux, macOS, Windows
|
217
|
+
- ✅ **Shells**: Bash, PowerShell
|
218
|
+
- ✅ **Vanilla safe**: Only adds new files, never modifies existing
|
219
|
+
|
220
|
+
---
|
221
|
+
|
222
|
+
## Uninstall
|
223
|
+
|
224
|
+
```bash
|
225
|
+
lite-kits remove -Kit project
|
226
|
+
```
|
227
|
+
|
228
|
+
Removes:
|
229
|
+
- `.claude/commands/{orient,review,audit,stats}.md`
|
230
|
+
- `.github/prompts/{orient,review,audit,stats}.prompt.md`
|
231
|
+
- `.specify/scripts/{bash,powershell}/create-feature-enhanced.{sh,ps1}`
|
232
|
+
|
233
|
+
---
|
234
|
+
|
235
|
+
## Future Enhancements
|
236
|
+
|
237
|
+
Considering for project-kit:
|
238
|
+
- `/docs` - Generate/update documentation
|
239
|
+
- `/history` - Show project timeline
|
240
|
+
- `/dependencies` - Dependency analysis
|
241
|
+
- `/performance` - Performance profiling
|
242
|
+
- Template library (api, cli, library, frontend feature templates)
|
243
|
+
|
244
|
+
Suggest more in [GitHub Discussions](https://github.com/tmorgan181/spec-kit-multiagent-lite/discussions).
|
@@ -0,0 +1,163 @@
|
|
1
|
+
---
|
2
|
+
description: Quickly orient to project context, installed kits, and current state
|
3
|
+
---
|
4
|
+
|
5
|
+
# Agent Orientation Protocol
|
6
|
+
|
7
|
+
**Purpose**: Provide concise project orientation for AI agents at start of work session.
|
8
|
+
|
9
|
+
## Execution Steps
|
10
|
+
|
11
|
+
Execute the following steps to gather orientation information:
|
12
|
+
|
13
|
+
### 1. Detect Installed Kits
|
14
|
+
|
15
|
+
Check for kit marker files to determine what's installed:
|
16
|
+
|
17
|
+
```bash
|
18
|
+
# Initialize kit detection variables
|
19
|
+
PROJECT_KIT=false
|
20
|
+
GIT_KIT=false
|
21
|
+
MULTIAGENT_KIT=false
|
22
|
+
|
23
|
+
# Check for project-kit markers
|
24
|
+
[ -f .claude/commands/review.md ] && PROJECT_KIT=true
|
25
|
+
|
26
|
+
# Check for git-kit markers
|
27
|
+
[ -f .claude/commands/commit.md ] && GIT_KIT=true
|
28
|
+
|
29
|
+
# Check for multiagent-kit markers
|
30
|
+
[ -f .specify/memory/pr-workflow-guide.md ] && MULTIAGENT_KIT=true
|
31
|
+
```
|
32
|
+
|
33
|
+
### 2. Determine Agent Role
|
34
|
+
|
35
|
+
Identify which agent you are and your role:
|
36
|
+
|
37
|
+
```bash
|
38
|
+
# Detect model and interface
|
39
|
+
MODEL="claude-sonnet-4.5" # Default Claude model, adjust based on actual model used
|
40
|
+
INTERFACE="Claude Code"
|
41
|
+
AGENT_ROLE="$MODEL @ $INTERFACE (Primary)"
|
42
|
+
```
|
43
|
+
|
44
|
+
### 3. Read Primary Documentation
|
45
|
+
|
46
|
+
Read these files in order (if they exist):
|
47
|
+
|
48
|
+
1. **`.github/copilot-instructions.md`** - Project overview, stack, conventions
|
49
|
+
2. **`.specify/memory/constitution.md`** - Project philosophy and principles
|
50
|
+
3. **`README.md`** - General project information
|
51
|
+
|
52
|
+
Extract:
|
53
|
+
- Project name and description
|
54
|
+
- Technology stack
|
55
|
+
- Key architectural decisions
|
56
|
+
- Development conventions
|
57
|
+
|
58
|
+
### 4. Check Git State
|
59
|
+
|
60
|
+
```bash
|
61
|
+
# Current branch
|
62
|
+
git branch --show-current
|
63
|
+
|
64
|
+
# Recent commits (last 5)
|
65
|
+
git log --oneline -5
|
66
|
+
|
67
|
+
# Uncommitted changes
|
68
|
+
git status --short
|
69
|
+
|
70
|
+
# Untracked files count
|
71
|
+
git ls-files --others --exclude-standard | wc -l
|
72
|
+
```
|
73
|
+
|
74
|
+
### 5. Check Active Work
|
75
|
+
|
76
|
+
Look for active feature work:
|
77
|
+
|
78
|
+
```bash
|
79
|
+
# List specs directories
|
80
|
+
ls -1d specs/*/ 2>/dev/null | tail -3
|
81
|
+
|
82
|
+
# Check for current spec/plan/tasks
|
83
|
+
CURRENT_BRANCH=$(git branch --show-current)
|
84
|
+
if [[ "$CURRENT_BRANCH" =~ ^[0-9]+ ]]; then
|
85
|
+
SPEC_DIR="specs/$CURRENT_BRANCH"
|
86
|
+
[ -f "$SPEC_DIR/spec.md" ] && echo "✓ Spec exists"
|
87
|
+
[ -f "$SPEC_DIR/plan.md" ] && echo "✓ Plan exists"
|
88
|
+
[ -f "$SPEC_DIR/tasks.md" ] && echo "✓ Tasks exist"
|
89
|
+
fi
|
90
|
+
```
|
91
|
+
|
92
|
+
### 6. Check Multi-Agent Coordination (if multiagent-kit installed)
|
93
|
+
|
94
|
+
If `MULTIAGENT_KIT=true`:
|
95
|
+
|
96
|
+
```bash
|
97
|
+
# Check for active sessions
|
98
|
+
find specs/*/collaboration/active/sessions/ -name "*.md" 2>/dev/null | wc -l
|
99
|
+
|
100
|
+
# Check for pending handoffs
|
101
|
+
find specs/*/collaboration/active/decisions/ -name "handoff-*.md" 2>/dev/null | head -1
|
102
|
+
```
|
103
|
+
|
104
|
+
### 7. Generate Concise Output
|
105
|
+
|
106
|
+
Provide a **concise summary** (~150 words max) in this format:
|
107
|
+
|
108
|
+
```
|
109
|
+
## Orientation Complete
|
110
|
+
|
111
|
+
**Installed Kits**: [list detected kits or "vanilla only"]
|
112
|
+
|
113
|
+
**I am**: [AGENT_ROLE from step 2]
|
114
|
+
**Project**: [project name from docs]
|
115
|
+
**Stack**: [main technologies]
|
116
|
+
**Branch**: [current branch]
|
117
|
+
**Recent work**: [summary of last 1-2 commits]
|
118
|
+
**Uncommitted changes**: [count of modified files]
|
119
|
+
**Active feature**: [current spec if on feature branch]
|
120
|
+
**Coordination**: [solo work / handoff pending / etc]
|
121
|
+
|
122
|
+
**Next suggested action**: [based on state analysis below]
|
123
|
+
```
|
124
|
+
|
125
|
+
### 8. Suggest Next Action
|
126
|
+
|
127
|
+
Based on the state you discovered, suggest the next logical action:
|
128
|
+
|
129
|
+
**Decision logic**:
|
130
|
+
|
131
|
+
- **No spec on current branch** → "Run `/specify` to start a new feature"
|
132
|
+
- **Spec exists, no plan** → "Run `/plan` to create implementation plan"
|
133
|
+
- **Plan exists, no tasks** → "Run `/tasks` to break down into tasks"
|
134
|
+
- **Tasks exist** → "Run `/implement` to start coding"
|
135
|
+
- **Handoff detected** (multiagent) → "Review handoff in `specs/[feature]/collaboration/active/decisions/`"
|
136
|
+
- **Uncommitted changes** → "Review changes and consider running `/commit`" (if git-kit installed)
|
137
|
+
|
138
|
+
## Important Notes
|
139
|
+
|
140
|
+
- Keep output **concise** - this is an orientation, not a full analysis
|
141
|
+
- Focus on **actionable context** - what the agent needs to know right now
|
142
|
+
- **Don't modify any files** - this is read-only orientation
|
143
|
+
- If documentation is missing, note it briefly and continue
|
144
|
+
- Gracefully handle missing files (don't error if docs don't exist)
|
145
|
+
|
146
|
+
## Example Output
|
147
|
+
|
148
|
+
```
|
149
|
+
## Orientation Complete
|
150
|
+
|
151
|
+
**Installed Kits**: project, git
|
152
|
+
|
153
|
+
**I am**: claude-sonnet-4.5 @ Claude Code (Primary)
|
154
|
+
**Project**: Blog Platform API (TypeScript/Node.js)
|
155
|
+
**Stack**: Node.js, Express, PostgreSQL, TypeScript
|
156
|
+
**Branch**: dev/003-user-authentication
|
157
|
+
**Recent work**: Added JWT token validation (2 commits today)
|
158
|
+
**Uncommitted changes**: 3 modified files
|
159
|
+
**Active feature**: specs/003-user-authentication/ (spec + plan complete)
|
160
|
+
**Coordination**: Solo work
|
161
|
+
|
162
|
+
**Next suggested action**: Run `/tasks` to break down the implementation plan into actionable tasks.
|
163
|
+
```
|
@@ -0,0 +1,163 @@
|
|
1
|
+
---
|
2
|
+
description: Quickly orient to project context, installed kits, and current state
|
3
|
+
---
|
4
|
+
|
5
|
+
# Agent Orientation Protocol
|
6
|
+
|
7
|
+
**Purpose**: Provide concise project orientation for AI agents at start of work session.
|
8
|
+
|
9
|
+
## Execution Steps
|
10
|
+
|
11
|
+
Execute the following steps to gather orientation information:
|
12
|
+
|
13
|
+
### 1. Detect Installed Kits
|
14
|
+
|
15
|
+
Check for kit marker files to determine what's installed:
|
16
|
+
|
17
|
+
```powershell
|
18
|
+
# Initialize kit detection variables
|
19
|
+
$PROJECT_KIT = $false
|
20
|
+
$GIT_KIT = $false
|
21
|
+
$MULTIAGENT_KIT = $false
|
22
|
+
|
23
|
+
# Check for project-kit markers
|
24
|
+
if (Test-Path .github/prompts/review.prompt.md) { $PROJECT_KIT = $true }
|
25
|
+
|
26
|
+
# Check for git-kit markers
|
27
|
+
if (Test-Path .github/prompts/commit.prompt.md) { $GIT_KIT = $true }
|
28
|
+
|
29
|
+
# Check for multiagent-kit markers
|
30
|
+
if (Test-Path .specify/memory/pr-workflow-guide.md) { $MULTIAGENT_KIT = $true }
|
31
|
+
```
|
32
|
+
|
33
|
+
### 2. Determine Agent Role
|
34
|
+
|
35
|
+
Identify which agent you are and your role:
|
36
|
+
|
37
|
+
```powershell
|
38
|
+
# Detect model and interface
|
39
|
+
$MODEL = "Grok Code Fast 1" # Default Grok model for GitHub Copilot, adjust based on actual model used
|
40
|
+
$INTERFACE = "GitHub Copilot"
|
41
|
+
$AGENT_ROLE = "$MODEL @ $INTERFACE (Specialist)"
|
42
|
+
```
|
43
|
+
|
44
|
+
### 3. Read Primary Documentation
|
45
|
+
|
46
|
+
Read these files in order (if they exist):
|
47
|
+
|
48
|
+
1. **`.github/copilot-instructions.md`** - Project overview, stack, conventions
|
49
|
+
2. **`.specify/memory/constitution.md`** - Project philosophy and principles
|
50
|
+
3. **`README.md`** - General project information
|
51
|
+
|
52
|
+
Extract:
|
53
|
+
- Project name and description
|
54
|
+
- Technology stack
|
55
|
+
- Key architectural decisions
|
56
|
+
- Development conventions
|
57
|
+
|
58
|
+
### 4. Check Git State
|
59
|
+
|
60
|
+
```powershell
|
61
|
+
# Current branch
|
62
|
+
git branch --show-current
|
63
|
+
|
64
|
+
# Recent commits (last 5)
|
65
|
+
git log --oneline -5
|
66
|
+
|
67
|
+
# Uncommitted changes
|
68
|
+
git status --short
|
69
|
+
|
70
|
+
# Untracked files count
|
71
|
+
(git ls-files --others --exclude-standard).Count
|
72
|
+
```
|
73
|
+
|
74
|
+
### 5. Check Active Work
|
75
|
+
|
76
|
+
Look for active feature work:
|
77
|
+
|
78
|
+
```powershell
|
79
|
+
# List specs directories
|
80
|
+
Get-ChildItem -Path specs -Directory -ErrorAction SilentlyContinue | Select-Object -Last 3 -ExpandProperty Name
|
81
|
+
|
82
|
+
# Check for current spec/plan/tasks
|
83
|
+
$CURRENT_BRANCH = git branch --show-current
|
84
|
+
if ($CURRENT_BRANCH -match '^\d+') {
|
85
|
+
$SPEC_DIR = "specs/$CURRENT_BRANCH"
|
86
|
+
if (Test-Path "$SPEC_DIR/spec.md") { Write-Host "✓ Spec exists" }
|
87
|
+
if (Test-Path "$SPEC_DIR/plan.md") { Write-Host "✓ Plan exists" }
|
88
|
+
if (Test-Path "$SPEC_DIR/tasks.md") { Write-Host "✓ Tasks exist" }
|
89
|
+
}
|
90
|
+
```
|
91
|
+
|
92
|
+
### 6. Check Multi-Agent Coordination (if multiagent-kit installed)
|
93
|
+
|
94
|
+
If `$MULTIAGENT_KIT -eq $true`:
|
95
|
+
|
96
|
+
```powershell
|
97
|
+
# Check for active sessions
|
98
|
+
(Get-ChildItem -Path specs/*/collaboration/active/sessions/ -Filter *.md -Recurse -ErrorAction SilentlyContinue).Count
|
99
|
+
|
100
|
+
# Check for pending handoffs
|
101
|
+
Get-ChildItem -Path specs/*/collaboration/active/decisions/ -Filter handoff-*.md -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1
|
102
|
+
```
|
103
|
+
|
104
|
+
### 7. Generate Concise Output
|
105
|
+
|
106
|
+
Provide a **concise summary** (~150 words max) in this format:
|
107
|
+
|
108
|
+
```
|
109
|
+
## Orientation Complete
|
110
|
+
|
111
|
+
**Installed Kits**: [list detected kits or "vanilla only"]
|
112
|
+
|
113
|
+
**I am**: [$AGENT_ROLE from step 2]
|
114
|
+
**Project**: [project name from docs]
|
115
|
+
**Stack**: [main technologies]
|
116
|
+
**Branch**: [current branch]
|
117
|
+
**Recent work**: [summary of last 1-2 commits]
|
118
|
+
**Uncommitted changes**: [count of modified files]
|
119
|
+
**Active feature**: [current spec if on feature branch]
|
120
|
+
**Coordination**: [solo work / handoff pending / etc]
|
121
|
+
|
122
|
+
**Next suggested action**: [based on state analysis below]
|
123
|
+
```
|
124
|
+
|
125
|
+
### 8. Suggest Next Action
|
126
|
+
|
127
|
+
Based on the state you discovered, suggest the next logical action:
|
128
|
+
|
129
|
+
**Decision logic**:
|
130
|
+
|
131
|
+
- **No spec on current branch** → "Run `/specify` to start a new feature"
|
132
|
+
- **Spec exists, no plan** → "Run `/plan` to create implementation plan"
|
133
|
+
- **Plan exists, no tasks** → "Run `/tasks` to break down into tasks"
|
134
|
+
- **Tasks exist** → "Run `/implement` to start coding"
|
135
|
+
- **Handoff detected** (multiagent) → "Review handoff in `specs/[feature]/collaboration/active/decisions/`"
|
136
|
+
- **Uncommitted changes** → "Review changes and consider running `/commit`" (if git-kit installed)
|
137
|
+
|
138
|
+
## Important Notes
|
139
|
+
|
140
|
+
- Keep output **concise** - this is an orientation, not a full analysis
|
141
|
+
- Focus on **actionable context** - what the agent needs to know right now
|
142
|
+
- **Don't modify any files** - this is read-only orientation
|
143
|
+
- If documentation is missing, note it briefly and continue
|
144
|
+
- Gracefully handle missing files (don't error if docs don't exist)
|
145
|
+
|
146
|
+
## Example Output
|
147
|
+
|
148
|
+
```
|
149
|
+
## Orientation Complete
|
150
|
+
|
151
|
+
**Installed Kits**: project, git
|
152
|
+
|
153
|
+
**I am**: Grok Code Fast 1 @ GitHub Copilot (Specialist)
|
154
|
+
**Project**: Blog Platform API (TypeScript/Node.js)
|
155
|
+
**Stack**: Node.js, Express, PostgreSQL, TypeScript
|
156
|
+
**Branch**: dev/003-user-authentication
|
157
|
+
**Recent work**: Added JWT token validation (2 commits today)
|
158
|
+
**Uncommitted changes**: 3 modified files
|
159
|
+
**Active feature**: specs/003-user-authentication/ (spec + plan complete)
|
160
|
+
**Coordination**: Solo work
|
161
|
+
|
162
|
+
**Next suggested action**: Run `/tasks` to break down the implementation plan into actionable tasks.
|
163
|
+
```
|