lite-kits 0.1.1__py3-none-any.whl → 0.3.1__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.
Files changed (63) hide show
  1. lite_kits/__init__.py +56 -4
  2. lite_kits/cli.py +696 -185
  3. lite_kits/core/__init__.py +6 -0
  4. lite_kits/core/banner.py +1 -1
  5. lite_kits/core/conflict_checker.py +115 -0
  6. lite_kits/core/detector.py +140 -0
  7. lite_kits/core/installer.py +236 -351
  8. lite_kits/core/manifest.py +146 -146
  9. lite_kits/core/validator.py +146 -0
  10. lite_kits/kits/README.md +6 -6
  11. lite_kits/kits/dev/README.md +241 -241
  12. lite_kits/kits/dev/{claude/commands → commands/.claude}/audit.md +143 -143
  13. lite_kits/kits/dev/{claude/commands → commands/.claude}/cleanup.md +2 -2
  14. lite_kits/kits/{git/claude/commands → dev/commands/.claude}/commit.md +2 -2
  15. lite_kits/kits/{project/claude/commands → dev/commands/.claude}/orient.md +3 -4
  16. lite_kits/kits/{git/claude/commands → dev/commands/.claude}/pr.md +1 -1
  17. lite_kits/kits/{git/claude/commands → dev/commands/.claude}/review.md +202 -202
  18. lite_kits/kits/{project/claude/commands → dev/commands/.claude}/stats.md +162 -162
  19. lite_kits/kits/{project/github/prompts → dev/commands/.github}/audit.prompt.md +143 -143
  20. lite_kits/kits/{git/github/prompts → dev/commands/.github}/cleanup.prompt.md +2 -2
  21. lite_kits/kits/{git/github/prompts → dev/commands/.github}/commit.prompt.md +2 -2
  22. lite_kits/kits/dev/{github/prompts → commands/.github}/orient.prompt.md +3 -4
  23. lite_kits/kits/{git/github/prompts → dev/commands/.github}/pr.prompt.md +1 -1
  24. lite_kits/kits/{git/github/prompts → dev/commands/.github}/review.prompt.md +202 -202
  25. lite_kits/kits/dev/{github/prompts → commands/.github}/stats.prompt.md +163 -163
  26. lite_kits/kits/kits.yaml +497 -180
  27. lite_kits/kits/multiagent/README.md +6 -6
  28. lite_kits/kits/multiagent/{claude/commands → commands/.claude}/sync.md +331 -331
  29. lite_kits/kits/multiagent/{github/prompts → commands/.github}/sync.prompt.md +73 -69
  30. lite_kits/kits/multiagent/memory/git-worktrees-protocol.md +370 -370
  31. lite_kits/kits/multiagent/memory/parallel-work-protocol.md +536 -536
  32. lite_kits/kits/multiagent/memory/pr-workflow-guide.md +275 -275
  33. lite_kits/kits/multiagent/templates/collaboration-structure/README.md +166 -166
  34. lite_kits/kits/multiagent/templates/decision.md +79 -79
  35. lite_kits/kits/multiagent/templates/handoff.md +95 -95
  36. lite_kits/kits/multiagent/templates/session-log.md +68 -68
  37. lite_kits-0.3.1.dist-info/METADATA +259 -0
  38. lite_kits-0.3.1.dist-info/RECORD +41 -0
  39. {lite_kits-0.1.1.dist-info → lite_kits-0.3.1.dist-info}/licenses/LICENSE +21 -21
  40. lite_kits/kits/dev/claude/commands/commit.md +0 -612
  41. lite_kits/kits/dev/claude/commands/orient.md +0 -146
  42. lite_kits/kits/dev/claude/commands/pr.md +0 -593
  43. lite_kits/kits/dev/claude/commands/review.md +0 -202
  44. lite_kits/kits/dev/claude/commands/stats.md +0 -162
  45. lite_kits/kits/dev/github/prompts/audit.prompt.md +0 -143
  46. lite_kits/kits/dev/github/prompts/cleanup.prompt.md +0 -382
  47. lite_kits/kits/dev/github/prompts/commit.prompt.md +0 -591
  48. lite_kits/kits/dev/github/prompts/pr.prompt.md +0 -603
  49. lite_kits/kits/dev/github/prompts/review.prompt.md +0 -202
  50. lite_kits/kits/git/README.md +0 -365
  51. lite_kits/kits/git/claude/commands/cleanup.md +0 -361
  52. lite_kits/kits/git/scripts/bash/get-git-context.sh +0 -208
  53. lite_kits/kits/git/scripts/powershell/Get-GitContext.ps1 +0 -242
  54. lite_kits/kits/project/README.md +0 -228
  55. lite_kits/kits/project/claude/commands/audit.md +0 -143
  56. lite_kits/kits/project/claude/commands/review.md +0 -112
  57. lite_kits/kits/project/github/prompts/orient.prompt.md +0 -150
  58. lite_kits/kits/project/github/prompts/review.prompt.md +0 -112
  59. lite_kits/kits/project/github/prompts/stats.prompt.md +0 -163
  60. lite_kits-0.1.1.dist-info/METADATA +0 -447
  61. lite_kits-0.1.1.dist-info/RECORD +0 -58
  62. {lite_kits-0.1.1.dist-info → lite_kits-0.3.1.dist-info}/WHEEL +0 -0
  63. {lite_kits-0.1.1.dist-info → lite_kits-0.3.1.dist-info}/entry_points.txt +0 -0
