@cloudstreamsoftware/claude-tools 1.2.3 → 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/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,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test-coverage
|
|
3
|
+
description: Analyze test coverage and generate missing tests. Targets 80%+ coverage for JS/TS code with prioritized test generation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Test Coverage
|
|
7
|
+
|
|
8
|
+
Analyze test coverage and generate missing tests:
|
|
9
|
+
|
|
10
|
+
1. Run tests with coverage: npm test --coverage or pnpm test --coverage
|
|
11
|
+
|
|
12
|
+
2. Analyze coverage report (coverage/coverage-summary.json)
|
|
13
|
+
|
|
14
|
+
3. Identify files below 80% coverage threshold
|
|
15
|
+
|
|
16
|
+
4. For each under-covered file:
|
|
17
|
+
- Analyze untested code paths
|
|
18
|
+
- Generate unit tests for functions
|
|
19
|
+
- Generate integration tests for APIs
|
|
20
|
+
- Generate E2E tests for critical flows
|
|
21
|
+
|
|
22
|
+
5. Verify new tests pass
|
|
23
|
+
|
|
24
|
+
6. Show before/after coverage metrics
|
|
25
|
+
|
|
26
|
+
7. Ensure project reaches 80%+ overall coverage
|
|
27
|
+
|
|
28
|
+
Focus on:
|
|
29
|
+
- Happy path scenarios
|
|
30
|
+
- Error handling
|
|
31
|
+
- Edge cases (null, undefined, empty)
|
|
32
|
+
- Boundary conditions
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Related
|
|
37
|
+
|
|
38
|
+
- **Agent:** [tdd-guide](../agents/tdd-guide.md) - The specialized agent that executes this command
|
|
39
|
+
- **Commands:**
|
|
40
|
+
- [/tdd](./tdd.md) - Use for test-first development on new code
|
|
41
|
+
- [/e2e](./e2e.md) - Generate end-to-end tests for critical flows
|
|
42
|
+
- [/verify](./verify.md) - Validate tests pass before committing
|
|
43
|
+
- **Skills:** [tdd-workflow](../skills/tdd-workflow/SKILL.md) - Testing patterns and coverage strategies
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tutorial
|
|
3
|
+
description: Interactive tutorial that guides users through the CloudStream Claude Tools system with hands-on exercises and progressive learning.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Tutorial Command
|
|
7
|
+
|
|
8
|
+
Start the interactive tutorial to learn the CloudStream Claude Tools system.
|
|
9
|
+
|
|
10
|
+
## Instructions
|
|
11
|
+
|
|
12
|
+
When user runs `/tutorial`, guide them through progressive lessons:
|
|
13
|
+
|
|
14
|
+
### Starting the Tutorial
|
|
15
|
+
|
|
16
|
+
If no argument provided, start from Lesson 0 or resume from last completed lesson.
|
|
17
|
+
|
|
18
|
+
### Lesson Structure
|
|
19
|
+
|
|
20
|
+
The tutorial has 15 lessons (0-14):
|
|
21
|
+
|
|
22
|
+
| # | Lesson | Topics |
|
|
23
|
+
|---|--------|--------|
|
|
24
|
+
| 0 | Philosophy & Workflow | Daily lifecycle, "aha moment", training mode philosophy |
|
|
25
|
+
| 1 | Core Concepts | Mental model, architecture, Golden Standard intro |
|
|
26
|
+
| 2 | Training Mode | Intent detection, workflow suggestions |
|
|
27
|
+
| 3 | Essential Commands | Top 6 commands: /verify, /plan, /tdd, /code-review, /checkpoint, /health-check |
|
|
28
|
+
| 4 | Workflow Patterns | plan→tdd→review→verify flows |
|
|
29
|
+
| 5 | Compliance | HIPAA, SOC2, PCI-DSS modes |
|
|
30
|
+
| 6 | Zoho Development | Creator, Catalyst, Deluge integration |
|
|
31
|
+
| 7 | Hooks System | 6 lifecycle events, blocking vs. warning hooks |
|
|
32
|
+
| 8 | MCP Servers | All 12 MCPs across 3 tiers |
|
|
33
|
+
| 9 | Client Management | /client-switch, /handoff, isolation |
|
|
34
|
+
| 10 | Testing & E2E | /e2e, /build-fix, /test-coverage, /eval |
|
|
35
|
+
| 11 | Skills Deep Dive | All 16 skills, agent relationships |
|
|
36
|
+
| 12 | Rules System | 11 rules, loading priority, frontmatter |
|
|
37
|
+
| 13 | Golden Standard Graduation | Quality bar, verification checklist |
|
|
38
|
+
| 14 | Fork Setup & Sync | Staying updated, sync tooling |
|
|
39
|
+
|
|
40
|
+
### For Each Lesson
|
|
41
|
+
|
|
42
|
+
1. Read the lesson file from `skills/tutorial/lessons/XX-name.md`
|
|
43
|
+
2. Present the **Concept** section clearly
|
|
44
|
+
3. Guide user through the **Exercise** with specific instructions
|
|
45
|
+
4. Help verify completion with the **Verification** checklist
|
|
46
|
+
5. Offer to proceed to next lesson or take a break
|
|
47
|
+
|
|
48
|
+
### Lesson Flow
|
|
49
|
+
|
|
50
|
+
Present each lesson section in order:
|
|
51
|
+
- **Concept**: What it is and why it matters (2-3 paragraphs)
|
|
52
|
+
- **Exercise**: Hands-on command to run with expected output
|
|
53
|
+
- **Verification**: Checklist to confirm understanding
|
|
54
|
+
|
|
55
|
+
After each lesson, ask: "Ready for the next lesson, or would you like to practice more?"
|
|
56
|
+
|
|
57
|
+
## Arguments
|
|
58
|
+
|
|
59
|
+
$ARGUMENTS can be:
|
|
60
|
+
- (none) - Start from beginning or resume
|
|
61
|
+
- `0-14` - Jump to specific lesson number
|
|
62
|
+
- `status` - Show progress through lessons
|
|
63
|
+
- `reset` - Start over from Lesson 0
|
|
64
|
+
|
|
65
|
+
## Examples
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
/tutorial # Start or resume
|
|
69
|
+
/tutorial 3 # Jump to Lesson 3: Essential Commands
|
|
70
|
+
/tutorial status # Show progress
|
|
71
|
+
/tutorial reset # Start over
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Progress Display
|
|
75
|
+
|
|
76
|
+
Show progress at start of each session:
|
|
77
|
+
```
|
|
78
|
+
Tutorial Progress: [=====> ] 5/15 lessons complete
|
|
79
|
+
Last: Lesson 5 - Compliance
|
|
80
|
+
Next: Lesson 6 - Zoho Development
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Lesson Files Location
|
|
84
|
+
|
|
85
|
+
Read lessons from: `skills/tutorial/lessons/`
|
|
86
|
+
- 00-philosophy-and-workflow.md
|
|
87
|
+
- 01-basics.md
|
|
88
|
+
- 02-training.md
|
|
89
|
+
- 03-commands.md
|
|
90
|
+
- 04-workflows.md
|
|
91
|
+
- 05-compliance.md
|
|
92
|
+
- 06-zoho.md
|
|
93
|
+
- 07-hooks-system.md
|
|
94
|
+
- 08-mcp-servers.md
|
|
95
|
+
- 09-client-management.md
|
|
96
|
+
- 10-testing-e2e.md
|
|
97
|
+
- 11-skills-deep-dive.md
|
|
98
|
+
- 12-rules-system.md
|
|
99
|
+
- 13-golden-standard-graduation.md
|
|
100
|
+
- 14-fork-setup-and-sync.md
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: update-codemaps
|
|
3
|
+
description: Analyze codebase structure and update architecture documentation. Scans imports, exports, and dependencies to generate codemaps.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Update Codemaps
|
|
7
|
+
|
|
8
|
+
Analyze the codebase structure and **generate** architecture documentation. The `docs/CODEMAPS/` directory is **created** by this command - it does not need to exist beforehand.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. Scan all source files for imports, exports, and dependencies
|
|
13
|
+
2. **Generate** token-lean codemaps in `docs/CODEMAPS/`:
|
|
14
|
+
- `architecture.md` - Overall architecture
|
|
15
|
+
- `backend.md` - Backend structure
|
|
16
|
+
- `frontend.md` - Frontend structure
|
|
17
|
+
- `data.md` - Data models and schemas
|
|
18
|
+
|
|
19
|
+
3. Calculate diff percentage from previous version
|
|
20
|
+
4. If changes > 30%, request user approval before updating
|
|
21
|
+
5. Add freshness timestamp to each codemap
|
|
22
|
+
6. Save reports to `.reports/codemap-diff.txt`
|
|
23
|
+
|
|
24
|
+
## Note
|
|
25
|
+
|
|
26
|
+
The `docs/CODEMAPS/` directory and its contents are **generated outputs** from analyzing the source code. If the directory doesn't exist, it will be created on first run.
|
|
27
|
+
|
|
28
|
+
Use TypeScript/Node.js for analysis. Focus on high-level structure, not implementation details.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Example Output
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
CODEMAP UPDATE: 2026-01-25
|
|
36
|
+
|
|
37
|
+
Files scanned: 147
|
|
38
|
+
Dependencies analyzed: 42
|
|
39
|
+
|
|
40
|
+
Generated:
|
|
41
|
+
✓ docs/CODEMAPS/architecture.md (12% changed)
|
|
42
|
+
✓ docs/CODEMAPS/backend.md (8% changed)
|
|
43
|
+
✓ docs/CODEMAPS/frontend.md (3% changed)
|
|
44
|
+
✓ docs/CODEMAPS/data.md (0% changed)
|
|
45
|
+
|
|
46
|
+
Diff saved to: .reports/codemap-diff.txt
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Related
|
|
52
|
+
|
|
53
|
+
- **Agent:** [doc-updater](../agents/doc-updater.md) - The specialized agent that executes this command
|
|
54
|
+
- **Commands:**
|
|
55
|
+
- [/update-docs](./update-docs.md) - Update documentation from source files
|
|
56
|
+
- [/handoff](./handoff.md) - Generate client handoff documentation
|
|
57
|
+
- **Skills:** [consultancy-workflows](../skills/consultancy-workflows/SKILL.md) - Documentation standards for handoff-ready work
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: update-docs
|
|
3
|
+
description: Sync documentation from source-of-truth. Reads package.json, source files, and generates up-to-date documentation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Update Documentation
|
|
7
|
+
|
|
8
|
+
Sync documentation from source-of-truth. This command **generates** output files - they do not need to exist beforehand.
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. Read package.json scripts section
|
|
13
|
+
- Generate scripts reference table
|
|
14
|
+
- Include descriptions from comments
|
|
15
|
+
|
|
16
|
+
2. Read .env.example (if exists)
|
|
17
|
+
- Extract all environment variables
|
|
18
|
+
- Document purpose and format
|
|
19
|
+
|
|
20
|
+
3. **Generate** docs/CONTRIB.md with:
|
|
21
|
+
- Development workflow
|
|
22
|
+
- Available scripts
|
|
23
|
+
- Environment setup
|
|
24
|
+
- Testing procedures
|
|
25
|
+
|
|
26
|
+
4. **Generate** docs/RUNBOOK.md with:
|
|
27
|
+
- Deployment procedures
|
|
28
|
+
- Monitoring and alerts
|
|
29
|
+
- Common issues and fixes
|
|
30
|
+
- Rollback procedures
|
|
31
|
+
|
|
32
|
+
5. Identify obsolete documentation:
|
|
33
|
+
- Find docs not modified in 90+ days
|
|
34
|
+
- List for manual review
|
|
35
|
+
|
|
36
|
+
6. Show diff summary
|
|
37
|
+
|
|
38
|
+
## Note
|
|
39
|
+
|
|
40
|
+
The output files (`docs/CONTRIB.md`, `docs/RUNBOOK.md`) are **generated** by this command. If they don't exist, they will be created. The source of truth is `package.json` and `.env.example` (when present).
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Related
|
|
45
|
+
|
|
46
|
+
- **Agent:** [doc-updater](../agents/doc-updater.md) - The specialized agent that executes this command
|
|
47
|
+
- **Commands:**
|
|
48
|
+
- [/update-codemaps](./update-codemaps.md) - Update architecture documentation
|
|
49
|
+
- [/handoff](./handoff.md) - Generate client handoff documentation
|
|
50
|
+
- [/verify](./verify.md) - Validate documentation accuracy
|
|
51
|
+
- **Skills:** [consultancy-workflows](../skills/consultancy-workflows/SKILL.md) - Documentation standards for client work
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify-setup
|
|
3
|
+
description: Verify CloudStream Claude Code plugin setup and configuration
|
|
4
|
+
usage: /verify-setup [--quick] [--json] [--module=<name>]
|
|
5
|
+
self-contained: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Verify Setup Command
|
|
9
|
+
|
|
10
|
+
Run comprehensive verification of the CloudStream Claude Code plugin installation.
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
/verify-setup # Full verification
|
|
16
|
+
/verify-setup --quick # Quick mode (critical checks only)
|
|
17
|
+
/verify-setup --json # JSON output for CI/CD
|
|
18
|
+
/verify-setup --module=X # Single module (environment, persistence, plugin, config, hooks, skills, agents)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## What It Checks
|
|
22
|
+
|
|
23
|
+
### Environment
|
|
24
|
+
- Node.js version (>= 18 required)
|
|
25
|
+
- Git installation
|
|
26
|
+
- Package manager availability
|
|
27
|
+
- Git user configuration
|
|
28
|
+
|
|
29
|
+
### Persistence
|
|
30
|
+
- ~/.claude directory exists and is writable
|
|
31
|
+
- sessions/, memory/, plans/ directories
|
|
32
|
+
|
|
33
|
+
### Plugin
|
|
34
|
+
- plugin.json exists and is valid
|
|
35
|
+
- commands/, skills/, hooks/ directories configured
|
|
36
|
+
- agents/ directory (optional)
|
|
37
|
+
|
|
38
|
+
### Config
|
|
39
|
+
- versions.json (skills/agents registry)
|
|
40
|
+
- quality-gates.json (compliance gates)
|
|
41
|
+
- No .env files in repository
|
|
42
|
+
|
|
43
|
+
### Hooks
|
|
44
|
+
- hooks.json configuration
|
|
45
|
+
- Hook scripts exist and have valid syntax
|
|
46
|
+
- Global settings.json has hooks configured
|
|
47
|
+
|
|
48
|
+
### Skills (Dynamic)
|
|
49
|
+
- All registered skills exist on disk
|
|
50
|
+
- All existing skills are registered in versions.json
|
|
51
|
+
- Each skill has SKILL.md
|
|
52
|
+
|
|
53
|
+
### Agents (Dynamic)
|
|
54
|
+
- All registered agents exist on disk
|
|
55
|
+
- All existing agents are registered in versions.json
|
|
56
|
+
- Each agent has valid frontmatter (name, model)
|
|
57
|
+
|
|
58
|
+
## Exit Codes
|
|
59
|
+
|
|
60
|
+
- **0**: All checks passed
|
|
61
|
+
- **1**: Warnings only (non-critical issues)
|
|
62
|
+
- **2**: Critical failures
|
|
63
|
+
|
|
64
|
+
## Example Output
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
╔═══════════════════════════════════════════════╗
|
|
68
|
+
║ CloudStream Claude Code - Setup Verifier ║
|
|
69
|
+
╚═══════════════════════════════════════════════╝
|
|
70
|
+
|
|
71
|
+
Environment:
|
|
72
|
+
Node.js [OK] v22.0.0
|
|
73
|
+
Git [OK] v2.43.0
|
|
74
|
+
Package Manager [OK] npm
|
|
75
|
+
|
|
76
|
+
Plugin:
|
|
77
|
+
plugin.json valid [OK] cloudstream-claude-code
|
|
78
|
+
commands/ [OK] 35 files
|
|
79
|
+
skills/ [OK] 14 dirs
|
|
80
|
+
|
|
81
|
+
━━━━━━━━━━━━━━━━ ISSUES FOUND ━━━━━━━━━━━━━━━━
|
|
82
|
+
|
|
83
|
+
[WARN] Git user.email not configured
|
|
84
|
+
Fix: git config --global user.email "you@example.com"
|
|
85
|
+
|
|
86
|
+
╔═══════════════════════════════════════════════╗
|
|
87
|
+
║ Result: 23/24 passed, 1 warning, 0 critical ║
|
|
88
|
+
╚═══════════════════════════════════════════════╝
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Implementation
|
|
92
|
+
|
|
93
|
+
This command runs `node scripts/verify-setup.js` which orchestrates modular verifiers.
|
|
94
|
+
|
|
95
|
+
## Related Commands
|
|
96
|
+
|
|
97
|
+
- `/health-check` - Quick system health check
|
|
98
|
+
- `/diagnose` - Deep diagnostic troubleshooting
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify
|
|
3
|
+
description: Run comprehensive verification on current codebase state. Checks build, tests, linting, and type safety in sequence.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Verification Command
|
|
7
|
+
|
|
8
|
+
Run comprehensive verification on current codebase state.
|
|
9
|
+
|
|
10
|
+
## Instructions
|
|
11
|
+
|
|
12
|
+
Execute verification in this exact order:
|
|
13
|
+
|
|
14
|
+
1. **Build Check**
|
|
15
|
+
- Run the build command for this project
|
|
16
|
+
- If it fails, report errors and STOP
|
|
17
|
+
|
|
18
|
+
2. **Type Check**
|
|
19
|
+
- Run TypeScript/type checker
|
|
20
|
+
- Report all errors with file:line
|
|
21
|
+
|
|
22
|
+
3. **Lint Check**
|
|
23
|
+
- Run linter
|
|
24
|
+
- Report warnings and errors
|
|
25
|
+
|
|
26
|
+
4. **Test Suite**
|
|
27
|
+
- Run all tests
|
|
28
|
+
- Report pass/fail count
|
|
29
|
+
- Report coverage percentage
|
|
30
|
+
|
|
31
|
+
5. **Console.log Audit**
|
|
32
|
+
- Search for console.log in source files
|
|
33
|
+
- Report locations
|
|
34
|
+
|
|
35
|
+
6. **Git Status**
|
|
36
|
+
- Show uncommitted changes
|
|
37
|
+
- Show files modified since last commit
|
|
38
|
+
|
|
39
|
+
## Output
|
|
40
|
+
|
|
41
|
+
Produce a concise verification report:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
VERIFICATION: [PASS/FAIL]
|
|
45
|
+
|
|
46
|
+
Build: [OK/FAIL]
|
|
47
|
+
Types: [OK/X errors]
|
|
48
|
+
Lint: [OK/X issues]
|
|
49
|
+
Tests: [X/Y passed, Z% coverage]
|
|
50
|
+
Secrets: [OK/X found]
|
|
51
|
+
Logs: [OK/X console.logs]
|
|
52
|
+
|
|
53
|
+
Ready for PR: [YES/NO]
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
If any critical issues, list them with fix suggestions.
|
|
57
|
+
|
|
58
|
+
## Arguments
|
|
59
|
+
|
|
60
|
+
$ARGUMENTS can be:
|
|
61
|
+
- `quick` - Only build + types
|
|
62
|
+
- `full` - All checks (default)
|
|
63
|
+
- `pre-commit` - Checks relevant for commits
|
|
64
|
+
- `pre-pr` - Full checks plus security scan
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Related
|
|
69
|
+
|
|
70
|
+
- **Commands:**
|
|
71
|
+
- [/tdd](./tdd.md) - Test-driven development workflow
|
|
72
|
+
- [/code-review](./code-review.md) - Code quality and security review
|
|
73
|
+
- [/build-fix](./build-fix.md) - Fix build and TypeScript errors
|
|
74
|
+
- [/pr-ready](./pr-ready.md) - Pre-PR validation checklist
|
|
75
|
+
- **Scripts:** `npm run verify`, `npm run preflight`
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zoho-scaffold
|
|
3
|
+
description: Scaffold a new Zoho component (Creator app, Catalyst function, or Widget). Generates boilerplate with compliance fields and best practices built in.
|
|
4
|
+
arguments: type name
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Scaffold a new Zoho component. Type: first word of $ARGUMENTS, Name: remaining words.
|
|
8
|
+
|
|
9
|
+
## Component Types
|
|
10
|
+
|
|
11
|
+
### creator
|
|
12
|
+
Generate Creator application template:
|
|
13
|
+
- Main form with standard fields (Created_By, Modified_By, timestamps)
|
|
14
|
+
- List report for the main form
|
|
15
|
+
- Basic workflow (on create, on edit)
|
|
16
|
+
- If compliance mode is HIPAA: Add audit logging fields
|
|
17
|
+
- If compliance mode is SOC2: Add change tracking fields
|
|
18
|
+
|
|
19
|
+
### catalyst
|
|
20
|
+
Generate Catalyst function template:
|
|
21
|
+
- Basic I/O function with proper structure
|
|
22
|
+
- context.close() in finally block (MANDATORY)
|
|
23
|
+
- Error handling with structured response
|
|
24
|
+
- package.json with required dependencies
|
|
25
|
+
- catalyst.json configuration
|
|
26
|
+
- Health check endpoint (for AppSail)
|
|
27
|
+
|
|
28
|
+
### widget
|
|
29
|
+
Generate React widget template:
|
|
30
|
+
- package.json with build scripts
|
|
31
|
+
- src/App.jsx with ZOHO.CREATOR.init()
|
|
32
|
+
- ZOHO SDK mock for testing
|
|
33
|
+
- Vite/webpack config for widget bundle
|
|
34
|
+
- index.html with Zoho SDK script tag
|
|
35
|
+
- Basic test file with SDK mock
|
|
36
|
+
|
|
37
|
+
## Output Structure
|
|
38
|
+
Create files in the appropriate directory within the project.
|
|
39
|
+
Display created files list when complete.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Usage Examples
|
|
44
|
+
|
|
45
|
+
### Scaffold Creator App
|
|
46
|
+
```
|
|
47
|
+
> /zoho-scaffold creator PatientIntake
|
|
48
|
+
|
|
49
|
+
╔═══════════════════════════════════════════════════════════════╗
|
|
50
|
+
║ Creator App: PatientIntake ║
|
|
51
|
+
╠═══════════════════════════════════════════════════════════════╣
|
|
52
|
+
|
|
53
|
+
📁 Generated Files:
|
|
54
|
+
creator/PatientIntake/
|
|
55
|
+
├── forms/
|
|
56
|
+
│ └── PatientIntake.json # Main form definition
|
|
57
|
+
├── reports/
|
|
58
|
+
│ └── PatientIntake_List.json # List report
|
|
59
|
+
├── workflows/
|
|
60
|
+
│ ├── onCreate.ds # Create workflow
|
|
61
|
+
│ └── onEdit.ds # Edit workflow
|
|
62
|
+
└── README.md # App documentation
|
|
63
|
+
|
|
64
|
+
📋 Form Fields (Standard):
|
|
65
|
+
- Created_By (auto)
|
|
66
|
+
- Created_Time (auto)
|
|
67
|
+
- Modified_By (auto)
|
|
68
|
+
- Modified_Time (auto)
|
|
69
|
+
- Status (single select)
|
|
70
|
+
|
|
71
|
+
🔒 HIPAA Mode Detected - Added:
|
|
72
|
+
- [PHI] fields marked
|
|
73
|
+
- AuditLog form created
|
|
74
|
+
- Encryption enabled for SSN
|
|
75
|
+
|
|
76
|
+
╚═══════════════════════════════════════════════════════════════╝
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Scaffold Catalyst Function
|
|
80
|
+
```
|
|
81
|
+
> /zoho-scaffold catalyst sendNotifications
|
|
82
|
+
|
|
83
|
+
╔═══════════════════════════════════════════════════════════════╗
|
|
84
|
+
║ Catalyst Function: sendNotifications ║
|
|
85
|
+
╠═══════════════════════════════════════════════════════════════╣
|
|
86
|
+
|
|
87
|
+
📁 Generated Files:
|
|
88
|
+
functions/sendNotifications/
|
|
89
|
+
├── index.js # Main handler
|
|
90
|
+
├── package.json # Dependencies
|
|
91
|
+
├── catalyst.json # Catalyst config
|
|
92
|
+
└── test/
|
|
93
|
+
└── index.test.js # Unit tests
|
|
94
|
+
|
|
95
|
+
📋 Template Includes:
|
|
96
|
+
✓ context.close() in finally block (MANDATORY)
|
|
97
|
+
✓ Structured error response
|
|
98
|
+
✓ 30-second timeout handling
|
|
99
|
+
✓ Health check endpoint
|
|
100
|
+
|
|
101
|
+
🔧 Next Steps:
|
|
102
|
+
1. cd functions/sendNotifications
|
|
103
|
+
2. npm install
|
|
104
|
+
3. Edit index.js with your logic
|
|
105
|
+
4. npm test
|
|
106
|
+
5. catalyst deploy
|
|
107
|
+
|
|
108
|
+
╚═══════════════════════════════════════════════════════════════╝
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Scaffold Widget
|
|
112
|
+
```
|
|
113
|
+
> /zoho-scaffold widget PatientDashboard
|
|
114
|
+
|
|
115
|
+
╔═══════════════════════════════════════════════════════════════╗
|
|
116
|
+
║ Widget: PatientDashboard ║
|
|
117
|
+
╠═══════════════════════════════════════════════════════════════╣
|
|
118
|
+
|
|
119
|
+
📁 Generated Files:
|
|
120
|
+
widgets/PatientDashboard/
|
|
121
|
+
├── src/
|
|
122
|
+
│ ├── App.jsx # Main component
|
|
123
|
+
│ ├── index.jsx # Entry point
|
|
124
|
+
│ └── zohoInit.js # SDK initialization
|
|
125
|
+
├── public/
|
|
126
|
+
│ └── index.html # HTML with SDK script
|
|
127
|
+
├── test/
|
|
128
|
+
│ ├── App.test.jsx # Component tests
|
|
129
|
+
│ └── mocks/zohoSdk.js # SDK mock for testing
|
|
130
|
+
├── package.json # Build scripts
|
|
131
|
+
├── vite.config.js # Bundle config
|
|
132
|
+
└── README.md # Widget documentation
|
|
133
|
+
|
|
134
|
+
⚠️ Widget Constraints:
|
|
135
|
+
- Widgets do NOT work on published pages
|
|
136
|
+
- Use in form headers, footers, or tabs only
|
|
137
|
+
- Maximum 50 widgets per Zoho One account
|
|
138
|
+
|
|
139
|
+
🔧 Next Steps:
|
|
140
|
+
1. cd widgets/PatientDashboard
|
|
141
|
+
2. npm install
|
|
142
|
+
3. npm run dev (local development)
|
|
143
|
+
4. npm run build (production bundle)
|
|
144
|
+
5. Upload to Creator widget settings
|
|
145
|
+
|
|
146
|
+
╚═══════════════════════════════════════════════════════════════╝
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Related
|
|
152
|
+
|
|
153
|
+
- **Agents:**
|
|
154
|
+
- [creator-architect](../agents/creator-architect.md) - Design Creator app architecture first
|
|
155
|
+
- [catalyst-deployer](../agents/catalyst-deployer.md) - Deploy Catalyst functions
|
|
156
|
+
- **Commands:**
|
|
157
|
+
- [/deluge](./deluge.md) - Generate Deluge scripts for workflows
|
|
158
|
+
- [/tdd](./tdd.md) - Write tests for generated code
|
|
159
|
+
- **Skills:** [zoho-patterns](../skills/zoho-patterns/SKILL.md) - Zoho platform patterns and constraints
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudstreamsoftware/claude-tools",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "CloudStream Claude Code productivity tools - hooks, skills, agents, and knowledge server integration",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"hooks/",
|
|
41
41
|
"skills/",
|
|
42
42
|
"agents/",
|
|
43
|
+
"commands/",
|
|
43
44
|
"README.md"
|
|
44
45
|
],
|
|
45
46
|
"dependencies": {
|