lite-kits 0.1.0__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 (48) hide show
  1. lite_kits/__init__.py +61 -9
  2. lite_kits/cli.py +788 -262
  3. lite_kits/core/__init__.py +19 -0
  4. lite_kits/core/banner.py +160 -0
  5. lite_kits/core/conflict_checker.py +115 -0
  6. lite_kits/core/detector.py +140 -0
  7. lite_kits/core/installer.py +322 -0
  8. lite_kits/core/manifest.py +146 -0
  9. lite_kits/core/validator.py +146 -0
  10. lite_kits/kits/README.md +14 -15
  11. lite_kits/kits/dev/README.md +241 -0
  12. lite_kits/kits/dev/commands/.claude/audit.md +143 -0
  13. lite_kits/kits/{git/claude/commands → dev/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 +30 -48
  16. lite_kits/kits/{git/claude/commands → dev/commands/.claude}/pr.md +1 -1
  17. lite_kits/kits/dev/commands/.claude/review.md +202 -0
  18. lite_kits/kits/dev/commands/.claude/stats.md +162 -0
  19. lite_kits/kits/dev/commands/.github/audit.prompt.md +143 -0
  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/{project/github/prompts → dev/commands/.github}/orient.prompt.md +34 -48
  23. lite_kits/kits/{git/github/prompts → dev/commands/.github}/pr.prompt.md +1 -1
  24. lite_kits/kits/dev/commands/.github/review.prompt.md +202 -0
  25. lite_kits/kits/dev/commands/.github/stats.prompt.md +163 -0
  26. lite_kits/kits/kits.yaml +497 -0
  27. lite_kits/kits/multiagent/README.md +28 -17
  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 -281
  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.0.dist-info → lite_kits-0.3.1.dist-info}/licenses/LICENSE +21 -21
  40. lite_kits/installer.py +0 -417
  41. lite_kits/kits/git/README.md +0 -374
  42. lite_kits/kits/git/scripts/bash/get-git-context.sh +0 -208
  43. lite_kits/kits/git/scripts/powershell/Get-GitContext.ps1 +0 -242
  44. lite_kits/kits/project/README.md +0 -244
  45. lite_kits-0.1.0.dist-info/METADATA +0 -415
  46. lite_kits-0.1.0.dist-info/RECORD +0 -31
  47. {lite_kits-0.1.0.dist-info → lite_kits-0.3.1.dist-info}/WHEEL +0 -0
  48. {lite_kits-0.1.0.dist-info → lite_kits-0.3.1.dist-info}/entry_points.txt +0 -0
