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,150 @@
1
+ ---
2
+ description: Quickly orient to project context, installed kits, and current state
3
+ ---
4
+
5
+ # Agent Orientation Protocol
6
+
7
+ **Purpose**: Provide concise project orientation for AI agents at start of work session.
8
+
9
+ ## Execution Steps
10
+
11
+ Execute the following steps to gather orientation information:
12
+
13
+ ### 1. Detect Installed Kits
14
+
15
+ Check for kit marker files to determine what's installed:
16
+
17
+ ```powershell
18
+ # Check all kits in one efficient operation
19
+ $KITS_INSTALLED = @()
20
+ if (Test-Path .github/prompts/orient.prompt.md) { $KITS_INSTALLED += "project" }
21
+ if (Test-Path .github/prompts/commit.prompt.md) { $KITS_INSTALLED += "git" }
22
+ if (Test-Path .specify/memory/pr-workflow-guide.md) { $KITS_INSTALLED += "multiagent" }
23
+ $KITS_LIST = if ($KITS_INSTALLED.Count -gt 0) { $KITS_INSTALLED -join ", " } else { "vanilla only" }
24
+ ```
25
+
26
+ ### 2. Determine Agent Role
27
+
28
+ Identify which agent you are and your role:
29
+
30
+ ```powershell
31
+ # Detect model and interface
32
+ $MODEL = "Grok Code Fast 1" # Default Grok model for GitHub Copilot, adjust based on actual model used
33
+ $INTERFACE = "GitHub Copilot"
34
+ $AGENT_ROLE = "$MODEL @ $INTERFACE (Specialist)"
35
+ ```
36
+
37
+ ### 3. Read Primary Documentation
38
+
39
+ Read these files in order (if they exist):
40
+
41
+ 1. **`.github/copilot-instructions.md`** - Project overview, stack, conventions
42
+ 2. **`.specify/memory/constitution.md`** - Project philosophy and principles
43
+ 3. **`README.md`** - General project information
44
+
45
+ Extract:
46
+ - Project name and description
47
+ - Technology stack
48
+ - Key architectural decisions
49
+ - Development conventions
50
+
51
+ ### 4. Check Git State
52
+
53
+ ```powershell
54
+ # Efficient single-command git status check
55
+ # Get branch, recent commits, and changes in one go
56
+ $CURRENT_BRANCH = git branch --show-current 2>$null
57
+ if (-not $CURRENT_BRANCH) { $CURRENT_BRANCH = "not in git repo" }
58
+ $RECENT_COMMITS = (git log --oneline -3 2>$null | Select-Object -First 1)
59
+ $CHANGES = (git status --short 2>$null | Measure-Object).Count
60
+ ```
61
+
62
+ ### 5. Check Active Work
63
+
64
+ Look for active feature work:
65
+
66
+ ```powershell
67
+ # Check if current branch matches a spec directory
68
+ if ($CURRENT_BRANCH -match '^\d+' -or $CURRENT_BRANCH -match '^dev/\d+') {
69
+ # Extract spec number from branch name
70
+ $SPEC_NUM = if ($CURRENT_BRANCH -match '\d+') { $Matches[0] } else { $null }
71
+ if ($SPEC_NUM) {
72
+ $SPEC_DIR = Get-ChildItem -Path "specs/$SPEC_NUM-*" -Directory -ErrorAction SilentlyContinue | Select-Object -First 1
73
+ if ($SPEC_DIR) {
74
+ $SPEC_FILES = @("spec.md", "plan.md", "tasks.md") | Where-Object { Test-Path "$($SPEC_DIR.FullName)/$_" }
75
+ }
76
+ }
77
+ }
78
+ ```
79
+
80
+ ### 6. Check Multi-Agent Coordination (if multiagent-kit installed)
81
+
82
+ ```powershell
83
+ # Only check if multiagent kit is installed
84
+ if ($KITS_INSTALLED -contains "multiagent") {
85
+ # Efficient check for collaboration activity
86
+ $ACTIVE_SESSIONS = (Get-ChildItem -Path specs/*/collaboration/active/sessions/ -Filter *.md -Recurse -ErrorAction SilentlyContinue).Count
87
+ $PENDING_HANDOFF = Get-ChildItem -Path specs/*/collaboration/active/decisions/ -Filter handoff-*.md -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1
88
+ }
89
+ ```
90
+
91
+ ### 7. Generate Concise Output
92
+
93
+ Provide a **concise summary** (~150 words max) in this format:
94
+
95
+ ```
96
+ ## Orientation Complete
97
+
98
+ **Installed Kits**: [$KITS_LIST]
99
+
100
+ **I am**: [$AGENT_ROLE from step 2]
101
+ **Project**: [project name from docs]
102
+ **Stack**: [main technologies]
103
+ **Branch**: [$CURRENT_BRANCH]
104
+ **Recent work**: [$RECENT_COMMITS - just the message]
105
+ **Uncommitted changes**: [$CHANGES count]
106
+ **Active feature**: [current spec if $SPEC_FILES exists]
107
+ **Coordination**: [solo work / handoff pending / etc]
108
+
109
+ **Next suggested action**: [based on state analysis below]
110
+ ```
111
+
112
+ ### 8. Suggest Next Action
113
+
114
+ Based on the state you discovered, suggest the next logical action:
115
+
116
+ **Decision logic**:
117
+
118
+ - **No spec on current branch** → "Run `/specify` to start a new feature"
119
+ - **Spec exists, no plan** → "Run `/plan` to create implementation plan"
120
+ - **Plan exists, no tasks** → "Run `/tasks` to break down into tasks"
121
+ - **Tasks exist** → "Run `/implement` to start coding"
122
+ - **Handoff detected** (multiagent) → "Review handoff in `specs/[feature]/collaboration/active/decisions/`"
123
+ - **Uncommitted changes** → "Review changes and consider running `/commit`" (if git-kit installed)
124
+
125
+ ## Important Notes
126
+
127
+ - Keep output **concise** - this is an orientation, not a full analysis
128
+ - Focus on **actionable context** - what the agent needs to know right now
129
+ - **Don't modify any files** - this is read-only orientation
130
+ - If documentation is missing, note it briefly and continue
131
+ - Gracefully handle missing files (don't error if docs don't exist)
132
+
133
+ ## Example Output
134
+
135
+ ```
136
+ ## Orientation Complete
137
+
138
+ **Installed Kits**: project, git
139
+
140
+ **I am**: Grok Code Fast 1 @ GitHub Copilot (Specialist)
141
+ **Project**: Blog Platform API (TypeScript/Node.js)
142
+ **Stack**: Node.js, Express, PostgreSQL, TypeScript
143
+ **Branch**: dev/003-user-authentication
144
+ **Recent work**: Added JWT token validation (2 commits today)
145
+ **Uncommitted changes**: 3 modified files
146
+ **Active feature**: specs/003-user-authentication/ (spec + plan complete)
147
+ **Coordination**: Solo work
148
+
149
+ **Next suggested action**: Run `/tasks` to break down the implementation plan into actionable tasks.
150
+ ```