lite-kits 0.1.1__py3-none-any.whl → 0.3.2__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 +782 -189
  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 +177 -0
  7. lite_kits/core/installer.py +242 -351
  8. lite_kits/core/manifest.py +146 -146
  9. lite_kits/core/validator.py +183 -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.2.dist-info/METADATA +259 -0
  38. lite_kits-0.3.2.dist-info/RECORD +41 -0
  39. {lite_kits-0.1.1.dist-info → lite_kits-0.3.2.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.2.dist-info}/WHEEL +0 -0
  63. {lite_kits-0.1.1.dist-info → lite_kits-0.3.2.dist-info}/entry_points.txt +0 -0
@@ -1,275 +1,275 @@
1
- # AI Agent Pull Request Workflow Guide
2
-
3
- **Version**: 1.0.0
4
- **Last Updated**: 2025-10-06
5
-
6
- ## Purpose
7
-
8
- This guide defines the workflow for AI agents (Claude Code, GitHub Copilot) when creating pull requests in spec-kit projects with multiagent coordination.
9
-
10
- ## Core Principles
11
-
12
- 1. **Commit your own work**: Each agent commits and pushes their own changes
13
- 2. **Attribute properly**: Include model and interface information in commits
14
- 3. **Coordinate via collaboration/**: Use feature collaboration directories for handoffs
15
- 4. **Test before PR**: Run validation locally before creating pull request
16
-
17
- ## Pull Request Workflow
18
-
19
- ### Step 1: Complete Your Work
20
-
21
- ```bash
22
- # Ensure all changes are committed
23
- git status
24
-
25
- # Run tests if available
26
- npm test || pytest || cargo test
27
-
28
- # Validate against constitution
29
- lite-kits validate
30
- ```
31
-
32
- ### Step 2: Update Collaboration Directory
33
-
34
- Create a session summary:
35
- ```
36
- specs/NNN-feature/collaboration/active/sessions/YYYY-MM-DD-agent-summary.md
37
-
38
- ## Session Summary
39
- **Agent**: Claude Code (claude-sonnet-4.5)
40
- **Date**: 2025-10-06
41
- **Duration**: 45 minutes
42
-
43
- ### Completed
44
- - Implemented user authentication
45
- - Added password hashing with bcrypt
46
- - Created login/logout endpoints
47
-
48
- ### Files Changed
49
- - src/auth.py (new)
50
- - src/models.py (modified)
51
- - tests/test_auth.py (new)
52
-
53
- ### Tests
54
- - All tests passing (12/12)
55
- - Coverage: 94%
56
-
57
- ### Next Steps
58
- - Review needed on password complexity requirements
59
- - Consider adding 2FA in future iteration
60
- ```
61
-
62
- ### Step 3: Create Pull Request
63
-
64
- **Preferred**: Use GitHub CLI (best for Copilot):
65
- ```bash
66
- gh pr create --title "feat: Add user authentication" --body "$(cat <<'EOF'
67
- ## Summary
68
- - Implemented bcrypt password hashing
69
- - Created login/logout API endpoints
70
- - Added comprehensive test coverage (94%)
71
-
72
- ## Test Plan
73
- - [x] Unit tests passing (12/12)
74
- - [x] Manual testing of login flow
75
- - [x] Password validation tested
76
- - [ ] Security review needed
77
-
78
- ## Related
79
- - Implements: specs/003-user-auth/spec.md
80
- - Session: specs/003-user-auth/collaboration/active/sessions/2025-10-06-claude-auth.md
81
-
82
- 🤖 Generated with spec-kit-multiagent
83
- via claude-sonnet-4.5 @ claude-code
84
- EOF
85
- )"
86
- ```
87
-
88
- **Alternative**: Manual PR creation via web interface
89
-
90
- ### Step 4: Request Review
91
-
92
- Tag appropriate reviewers based on project conventions:
93
- - Human reviewers for architectural decisions
94
- - Other AI agents for code style/coverage checks
95
- - Automated CI for tests and linting
96
-
97
- ## Commit Attribution Format
98
-
99
- **Required format** for AI agent commits:
100
-
101
- ```
102
- <conventional-commit-message>
103
-
104
- <detailed description if needed>
105
-
106
- via <model> @ <interface>
107
- ```
108
-
109
- **Examples**:
110
- ```
111
- feat: Add user authentication with bcrypt
112
-
113
- Implements password hashing, login/logout endpoints,
114
- and session management.
115
-
116
- via claude-sonnet-4.5 @ claude-code
117
- ```
118
-
119
- ```
120
- fix: Resolve race condition in async handlers
121
-
122
- via gpt-4 @ github-copilot-cli
123
- ```
124
-
125
- ## Multi-Agent Coordination
126
-
127
- ### When Multiple Agents Work on Same Feature
128
-
129
- **Use git worktrees** for parallel development:
130
- ```bash
131
- # Agent 1: Work on authentication
132
- git worktree add ../feature-auth-backend 003-user-auth
133
-
134
- # Agent 2: Work on frontend
135
- git worktree add ../feature-auth-frontend 003-user-auth
136
- ```
137
-
138
- See [git-worktrees-protocol.md](./git-worktrees-protocol.md) for details.
139
-
140
- ### Handoff Between Agents
141
-
142
- Create handoff document in collaboration directory:
143
- ```markdown
144
- # specs/003-user-auth/collaboration/active/decisions/handoff-to-copilot.md
145
-
146
- ## Handoff to GitHub Copilot
147
-
148
- **From**: Claude Code
149
- **To**: GitHub Copilot CLI
150
- **Date**: 2025-10-06
151
-
152
- ### Context
153
- I've implemented the backend authentication. Frontend integration needed.
154
-
155
- ### What's Done
156
- - Backend API endpoints (POST /login, POST /logout, GET /session)
157
- - Password hashing with bcrypt
158
- - Session management with JWT
159
- - Comprehensive tests (94% coverage)
160
-
161
- ### What's Needed
162
- - Frontend login form component
163
- - Session state management
164
- - Protected route wrapper
165
- - Logout button integration
166
-
167
- ### Files to Create
168
- - src/components/LoginForm.tsx
169
- - src/hooks/useAuth.ts
170
- - src/components/ProtectedRoute.tsx
171
-
172
- ### Reference
173
- - API docs: specs/003-user-auth/contracts/auth-api.yaml
174
- - Session log: collaboration/active/sessions/2025-10-06-claude-backend.md
175
- ```
176
-
177
- ## PR Checklist for AI Agents
178
-
179
- Before creating PR, ensure:
180
-
181
- - [ ] All tests passing locally
182
- - [ ] Code follows project conventions (see constitution.md)
183
- - [ ] Session summary created in collaboration/active/sessions/
184
- - [ ] Commit messages include agent attribution
185
- - [ ] No secrets or credentials committed
186
- - [ ] Documentation updated if needed
187
- - [ ] Handoff document created if needed
188
-
189
- ## Special Cases
190
-
191
- ### Emergency Fixes
192
-
193
- For critical bugs, streamlined process:
194
- ```bash
195
- # Fix immediately on feature branch
196
- git commit -m "fix: Critical security patch for auth bypass
197
-
198
- via claude-sonnet-4.5 @ claude-code"
199
-
200
- # Push directly (skip PR if authorized)
201
- git push origin 003-user-auth
202
- ```
203
-
204
- ### Constitution Conflicts
205
-
206
- If your work conflicts with constitution:
207
- 1. **STOP** - Do not proceed with PR
208
- 2. Create issue describing conflict
209
- 3. Tag human maintainers for decision
210
- 4. Wait for constitution amendment or spec adjustment
211
-
212
- ## CI/CD Integration
213
-
214
- **Automated checks** run on all PRs:
215
- - Test suite execution
216
- - Code coverage thresholds
217
- - Linting and formatting
218
- - Agent attribution detection (extracts model info)
219
- - Constitution compliance checks
220
-
221
- **Agent-specific checks**:
222
- - Verify commit attribution format
223
- - Check for collaboration directory updates
224
- - Validate session summaries exist
225
-
226
- ## Review Process
227
-
228
- **For AI-generated PRs**:
229
- 1. Automated CI checks (must pass)
230
- 2. Human review for:
231
- - Architectural decisions
232
- - Security implications
233
- - UX considerations
234
- 3. Optional: Other AI agents for code quality
235
-
236
- **Merge criteria**:
237
- - All CI checks passing
238
- - At least one human approval (for non-trivial changes)
239
- - No unresolved conversations
240
- - Collaboration directory updated
241
-
242
- ## Post-Merge
243
-
244
- After PR merged:
245
- ```bash
246
- # Archive session
247
- mv specs/NNN-feature/collaboration/active/sessions/YYYY-MM-DD-*.md \
248
- specs/NNN-feature/collaboration/archive/YYYY-MM/
249
-
250
- # Update status
251
- echo "✓ Feature complete and merged" >> \
252
- specs/NNN-feature/collaboration/results/artifacts/completion-summary.md
253
- ```
254
-
255
- ## Troubleshooting
256
-
257
- **PR creation fails**:
258
- - Check branch is pushed to remote
259
- - Verify GitHub CLI authenticated
260
- - Ensure base branch exists
261
-
262
- **CI checks fail**:
263
- - Pull latest from base branch
264
- - Run tests locally
265
- - Check for merge conflicts
266
-
267
- **Attribution missing**:
268
- - Amend last commit to add attribution
269
- - Force push (if not yet reviewed)
270
-
271
- ## Resources
272
-
273
- - GitHub CLI docs: https://cli.github.com/manual/
274
- - Git worktrees: [git-worktrees-protocol.md](./git-worktrees-protocol.md)
275
- - Constitution: [constitution.md](./constitution.md)
1
+ # AI Agent Pull Request Workflow Guide
2
+
3
+ **Version**: 1.0.0
4
+ **Last Updated**: 2025-10-06
5
+
6
+ ## Purpose
7
+
8
+ This guide defines the workflow for AI agents (Claude Code, GitHub Copilot) when creating pull requests in spec-kit projects with multiagent coordination.
9
+
10
+ ## Core Principles
11
+
12
+ 1. **Commit your own work**: Each agent commits and pushes their own changes
13
+ 2. **Attribute properly**: Include model and interface information in commits
14
+ 3. **Coordinate via collaboration/**: Use feature collaboration directories for handoffs
15
+ 4. **Test before PR**: Run validation locally before creating pull request
16
+
17
+ ## Pull Request Workflow
18
+
19
+ ### Step 1: Complete Your Work
20
+
21
+ ```bash
22
+ # Ensure all changes are committed
23
+ git status
24
+
25
+ # Run tests if available
26
+ npm test || pytest || cargo test
27
+
28
+ # Validate against constitution
29
+ lite-kits validate
30
+ ```
31
+
32
+ ### Step 2: Update Collaboration Directory
33
+
34
+ Create a session summary:
35
+ ```
36
+ specs/NNN-feature/collaboration/active/sessions/YYYY-MM-DD-agent-summary.md
37
+
38
+ ## Session Summary
39
+ **Agent**: Claude Code (claude-sonnet-4.5)
40
+ **Date**: 2025-10-06
41
+ **Duration**: 45 minutes
42
+
43
+ ### Completed
44
+ - Implemented user authentication
45
+ - Added password hashing with bcrypt
46
+ - Created login/logout endpoints
47
+
48
+ ### Files Changed
49
+ - src/auth.py (new)
50
+ - src/models.py (modified)
51
+ - tests/test_auth.py (new)
52
+
53
+ ### Tests
54
+ - All tests passing (12/12)
55
+ - Coverage: 94%
56
+
57
+ ### Next Steps
58
+ - Review needed on password complexity requirements
59
+ - Consider adding 2FA in future iteration
60
+ ```
61
+
62
+ ### Step 3: Create Pull Request
63
+
64
+ **Preferred**: Use GitHub CLI (best for Copilot):
65
+ ```bash
66
+ gh pr create --title "feat: Add user authentication" --body "$(cat <<'EOF'
67
+ ## Summary
68
+ - Implemented bcrypt password hashing
69
+ - Created login/logout API endpoints
70
+ - Added comprehensive test coverage (94%)
71
+
72
+ ## Test Plan
73
+ - [x] Unit tests passing (12/12)
74
+ - [x] Manual testing of login flow
75
+ - [x] Password validation tested
76
+ - [ ] Security review needed
77
+
78
+ ## Related
79
+ - Implements: specs/003-user-auth/spec.md
80
+ - Session: specs/003-user-auth/collaboration/active/sessions/2025-10-06-claude-auth.md
81
+
82
+ 🤖 Generated with spec-kit-multiagent
83
+ via claude-sonnet-4.5 @ claude-code
84
+ EOF
85
+ )"
86
+ ```
87
+
88
+ **Alternative**: Manual PR creation via web interface
89
+
90
+ ### Step 4: Request Review
91
+
92
+ Tag appropriate reviewers based on project conventions:
93
+ - Human reviewers for architectural decisions
94
+ - Other AI agents for code style/coverage checks
95
+ - Automated CI for tests and linting
96
+
97
+ ## Commit Attribution Format
98
+
99
+ **Required format** for AI agent commits:
100
+
101
+ ```
102
+ <conventional-commit-message>
103
+
104
+ <detailed description if needed>
105
+
106
+ via <model> @ <interface>
107
+ ```
108
+
109
+ **Examples**:
110
+ ```
111
+ feat: Add user authentication with bcrypt
112
+
113
+ Implements password hashing, login/logout endpoints,
114
+ and session management.
115
+
116
+ via claude-sonnet-4.5 @ claude-code
117
+ ```
118
+
119
+ ```
120
+ fix: Resolve race condition in async handlers
121
+
122
+ via gpt-4 @ github-copilot-cli
123
+ ```
124
+
125
+ ## Multi-Agent Coordination
126
+
127
+ ### When Multiple Agents Work on Same Feature
128
+
129
+ **Use git worktrees** for parallel development:
130
+ ```bash
131
+ # Agent 1: Work on authentication
132
+ git worktree add ../feature-auth-backend 003-user-auth
133
+
134
+ # Agent 2: Work on frontend
135
+ git worktree add ../feature-auth-frontend 003-user-auth
136
+ ```
137
+
138
+ See [git-worktrees-protocol.md](./git-worktrees-protocol.md) for details.
139
+
140
+ ### Handoff Between Agents
141
+
142
+ Create handoff document in collaboration directory:
143
+ ```markdown
144
+ # specs/003-user-auth/collaboration/active/decisions/handoff-to-copilot.md
145
+
146
+ ## Handoff to GitHub Copilot
147
+
148
+ **From**: Claude Code
149
+ **To**: GitHub Copilot CLI
150
+ **Date**: 2025-10-06
151
+
152
+ ### Context
153
+ I've implemented the backend authentication. Frontend integration needed.
154
+
155
+ ### What's Done
156
+ - Backend API endpoints (POST /login, POST /logout, GET /session)
157
+ - Password hashing with bcrypt
158
+ - Session management with JWT
159
+ - Comprehensive tests (94% coverage)
160
+
161
+ ### What's Needed
162
+ - Frontend login form component
163
+ - Session state management
164
+ - Protected route wrapper
165
+ - Logout button integration
166
+
167
+ ### Files to Create
168
+ - src/components/LoginForm.tsx
169
+ - src/hooks/useAuth.ts
170
+ - src/components/ProtectedRoute.tsx
171
+
172
+ ### Reference
173
+ - API docs: specs/003-user-auth/contracts/auth-api.yaml
174
+ - Session log: collaboration/active/sessions/2025-10-06-claude-backend.md
175
+ ```
176
+
177
+ ## PR Checklist for AI Agents
178
+
179
+ Before creating PR, ensure:
180
+
181
+ - [ ] All tests passing locally
182
+ - [ ] Code follows project conventions (see constitution.md)
183
+ - [ ] Session summary created in collaboration/active/sessions/
184
+ - [ ] Commit messages include agent attribution
185
+ - [ ] No secrets or credentials committed
186
+ - [ ] Documentation updated if needed
187
+ - [ ] Handoff document created if needed
188
+
189
+ ## Special Cases
190
+
191
+ ### Emergency Fixes
192
+
193
+ For critical bugs, streamlined process:
194
+ ```bash
195
+ # Fix immediately on feature branch
196
+ git commit -m "fix: Critical security patch for auth bypass
197
+
198
+ via claude-sonnet-4.5 @ claude-code"
199
+
200
+ # Push directly (skip PR if authorized)
201
+ git push origin 003-user-auth
202
+ ```
203
+
204
+ ### Constitution Conflicts
205
+
206
+ If your work conflicts with constitution:
207
+ 1. **STOP** - Do not proceed with PR
208
+ 2. Create issue describing conflict
209
+ 3. Tag human maintainers for decision
210
+ 4. Wait for constitution amendment or spec adjustment
211
+
212
+ ## CI/CD Integration
213
+
214
+ **Automated checks** run on all PRs:
215
+ - Test suite execution
216
+ - Code coverage thresholds
217
+ - Linting and formatting
218
+ - Agent attribution detection (extracts model info)
219
+ - Constitution compliance checks
220
+
221
+ **Agent-specific checks**:
222
+ - Verify commit attribution format
223
+ - Check for collaboration directory updates
224
+ - Validate session summaries exist
225
+
226
+ ## Review Process
227
+
228
+ **For AI-generated PRs**:
229
+ 1. Automated CI checks (must pass)
230
+ 2. Human review for:
231
+ - Architectural decisions
232
+ - Security implications
233
+ - UX considerations
234
+ 3. Optional: Other AI agents for code quality
235
+
236
+ **Merge criteria**:
237
+ - All CI checks passing
238
+ - At least one human approval (for non-trivial changes)
239
+ - No unresolved conversations
240
+ - Collaboration directory updated
241
+
242
+ ## Post-Merge
243
+
244
+ After PR merged:
245
+ ```bash
246
+ # Archive session
247
+ mv specs/NNN-feature/collaboration/active/sessions/YYYY-MM-DD-*.md \
248
+ specs/NNN-feature/collaboration/archive/YYYY-MM/
249
+
250
+ # Update status
251
+ echo "✓ Feature complete and merged" >> \
252
+ specs/NNN-feature/collaboration/results/artifacts/completion-summary.md
253
+ ```
254
+
255
+ ## Troubleshooting
256
+
257
+ **PR creation fails**:
258
+ - Check branch is pushed to remote
259
+ - Verify GitHub CLI authenticated
260
+ - Ensure base branch exists
261
+
262
+ **CI checks fail**:
263
+ - Pull latest from base branch
264
+ - Run tests locally
265
+ - Check for merge conflicts
266
+
267
+ **Attribution missing**:
268
+ - Amend last commit to add attribution
269
+ - Force push (if not yet reviewed)
270
+
271
+ ## Resources
272
+
273
+ - GitHub CLI docs: https://cli.github.com/manual/
274
+ - Git worktrees: [git-worktrees-protocol.md](./git-worktrees-protocol.md)
275
+ - Constitution: [constitution.md](./constitution.md)