@@ -1,281 +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, Cursor) 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
- ```
126
- docs: Update API documentation for auth endpoints
127
-
128
- via claude-opus-4 @ cursor
129
- ```
130
-
131
- ## Multi-Agent Coordination
132
-
133
- ### When Multiple Agents Work on Same Feature
134
-
135
- **Use git worktrees** for parallel development:
136
- ```bash
137
- # Agent 1: Work on authentication
138
- git worktree add ../feature-auth-backend 003-user-auth
139
-
140
- # Agent 2: Work on frontend
141
- git worktree add ../feature-auth-frontend 003-user-auth
142
- ```
143
-
144
- See [git-worktrees-protocol.md](./git-worktrees-protocol.md) for details.
145
-
146
- ### Handoff Between Agents
147
-
148
- Create handoff document in collaboration directory:
149
- ```markdown
150
- # specs/003-user-auth/collaboration/active/decisions/handoff-to-copilot.md
151
-
152
- ## Handoff to GitHub Copilot
153
-
154
- **From**: Claude Code
155
- **To**: GitHub Copilot CLI
156
- **Date**: 2025-10-06
157
-
158
- ### Context
159
- I've implemented the backend authentication. Frontend integration needed.
160
-
161
- ### What's Done
162
- - Backend API endpoints (POST /login, POST /logout, GET /session)
163
- - Password hashing with bcrypt
164
- - Session management with JWT
165
- - Comprehensive tests (94% coverage)
166
-
167
- ### What's Needed
168
- - Frontend login form component
169
- - Session state management
170
- - Protected route wrapper
171
- - Logout button integration
172
-
173
- ### Files to Create
174
- - src/components/LoginForm.tsx
175
- - src/hooks/useAuth.ts
176
- - src/components/ProtectedRoute.tsx
177
-
178
- ### Reference
179
- - API docs: specs/003-user-auth/contracts/auth-api.yaml
180
- - Session log: collaboration/active/sessions/2025-10-06-claude-backend.md
181
- ```
182
-
183
- ## PR Checklist for AI Agents
184
-
185
- Before creating PR, ensure:
186
-
187
- - [ ] All tests passing locally
188
- - [ ] Code follows project conventions (see constitution.md)
189
- - [ ] Session summary created in collaboration/active/sessions/
190
- - [ ] Commit messages include agent attribution
191
- - [ ] No secrets or credentials committed
192
- - [ ] Documentation updated if needed
193
- - [ ] Handoff document created if needed
194
-
195
- ## Special Cases
196
-
197
- ### Emergency Fixes
198
-
199
- For critical bugs, streamlined process:
200
- ```bash
201
- # Fix immediately on feature branch
202
- git commit -m "fix: Critical security patch for auth bypass
203
-
204
- via claude-sonnet-4.5 @ claude-code"
205
-
206
- # Push directly (skip PR if authorized)
207
- git push origin 003-user-auth
208
- ```
209
-
210
- ### Constitution Conflicts
211
-
212
- If your work conflicts with constitution:
213
- 1. **STOP** - Do not proceed with PR
214
- 2. Create issue describing conflict
215
- 3. Tag human maintainers for decision
216
- 4. Wait for constitution amendment or spec adjustment
217
-
218
- ## CI/CD Integration
219
-
220
- **Automated checks** run on all PRs:
221
- - Test suite execution
222
- - Code coverage thresholds
223
- - Linting and formatting
224
- - Agent attribution detection (extracts model info)
225
- - Constitution compliance checks
226
-
227
- **Agent-specific checks**:
228
- - Verify commit attribution format
229
- - Check for collaboration directory updates
230
- - Validate session summaries exist
231
-
232
- ## Review Process
233
-
234
- **For AI-generated PRs**:
235
- 1. Automated CI checks (must pass)
236
- 2. Human review for:
237
- - Architectural decisions
238
- - Security implications
239
- - UX considerations
240
- 3. Optional: Other AI agents for code quality
241
-
242
- **Merge criteria**:
243
- - All CI checks passing
244
- - At least one human approval (for non-trivial changes)
245
- - No unresolved conversations
246
- - Collaboration directory updated
247
-
248
- ## Post-Merge
249
-
250
- After PR merged:
251
- ```bash
252
- # Archive session
253
- mv specs/NNN-feature/collaboration/active/sessions/YYYY-MM-DD-*.md \
254
- specs/NNN-feature/collaboration/archive/YYYY-MM/
255
-
256
- # Update status
257
- echo "✓ Feature complete and merged" >> \
258
- specs/NNN-feature/collaboration/results/artifacts/completion-summary.md
259
- ```
260
-
261
- ## Troubleshooting
262
-
263
- **PR creation fails**:
264
- - Check branch is pushed to remote
265
- - Verify GitHub CLI authenticated
266
- - Ensure base branch exists
267
-
268
- **CI checks fail**:
269
- - Pull latest from base branch
270
- - Run tests locally
271
- - Check for merge conflicts
272
-
273
- **Attribution missing**:
274
- - Amend last commit to add attribution
275
- - Force push (if not yet reviewed)
276
-
277
- ## Resources
278
-
279
- - GitHub CLI docs: https://cli.github.com/manual/
280
- - Git worktrees: [git-worktrees-protocol.md](./git-worktrees-protocol.md)
281
- - 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)