@cloudstreamsoftware/claude-tools 1.2.2 → 1.2.4
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.
- package/bin/cloudstream-setup.js +30 -0
- package/commands/INDEX.md +171 -0
- package/commands/build-fix.md +44 -0
- package/commands/checkpoint.md +80 -0
- package/commands/client-switch.md +114 -0
- package/commands/code-review.md +45 -0
- package/commands/compliance-check.md +38 -0
- package/commands/create-branch.md +91 -0
- package/commands/deluge.md +72 -0
- package/commands/diagnose.md +99 -0
- package/commands/e2e.md +34 -0
- package/commands/eval.md +189 -0
- package/commands/evolve.md +170 -0
- package/commands/handoff.md +64 -0
- package/commands/health-check.md +88 -0
- package/commands/instinct-export.md +123 -0
- package/commands/instinct-import.md +150 -0
- package/commands/instinct-status.md +111 -0
- package/commands/learn.md +75 -0
- package/commands/onboard.md +133 -0
- package/commands/orchestrate.md +177 -0
- package/commands/plan.md +34 -0
- package/commands/pr-ready.md +130 -0
- package/commands/quarterly-review.md +154 -0
- package/commands/refactor-clean.md +54 -0
- package/commands/setup-pm.md +81 -0
- package/commands/skill-create.md +99 -0
- package/commands/skill-submit.md +121 -0
- package/commands/skill-sync.md +250 -0
- package/commands/tdd.md +59 -0
- package/commands/team-admin.md +179 -0
- package/commands/test-coverage.md +43 -0
- package/commands/tutorial.md +100 -0
- package/commands/update-codemaps.md +57 -0
- package/commands/update-docs.md +51 -0
- package/commands/verify-setup.md +98 -0
- package/commands/verify.md +75 -0
- package/commands/zoho-scaffold.md +159 -0
- package/package.json +2 -1
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Analyze git history to generate SKILL.md files from coding patterns
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /skill-create - Local Skill Generation
|
|
6
|
+
|
|
7
|
+
The `/skill-create` command analyzes a repository's git history to identify coding patterns and generate SKILL.md files that document team practices for Claude.
|
|
8
|
+
|
|
9
|
+
## When to Use
|
|
10
|
+
|
|
11
|
+
- After completing a significant project milestone to capture patterns
|
|
12
|
+
- When onboarding new team members who need to understand conventions
|
|
13
|
+
- To document client-specific coding patterns (sanitized) for knowledge capture
|
|
14
|
+
- Before `/learn` to auto-generate skill foundations from git history
|
|
15
|
+
|
|
16
|
+
## Core Functionality
|
|
17
|
+
|
|
18
|
+
The tool performs four main operations:
|
|
19
|
+
|
|
20
|
+
1. **Git Data Collection** - Examines commits, file modifications, and metadata from recent history
|
|
21
|
+
2. **Pattern Recognition** - Identifies recurring conventions including commit message formats, file co-changes, and architectural patterns
|
|
22
|
+
3. **SKILL.md Generation** - Produces structured documentation of detected practices
|
|
23
|
+
4. **Instincts Creation** (optional) - Generates instinct files compatible with continuous-learning-v2 systems
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
/skill-create # Analyze current repo with defaults
|
|
29
|
+
/skill-create --commits 100 # Analyze last 100 commits
|
|
30
|
+
/skill-create --output ./skills/client/ # Specify output directory
|
|
31
|
+
/skill-create --instincts # Also generate instincts
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Pattern Detection
|
|
35
|
+
|
|
36
|
+
The system identifies several pattern categories:
|
|
37
|
+
|
|
38
|
+
| Category | Examples |
|
|
39
|
+
|----------|----------|
|
|
40
|
+
| Commit conventions | Message prefixes like `feat:`, `fix:`, `chore:` |
|
|
41
|
+
| File co-changes | Files modified together across commits |
|
|
42
|
+
| Workflow sequences | Repeating file modification patterns |
|
|
43
|
+
| Architecture | Folder structures and naming conventions |
|
|
44
|
+
| Testing patterns | Test file locations and naming standards |
|
|
45
|
+
|
|
46
|
+
## Output Format
|
|
47
|
+
|
|
48
|
+
Generated SKILL.md files include frontmatter with metadata, followed by sections documenting discovered patterns.
|
|
49
|
+
|
|
50
|
+
### Example Output
|
|
51
|
+
|
|
52
|
+
```markdown
|
|
53
|
+
---
|
|
54
|
+
name: project-typescript-patterns
|
|
55
|
+
description: Conventions detected from 50 commits
|
|
56
|
+
generated: 2026-01-27
|
|
57
|
+
source: git-analysis
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
# Project TypeScript Patterns
|
|
61
|
+
|
|
62
|
+
## Commit Conventions
|
|
63
|
+
- Use conventional commits (feat:, fix:, docs:, etc.)
|
|
64
|
+
- Include ticket reference in commit body
|
|
65
|
+
|
|
66
|
+
## Folder Organization
|
|
67
|
+
- Components in src/components/
|
|
68
|
+
- Utilities in src/lib/
|
|
69
|
+
- Tests co-located with source files
|
|
70
|
+
|
|
71
|
+
## Component Creation
|
|
72
|
+
1. Create component file
|
|
73
|
+
2. Add tests in same directory
|
|
74
|
+
3. Export from index.ts
|
|
75
|
+
|
|
76
|
+
## Testing Framework
|
|
77
|
+
- Jest for unit tests
|
|
78
|
+
- Playwright for E2E tests
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Integration with CloudStream
|
|
82
|
+
|
|
83
|
+
Works with existing `/learn` command:
|
|
84
|
+
- Use `/skill-create` to auto-generate initial patterns from git
|
|
85
|
+
- Use `/learn` to manually capture specific insights
|
|
86
|
+
- Use `/evolve` to cluster instincts into higher-level structures
|
|
87
|
+
|
|
88
|
+
## GitHub App Option
|
|
89
|
+
|
|
90
|
+
For larger-scale analysis or team sharing, the Skill Creator GitHub App provides expanded capabilities:
|
|
91
|
+
- Process 10k+ commit histories
|
|
92
|
+
- Share generated skills across team
|
|
93
|
+
- Auto-generate PRs with skill updates
|
|
94
|
+
|
|
95
|
+
## Related Commands
|
|
96
|
+
|
|
97
|
+
- `/learn` - Manual pattern extraction
|
|
98
|
+
- `/instinct-status` - View learned instincts
|
|
99
|
+
- `/evolve` - Cluster instincts into commands/skills/agents
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-submit
|
|
3
|
+
description: Submit a learned skill to the shared team repository via PR.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /skill-submit - Submit Skill to Team
|
|
7
|
+
|
|
8
|
+
Submit a learned skill from `~/.claude/skills/learned/` to the shared CloudStream knowledge base for team-wide use.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
/skill-submit [skill-name]
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
If no skill name provided, lists available learned skills to choose from.
|
|
19
|
+
|
|
20
|
+
## Workflow
|
|
21
|
+
|
|
22
|
+
### Step 1: Select Skill
|
|
23
|
+
|
|
24
|
+
List available skills from `~/.claude/skills/learned/`:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
Available learned skills:
|
|
28
|
+
|
|
29
|
+
# | Name | Created
|
|
30
|
+
---|---------------------------|------------
|
|
31
|
+
1 | catalyst-timeout-fix | 2026-01-20
|
|
32
|
+
2 | creator-field-validation | 2026-01-18
|
|
33
|
+
3 | hipaa-audit-pattern | 2026-01-15
|
|
34
|
+
|
|
35
|
+
Select skill number or name:
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Step 2: Review & Sanitize
|
|
39
|
+
|
|
40
|
+
Before submission, manually verify the skill:
|
|
41
|
+
|
|
42
|
+
1. **Remove client data** - No real client names, IDs, emails, or org IDs
|
|
43
|
+
2. **Use placeholders** - Replace specific values with `[CLIENT_NAME]`, `user@example.com`, etc.
|
|
44
|
+
3. **Check code examples** - Ensure no real API keys, tokens, or credentials
|
|
45
|
+
|
|
46
|
+
### Step 3: Create PR
|
|
47
|
+
|
|
48
|
+
Using the GitHub CLI:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Navigate to learned skills
|
|
52
|
+
cd ~/.claude/skills/learned/
|
|
53
|
+
|
|
54
|
+
# Create branch
|
|
55
|
+
git checkout -b skill-submit/[skill-name]
|
|
56
|
+
|
|
57
|
+
# Stage skill file
|
|
58
|
+
git add [skill-name].md
|
|
59
|
+
|
|
60
|
+
# Commit
|
|
61
|
+
git commit -m "skill: add [skill-name]"
|
|
62
|
+
|
|
63
|
+
# Push and create PR
|
|
64
|
+
gh pr create --title "skill: add [skill-name]" --body "Submitting learned skill for team review."
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**On success:**
|
|
68
|
+
```
|
|
69
|
+
✅ PR created successfully!
|
|
70
|
+
|
|
71
|
+
PR URL: https://github.com/cloudstream/knowledge-base/pull/42
|
|
72
|
+
|
|
73
|
+
Next steps:
|
|
74
|
+
1. A team member will review within 24 hours
|
|
75
|
+
2. You may receive feedback for changes
|
|
76
|
+
3. After approval, run /skill-sync to see it in shared skills
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Pre-Submission Checklist
|
|
80
|
+
|
|
81
|
+
Before submitting, verify:
|
|
82
|
+
|
|
83
|
+
- [ ] Skill solves a real, recurring problem
|
|
84
|
+
- [ ] Contains no client-specific information
|
|
85
|
+
- [ ] Has clear Problem and Solution sections
|
|
86
|
+
- [ ] Code examples use placeholder values only
|
|
87
|
+
- [ ] Tested and working (you've used it successfully)
|
|
88
|
+
|
|
89
|
+
## Examples
|
|
90
|
+
|
|
91
|
+
### Submit by name
|
|
92
|
+
```
|
|
93
|
+
/skill-submit catalyst-timeout-fix
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Interactive selection
|
|
97
|
+
```
|
|
98
|
+
/skill-submit
|
|
99
|
+
> Shows list of learned skills
|
|
100
|
+
> User selects by number or name
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Requirements
|
|
104
|
+
|
|
105
|
+
- **Git**: Must be installed and configured
|
|
106
|
+
- **gh CLI**: For PR creation (`gh auth login`)
|
|
107
|
+
- **Repo access**: Must have push access to cloudstream-knowledge-base
|
|
108
|
+
|
|
109
|
+
## Troubleshooting
|
|
110
|
+
|
|
111
|
+
### "Permission denied"
|
|
112
|
+
Contact your team lead for repository access.
|
|
113
|
+
|
|
114
|
+
### "gh: command not found"
|
|
115
|
+
Install GitHub CLI: https://cli.github.com/
|
|
116
|
+
|
|
117
|
+
## Related Commands
|
|
118
|
+
|
|
119
|
+
- `/learn` - Extract patterns during a session
|
|
120
|
+
- `/skill-sync` - Pull shared skills from team repo
|
|
121
|
+
- `/skill-gaps` - See your skill coverage vs team
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-sync
|
|
3
|
+
description: Pull the latest shared skills from the CloudStream knowledge base to your local machine.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /skill-sync - Sync Shared Skills
|
|
7
|
+
|
|
8
|
+
Pull the latest approved skills from the CloudStream shared knowledge base to your local `~/.claude/skills/shared/` directory.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Why This Matters
|
|
13
|
+
|
|
14
|
+
### For Your Career
|
|
15
|
+
- **Stay current** with the latest team-approved patterns
|
|
16
|
+
- **Learn from colleagues** without waiting for direct mentorship
|
|
17
|
+
- **Avoid outdated approaches** that have been superseded
|
|
18
|
+
|
|
19
|
+
### For Your Team
|
|
20
|
+
- **Unified practices** ensure consistent code quality across projects
|
|
21
|
+
- **Distributed expertise** - benefit from specializations you don't have
|
|
22
|
+
- **Continuous improvement** - skills evolve based on real usage
|
|
23
|
+
|
|
24
|
+
### For Your Clients
|
|
25
|
+
- **Latest best practices** applied to every project automatically
|
|
26
|
+
- **Cross-pollination** - patterns proven on one project benefit others
|
|
27
|
+
- **Reduced risk** through battle-tested, peer-reviewed approaches
|
|
28
|
+
|
|
29
|
+
> **CloudStream Workflow:** Syncing skills is like keeping your tools sharp. The patterns your colleagues have validated become available to you automatically.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Usage
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
/skill-sync
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
No arguments needed. Syncs all shared skills from the team repository.
|
|
40
|
+
|
|
41
|
+
## Workflow
|
|
42
|
+
|
|
43
|
+
### Step 1: Check Repository Setup
|
|
44
|
+
|
|
45
|
+
```javascript
|
|
46
|
+
// Planned implementation - skill-sharing module (Phase 14)
|
|
47
|
+
// const { checkGitSetup, setupSharedRepo } = require('../scripts/lib/skill-sharing');
|
|
48
|
+
// const gitStatus = checkGitSetup();
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**If not configured:**
|
|
52
|
+
```
|
|
53
|
+
Setting up shared knowledge repository...
|
|
54
|
+
Cloning from: https://github.com/cloudstream/knowledge-base
|
|
55
|
+
To: ~/.claude/repos/knowledge-base
|
|
56
|
+
|
|
57
|
+
✅ Repository cloned successfully
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**If already configured:**
|
|
61
|
+
```
|
|
62
|
+
Updating shared knowledge repository...
|
|
63
|
+
Pulling latest from: origin/main
|
|
64
|
+
|
|
65
|
+
✅ Repository updated
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Step 2: Sync Skills
|
|
69
|
+
|
|
70
|
+
```javascript
|
|
71
|
+
// Planned implementation - skill-sharing module (Phase 14)
|
|
72
|
+
// const { syncFromSharedRepo } = require('../scripts/lib/skill-sharing');
|
|
73
|
+
// const result = syncFromSharedRepo();
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Step 3: Report Results
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
╔═══════════════════════════════════════════════════════════════╗
|
|
80
|
+
║ Skill Sync Complete ║
|
|
81
|
+
╠═══════════════════════════════════════════════════════════════╣
|
|
82
|
+
|
|
83
|
+
Added (3):
|
|
84
|
+
✅ zoho/creator-batch-update.md
|
|
85
|
+
By: @dev1 | Date: 2025-01-20 | v1.0.0
|
|
86
|
+
|
|
87
|
+
✅ compliance/hipaa-field-encryption.md
|
|
88
|
+
By: @dev2 | Date: 2025-01-19 | v1.0.0
|
|
89
|
+
|
|
90
|
+
✅ troubleshooting/catalyst-memory-leak.md
|
|
91
|
+
By: @dev3 | Date: 2025-01-18 | v1.0.0
|
|
92
|
+
|
|
93
|
+
Updated (1):
|
|
94
|
+
🔄 gcp/bigquery-partitioning.md
|
|
95
|
+
Version: 1.1.0 → 1.2.0
|
|
96
|
+
|
|
97
|
+
Unchanged: 12 skills
|
|
98
|
+
|
|
99
|
+
╠═══════════════════════════════════════════════════════════════╣
|
|
100
|
+
║ Total shared skills: 16 ║
|
|
101
|
+
║ Location: ~/.claude/skills/shared/ ║
|
|
102
|
+
╚═══════════════════════════════════════════════════════════════╝
|
|
103
|
+
|
|
104
|
+
💡 Tip: Run /skill-gaps to see recommendations based on your usage
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**If no changes:**
|
|
108
|
+
```
|
|
109
|
+
✅ Already up to date
|
|
110
|
+
|
|
111
|
+
Total shared skills: 16
|
|
112
|
+
Last sync: 2025-01-25 10:30:00
|
|
113
|
+
|
|
114
|
+
No new or updated skills since last sync.
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Step 4: Update Skill Injector
|
|
118
|
+
|
|
119
|
+
The sync automatically updates the skill-injector index so new skills are matched:
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
Updating skill injector index...
|
|
123
|
+
Added 3 new matching patterns
|
|
124
|
+
Skills will now auto-inject when relevant context detected
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## What Gets Synced
|
|
128
|
+
|
|
129
|
+
Skills are organized by category:
|
|
130
|
+
|
|
131
|
+
| Category | Description | Location |
|
|
132
|
+
|----------|-------------|----------|
|
|
133
|
+
| `zoho/` | Zoho Creator, Catalyst, CRM, Deluge | `~/.claude/skills/shared/zoho/` |
|
|
134
|
+
| `gcp/` | BigQuery, Dataflow, Cloud Functions | `~/.claude/skills/shared/gcp/` |
|
|
135
|
+
| `compliance/` | HIPAA, SOC2, PCI-DSS patterns | `~/.claude/skills/shared/compliance/` |
|
|
136
|
+
| `troubleshooting/` | Common issues and solutions | `~/.claude/skills/shared/troubleshooting/` |
|
|
137
|
+
| `general/` | Cross-platform patterns | `~/.claude/skills/shared/general/` |
|
|
138
|
+
|
|
139
|
+
## How Shared Skills Work
|
|
140
|
+
|
|
141
|
+
After syncing, shared skills are automatically applied by the skill-injector hook:
|
|
142
|
+
|
|
143
|
+
1. **File Pattern Matching**: Working on `.ds` files triggers Deluge skills
|
|
144
|
+
2. **Technology Detection**: BigQuery imports trigger GCP skills
|
|
145
|
+
3. **Compliance Mode**: HIPAA mode triggers compliance skills
|
|
146
|
+
4. **Keyword Matching**: Terms like "batch processing" trigger relevant patterns
|
|
147
|
+
|
|
148
|
+
You don't need to manually invoke shared skills - they're injected into context automatically.
|
|
149
|
+
|
|
150
|
+
## Browsing Synced Skills
|
|
151
|
+
|
|
152
|
+
View locally synced skills:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
# List all shared skills
|
|
156
|
+
ls ~/.claude/skills/shared/
|
|
157
|
+
|
|
158
|
+
# View a specific skill
|
|
159
|
+
cat ~/.claude/skills/shared/zoho/creator-batch-update.md
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Or use the skill index:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
cat ~/.claude/skills/shared/index.json
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Configuration
|
|
169
|
+
|
|
170
|
+
Settings in `config/shared-knowledge.json`:
|
|
171
|
+
|
|
172
|
+
```json
|
|
173
|
+
{
|
|
174
|
+
"sharedRepo": {
|
|
175
|
+
"url": "https://github.com/cloudstream/knowledge-base",
|
|
176
|
+
"branch": "main",
|
|
177
|
+
"localPath": "~/.claude/repos/knowledge-base",
|
|
178
|
+
"syncInterval": "daily",
|
|
179
|
+
"autoSync": true
|
|
180
|
+
},
|
|
181
|
+
"sync": {
|
|
182
|
+
"notifyOnNew": true,
|
|
183
|
+
"autoUpdateSkillInjector": true
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Auto-Sync
|
|
189
|
+
|
|
190
|
+
If `autoSync` is enabled, skills are synced automatically at session start. Manual sync is still useful to:
|
|
191
|
+
|
|
192
|
+
- Force an immediate update
|
|
193
|
+
- Check for new skills mid-session
|
|
194
|
+
- Troubleshoot sync issues
|
|
195
|
+
|
|
196
|
+
## Requirements
|
|
197
|
+
|
|
198
|
+
- **Git**: Must be installed
|
|
199
|
+
- **Network access**: To reach github.com
|
|
200
|
+
- **Repository access**: Read access to cloudstream-knowledge-base (default for all team members)
|
|
201
|
+
|
|
202
|
+
## Troubleshooting
|
|
203
|
+
|
|
204
|
+
### "Clone failed: Permission denied"
|
|
205
|
+
You may not have repository access. Contact your team lead.
|
|
206
|
+
|
|
207
|
+
### "Pull failed: Merge conflicts"
|
|
208
|
+
Your local repo may have uncommitted changes. Try:
|
|
209
|
+
```bash
|
|
210
|
+
cd ~/.claude/repos/knowledge-base
|
|
211
|
+
git reset --hard origin/main
|
|
212
|
+
```
|
|
213
|
+
Then run `/skill-sync` again.
|
|
214
|
+
|
|
215
|
+
### "Skills not being injected"
|
|
216
|
+
Check that skill-injector hook is enabled:
|
|
217
|
+
```bash
|
|
218
|
+
cat ~/.claude/settings.json | grep skill-injector
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Slow sync
|
|
222
|
+
First sync clones the entire repo. Subsequent syncs only pull changes.
|
|
223
|
+
|
|
224
|
+
## Related Commands
|
|
225
|
+
|
|
226
|
+
- `/skill-submit` - Submit a learned skill to the shared repo
|
|
227
|
+
- `/skill-gaps` - Analyze your skill coverage vs team
|
|
228
|
+
- `/learn` - Extract patterns during a session
|
|
229
|
+
|
|
230
|
+
## Example Session
|
|
231
|
+
|
|
232
|
+
```
|
|
233
|
+
> /skill-sync
|
|
234
|
+
|
|
235
|
+
Syncing from cloudstream-knowledge-base...
|
|
236
|
+
|
|
237
|
+
Added (3):
|
|
238
|
+
✅ zoho/creator-batch-update.md (by @dev1, 2025-01-20)
|
|
239
|
+
✅ compliance/hipaa-field-encryption.md (by @dev2, 2025-01-19)
|
|
240
|
+
✅ troubleshooting/catalyst-memory-leak.md (by @dev3, 2025-01-18)
|
|
241
|
+
|
|
242
|
+
Updated (1):
|
|
243
|
+
🔄 gcp/bigquery-partitioning.md (v1.1.0 → v1.2.0)
|
|
244
|
+
|
|
245
|
+
Unchanged (12):
|
|
246
|
+
[list omitted for brevity]
|
|
247
|
+
|
|
248
|
+
Total shared skills: 16
|
|
249
|
+
Run /skill-gaps to see recommendations based on your usage.
|
|
250
|
+
```
|
package/commands/tdd.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tdd
|
|
3
|
+
description: Enforce test-driven development workflow. Scaffold interfaces, generate tests FIRST, then implement minimal code to pass. Ensure 80%+ coverage.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /tdd [component-name]
|
|
7
|
+
|
|
8
|
+
Invoke the **tdd-guide** agent on the specified component or feature.
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
- `component-name` — Target file, module, or feature to TDD
|
|
12
|
+
|
|
13
|
+
## Workflow
|
|
14
|
+
1. Agent scaffolds interfaces/types first
|
|
15
|
+
2. Writes failing tests (RED)
|
|
16
|
+
3. Implements minimal code to pass (GREEN)
|
|
17
|
+
4. Refactors while keeping tests green (REFACTOR)
|
|
18
|
+
5. Verifies 80%+ coverage
|
|
19
|
+
|
|
20
|
+
## When to Use
|
|
21
|
+
- New features or components
|
|
22
|
+
- Bug fixes (reproduce with test first)
|
|
23
|
+
- Refactoring existing code
|
|
24
|
+
- Critical business logic
|
|
25
|
+
|
|
26
|
+
## Example Output
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
TDD WORKFLOW: UserService.create()
|
|
30
|
+
|
|
31
|
+
RED PHASE:
|
|
32
|
+
✗ should create user with valid data
|
|
33
|
+
✗ should reject duplicate email
|
|
34
|
+
✗ should hash password before storing
|
|
35
|
+
|
|
36
|
+
GREEN PHASE:
|
|
37
|
+
✓ should create user with valid data
|
|
38
|
+
✓ should reject duplicate email
|
|
39
|
+
✓ should hash password before storing
|
|
40
|
+
|
|
41
|
+
REFACTOR PHASE:
|
|
42
|
+
- Extracted validation to separate function
|
|
43
|
+
- Added JSDoc comments
|
|
44
|
+
- Tests still passing
|
|
45
|
+
|
|
46
|
+
COVERAGE: 94% (target: 80%)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Related
|
|
52
|
+
|
|
53
|
+
- **Agent:** [tdd-guide](../agents/tdd-guide.md) - The specialized agent that executes this command
|
|
54
|
+
- **Commands:**
|
|
55
|
+
- [/plan](./plan.md) - Use first for complex features
|
|
56
|
+
- [/code-review](./code-review.md) - Review after TDD completes
|
|
57
|
+
- [/test-coverage](./test-coverage.md) - Verify coverage gaps
|
|
58
|
+
- [/verify](./verify.md) - Final validation
|
|
59
|
+
- **Skills:** [tdd-workflow](../skills/tdd-workflow/SKILL.md) - Detailed TDD patterns and best practices
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: team-admin
|
|
3
|
+
description: Team administration commands for leads and admins. View team status, metrics, skill submissions, and onboarding progress.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Team Admin Command
|
|
7
|
+
|
|
8
|
+
Administrative tools for team leads to monitor and manage their team's usage of CloudStream Claude Tools.
|
|
9
|
+
|
|
10
|
+
## Instructions
|
|
11
|
+
|
|
12
|
+
When user runs `/team-admin`, provide team administration capabilities based on the subcommand.
|
|
13
|
+
|
|
14
|
+
### Subcommands
|
|
15
|
+
|
|
16
|
+
#### `/team-admin status`
|
|
17
|
+
|
|
18
|
+
Show team fork synchronization status.
|
|
19
|
+
|
|
20
|
+
**Checks:**
|
|
21
|
+
1. Read `admin/forks.json` for team member forks
|
|
22
|
+
2. For each fork, check if it's behind upstream
|
|
23
|
+
3. Report sync status
|
|
24
|
+
|
|
25
|
+
**Output:**
|
|
26
|
+
```
|
|
27
|
+
TEAM SYNC STATUS
|
|
28
|
+
|
|
29
|
+
Upstream: CloudStreamSoftware/css_claude_code (main)
|
|
30
|
+
|
|
31
|
+
Team Members:
|
|
32
|
+
alice/css_claude_code [OK] Up to date
|
|
33
|
+
bob/css_claude_code [BEHIND] 3 commits behind
|
|
34
|
+
charlie/css_claude_code [OK] Up to date
|
|
35
|
+
|
|
36
|
+
Action needed: Notify bob to sync their fork
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
#### `/team-admin metrics`
|
|
42
|
+
|
|
43
|
+
Quick summary of team metrics.
|
|
44
|
+
|
|
45
|
+
**Reads:** `admin/aggregated-metrics.json` (created by `npm run metrics:aggregate`)
|
|
46
|
+
|
|
47
|
+
**Output:**
|
|
48
|
+
```
|
|
49
|
+
TEAM METRICS SUMMARY
|
|
50
|
+
|
|
51
|
+
Period: Last 7 days
|
|
52
|
+
Team Size: 5 developers
|
|
53
|
+
|
|
54
|
+
Sessions:
|
|
55
|
+
Total: 127 sessions
|
|
56
|
+
Avg per developer: 25.4
|
|
57
|
+
Most active: alice (38 sessions)
|
|
58
|
+
|
|
59
|
+
Quality Gates:
|
|
60
|
+
Pass rate: 94%
|
|
61
|
+
Blocks prevented: 12
|
|
62
|
+
|
|
63
|
+
Skills:
|
|
64
|
+
Team skills: 16
|
|
65
|
+
Learned skills: 8
|
|
66
|
+
Pending submissions: 2
|
|
67
|
+
|
|
68
|
+
Run 'npm run metrics:roi' for detailed ROI analysis.
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
#### `/team-admin skills`
|
|
74
|
+
|
|
75
|
+
List pending skill submissions and recently added skills.
|
|
76
|
+
|
|
77
|
+
**Output:**
|
|
78
|
+
```
|
|
79
|
+
SKILL STATUS
|
|
80
|
+
|
|
81
|
+
Pending Submissions (PRs):
|
|
82
|
+
#45 - zoho-workflow-pattern by alice (2 days ago)
|
|
83
|
+
#43 - api-error-handling by bob (5 days ago)
|
|
84
|
+
|
|
85
|
+
Recently Merged (last 30 days):
|
|
86
|
+
deluge-pagination - by charlie (merged 3 days ago)
|
|
87
|
+
creator-form-validation - by alice (merged 1 week ago)
|
|
88
|
+
|
|
89
|
+
Team Skills: 16 active
|
|
90
|
+
Learned Skills: 8 active
|
|
91
|
+
|
|
92
|
+
To review: gh pr view 45
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
#### `/team-admin onboarding`
|
|
98
|
+
|
|
99
|
+
Show new hire onboarding progress.
|
|
100
|
+
|
|
101
|
+
**Checks:**
|
|
102
|
+
- Recent forks (< 30 days old)
|
|
103
|
+
- Tutorial completion status (via GitHub API if possible, or manual check)
|
|
104
|
+
|
|
105
|
+
**Output:**
|
|
106
|
+
```
|
|
107
|
+
ONBOARDING STATUS
|
|
108
|
+
|
|
109
|
+
New Team Members (last 30 days):
|
|
110
|
+
|
|
111
|
+
dave (joined 5 days ago)
|
|
112
|
+
Fork: [OK] Created
|
|
113
|
+
Dependencies: [OK] Installed
|
|
114
|
+
Tutorial: [IN PROGRESS] 4/15 lessons
|
|
115
|
+
First commit: [PENDING]
|
|
116
|
+
Action: Check in with dave on tutorial progress
|
|
117
|
+
|
|
118
|
+
eve (joined 2 days ago)
|
|
119
|
+
Fork: [OK] Created
|
|
120
|
+
Dependencies: [UNKNOWN] Check manually
|
|
121
|
+
Tutorial: [NOT STARTED]
|
|
122
|
+
First commit: [PENDING]
|
|
123
|
+
Action: Schedule setup session with eve
|
|
124
|
+
|
|
125
|
+
Fully onboarded (last 90 days): 3 developers
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
### Admin Configuration
|
|
131
|
+
|
|
132
|
+
Team admin commands require `admin/forks.json`:
|
|
133
|
+
|
|
134
|
+
```json
|
|
135
|
+
{
|
|
136
|
+
"upstream": "CloudStreamSoftware/css_claude_code",
|
|
137
|
+
"forks": [
|
|
138
|
+
{ "user": "alice", "repo": "css_claude_code", "joined": "2025-01-01" },
|
|
139
|
+
{ "user": "bob", "repo": "css_claude_code", "joined": "2025-01-15" },
|
|
140
|
+
{ "user": "charlie", "repo": "css_claude_code", "joined": "2025-02-01" }
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## Arguments
|
|
146
|
+
|
|
147
|
+
$ARGUMENTS should be one of:
|
|
148
|
+
- `status` - Fork sync status
|
|
149
|
+
- `metrics` - Quick metrics summary
|
|
150
|
+
- `skills` - Skill submission status
|
|
151
|
+
- `onboarding` - New hire progress
|
|
152
|
+
- (none) - Show help
|
|
153
|
+
|
|
154
|
+
## Examples
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
/team-admin status # Check fork sync
|
|
158
|
+
/team-admin metrics # View team metrics
|
|
159
|
+
/team-admin skills # Check skill submissions
|
|
160
|
+
/team-admin onboarding # Track new hire progress
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Prerequisites
|
|
164
|
+
|
|
165
|
+
- Must have `admin/forks.json` configured
|
|
166
|
+
- GitHub CLI (`gh`) should be authenticated
|
|
167
|
+
- For metrics: Run `npm run metrics:aggregate` first
|
|
168
|
+
|
|
169
|
+
## Related Commands
|
|
170
|
+
|
|
171
|
+
- `/health-check` - Individual health check
|
|
172
|
+
- `/diagnose` - Individual diagnostics
|
|
173
|
+
- `/skill-sync` - Sync skills from central repo
|
|
174
|
+
- `/skill-submit` - Submit new skill
|
|
175
|
+
|
|
176
|
+
## See Also
|
|
177
|
+
|
|
178
|
+
- `docs/ADMIN-RUNBOOK.md` - Full admin operations guide
|
|
179
|
+
- `docs/TEAM-ARCHITECTURE.md` - How the fork model works
|