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.
- lite_kits/__init__.py +56 -4
- lite_kits/cli.py +782 -189
- lite_kits/core/__init__.py +6 -0
- lite_kits/core/banner.py +1 -1
- lite_kits/core/conflict_checker.py +115 -0
- lite_kits/core/detector.py +177 -0
- lite_kits/core/installer.py +242 -351
- lite_kits/core/manifest.py +146 -146
- lite_kits/core/validator.py +183 -0
- lite_kits/kits/README.md +6 -6
- lite_kits/kits/dev/README.md +241 -241
- lite_kits/kits/dev/{claude/commands → commands/.claude}/audit.md +143 -143
- lite_kits/kits/dev/{claude/commands → commands/.claude}/cleanup.md +2 -2
- lite_kits/kits/{git/claude/commands → dev/commands/.claude}/commit.md +2 -2
- lite_kits/kits/{project/claude/commands → dev/commands/.claude}/orient.md +3 -4
- lite_kits/kits/{git/claude/commands → dev/commands/.claude}/pr.md +1 -1
- lite_kits/kits/{git/claude/commands → dev/commands/.claude}/review.md +202 -202
- lite_kits/kits/{project/claude/commands → dev/commands/.claude}/stats.md +162 -162
- lite_kits/kits/{project/github/prompts → dev/commands/.github}/audit.prompt.md +143 -143
- lite_kits/kits/{git/github/prompts → dev/commands/.github}/cleanup.prompt.md +2 -2
- lite_kits/kits/{git/github/prompts → dev/commands/.github}/commit.prompt.md +2 -2
- lite_kits/kits/dev/{github/prompts → commands/.github}/orient.prompt.md +3 -4
- lite_kits/kits/{git/github/prompts → dev/commands/.github}/pr.prompt.md +1 -1
- lite_kits/kits/{git/github/prompts → dev/commands/.github}/review.prompt.md +202 -202
- lite_kits/kits/dev/{github/prompts → commands/.github}/stats.prompt.md +163 -163
- lite_kits/kits/kits.yaml +497 -180
- lite_kits/kits/multiagent/README.md +6 -6
- lite_kits/kits/multiagent/{claude/commands → commands/.claude}/sync.md +331 -331
- lite_kits/kits/multiagent/{github/prompts → commands/.github}/sync.prompt.md +73 -69
- lite_kits/kits/multiagent/memory/git-worktrees-protocol.md +370 -370
- lite_kits/kits/multiagent/memory/parallel-work-protocol.md +536 -536
- lite_kits/kits/multiagent/memory/pr-workflow-guide.md +275 -275
- lite_kits/kits/multiagent/templates/collaboration-structure/README.md +166 -166
- lite_kits/kits/multiagent/templates/decision.md +79 -79
- lite_kits/kits/multiagent/templates/handoff.md +95 -95
- lite_kits/kits/multiagent/templates/session-log.md +68 -68
- lite_kits-0.3.2.dist-info/METADATA +259 -0
- lite_kits-0.3.2.dist-info/RECORD +41 -0
- {lite_kits-0.1.1.dist-info → lite_kits-0.3.2.dist-info}/licenses/LICENSE +21 -21
- lite_kits/kits/dev/claude/commands/commit.md +0 -612
- lite_kits/kits/dev/claude/commands/orient.md +0 -146
- lite_kits/kits/dev/claude/commands/pr.md +0 -593
- lite_kits/kits/dev/claude/commands/review.md +0 -202
- lite_kits/kits/dev/claude/commands/stats.md +0 -162
- lite_kits/kits/dev/github/prompts/audit.prompt.md +0 -143
- lite_kits/kits/dev/github/prompts/cleanup.prompt.md +0 -382
- lite_kits/kits/dev/github/prompts/commit.prompt.md +0 -591
- lite_kits/kits/dev/github/prompts/pr.prompt.md +0 -603
- lite_kits/kits/dev/github/prompts/review.prompt.md +0 -202
- lite_kits/kits/git/README.md +0 -365
- lite_kits/kits/git/claude/commands/cleanup.md +0 -361
- lite_kits/kits/git/scripts/bash/get-git-context.sh +0 -208
- lite_kits/kits/git/scripts/powershell/Get-GitContext.ps1 +0 -242
- lite_kits/kits/project/README.md +0 -228
- lite_kits/kits/project/claude/commands/audit.md +0 -143
- lite_kits/kits/project/claude/commands/review.md +0 -112
- lite_kits/kits/project/github/prompts/orient.prompt.md +0 -150
- lite_kits/kits/project/github/prompts/review.prompt.md +0 -112
- lite_kits/kits/project/github/prompts/stats.prompt.md +0 -163
- lite_kits-0.1.1.dist-info/METADATA +0 -447
- lite_kits-0.1.1.dist-info/RECORD +0 -58
- {lite_kits-0.1.1.dist-info → lite_kits-0.3.2.dist-info}/WHEEL +0 -0
- {lite_kits-0.1.1.dist-info → lite_kits-0.3.2.dist-info}/entry_points.txt +0 -0
@@ -1,163 +1,163 @@
|
|
1
|
-
---
|
2
|
-
description: Generate concise project metrics for AI agent orientation
|
3
|
-
---
|
4
|
-
|
5
|
-
# Project Statistics
|
6
|
-
|
7
|
-
**Purpose**: Provide quick project overview metrics for AI agents joining a project or assessing scope.
|
8
|
-
|
9
|
-
## Execution Steps
|
10
|
-
|
11
|
-
Execute the following steps to gather project statistics:
|
12
|
-
|
13
|
-
### 1. Count Lines of Code
|
14
|
-
|
15
|
-
**Preferred method** (if tokei installed):
|
16
|
-
```powershell
|
17
|
-
# Check if tokei is available
|
18
|
-
Get-Command tokei -ErrorAction SilentlyContinue
|
19
|
-
|
20
|
-
# If available, use tokei for fast, accurate counts
|
21
|
-
tokei --output json
|
22
|
-
```
|
23
|
-
|
24
|
-
**Fallback method** (if tokei not available):
|
25
|
-
```powershell
|
26
|
-
# Python
|
27
|
-
(Get-ChildItem -Recurse -Filter *.py | Get-Content | Measure-Object -Line).Lines
|
28
|
-
|
29
|
-
# JavaScript/TypeScript
|
30
|
-
(Get-ChildItem -Recurse -Include *.js,*.ts | Get-Content | Measure-Object -Line).Lines
|
31
|
-
|
32
|
-
# Markdown
|
33
|
-
(Get-ChildItem -Recurse -Filter *.md | Get-Content | Measure-Object -Line).Lines
|
34
|
-
|
35
|
-
# All files combined
|
36
|
-
(Get-ChildItem -Recurse -File | Get-Content | Measure-Object -Line).Lines
|
37
|
-
```
|
38
|
-
|
39
|
-
### 2. Count Files and Directories
|
40
|
-
|
41
|
-
```powershell
|
42
|
-
# Count files (excluding hidden)
|
43
|
-
(Get-ChildItem -Recurse -File | Where-Object { -not $_.FullName.Contains('\.') }).Count
|
44
|
-
|
45
|
-
# Count directories (excluding hidden)
|
46
|
-
(Get-ChildItem -Recurse -Directory | Where-Object { -not $_.FullName.Contains('\.') }).Count
|
47
|
-
```
|
48
|
-
|
49
|
-
### 3. Get Git History Summary
|
50
|
-
|
51
|
-
```powershell
|
52
|
-
# Total commits
|
53
|
-
(git log --oneline | Measure-Object).Count
|
54
|
-
|
55
|
-
# Contributor count
|
56
|
-
(git log --format='%aN' | Sort-Object -Unique).Count
|
57
|
-
|
58
|
-
# Recent activity
|
59
|
-
git log --oneline -5
|
60
|
-
```
|
61
|
-
|
62
|
-
If not a git repository, skip this section.
|
63
|
-
|
64
|
-
### 4. Check for Test Coverage
|
65
|
-
|
66
|
-
Look for common coverage report files:
|
67
|
-
```powershell
|
68
|
-
# Python coverage files
|
69
|
-
Get-ChildItem -Path . -Include .coverage,coverage.xml -Recurse -ErrorAction SilentlyContinue
|
70
|
-
Get-ChildItem -Path htmlcov -Directory -ErrorAction SilentlyContinue
|
71
|
-
|
72
|
-
# JavaScript coverage
|
73
|
-
Get-ChildItem -Path coverage,.nyc_output -Directory -ErrorAction SilentlyContinue
|
74
|
-
|
75
|
-
# If coverage files exist, try to extract percentage
|
76
|
-
# Python: coverage report | Select-String TOTAL
|
77
|
-
# JavaScript: Get-Content coverage/coverage-summary.json | ConvertFrom-Json
|
78
|
-
```
|
79
|
-
|
80
|
-
### 5. Generate Concise Table Output
|
81
|
-
|
82
|
-
Provide stats in this format (~20 lines max):
|
83
|
-
|
84
|
-
```markdown
|
85
|
-
## Project Statistics
|
86
|
-
|
87
|
-
**Code**:
|
88
|
-
- Language1: X,XXX LOC (NN%)
|
89
|
-
- Language2: XXX LOC (NN%)
|
90
|
-
- Language3: XX LOC (NN%)
|
91
|
-
|
92
|
-
**Structure**:
|
93
|
-
- NN files, NN directories
|
94
|
-
- NNN commits, N contributors
|
95
|
-
|
96
|
-
**Testing**:
|
97
|
-
- Coverage: NN% (or N/A)
|
98
|
-
- Tests: NN files (or N/A)
|
99
|
-
|
100
|
-
**Next Action**: [Explore src/ / Review tests / Check docs]
|
101
|
-
```
|
102
|
-
|
103
|
-
## Important Notes
|
104
|
-
|
105
|
-
- **Be concise**: Keep output under 20 lines
|
106
|
-
- **Use tables**: Well-formatted markdown tables or lists
|
107
|
-
- **Handle missing tools**:
|
108
|
-
- No tokei → Use Get-ChildItem/Measure-Object fallback, note "Basic LOC count"
|
109
|
-
- Not a git repo → Skip git section, note "No git history"
|
110
|
-
- No coverage → Show "N/A" gracefully
|
111
|
-
|
112
|
-
- **Percentages**: Calculate language percentages from total LOC
|
113
|
-
- **Large repos**: If >100k LOC, note "Large project" and consider sampling
|
114
|
-
- **Speed**: Target <5 second execution time
|
115
|
-
|
116
|
-
## Edge Cases
|
117
|
-
|
118
|
-
- **No git repository**: Skip git section, show file/LOC stats only
|
119
|
-
- **No test coverage reports**: Show "Coverage: N/A"
|
120
|
-
- **Tokei not installed**: Use PowerShell fallback, note in output
|
121
|
-
- **Very large repo (1M+ LOC)**: Sample or provide high-level summary only
|
122
|
-
- **No code files**: "Appears to be a documentation-only or data project"
|
123
|
-
|
124
|
-
## Example Output
|
125
|
-
|
126
|
-
```markdown
|
127
|
-
## Project Statistics
|
128
|
-
|
129
|
-
**Code**:
|
130
|
-
- Python: 2,453 LOC (87%)
|
131
|
-
- Markdown: 342 LOC (12%)
|
132
|
-
- YAML: 28 LOC (1%)
|
133
|
-
- Total: 2,823 LOC
|
134
|
-
|
135
|
-
**Structure**:
|
136
|
-
- 45 files, 12 directories
|
137
|
-
- 127 commits, 3 contributors
|
138
|
-
|
139
|
-
**Testing**:
|
140
|
-
- Coverage: 78% (via pytest-cov)
|
141
|
-
- Tests: 23 test files
|
142
|
-
|
143
|
-
**Next Action**: Explore src/ directory to understand core modules
|
144
|
-
```
|
145
|
-
|
146
|
-
```markdown
|
147
|
-
## Project Statistics
|
148
|
-
|
149
|
-
**Code** (tokei not available, using basic count):
|
150
|
-
- Python: ~1,200 lines
|
151
|
-
- Markdown: ~400 lines
|
152
|
-
- Total: ~1,600 lines (approximate)
|
153
|
-
|
154
|
-
**Structure**:
|
155
|
-
- 32 files, 8 directories
|
156
|
-
- Not a git repository
|
157
|
-
|
158
|
-
**Testing**:
|
159
|
-
- Coverage: N/A
|
160
|
-
- Tests: N/A
|
161
|
-
|
162
|
-
**Next Action**: Check if this is a standalone library or tool
|
163
|
-
```
|
1
|
+
---
|
2
|
+
description: Generate concise project metrics for AI agent orientation
|
3
|
+
---
|
4
|
+
|
5
|
+
# Project Statistics
|
6
|
+
|
7
|
+
**Purpose**: Provide quick project overview metrics for AI agents joining a project or assessing scope.
|
8
|
+
|
9
|
+
## Execution Steps
|
10
|
+
|
11
|
+
Execute the following steps to gather project statistics:
|
12
|
+
|
13
|
+
### 1. Count Lines of Code
|
14
|
+
|
15
|
+
**Preferred method** (if tokei installed):
|
16
|
+
```powershell
|
17
|
+
# Check if tokei is available
|
18
|
+
Get-Command tokei -ErrorAction SilentlyContinue
|
19
|
+
|
20
|
+
# If available, use tokei for fast, accurate counts
|
21
|
+
tokei --output json
|
22
|
+
```
|
23
|
+
|
24
|
+
**Fallback method** (if tokei not available):
|
25
|
+
```powershell
|
26
|
+
# Python
|
27
|
+
(Get-ChildItem -Recurse -Filter *.py | Get-Content | Measure-Object -Line).Lines
|
28
|
+
|
29
|
+
# JavaScript/TypeScript
|
30
|
+
(Get-ChildItem -Recurse -Include *.js,*.ts | Get-Content | Measure-Object -Line).Lines
|
31
|
+
|
32
|
+
# Markdown
|
33
|
+
(Get-ChildItem -Recurse -Filter *.md | Get-Content | Measure-Object -Line).Lines
|
34
|
+
|
35
|
+
# All files combined
|
36
|
+
(Get-ChildItem -Recurse -File | Get-Content | Measure-Object -Line).Lines
|
37
|
+
```
|
38
|
+
|
39
|
+
### 2. Count Files and Directories
|
40
|
+
|
41
|
+
```powershell
|
42
|
+
# Count files (excluding hidden)
|
43
|
+
(Get-ChildItem -Recurse -File | Where-Object { -not $_.FullName.Contains('\.') }).Count
|
44
|
+
|
45
|
+
# Count directories (excluding hidden)
|
46
|
+
(Get-ChildItem -Recurse -Directory | Where-Object { -not $_.FullName.Contains('\.') }).Count
|
47
|
+
```
|
48
|
+
|
49
|
+
### 3. Get Git History Summary
|
50
|
+
|
51
|
+
```powershell
|
52
|
+
# Total commits
|
53
|
+
(git log --oneline | Measure-Object).Count
|
54
|
+
|
55
|
+
# Contributor count
|
56
|
+
(git log --format='%aN' | Sort-Object -Unique).Count
|
57
|
+
|
58
|
+
# Recent activity
|
59
|
+
git log --oneline -5
|
60
|
+
```
|
61
|
+
|
62
|
+
If not a git repository, skip this section.
|
63
|
+
|
64
|
+
### 4. Check for Test Coverage
|
65
|
+
|
66
|
+
Look for common coverage report files:
|
67
|
+
```powershell
|
68
|
+
# Python coverage files
|
69
|
+
Get-ChildItem -Path . -Include .coverage,coverage.xml -Recurse -ErrorAction SilentlyContinue
|
70
|
+
Get-ChildItem -Path htmlcov -Directory -ErrorAction SilentlyContinue
|
71
|
+
|
72
|
+
# JavaScript coverage
|
73
|
+
Get-ChildItem -Path coverage,.nyc_output -Directory -ErrorAction SilentlyContinue
|
74
|
+
|
75
|
+
# If coverage files exist, try to extract percentage
|
76
|
+
# Python: coverage report | Select-String TOTAL
|
77
|
+
# JavaScript: Get-Content coverage/coverage-summary.json | ConvertFrom-Json
|
78
|
+
```
|
79
|
+
|
80
|
+
### 5. Generate Concise Table Output
|
81
|
+
|
82
|
+
Provide stats in this format (~20 lines max):
|
83
|
+
|
84
|
+
```markdown
|
85
|
+
## Project Statistics
|
86
|
+
|
87
|
+
**Code**:
|
88
|
+
- Language1: X,XXX LOC (NN%)
|
89
|
+
- Language2: XXX LOC (NN%)
|
90
|
+
- Language3: XX LOC (NN%)
|
91
|
+
|
92
|
+
**Structure**:
|
93
|
+
- NN files, NN directories
|
94
|
+
- NNN commits, N contributors
|
95
|
+
|
96
|
+
**Testing**:
|
97
|
+
- Coverage: NN% (or N/A)
|
98
|
+
- Tests: NN files (or N/A)
|
99
|
+
|
100
|
+
**Next Action**: [Explore src/ / Review tests / Check docs]
|
101
|
+
```
|
102
|
+
|
103
|
+
## Important Notes
|
104
|
+
|
105
|
+
- **Be concise**: Keep output under 20 lines
|
106
|
+
- **Use tables**: Well-formatted markdown tables or lists
|
107
|
+
- **Handle missing tools**:
|
108
|
+
- No tokei → Use Get-ChildItem/Measure-Object fallback, note "Basic LOC count"
|
109
|
+
- Not a git repo → Skip git section, note "No git history"
|
110
|
+
- No coverage → Show "N/A" gracefully
|
111
|
+
|
112
|
+
- **Percentages**: Calculate language percentages from total LOC
|
113
|
+
- **Large repos**: If >100k LOC, note "Large project" and consider sampling
|
114
|
+
- **Speed**: Target <5 second execution time
|
115
|
+
|
116
|
+
## Edge Cases
|
117
|
+
|
118
|
+
- **No git repository**: Skip git section, show file/LOC stats only
|
119
|
+
- **No test coverage reports**: Show "Coverage: N/A"
|
120
|
+
- **Tokei not installed**: Use PowerShell fallback, note in output
|
121
|
+
- **Very large repo (1M+ LOC)**: Sample or provide high-level summary only
|
122
|
+
- **No code files**: "Appears to be a documentation-only or data project"
|
123
|
+
|
124
|
+
## Example Output
|
125
|
+
|
126
|
+
```markdown
|
127
|
+
## Project Statistics
|
128
|
+
|
129
|
+
**Code**:
|
130
|
+
- Python: 2,453 LOC (87%)
|
131
|
+
- Markdown: 342 LOC (12%)
|
132
|
+
- YAML: 28 LOC (1%)
|
133
|
+
- Total: 2,823 LOC
|
134
|
+
|
135
|
+
**Structure**:
|
136
|
+
- 45 files, 12 directories
|
137
|
+
- 127 commits, 3 contributors
|
138
|
+
|
139
|
+
**Testing**:
|
140
|
+
- Coverage: 78% (via pytest-cov)
|
141
|
+
- Tests: 23 test files
|
142
|
+
|
143
|
+
**Next Action**: Explore src/ directory to understand core modules
|
144
|
+
```
|
145
|
+
|
146
|
+
```markdown
|
147
|
+
## Project Statistics
|
148
|
+
|
149
|
+
**Code** (tokei not available, using basic count):
|
150
|
+
- Python: ~1,200 lines
|
151
|
+
- Markdown: ~400 lines
|
152
|
+
- Total: ~1,600 lines (approximate)
|
153
|
+
|
154
|
+
**Structure**:
|
155
|
+
- 32 files, 8 directories
|
156
|
+
- Not a git repository
|
157
|
+
|
158
|
+
**Testing**:
|
159
|
+
- Coverage: N/A
|
160
|
+
- Tests: N/A
|
161
|
+
|
162
|
+
**Next Action**: Check if this is a standalone library or tool
|
163
|
+
```
|