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.
- lite_kits/__init__.py +9 -9
- lite_kits/cli.py +170 -155
- lite_kits/core/__init__.py +13 -0
- lite_kits/core/banner.py +160 -0
- lite_kits/{installer.py → core/installer.py} +47 -27
- lite_kits/core/manifest.py +146 -0
- lite_kits/kits/README.md +9 -10
- lite_kits/kits/dev/README.md +241 -0
- lite_kits/kits/dev/claude/commands/audit.md +143 -0
- lite_kits/kits/dev/claude/commands/cleanup.md +361 -0
- lite_kits/kits/dev/claude/commands/commit.md +612 -0
- lite_kits/kits/dev/claude/commands/orient.md +146 -0
- lite_kits/kits/dev/claude/commands/pr.md +593 -0
- lite_kits/kits/dev/claude/commands/review.md +202 -0
- lite_kits/kits/dev/claude/commands/stats.md +162 -0
- lite_kits/kits/dev/github/prompts/audit.prompt.md +143 -0
- lite_kits/kits/dev/github/prompts/cleanup.prompt.md +382 -0
- lite_kits/kits/dev/github/prompts/commit.prompt.md +591 -0
- lite_kits/kits/dev/github/prompts/orient.prompt.md +150 -0
- lite_kits/kits/dev/github/prompts/pr.prompt.md +603 -0
- lite_kits/kits/dev/github/prompts/review.prompt.md +202 -0
- lite_kits/kits/dev/github/prompts/stats.prompt.md +163 -0
- lite_kits/kits/git/README.md +59 -68
- lite_kits/kits/git/claude/commands/review.md +202 -0
- lite_kits/kits/git/github/prompts/review.prompt.md +202 -0
- lite_kits/kits/kits.yaml +180 -0
- lite_kits/kits/multiagent/README.md +26 -15
- lite_kits/kits/multiagent/memory/pr-workflow-guide.md +1 -7
- lite_kits/kits/project/README.md +6 -22
- lite_kits/kits/project/claude/commands/audit.md +143 -0
- lite_kits/kits/project/claude/commands/orient.md +29 -46
- lite_kits/kits/project/claude/commands/review.md +112 -0
- lite_kits/kits/project/claude/commands/stats.md +162 -0
- lite_kits/kits/project/github/prompts/audit.prompt.md +143 -0
- lite_kits/kits/project/github/prompts/orient.prompt.md +33 -46
- lite_kits/kits/project/github/prompts/review.prompt.md +112 -0
- lite_kits/kits/project/github/prompts/stats.prompt.md +163 -0
- {lite_kits-0.1.0.dist-info → lite_kits-0.1.1.dist-info}/METADATA +98 -66
- lite_kits-0.1.1.dist-info/RECORD +58 -0
- lite_kits-0.1.0.dist-info/RECORD +0 -31
- {lite_kits-0.1.0.dist-info → lite_kits-0.1.1.dist-info}/WHEEL +0 -0
- {lite_kits-0.1.0.dist-info → lite_kits-0.1.1.dist-info}/entry_points.txt +0 -0
- {lite_kits-0.1.0.dist-info → lite_kits-0.1.1.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,146 @@
|
|
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
|
+
```bash
|
18
|
+
# Check all kits in one command
|
19
|
+
KITS_INSTALLED=""
|
20
|
+
[ -f .claude/commands/orient.md ] && KITS_INSTALLED="${KITS_INSTALLED}project "
|
21
|
+
[ -f .claude/commands/commit.md ] && KITS_INSTALLED="${KITS_INSTALLED}git "
|
22
|
+
[ -f .specify/memory/pr-workflow-guide.md ] && KITS_INSTALLED="${KITS_INSTALLED}multiagent "
|
23
|
+
KITS_INSTALLED="${KITS_INSTALLED:-vanilla only}"
|
24
|
+
```
|
25
|
+
|
26
|
+
### 2. Determine Agent Role
|
27
|
+
|
28
|
+
Identify which agent you are and your role:
|
29
|
+
|
30
|
+
```bash
|
31
|
+
# Detect model and interface
|
32
|
+
MODEL="claude-sonnet-4.5" # Default Claude model, adjust based on actual model used
|
33
|
+
INTERFACE="Claude Code"
|
34
|
+
AGENT_ROLE="$MODEL @ $INTERFACE (Primary)"
|
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
|
+
```bash
|
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>/dev/null || echo "(not in git repo)")
|
57
|
+
RECENT_COMMITS=$(git log --oneline -3 2>/dev/null | head -1 || echo "(no commits)")
|
58
|
+
CHANGES=$(git status --short 2>/dev/null | wc -l || echo "0")
|
59
|
+
```
|
60
|
+
|
61
|
+
### 5. Check Active Work
|
62
|
+
|
63
|
+
Look for active feature work:
|
64
|
+
|
65
|
+
```bash
|
66
|
+
# Check if current branch matches a spec directory
|
67
|
+
if [[ "$CURRENT_BRANCH" =~ ^[0-9]+ ]] || [[ "$CURRENT_BRANCH" =~ ^dev/[0-9]+ ]]; then
|
68
|
+
# Extract spec number from branch name
|
69
|
+
SPEC_NUM=$(echo "$CURRENT_BRANCH" | grep -oE '[0-9]+' | head -1)
|
70
|
+
SPEC_DIR="specs/$SPEC_NUM-*"
|
71
|
+
# Check for spec files efficiently
|
72
|
+
SPEC_FILES=$(ls -1 $SPEC_DIR/{spec,plan,tasks}.md 2>/dev/null | wc -l)
|
73
|
+
fi
|
74
|
+
```
|
75
|
+
|
76
|
+
### 6. Check Multi-Agent Coordination (if multiagent-kit installed)
|
77
|
+
|
78
|
+
```bash
|
79
|
+
# Only check if multiagent kit is installed
|
80
|
+
if [[ "$KITS_INSTALLED" == *"multiagent"* ]]; then
|
81
|
+
# Efficient check for collaboration activity
|
82
|
+
ACTIVE_SESSIONS=$(find specs/*/collaboration/active/sessions/ -name "*.md" 2>/dev/null | wc -l)
|
83
|
+
PENDING_HANDOFF=$(find specs/*/collaboration/active/decisions/ -name "handoff-*.md" 2>/dev/null | head -1)
|
84
|
+
fi
|
85
|
+
```
|
86
|
+
|
87
|
+
### 7. Generate Concise Output
|
88
|
+
|
89
|
+
Provide a **concise summary** (~150 words max) in this format:
|
90
|
+
|
91
|
+
```
|
92
|
+
## Orientation Complete
|
93
|
+
|
94
|
+
**Installed Kits**: [KITS_INSTALLED]
|
95
|
+
|
96
|
+
**I am**: [AGENT_ROLE from step 2]
|
97
|
+
**Project**: [project name from docs]
|
98
|
+
**Stack**: [main technologies]
|
99
|
+
**Branch**: [CURRENT_BRANCH]
|
100
|
+
**Recent work**: [RECENT_COMMITS - just the message]
|
101
|
+
**Uncommitted changes**: [CHANGES count]
|
102
|
+
**Active feature**: [current spec if SPEC_FILES > 0]
|
103
|
+
**Coordination**: [solo work / handoff pending / etc]
|
104
|
+
|
105
|
+
**Next suggested action**: [based on state analysis below]
|
106
|
+
```
|
107
|
+
|
108
|
+
### 8. Suggest Next Action
|
109
|
+
|
110
|
+
Based on the state you discovered, suggest the next logical action:
|
111
|
+
|
112
|
+
**Decision logic**:
|
113
|
+
|
114
|
+
- **No spec on current branch** → "Run `/specify` to start a new feature"
|
115
|
+
- **Spec exists, no plan** → "Run `/plan` to create implementation plan"
|
116
|
+
- **Plan exists, no tasks** → "Run `/tasks` to break down into tasks"
|
117
|
+
- **Tasks exist** → "Run `/implement` to start coding"
|
118
|
+
- **Handoff detected** (multiagent) → "Review handoff in `specs/[feature]/collaboration/active/decisions/`"
|
119
|
+
- **Uncommitted changes** → "Review changes and consider running `/commit`" (if git-kit installed)
|
120
|
+
|
121
|
+
## Important Notes
|
122
|
+
|
123
|
+
- Keep output **concise** - this is an orientation, not a full analysis
|
124
|
+
- Focus on **actionable context** - what the agent needs to know right now
|
125
|
+
- **Don't modify any files** - this is read-only orientation
|
126
|
+
- If documentation is missing, note it briefly and continue
|
127
|
+
- Gracefully handle missing files (don't error if docs don't exist)
|
128
|
+
|
129
|
+
## Example Output
|
130
|
+
|
131
|
+
```
|
132
|
+
## Orientation Complete
|
133
|
+
|
134
|
+
**Installed Kits**: project, git
|
135
|
+
|
136
|
+
**I am**: claude-sonnet-4.5 @ Claude Code (Primary)
|
137
|
+
**Project**: Blog Platform API (TypeScript/Node.js)
|
138
|
+
**Stack**: Node.js, Express, PostgreSQL, TypeScript
|
139
|
+
**Branch**: dev/003-user-authentication
|
140
|
+
**Recent work**: Added JWT token validation (2 commits today)
|
141
|
+
**Uncommitted changes**: 3 modified files
|
142
|
+
**Active feature**: specs/003-user-authentication/ (spec + plan complete)
|
143
|
+
**Coordination**: Solo work
|
144
|
+
|
145
|
+
**Next suggested action**: Run `/tasks` to break down the implementation plan into actionable tasks.
|
146
|
+
```
|