lite-kits 0.1.0__py3-none-any.whl → 0.1.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 (43) hide show
  1. lite_kits/__init__.py +9 -9
  2. lite_kits/cli.py +170 -155
  3. lite_kits/core/__init__.py +13 -0
  4. lite_kits/core/banner.py +160 -0
  5. lite_kits/{installer.py → core/installer.py} +47 -27
  6. lite_kits/core/manifest.py +146 -0
  7. lite_kits/kits/README.md +9 -10
  8. lite_kits/kits/dev/README.md +241 -0
  9. lite_kits/kits/dev/claude/commands/audit.md +143 -0
  10. lite_kits/kits/dev/claude/commands/cleanup.md +361 -0
  11. lite_kits/kits/dev/claude/commands/commit.md +612 -0
  12. lite_kits/kits/dev/claude/commands/orient.md +146 -0
  13. lite_kits/kits/dev/claude/commands/pr.md +593 -0
  14. lite_kits/kits/dev/claude/commands/review.md +202 -0
  15. lite_kits/kits/dev/claude/commands/stats.md +162 -0
  16. lite_kits/kits/dev/github/prompts/audit.prompt.md +143 -0
  17. lite_kits/kits/dev/github/prompts/cleanup.prompt.md +382 -0
  18. lite_kits/kits/dev/github/prompts/commit.prompt.md +591 -0
  19. lite_kits/kits/dev/github/prompts/orient.prompt.md +150 -0
  20. lite_kits/kits/dev/github/prompts/pr.prompt.md +603 -0
  21. lite_kits/kits/dev/github/prompts/review.prompt.md +202 -0
  22. lite_kits/kits/dev/github/prompts/stats.prompt.md +163 -0
  23. lite_kits/kits/git/README.md +59 -68
  24. lite_kits/kits/git/claude/commands/review.md +202 -0
  25. lite_kits/kits/git/github/prompts/review.prompt.md +202 -0
  26. lite_kits/kits/kits.yaml +180 -0
  27. lite_kits/kits/multiagent/README.md +26 -15
  28. lite_kits/kits/multiagent/memory/pr-workflow-guide.md +1 -7
  29. lite_kits/kits/project/README.md +6 -22
  30. lite_kits/kits/project/claude/commands/audit.md +143 -0
  31. lite_kits/kits/project/claude/commands/orient.md +29 -46
  32. lite_kits/kits/project/claude/commands/review.md +112 -0
  33. lite_kits/kits/project/claude/commands/stats.md +162 -0
  34. lite_kits/kits/project/github/prompts/audit.prompt.md +143 -0
  35. lite_kits/kits/project/github/prompts/orient.prompt.md +33 -46
  36. lite_kits/kits/project/github/prompts/review.prompt.md +112 -0
  37. lite_kits/kits/project/github/prompts/stats.prompt.md +163 -0
  38. {lite_kits-0.1.0.dist-info → lite_kits-0.1.1.dist-info}/METADATA +98 -66
  39. lite_kits-0.1.1.dist-info/RECORD +58 -0
  40. lite_kits-0.1.0.dist-info/RECORD +0 -31
  41. {lite_kits-0.1.0.dist-info → lite_kits-0.1.1.dist-info}/WHEEL +0 -0
  42. {lite_kits-0.1.0.dist-info → lite_kits-0.1.1.dist-info}/entry_points.txt +0 -0
  43. {lite_kits-0.1.0.dist-info → lite_kits-0.1.1.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,612 @@
1
+ ---
2
+ description: Smart commit with agent attribution
3
+ ---
4
+
5
+ # Smart Commit with Agent Attribution
6
+
7
+ **Purpose**: Generate conventional commit messages and add agent attribution for multi-agent tracking.
8
+
9
+ ## Execution Steps
10
+
11
+ Execute the following steps to create a smart commit:
12
+
13
+ ### 1. Analyze Git Status and Propose Staging Plan
14
+
15
+ **CRITICAL**: Always analyze the complete git status and propose a staging plan BEFORE staging anything!
16
+
17
+ ```bash
18
+ # Get complete status - staged, unstaged, and untracked
19
+ git status --short
20
+ ```
21
+
22
+ **Analyze the output**:
23
+ - Lines starting with `M ` or `A ` = Staged files (ready to commit)
24
+ - Lines starting with ` M` = Modified but NOT staged
25
+ - Lines starting with `??` = Untracked files
26
+ - Lines starting with `MM` = Staged AND modified again
27
+
28
+ **Step 1a: Analyze and Present Complete Commit Plan**
29
+
30
+ **IMPORTANT**: Present BOTH staging plan AND commit message in a single prompt. User can approve both, edit staging, edit message, or cancel.
31
+
32
+ **CRITICAL FORMATTING**: Wrap the ENTIRE proposal (staging plan + commit message + approval options) in a markdown code block using triple backticks (```). This ensures proper formatting in the CLI.
33
+
34
+ **Scenario 1: Files already staged**
35
+
36
+ Present the proposal like this (wrapped in code block):
37
+
38
+ ````markdown
39
+ ```
40
+ **📊 Git Status** (on: dev/001-feature-name)
41
+
42
+ **Staged:** 2 files
43
+ **Unstaged:** 1 file
44
+ **Untracked:** 1 file
45
+
46
+ ===========================================================
47
+ **📋 Staging Plan:**
48
+ ===========================================================
49
+
50
+ Files to commit:
51
+ 1. M src/file1.py
52
+ 2. M src/file2.py
53
+
54
+ Excluded from staging:
55
+ M src/unrelated.py (unstaged)
56
+ ?? tests/new_test.py (untracked)
57
+
58
+ ===========================================================
59
+ **💬 Commit Message:**
60
+ ===========================================================
61
+
62
+ feat(001): add feature improvements
63
+
64
+ ## Summary
65
+ Added improvements to src files for better functionality.
66
+
67
+ ## Changes
68
+ - **src/file1.py**: Enhanced feature logic
69
+ - **src/file2.py**: Updated implementation
70
+
71
+ ---
72
+ 🤖 Co-authored with claude sonnet 4.5 @ claude code via vscode
73
+
74
+ ===========================================================
75
+
76
+ **Approve commit?**
77
+ - **y** - Yes, stage files and commit with this message
78
+ - **n** - No, cancel
79
+ - **es** - Edit staging (reply with numbers: e.g., "1 3" or "all")
80
+ - **em** - Edit message (reply with new message)
81
+ ```
82
+ ````
83
+
84
+ **Scenario 2: Nothing staged, propose intelligent staging**
85
+
86
+ Present the proposal like this (wrapped in code block):
87
+
88
+ ````markdown
89
+ ```
90
+ **📊 Git Status** (on: dev/001-feature-name)
91
+
92
+ **Staged:** 0 files
93
+ **Modified:** 3 files
94
+ **Untracked:** 1 file
95
+
96
+ ===========================================================
97
+ **📋 Staging Proposal:**
98
+ ===========================================================
99
+
100
+ Proposed plan: Stage related command files (3 files)
101
+
102
+ Files to stage:
103
+
104
+ 1. M src/commands/pr.md
105
+ → Command update for PR workflow
106
+
107
+ 2. M src/commands/commit.md
108
+ → Related command improvements
109
+
110
+ 3. M src/prompts/pr.prompt.md
111
+ → Matching prompt for GitHub Copilot
112
+
113
+ Excluded from staging:
114
+
115
+ ?? docs/new_feature.md (unrelated documentation)
116
+
117
+ Rationale: Logical commit unit - these files represent coordinated
118
+ command workflow improvements that should be committed together to
119
+ maintain consistency across Claude Code and GitHub Copilot.
120
+
121
+ ===========================================================
122
+ **💬 Commit Message:**
123
+ ===========================================================
124
+
125
+ feat(004): enhance PR and commit command workflows
126
+
127
+ ## Summary
128
+ Updated PR and commit commands with better user experience and
129
+ cross-platform consistency between Claude Code and GitHub Copilot.
130
+
131
+ ## Changes
132
+ - **src/commands/pr.md**:
133
+ - Added base branch detection
134
+ - Enhanced user confirmation prompts
135
+
136
+ - **src/commands/commit.md**:
137
+ - Improved staging proposal format
138
+ - Added better examples
139
+
140
+ - **src/prompts/pr.prompt.md**:
141
+ - Mirrored Claude Code improvements
142
+ - PowerShell-specific enhancements
143
+
144
+ ---
145
+ 🤖 Co-authored with claude sonnet 4.5 @ claude code via vscode
146
+
147
+ ===========================================================
148
+
149
+ **Approve commit?**
150
+ - **y** - Yes, stage files and commit with this message
151
+ - **n** - No, cancel
152
+ - **es** - Edit staging (reply with numbers: e.g., "1 3" or "all")
153
+ - **em** - Edit message (reply with new message)
154
+ ```
155
+ ````
156
+
157
+ **Scenario 3: Mixed state (some staged, related unstaged)**
158
+
159
+ Present the proposal like this (wrapped in code block):
160
+
161
+ ````markdown
162
+ ```
163
+ **📊 Git Status** (on: dev/001-feature-name)
164
+
165
+ **Staged:** 1 file
166
+ **Modified:** 3 files
167
+ **Untracked:** 1 file
168
+
169
+ ===========================================================
170
+ **📋 Staging Proposal:**
171
+ ===========================================================
172
+
173
+ Proposed plan: Add related command files (4 files total)
174
+
175
+ Already staged:
176
+
177
+ M src/commands/pr.md
178
+
179
+ Related unstaged files to add:
180
+
181
+ 1. M src/commands/commit.md (both are command files)
182
+ 2. M src/prompts/pr.prompt.md (pr-related)
183
+ 3. M src/prompts/commit.prompt.md (commit-related)
184
+
185
+ Excluded from staging:
186
+
187
+ ?? random_file.txt (unrelated)
188
+
189
+ Rationale: Creates cohesive commit for command improvements.
190
+
191
+ ===========================================================
192
+ **💬 Commit Message:**
193
+ ===========================================================
194
+
195
+ feat(004): improve command workflow consistency
196
+
197
+ ## Summary
198
+ Enhanced PR and commit commands with consistent UX across both
199
+ Claude Code and GitHub Copilot interfaces.
200
+
201
+ ## Changes
202
+ - **src/commands/pr.md**: Added base branch detection
203
+ - **src/commands/commit.md**: Improved staging workflow
204
+ - **src/prompts/pr.prompt.md**: PowerShell version of PR enhancements
205
+ - **src/prompts/commit.prompt.md**: PowerShell version of commit improvements
206
+
207
+ ---
208
+ 🤖 Co-authored with claude sonnet 4.5 @ claude code via vscode
209
+
210
+ ===========================================================
211
+
212
+ **Approve commit?**
213
+ - **y** - Yes, add related files and commit with this message
214
+ - **s** - Use only already-staged files and commit
215
+ - **es** - Edit staging (reply with numbers: e.g., "1 3" or "all")
216
+ - **em** - Edit message (reply with new message)
217
+ - **n** - No, cancel
218
+ ```
219
+ ````
220
+
221
+ **Scenario 4: Many changes - propose multiple modular commits**
222
+
223
+ When there are many unrelated changes (10+ files, or changes spanning unrelated features), propose breaking into multiple logical commits.
224
+
225
+ Present the proposal like this (wrapped in code block):
226
+
227
+ ````markdown
228
+ ```
229
+ **📊 Git Status** (on: dev/001-feature-name)
230
+
231
+ **Staged:** 0 files
232
+ **Modified:** 15 files
233
+ **Untracked:** 3 files
234
+
235
+ ===========================================================
236
+ **📋 Multi-Commit Proposal:**
237
+ ===========================================================
238
+
239
+ Detected many changes across different areas. Proposing 3 modular commits:
240
+
241
+ **Commit 1: Git workflow commands** (5 files)
242
+ 1. M src/commands/commit.md
243
+ 2. M src/commands/pr.md
244
+ 3. M src/commands/cleanup.md
245
+ 4. M src/prompts/commit.prompt.md
246
+ 5. M src/prompts/pr.prompt.md
247
+
248
+ Message:
249
+ feat(004): enhance git workflow commands
250
+
251
+ Updated commit, PR, and cleanup commands with better UX
252
+ and cross-platform consistency.
253
+
254
+ ---
255
+
256
+ **Commit 2: Documentation updates** (4 files)
257
+ 6. M docs/ARCHITECTURE.md
258
+ 7. M docs/IMPLEMENTATION-GUIDE.md
259
+ 8. M README.md
260
+ 9. ?? docs/new-guide.md
261
+
262
+ Message:
263
+ docs(004): update documentation for git-kit
264
+
265
+ Added git workflow documentation and updated README
266
+ with new command examples.
267
+
268
+ ---
269
+
270
+ **Commit 3: Status tracking** (2 files)
271
+ 10. M docs/temp/PHASE-1-AUDIT.md
272
+ 11. M docs/temp/kit-implementation-status.md
273
+
274
+ Message:
275
+ chore(004): update implementation status tracking
276
+
277
+ Marked git-kit as complete in status docs.
278
+
279
+ ---
280
+
281
+ **Excluded from commits:**
282
+ M src/experimental/test.py (work in progress)
283
+ M src/debug.log (debug file)
284
+ ?? temp/ (temporary directory)
285
+
286
+ ===========================================================
287
+
288
+ **Approve multi-commit plan?**
289
+ - **y** - Yes, execute all commits in sequence
290
+ - **n** - No, cancel
291
+ - **ec** - Edit commits (specify which commits: e.g., "1 3")
292
+ - **em** - Edit messages (will prompt for each)
293
+ - **single** - Combine into single commit instead
294
+ ```
295
+ ````
296
+
297
+ **Step 1b: Execute staging and commit based on user choice**
298
+
299
+ After user approves (y), execute the plan:
300
+ ```bash
301
+ # Stage files for approved commits
302
+ git add <files-from-plan>
303
+
304
+ # Create commit with approved message
305
+ git commit -m "<message-including-attribution>"
306
+
307
+ # Show result
308
+ git log -1 --oneline
309
+ ```
310
+
311
+ If user edits staging (es) or message (em):
312
+ - Show updated plan
313
+ - Ask for confirmation again
314
+ - Then execute
315
+
316
+ ### 2. Analyze Staged Changes
317
+
318
+ Examine the staged changes to determine:
319
+
320
+ **Change Type** (following Conventional Commits):
321
+ - `feat:` New feature or capability
322
+ - `fix:` Bug fix
323
+ - `refactor:` Code restructuring without behavior change
324
+ - `docs:` Documentation only
325
+ - `test:` Adding or updating tests
326
+ - `chore:` Maintenance (dependencies, config, build)
327
+ - `style:` Formatting, whitespace
328
+ - `perf:` Performance improvements
329
+
330
+ **Scope** (optional):
331
+ - Identify the main area/component affected
332
+ - Examples: `auth`, `api`, `ui`, `cli`, `installer`
333
+
334
+ **Summary**:
335
+ - 1-2 sentences describing what changed
336
+ - Focus on the "what" and "why", not the "how"
337
+
338
+ ### 3. Detect Feature Number
339
+
340
+ **Check for feature number in order of priority**:
341
+
342
+ 1. **From branch name** (highest priority):
343
+ ```bash
344
+ # Get current branch
345
+ git branch --show-current
346
+
347
+ # Extract feature number from patterns like:
348
+ # - dev/001-feature-name → 001
349
+ # - feature/002-auth → 002
350
+ # - 003-bugfix → 003
351
+ ```
352
+
353
+ 2. **From specs directory** (if branch has no number):
354
+ ```bash
355
+ # Look for specs directory with feature number
356
+ ls specs/*/spec.md 2>/dev/null | head -1
357
+
358
+ # Extract from pattern: specs/NNN-feature-name/spec.md → NNN
359
+ ```
360
+
361
+ 3. **Use component name** (fallback):
362
+ - If no feature number found anywhere, use component/scope name
363
+ - Examples: `cli`, `installer`, `git`, `multiagent`
364
+
365
+ **Feature Number Format**:
366
+ - Must be 3 digits: `001`, `002`, `042`, etc.
367
+ - Branch pattern: `dev/NNN-*`, `feature/NNN-*`, `NNN-*`
368
+ - Specs pattern: `specs/NNN-*`
369
+
370
+ ### 4. Generate Commit Message
371
+
372
+ Create a beautiful, structured commit message with feature number and agent attribution:
373
+
374
+ ```
375
+ <type>(NNN): <subject>
376
+
377
+ ## Summary
378
+ <Brief 1-2 sentence overview with enthusiasm>
379
+
380
+ ## Changes
381
+ - **<file/component>**:
382
+ - <specific change>
383
+ - <specific change>
384
+
385
+ - **<file/component>**:
386
+ - <specific change>
387
+
388
+ ## <Additional Section if Relevant>
389
+ <Context, impacts, visual improvements, etc.>
390
+
391
+ ---
392
+ 🤖 Co-authored with claude sonnet 4.5 @ claude code via vscode
393
+ ```
394
+
395
+ **Format Rules**:
396
+ - Subject: `feat(NNN):` format with feature number
397
+ - Use feature number if available, otherwise component name
398
+ - Summary: 1-2 sentences, be enthusiastic but genuine
399
+ - Changes: Bulleted list grouped by file/component
400
+ - Use markdown bold for file names
401
+ - Add emoji where appropriate (sparingly)
402
+ - Keep professional but friendly tone
403
+ - Attribution: Claude Code standard footer
404
+
405
+ **Examples**:
406
+
407
+ ```
408
+ feat(002): add beautiful colorful pytest output with pytest-sugar
409
+
410
+ ## Summary
411
+ Added pytest-sugar for gorgeous colorful test output with progress bars
412
+ and instant failure reporting. MOAR GREEN! 🎉
413
+
414
+ ## Changes
415
+ - **pyproject.toml**:
416
+ - Added pytest-sugar dependency for beautiful output
417
+ - Configured pytest with --color=yes and markers
418
+ - Added -ra flag for summary of all outcomes
419
+
420
+ - **quick-start.ps1**:
421
+ - Simplified pytest args to let pytest-sugar shine
422
+ - Verbose mode: -v flag shows test names
423
+ - Default mode: pytest-sugar progress bar (no -q)
424
+
425
+ ## Visual Improvements
426
+ - ✨ Beautiful progress bar during test execution
427
+ - 🟢 Green PASSED markers with percentages
428
+ - 🟡 Yellow SKIPPED with clear reasons
429
+ - 🔴 Red FAILED with instant feedback
430
+ - 📊 Colored summary statistics
431
+
432
+ ---
433
+ 🤖 Co-authored with claude sonnet 4.5 @ claude code via vscode
434
+ ```
435
+
436
+ ```
437
+ fix(003): handle null values in user profile endpoint
438
+
439
+ ## Summary
440
+ Fixed TypeError when optional profile fields are missing. Now handles
441
+ null values gracefully with sensible defaults.
442
+
443
+ ## Changes
444
+ - **src/api/users.py**:
445
+ - Added null checks for optional fields
446
+ - Set default empty strings for missing values
447
+ - Added validation before JSON serialization
448
+
449
+ - **tests/test_users.py**:
450
+ - Added test cases for null profile fields
451
+ - Verified default value behavior
452
+
453
+ ---
454
+ 🤖 Co-authored with claude sonnet 4.5 @ claude code via vscode
455
+ ```
456
+
457
+ ```
458
+ docs(installer): update installation instructions
459
+
460
+ ## Summary
461
+ Clarified Python version requirement and added comprehensive
462
+ troubleshooting section for common installation issues.
463
+
464
+ ## Changes
465
+ - **README.md**:
466
+ - Added Python 3.8+ requirement
467
+ - Added pip install examples
468
+ - Linked to troubleshooting guide
469
+
470
+ - **docs/TROUBLESHOOTING.md**:
471
+ - Added Windows-specific issues
472
+ - Added virtual environment setup
473
+ - Added common error solutions
474
+
475
+ ---
476
+ 🤖 Co-authored with claude sonnet 4.5 @ claude code via vscode
477
+ ```
478
+
479
+ ### 5. Post-Commit Actions
480
+
481
+ After successful commit:
482
+ ```bash
483
+ # Show commit hash and summary
484
+ git log -1 --oneline
485
+
486
+ # Show current branch status
487
+ git status --short
488
+ ```
489
+
490
+ **Suggest next steps**:
491
+ - "Commit created. Push with: `git push`"
492
+ - If on feature branch: "Ready to create PR? Run `/pr`"
493
+ - If collaboration/ exists: "Update session log in specs/*/collaboration/active/sessions/"
494
+
495
+ ## Important Notes
496
+
497
+ - **Don't commit secrets**: Check for `.env`, `credentials.json`, API keys
498
+ - **No commits without user confirmation**: Always show message first
499
+ - **Preserve git hooks**: Don't use `--no-verify` unless user explicitly requests
500
+ - **Attribution format is fixed**: `via <model> @ <agent>` - don't modify
501
+ - **Keep subjects concise**: Max 72 characters for good git log display
502
+ - **Use imperative mood**: "Add feature" not "Added feature"
503
+
504
+ ## Error Handling
505
+
506
+ **No changes at all**:
507
+ ```
508
+ ⚠️ No changes detected.
509
+
510
+ Working directory is clean - nothing to commit.
511
+ ```
512
+
513
+ **Commit failed** (e.g., pre-commit hook):
514
+ ```
515
+ ❌ Commit failed: [error message]
516
+
517
+ Check git output above for details.
518
+ Fix issues and run /commit again.
519
+ ```
520
+
521
+ **User cancels during approval**:
522
+ - Don't stage anything if not already staged
523
+ - Leave repository in clean state
524
+ - Suggest: "Cancelled. Changes remain unstaged. Run /commit when ready."
525
+
526
+ ## Example Workflow
527
+
528
+ ```bash
529
+ # User: /commit
530
+
531
+ # Agent checks git status
532
+ $ git status --short
533
+ M src/commands/commit.md
534
+ M src/prompts/commit.prompt.md
535
+
536
+ # Agent presents combined staging + commit plan
537
+ **📊 Git Status** (on: dev/004-cleanup-command)
538
+
539
+ **Staged:** 0 files
540
+ **Modified:** 2 files
541
+
542
+ ===========================================================
543
+ **📋 Staging Proposal:**
544
+ ===========================================================
545
+
546
+ Proposed plan: Stage commit command updates (2 files)
547
+
548
+ Files to stage:
549
+ 1. M src/commands/commit.md
550
+ → Simplified approval workflow
551
+ 2. M src/prompts/commit.prompt.md
552
+ → PowerShell version of changes
553
+
554
+ ===========================================================
555
+ **💬 Commit Message:**
556
+ ===========================================================
557
+
558
+ feat(004): simplify commit approval workflow
559
+
560
+ ## Summary
561
+ Combined staging proposal and commit message into single prompt
562
+ for better UX. Fewer user interactions needed.
563
+
564
+ ## Changes
565
+ - **src/commands/commit.md**:
566
+ - Show both staging and commit message together
567
+ - Single approval step with edit options
568
+
569
+ - **src/prompts/commit.prompt.md**:
570
+ - Mirrored bash version improvements
571
+
572
+ ---
573
+ 🤖 Co-authored with claude sonnet 4.5 @ claude code via vscode
574
+
575
+ ===========================================================
576
+
577
+ **Approve commit?**
578
+ - **y** - Yes, stage files and commit with this message
579
+ - **n** - No, cancel
580
+ - **es** - Edit staging
581
+ - **em** - Edit message
582
+
583
+ # User: y
584
+
585
+ # Agent executes
586
+ $ git add src/commands/commit.md src/prompts/commit.prompt.md
587
+ $ git commit -m "..."
588
+ [dev/004-cleanup-command 8a3f2c1] feat(004): simplify commit...
589
+ 2 files changed, 87 insertions(+), 142 deletions(-)
590
+
591
+ ✓ Commit created: 8a3f2c1
592
+ Branch: dev/004-cleanup-command
593
+ Next: git push origin dev/004-cleanup-command
594
+ ```
595
+
596
+ ## Multi-Agent Coordination
597
+
598
+ When working with multiple agents:
599
+
600
+ 1. **Attribution tracks who coded what**:
601
+ ```bash
602
+ git log --format="%h %s %b" | grep "via"
603
+ ```
604
+ Shows which agent made which commits
605
+
606
+ 2. **Session logging** (if multiagent-kit installed):
607
+ - Create/update: `specs/*/collaboration/active/sessions/<date>-<agent>.md`
608
+ - Document what you committed and why
609
+
610
+ 3. **Handoff preparation**:
611
+ - Clear commit messages help the next agent understand changes
612
+ - Attribution makes it easy to ask the right agent about their commits