@@ -1,241 +1,241 @@
1
- # Dev Kit
2
-
3
- **Status**: ✅ Recommended (Default)
4
-
5
- Essential development utilities for solo developers using spec-kit. Combines project management commands with git workflow automation.
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
- | `/commit` | ✅ | ✅ | Smart commit with staging and message generation |
15
- | `/pr` | ✅ | ✅ | Pull request creation with auto-push |
16
- | `/review` | ✅ | ✅ | Code review helper for staged changes |
17
- | `/cleanup` | ✅ | ✅ | Safe branch cleanup (delete merged branches) |
18
- | `/audit` | 🚧 | 🚧 | Security & quality audit (coming soon) |
19
- | `/stats` | 🚧 | 🚧 | Project statistics (coming soon) |
20
-
21
- ✅ = Implemented | 🚧 = Coming Soon
22
-
23
- ## Installation
24
-
25
- ### As recommended kit (default):
26
- ```bash
27
- lite-kits add --recommended # Installs dev-kit
28
- ```
29
-
30
- ### Individually:
31
- ```bash
32
- lite-kits add --kit dev
33
- ```
34
-
35
- ## What Gets Installed
36
-
37
- ```
38
- your-project/
39
- ├── .claude/commands/ # If Claude Code detected
40
- │ ├── orient.md # ✅ Essential!
41
- │ ├── commit.md # ✅ Smart commits
42
- │ ├── pr.md # ✅ PR creation
43
- │ ├── review.md # ✅ Code review
44
- │ ├── cleanup.md # ✅ Branch cleanup
45
- │ ├── audit.md # 🚧 Coming Soon
46
- │ └── stats.md # 🚧 Coming Soon
47
- └── .github/prompts/ # If GitHub Copilot detected
48
- ├── orient.prompt.md # ✅ Essential!
49
- ├── commit.prompt.md # ✅ Smart commits
50
- ├── pr.prompt.md # ✅ PR creation
51
- ├── review.prompt.md # ✅ Code review
52
- ├── cleanup.prompt.md # ✅ Branch cleanup
53
- ├── audit.prompt.md # 🚧 Coming Soon
54
- └── stats.prompt.md # 🚧 Coming Soon
55
- ```
56
-
57
- **Note**: Vanilla spec-kit files are **never modified** - only new files are added.
58
-
59
- ## Commands
60
-
61
- ### `/orient` - Agent Orientation ⭐ ESSENTIAL
62
-
63
- **Purpose**: Help AI agents quickly understand project context before starting work.
64
-
65
- **What it does**:
66
- 1. Detects installed kits
67
- 2. Determines agent role
68
- 3. Reads project documentation (`.github/copilot-instructions.md`, `.specify/memory/constitution.md`)
69
- 4. Checks current git state (branch, recent commits, changes)
70
- 5. Reviews active spec work
71
- 6. Outputs concise summary (~150 words max)
72
-
73
- **Example usage**:
74
- ```
75
- /orient
76
-
77
- ## Orientation Complete
78
-
79
- **Installed Kits**: dev
80
-
81
- **I am**: claude-sonnet-4.5 @ Claude Code (Primary)
82
- **Project**: Lite-kits - Lightweight enhancement kits for spec-driven development
83
- **Stack**: Python 3.11+, typer, rich
84
- **Branch**: develop
85
- **Recent work**: Merged PR #16 (kit refactor)
86
- **Uncommitted changes**: 12 files
87
- **Active feature**: None
88
- **Coordination**: Solo work
89
-
90
- **Next suggested action**: Review uncommitted changes with /review
91
- ```
92
-
93
- **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.
94
-
95
- ---
96
-
97
- ### `/commit` - Smart Commit
98
-
99
- **Purpose**: Intelligent commit workflow with staging proposals and message generation.
100
-
101
- **What it does**:
102
- - Analyzes unstaged changes
103
- - Proposes files to stage
104
- - Generates conventional commit message
105
- - Shows combined staging + message for approval
106
- - Supports multi-commit suggestions for large changesets
107
-
108
- ---
109
-
110
- ### `/pr` - Pull Request Creation
111
-
112
- **Purpose**: Create pull request with automatic branch push.
113
-
114
- **What it does**:
115
- - Checks for existing PR (prevents duplicates)
116
- - Pushes current branch to remote
117
- - Generates PR description from commits
118
- - Creates PR via `gh pr create`
119
- - Shows PR URL when complete
120
-
121
- ---
122
-
123
- ### `/review` - Code Review
124
-
125
- **Purpose**: Review staged changes against project conventions and best practices.
126
-
127
- **What it does**:
128
- - Analyzes staged changes (`git diff --staged`)
129
- - Checks against constitution principles
130
- - Identifies common code smells
131
- - Suggests improvements
132
- - Verifies test coverage
133
-
134
- ---
135
-
136
- ### `/cleanup` - Branch Cleanup
137
-
138
- **Purpose**: Safely delete merged branches.
139
-
140
- **What it does**:
141
- - Lists merged branches
142
- - Excludes current branch, base branches (main/develop)
143
- - Confirms before deletion
144
- - Optional remote deletion (`--remote` flag)
145
- - Protected branch safety
146
-
147
- ---
148
-
149
- ### `/audit` - Security & Quality Audit (Coming Soon)
150
-
151
- **Purpose**: Scan for security issues and quality problems.
152
-
153
- **Planned features**:
154
- - Scan for hardcoded secrets/credentials
155
- - Check for common vulnerabilities (SQL injection, XSS, CSRF)
156
- - Analyze dependencies for known CVEs
157
- - Verify input validation
158
- - Check file permissions
159
-
160
- ---
161
-
162
- ### `/stats` - Project Statistics (Coming Soon)
163
-
164
- **Purpose**: Show project health metrics.
165
-
166
- **Planned features**:
167
- - Lines of code by language
168
- - Test coverage percentage
169
- - Git activity with agent attribution
170
- - Complexity metrics
171
- - Dependency count
172
- - Health score
173
-
174
- ---
175
-
176
- ## Use Cases
177
-
178
- ### Solo Developer with AI Agent
179
- **Install**: `lite-kits add --recommended` (includes dev-kit)
180
- **Use**: `/orient` at start of every session, `/commit` and `/pr` for git workflow
181
-
182
- ### Pair Programming with Claude Code
183
- **Install**: `lite-kits add --recommended`
184
- **Use**: `/orient` → `/review` → `/commit` → `/pr` workflow
185
-
186
- ### Security-Focused Project
187
- **Install**: `lite-kits add --kit dev`
188
- **Use**: `/audit` regularly for security scans (when implemented)
189
-
190
- ---
191
-
192
- ## Configuration
193
-
194
- No configuration needed - works out of the box.
195
-
196
- **Optional customization**:
197
- - Edit `.github/copilot-instructions.md` - Affects `/orient` output
198
- - Edit `.specify/memory/constitution.md` - Project principles for `/review`
199
-
200
- ---
201
-
202
- ## Dependencies
203
-
204
- **None** - dev-kit is standalone.
205
-
206
- **Optional pairing**: Works great with multiagent-kit for team coordination.
207
-
208
- ---
209
-
210
- ## Compatibility
211
-
212
- - ✅ **Agents**: Claude Code, GitHub Copilot
213
- - ✅ **Platforms**: Linux, macOS, Windows
214
- - ✅ **Shells**: Bash, PowerShell
215
- - ✅ **Vanilla safe**: Only adds new files, never modifies existing
216
-
217
- ---
218
-
219
- ## Uninstall
220
-
221
- ```bash
222
- lite-kits remove --kit dev
223
- ```
224
-
225
- Removes:
226
- - `.claude/commands/{orient,commit,pr,review,cleanup,audit,stats}.md`
227
- - `.github/prompts/{orient,commit,pr,review,cleanup,audit,stats}.prompt.md`
228
-
229
- ---
230
-
231
- ## Future Enhancements
232
-
233
- Considering for dev-kit:
234
- - `/docs` - Generate/update documentation
235
- - `/history` - Show project timeline
236
- - `/dependencies` - Dependency analysis
237
- - `/performance` - Performance profiling
238
- - `/status` - Optimized git status command
239
- - Template library (api, cli, library, frontend feature templates)
240
-
241
- Suggest more in [GitHub Discussions](https://github.com/tmorgan181/lite-kits/discussions).
1
+ # Dev Kit
2
+
3
+ **Status**: ✅ Recommended (Default)
4
+
5
+ Essential development utilities for solo developers using spec-kit. Combines project management commands with git workflow automation.
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
+ | `/commit` | ✅ | ✅ | Smart commit with staging and message generation |
15
+ | `/pr` | ✅ | ✅ | Pull request creation with auto-push |
16
+ | `/review` | ✅ | ✅ | Code review helper for staged changes |
17
+ | `/cleanup` | ✅ | ✅ | Safe branch cleanup (delete merged branches) |
18
+ | `/audit` | 🚧 | 🚧 | Security & quality audit (coming soon) |
19
+ | `/stats` | 🚧 | 🚧 | Project statistics (coming soon) |
20
+
21
+ ✅ = Implemented | 🚧 = Coming Soon
22
+
23
+ ## Installation
24
+
25
+ ### As recommended kit (default):
26
+ ```bash
27
+ lite-kits add # Installs dev-kit
28
+ ```
29
+
30
+ ### Individually:
31
+ ```bash
32
+ lite-kits add --kit dev
33
+ ```
34
+
35
+ ## What Gets Installed
36
+
37
+ ```
38
+ your-project/
39
+ ├── .claude/commands/ # If Claude Code detected
40
+ │ ├── orient.md # ✅ Essential!
41
+ │ ├── commit.md # ✅ Smart commits
42
+ │ ├── pr.md # ✅ PR creation
43
+ │ ├── review.md # ✅ Code review
44
+ │ ├── cleanup.md # ✅ Branch cleanup
45
+ │ ├── audit.md # 🚧 Coming Soon
46
+ │ └── stats.md # 🚧 Coming Soon
47
+ └── .github/prompts/ # If GitHub Copilot detected
48
+ ├── orient.prompt.md # ✅ Essential!
49
+ ├── commit.prompt.md # ✅ Smart commits
50
+ ├── pr.prompt.md # ✅ PR creation
51
+ ├── review.prompt.md # ✅ Code review
52
+ ├── cleanup.prompt.md # ✅ Branch cleanup
53
+ ├── audit.prompt.md # 🚧 Coming Soon
54
+ └── stats.prompt.md # 🚧 Coming Soon
55
+ ```
56
+
57
+ **Note**: Vanilla spec-kit files are **never modified** - only new files are added.
58
+
59
+ ## Commands
60
+
61
+ ### `/orient` - Agent Orientation ⭐ ESSENTIAL
62
+
63
+ **Purpose**: Help AI agents quickly understand project context before starting work.
64
+
65
+ **What it does**:
66
+ 1. Detects installed kits
67
+ 2. Determines agent role
68
+ 3. Reads project documentation (`.github/copilot-instructions.md`, `.specify/memory/constitution.md`)
69
+ 4. Checks current git state (branch, recent commits, changes)
70
+ 5. Reviews active spec work
71
+ 6. Outputs concise summary (~150 words max)
72
+
73
+ **Example usage**:
74
+ ```
75
+ /orient
76
+
77
+ ## Orientation Complete
78
+
79
+ **Installed Kits**: dev
80
+
81
+ **I am**: claude-sonnet-4.5 @ Claude Code (Primary)
82
+ **Project**: Lite-kits - Lightweight enhancement kits for spec-driven development
83
+ **Stack**: Python 3.11+, typer, rich
84
+ **Branch**: develop
85
+ **Recent work**: Merged PR #16 (kit refactor)
86
+ **Uncommitted changes**: 12 files
87
+ **Active feature**: None
88
+ **Coordination**: Solo work
89
+
90
+ **Next suggested action**: Review uncommitted changes with /review
91
+ ```
92
+
93
+ **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.
94
+
95
+ ---
96
+
97
+ ### `/commit` - Smart Commit
98
+
99
+ **Purpose**: Intelligent commit workflow with staging proposals and message generation.
100
+
101
+ **What it does**:
102
+ - Analyzes unstaged changes
103
+ - Proposes files to stage
104
+ - Generates conventional commit message
105
+ - Shows combined staging + message for approval
106
+ - Supports multi-commit suggestions for large changesets
107
+
108
+ ---
109
+
110
+ ### `/pr` - Pull Request Creation
111
+
112
+ **Purpose**: Create pull request with automatic branch push.
113
+
114
+ **What it does**:
115
+ - Checks for existing PR (prevents duplicates)
116
+ - Pushes current branch to remote
117
+ - Generates PR description from commits
118
+ - Creates PR via `gh pr create`
119
+ - Shows PR URL when complete
120
+
121
+ ---
122
+
123
+ ### `/review` - Code Review
124
+
125
+ **Purpose**: Review staged changes against project conventions and best practices.
126
+
127
+ **What it does**:
128
+ - Analyzes staged changes (`git diff --staged`)
129
+ - Checks against constitution principles
130
+ - Identifies common code smells
131
+ - Suggests improvements
132
+ - Verifies test coverage
133
+
134
+ ---
135
+
136
+ ### `/cleanup` - Branch Cleanup
137
+
138
+ **Purpose**: Safely delete merged branches.
139
+
140
+ **What it does**:
141
+ - Lists merged branches
142
+ - Excludes current branch, base branches (main/develop)
143
+ - Confirms before deletion
144
+ - Optional remote deletion (`--remote` flag)
145
+ - Protected branch safety
146
+
147
+ ---
148
+
149
+ ### `/audit` - Security & Quality Audit (Coming Soon)
150
+
151
+ **Purpose**: Scan for security issues and quality problems.
152
+
153
+ **Planned features**:
154
+ - Scan for hardcoded secrets/credentials
155
+ - Check for common vulnerabilities (SQL injection, XSS, CSRF)
156
+ - Analyze dependencies for known CVEs
157
+ - Verify input validation
158
+ - Check file permissions
159
+
160
+ ---
161
+
162
+ ### `/stats` - Project Statistics (Coming Soon)
163
+
164
+ **Purpose**: Show project health metrics.
165
+
166
+ **Planned features**:
167
+ - Lines of code by language
168
+ - Test coverage percentage
169
+ - Git activity with agent attribution
170
+ - Complexity metrics
171
+ - Dependency count
172
+ - Health score
173
+
174
+ ---
175
+
176
+ ## Use Cases
177
+
178
+ ### Solo Developer with AI Agent
179
+ **Install**: `lite-kits add` (includes dev-kit)
180
+ **Use**: `/orient` at start of every session, `/commit` and `/pr` for git workflow
181
+
182
+ ### Pair Programming with Claude Code
183
+ **Install**: `lite-kits add`
184
+ **Use**: `/orient` → `/review` → `/commit` → `/pr` workflow
185
+
186
+ ### Security-Focused Project
187
+ **Install**: `lite-kits add --kit dev`
188
+ **Use**: `/audit` regularly for security scans (when implemented)
189
+
190
+ ---
191
+
192
+ ## Configuration
193
+
194
+ No configuration needed - works out of the box.
195
+
196
+ **Optional customization**:
197
+ - Edit `.github/copilot-instructions.md` - Affects `/orient` output
198
+ - Edit `.specify/memory/constitution.md` - Project principles for `/review`
199
+
200
+ ---
201
+
202
+ ## Dependencies
203
+
204
+ **None** - dev-kit is standalone.
205
+
206
+ **Optional pairing**: Works great with multiagent-kit for team coordination.
207
+
208
+ ---
209
+
210
+ ## Compatibility
211
+
212
+ - ✅ **Agents**: Claude Code, GitHub Copilot
213
+ - ✅ **Platforms**: Linux, macOS, Windows
214
+ - ✅ **Shells**: Bash, PowerShell
215
+ - ✅ **Vanilla safe**: Only adds new files, never modifies existing
216
+
217
+ ---
218
+
219
+ ## Uninstall
220
+
221
+ ```bash
222
+ lite-kits remove --kit dev
223
+ ```
224
+
225
+ Removes:
226
+ - `.claude/commands/{orient,commit,pr,review,cleanup,audit,stats}.md`
227
+ - `.github/prompts/{orient,commit,pr,review,cleanup,audit,stats}.prompt.md`
228
+
229
+ ---
230
+
231
+ ## Future Enhancements
232
+
233
+ Considering for dev-kit:
234
+ - `/docs` - Generate/update documentation
235
+ - `/history` - Show project timeline
236
+ - `/dependencies` - Dependency analysis
237
+ - `/performance` - Performance profiling
238
+ - `/status` - Optimized git status command
239
+ - Template library (api, cli, library, frontend feature templates)
240
+
241
+ Suggest more in [GitHub Discussions](https://github.com/tmorgan181/lite-kits/discussions).