@cloudstreamsoftware/claude-tools 1.0.0 → 1.1.0

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 (189) hide show
  1. package/README.md +152 -37
  2. package/agents/INDEX.md +183 -0
  3. package/agents/architect.md +247 -0
  4. package/agents/build-error-resolver.md +555 -0
  5. package/agents/catalyst-deployer.md +132 -0
  6. package/agents/code-reviewer.md +121 -0
  7. package/agents/compliance-auditor.md +148 -0
  8. package/agents/creator-architect.md +395 -0
  9. package/agents/deluge-reviewer.md +98 -0
  10. package/agents/doc-updater.md +471 -0
  11. package/agents/e2e-runner.md +711 -0
  12. package/agents/planner.md +122 -0
  13. package/agents/refactor-cleaner.md +309 -0
  14. package/agents/security-reviewer.md +582 -0
  15. package/agents/tdd-guide.md +302 -0
  16. package/config/versions.json +63 -0
  17. package/dist/hooks/hooks.json +209 -0
  18. package/dist/index.js +47 -0
  19. package/dist/lib/asset-value.js +609 -0
  20. package/dist/lib/client-manager.js +300 -0
  21. package/dist/lib/command-matcher.js +242 -0
  22. package/dist/lib/cross-session-patterns.js +754 -0
  23. package/dist/lib/intent-classifier.js +1075 -0
  24. package/dist/lib/package-manager.js +374 -0
  25. package/dist/lib/recommendation-engine.js +597 -0
  26. package/dist/lib/session-memory.js +489 -0
  27. package/dist/lib/skill-effectiveness.js +486 -0
  28. package/dist/lib/skill-matcher.js +595 -0
  29. package/dist/lib/tutorial-metrics.js +242 -0
  30. package/dist/lib/tutorial-progress.js +209 -0
  31. package/dist/lib/tutorial-renderer.js +431 -0
  32. package/dist/lib/utils.js +380 -0
  33. package/dist/lib/verify-formatter.js +143 -0
  34. package/dist/lib/workflow-state.js +249 -0
  35. package/hooks/hooks.json +209 -0
  36. package/package.json +5 -1
  37. package/scripts/aggregate-sessions.js +290 -0
  38. package/scripts/branch-name-validator.js +291 -0
  39. package/scripts/build.js +101 -0
  40. package/scripts/commands/client-switch.js +231 -0
  41. package/scripts/deprecate-skill.js +610 -0
  42. package/scripts/diagnose.js +324 -0
  43. package/scripts/doc-freshness.js +168 -0
  44. package/scripts/generate-weekly-digest.js +393 -0
  45. package/scripts/health-check.js +270 -0
  46. package/scripts/hooks/credential-check.js +101 -0
  47. package/scripts/hooks/evaluate-session.js +81 -0
  48. package/scripts/hooks/pre-compact.js +66 -0
  49. package/scripts/hooks/prompt-analyzer.js +276 -0
  50. package/scripts/hooks/prompt-router.js +422 -0
  51. package/scripts/hooks/quality-gate-enforcer.js +371 -0
  52. package/scripts/hooks/session-end.js +156 -0
  53. package/scripts/hooks/session-start.js +195 -0
  54. package/scripts/hooks/skill-injector.js +333 -0
  55. package/scripts/hooks/suggest-compact.js +58 -0
  56. package/scripts/lib/asset-value.js +609 -0
  57. package/scripts/lib/client-manager.js +300 -0
  58. package/scripts/lib/command-matcher.js +242 -0
  59. package/scripts/lib/cross-session-patterns.js +754 -0
  60. package/scripts/lib/intent-classifier.js +1075 -0
  61. package/scripts/lib/package-manager.js +374 -0
  62. package/scripts/lib/recommendation-engine.js +597 -0
  63. package/scripts/lib/session-memory.js +489 -0
  64. package/scripts/lib/skill-effectiveness.js +486 -0
  65. package/scripts/lib/skill-matcher.js +595 -0
  66. package/scripts/lib/tutorial-metrics.js +242 -0
  67. package/scripts/lib/tutorial-progress.js +209 -0
  68. package/scripts/lib/tutorial-renderer.js +431 -0
  69. package/scripts/lib/utils.js +380 -0
  70. package/scripts/lib/verify-formatter.js +143 -0
  71. package/scripts/lib/workflow-state.js +249 -0
  72. package/scripts/onboard.js +363 -0
  73. package/scripts/quarterly-report.js +692 -0
  74. package/scripts/setup-package-manager.js +204 -0
  75. package/scripts/sync-upstream.js +391 -0
  76. package/scripts/test.js +108 -0
  77. package/scripts/tutorial-runner.js +351 -0
  78. package/scripts/validate-all.js +201 -0
  79. package/scripts/verifiers/agents.js +245 -0
  80. package/scripts/verifiers/config.js +186 -0
  81. package/scripts/verifiers/environment.js +123 -0
  82. package/scripts/verifiers/hooks.js +188 -0
  83. package/scripts/verifiers/index.js +38 -0
  84. package/scripts/verifiers/persistence.js +140 -0
  85. package/scripts/verifiers/plugin.js +215 -0
  86. package/scripts/verifiers/skills.js +209 -0
  87. package/scripts/verify-setup.js +164 -0
  88. package/skills/INDEX.md +157 -0
  89. package/skills/backend-patterns/SKILL.md +586 -0
  90. package/skills/backend-patterns/catalyst-patterns.md +128 -0
  91. package/skills/bigquery-patterns/SKILL.md +27 -0
  92. package/skills/bigquery-patterns/performance-optimization.md +518 -0
  93. package/skills/bigquery-patterns/query-patterns.md +372 -0
  94. package/skills/bigquery-patterns/schema-design.md +78 -0
  95. package/skills/cloudstream-project-template/SKILL.md +20 -0
  96. package/skills/cloudstream-project-template/structure.md +65 -0
  97. package/skills/coding-standards/SKILL.md +524 -0
  98. package/skills/coding-standards/deluge-standards.md +83 -0
  99. package/skills/compliance-patterns/SKILL.md +28 -0
  100. package/skills/compliance-patterns/hipaa/audit-requirements.md +251 -0
  101. package/skills/compliance-patterns/hipaa/baa-process.md +298 -0
  102. package/skills/compliance-patterns/hipaa/data-archival-strategy.md +387 -0
  103. package/skills/compliance-patterns/hipaa/phi-handling.md +52 -0
  104. package/skills/compliance-patterns/pci-dss/saq-a-requirements.md +307 -0
  105. package/skills/compliance-patterns/pci-dss/tokenization-patterns.md +382 -0
  106. package/skills/compliance-patterns/pci-dss/zoho-checkout-patterns.md +56 -0
  107. package/skills/compliance-patterns/soc2/access-controls.md +344 -0
  108. package/skills/compliance-patterns/soc2/audit-logging.md +458 -0
  109. package/skills/compliance-patterns/soc2/change-management.md +403 -0
  110. package/skills/compliance-patterns/soc2/deluge-execution-logging.md +407 -0
  111. package/skills/consultancy-workflows/SKILL.md +19 -0
  112. package/skills/consultancy-workflows/client-isolation.md +21 -0
  113. package/skills/consultancy-workflows/documentation-automation.md +454 -0
  114. package/skills/consultancy-workflows/handoff-procedures.md +257 -0
  115. package/skills/consultancy-workflows/knowledge-capture.md +513 -0
  116. package/skills/consultancy-workflows/time-tracking.md +26 -0
  117. package/skills/continuous-learning/SKILL.md +84 -0
  118. package/skills/continuous-learning/config.json +18 -0
  119. package/skills/continuous-learning/evaluate-session.sh +60 -0
  120. package/skills/continuous-learning-v2/SKILL.md +126 -0
  121. package/skills/continuous-learning-v2/config.json +61 -0
  122. package/skills/frontend-patterns/SKILL.md +635 -0
  123. package/skills/frontend-patterns/zoho-widget-patterns.md +103 -0
  124. package/skills/gcp-data-engineering/SKILL.md +36 -0
  125. package/skills/gcp-data-engineering/bigquery/performance-optimization.md +337 -0
  126. package/skills/gcp-data-engineering/dataflow/error-handling.md +496 -0
  127. package/skills/gcp-data-engineering/dataflow/pipeline-patterns.md +444 -0
  128. package/skills/gcp-data-engineering/dbt/model-organization.md +63 -0
  129. package/skills/gcp-data-engineering/dbt/testing-patterns.md +503 -0
  130. package/skills/gcp-data-engineering/medallion-architecture/bronze-layer.md +60 -0
  131. package/skills/gcp-data-engineering/medallion-architecture/gold-layer.md +311 -0
  132. package/skills/gcp-data-engineering/medallion-architecture/layer-transitions.md +517 -0
  133. package/skills/gcp-data-engineering/medallion-architecture/silver-layer.md +305 -0
  134. package/skills/gcp-data-engineering/zoho-to-gcp/data-extraction.md +543 -0
  135. package/skills/gcp-data-engineering/zoho-to-gcp/real-time-vs-batch.md +337 -0
  136. package/skills/security-review/SKILL.md +498 -0
  137. package/skills/security-review/compliance-checklist.md +53 -0
  138. package/skills/strategic-compact/SKILL.md +67 -0
  139. package/skills/tdd-workflow/SKILL.md +413 -0
  140. package/skills/tdd-workflow/zoho-testing.md +124 -0
  141. package/skills/tutorial/SKILL.md +249 -0
  142. package/skills/tutorial/docs/ACCESSIBILITY.md +169 -0
  143. package/skills/tutorial/lessons/00-philosophy-and-workflow.md +198 -0
  144. package/skills/tutorial/lessons/01-basics.md +81 -0
  145. package/skills/tutorial/lessons/02-training.md +86 -0
  146. package/skills/tutorial/lessons/03-commands.md +109 -0
  147. package/skills/tutorial/lessons/04-workflows.md +115 -0
  148. package/skills/tutorial/lessons/05-compliance.md +116 -0
  149. package/skills/tutorial/lessons/06-zoho.md +121 -0
  150. package/skills/tutorial/lessons/07-hooks-system.md +277 -0
  151. package/skills/tutorial/lessons/08-mcp-servers.md +316 -0
  152. package/skills/tutorial/lessons/09-client-management.md +215 -0
  153. package/skills/tutorial/lessons/10-testing-e2e.md +260 -0
  154. package/skills/tutorial/lessons/11-skills-deep-dive.md +272 -0
  155. package/skills/tutorial/lessons/12-rules-system.md +326 -0
  156. package/skills/tutorial/lessons/13-golden-standard-graduation.md +213 -0
  157. package/skills/tutorial/lessons/14-fork-setup-and-sync.md +312 -0
  158. package/skills/tutorial/lessons/15-living-examples-system.md +221 -0
  159. package/skills/tutorial/tracks/accelerated/README.md +134 -0
  160. package/skills/tutorial/tracks/accelerated/assessment/checkpoint-1.md +161 -0
  161. package/skills/tutorial/tracks/accelerated/assessment/checkpoint-2.md +175 -0
  162. package/skills/tutorial/tracks/accelerated/day-1-core-concepts.md +234 -0
  163. package/skills/tutorial/tracks/accelerated/day-2-essential-commands.md +270 -0
  164. package/skills/tutorial/tracks/accelerated/day-3-workflow-mastery.md +305 -0
  165. package/skills/tutorial/tracks/accelerated/day-4-compliance-zoho.md +304 -0
  166. package/skills/tutorial/tracks/accelerated/day-5-hooks-skills.md +344 -0
  167. package/skills/tutorial/tracks/accelerated/day-6-client-testing.md +386 -0
  168. package/skills/tutorial/tracks/accelerated/day-7-graduation.md +369 -0
  169. package/skills/zoho-patterns/CHANGELOG.md +108 -0
  170. package/skills/zoho-patterns/SKILL.md +446 -0
  171. package/skills/zoho-patterns/analytics/dashboard-patterns.md +352 -0
  172. package/skills/zoho-patterns/analytics/zoho-to-bigquery-pipeline.md +427 -0
  173. package/skills/zoho-patterns/catalyst/appsail-deployment.md +349 -0
  174. package/skills/zoho-patterns/catalyst/context-close-patterns.md +354 -0
  175. package/skills/zoho-patterns/catalyst/cron-batch-processing.md +374 -0
  176. package/skills/zoho-patterns/catalyst/function-patterns.md +439 -0
  177. package/skills/zoho-patterns/creator/form-design.md +304 -0
  178. package/skills/zoho-patterns/creator/publish-api-patterns.md +313 -0
  179. package/skills/zoho-patterns/creator/widget-integration.md +306 -0
  180. package/skills/zoho-patterns/creator/workflow-automation.md +253 -0
  181. package/skills/zoho-patterns/deluge/api-patterns.md +468 -0
  182. package/skills/zoho-patterns/deluge/batch-processing.md +403 -0
  183. package/skills/zoho-patterns/deluge/cross-app-integration.md +356 -0
  184. package/skills/zoho-patterns/deluge/error-handling.md +423 -0
  185. package/skills/zoho-patterns/deluge/syntax-reference.md +65 -0
  186. package/skills/zoho-patterns/integration/cors-proxy-architecture.md +426 -0
  187. package/skills/zoho-patterns/integration/crm-books-native-sync.md +277 -0
  188. package/skills/zoho-patterns/integration/oauth-token-management.md +461 -0
  189. package/skills/zoho-patterns/integration/zoho-flow-patterns.md +334 -0
@@ -0,0 +1,86 @@
1
+ # Lesson 2: Training Mode
2
+
3
+ Training mode helps you learn optimal workflows by suggesting the best command sequence for any task.
4
+
5
+ ## Concept
6
+
7
+ Training mode is like having an expert pair programmer who:
8
+ 1. Analyzes what you're trying to do
9
+ 2. Suggests the optimal workflow
10
+ 3. Explains WHY that order matters
11
+ 4. Lets you proceed, modify, or skip
12
+
13
+ It works through **intent detection** - scanning your prompt for keywords that map to workflow patterns.
14
+
15
+ Example:
16
+ - "Add a login feature" → Detects "add" + "feature" → Suggests: plan → tdd → code-review → verify
17
+ - "Fix the broken API" → Detects "fix" + "broken" → Suggests: tdd → verify
18
+ - "Refactor the utils" → Detects "refactor" → Suggests: refactor-clean → code-review
19
+
20
+ ## Why This Matters
21
+
22
+ Without training mode, you might:
23
+ - Start coding without a plan (scope creep)
24
+ - Skip tests (bugs in production)
25
+ - Forget code review (quality issues)
26
+ - Miss the verify step (broken builds)
27
+
28
+ Training mode ensures you follow best practices until they become habit.
29
+
30
+ ## Exercise
31
+
32
+ Let's enable training mode and see it in action.
33
+
34
+ **Step 1**: Create or open a project's CLAUDE.md file
35
+
36
+ **Step 2**: Add these lines:
37
+ ```markdown
38
+ ## Training Mode: enabled
39
+ ## Training Verbosity: standard
40
+ ```
41
+
42
+ **Step 3**: Ask Claude to do something:
43
+ ```
44
+ Add a user profile feature
45
+ ```
46
+
47
+ **Step 4**: Observe the training prompt:
48
+ - See the suggested workflow
49
+ - Note the explanation of WHY this order
50
+ - Choose: Proceed / Modify / Skip
51
+
52
+ ## Verification
53
+
54
+ You've completed this exercise successfully if:
55
+ - [ ] You saw a workflow suggestion (not just code immediately)
56
+ - [ ] The suggestion included multiple steps
57
+ - [ ] You understood WHY each step was suggested
58
+ - [ ] You were given choice to proceed/modify/skip
59
+
60
+ ## Key Takeaway
61
+
62
+ Training mode teaches you optimal workflows. Keep it enabled until the patterns become automatic.
63
+
64
+ ## Verbosity Options
65
+
66
+ You can adjust how much training mode explains:
67
+
68
+ | Setting | What You See |
69
+ |---------|--------------|
70
+ | minimal | Just the command sequence |
71
+ | standard | Commands + brief rationale |
72
+ | detailed | Commands + rationale + skill references |
73
+
74
+ Update your CLAUDE.md:
75
+ ```markdown
76
+ ## Training Verbosity: minimal
77
+ ```
78
+
79
+ ## Next Steps
80
+
81
+ In Lesson 3, you'll learn the 6 most essential commands every user should memorize.
82
+
83
+ ---
84
+
85
+ **Feature learned**: Training Mode - automatic workflow suggestions based on intent
86
+ **Progress**: 3 of 15 lessons complete
@@ -0,0 +1,109 @@
1
+ # Lesson 3: Essential Commands
2
+
3
+ These 5 commands form the core of your daily workflow. Master these first.
4
+
5
+ ## Concept
6
+
7
+ You don't need to memorize all 22 commands. These 6 cover 90% of daily work:
8
+
9
+ | # | Command | Purpose | When to Use |
10
+ |---|---------|---------|-------------|
11
+ | 1 | `/verify` | Validate project | Before every commit |
12
+ | 2 | `/plan` | Design implementation | Complex features |
13
+ | 3 | `/tdd` | Test-driven development | New code |
14
+ | 4 | `/code-review` | Quality check | Before PR |
15
+ | 5 | `/checkpoint` | Recovery point | Before risky changes |
16
+ | 6 | `/audit` | System health check | Start of session, debugging |
17
+
18
+ Think of them as a safety workflow:
19
+ ```
20
+ audit → checkpoint → plan → tdd → code-review → verify → commit
21
+ ```
22
+
23
+ ## Why This Matters
24
+
25
+ Each command prevents specific problems:
26
+ - `/audit` ensures system is healthy and properly configured
27
+ - `/verify` catches broken builds before CI
28
+ - `/plan` prevents scope creep and rework
29
+ - `/tdd` ensures testable, quality code
30
+ - `/code-review` catches bugs and security issues
31
+ - `/checkpoint` enables safe rollback
32
+
33
+ ## Exercise
34
+
35
+ Let's practice each command on a test file.
36
+
37
+ **Step 1**: Run `/audit` to check system health:
38
+ ```
39
+ /audit
40
+ ```
41
+ This verifies Memory MCP, features, and configuration are working.
42
+
43
+ **Step 2**: Create a simple test file:
44
+ ```javascript
45
+ // test-file.js
46
+ function add(a, b) {
47
+ return a + b;
48
+ }
49
+ ```
50
+
51
+ **Step 3**: Run `/checkpoint`:
52
+ ```
53
+ /checkpoint
54
+ ```
55
+ This creates a save point you can return to.
56
+
57
+ **Step 4**: Run `/plan "add multiplication function"`:
58
+ ```
59
+ /plan "add a multiply function with tests"
60
+ ```
61
+ Observe the implementation plan.
62
+
63
+ **Step 5**: Run `/tdd multiply`:
64
+ ```
65
+ /tdd multiply
66
+ ```
67
+ Watch the RED → GREEN → REFACTOR flow.
68
+
69
+ **Step 6**: Run `/code-review`:
70
+ ```
71
+ /code-review
72
+ ```
73
+ See quality feedback on your changes.
74
+
75
+ **Step 7**: Run `/verify`:
76
+ ```
77
+ /verify
78
+ ```
79
+ Final validation before commit.
80
+
81
+ ## Verification
82
+
83
+ You've completed this exercise successfully if:
84
+ - [ ] `/audit` showed system health status
85
+ - [ ] `/checkpoint` created a recovery point
86
+ - [ ] `/plan` showed implementation steps
87
+ - [ ] `/tdd` wrote tests before implementation
88
+ - [ ] `/code-review` provided quality feedback
89
+ - [ ] `/verify` ran all validations
90
+
91
+ ## Key Takeaway
92
+
93
+ These 6 commands are your daily toolkit. Use them in sequence: audit → checkpoint → plan → tdd → code-review → verify.
94
+
95
+ ## Pro Tips
96
+
97
+ 1. **Always `/verify` before commit** - catches 80% of issues
98
+ 2. **Use `/plan` for anything taking >30 min** - prevents rework
99
+ 3. **`/checkpoint` before refactors** - enables safe experimentation
100
+ 4. **`/code-review` with security flag** - `/code-review --security` for auth code
101
+
102
+ ## Next Steps
103
+
104
+ In Lesson 4, you'll learn complete workflow patterns for different task types.
105
+
106
+ ---
107
+
108
+ **Commands learned**: `/verify`, `/plan`, `/tdd`, `/code-review`, `/checkpoint`, `/audit`
109
+ **Progress**: 4 of 15 lessons complete
@@ -0,0 +1,115 @@
1
+ # Lesson 4: Workflow Patterns
2
+
3
+ Different tasks need different workflows. Learn when to use each pattern.
4
+
5
+ ## Concept
6
+
7
+ The system recognizes 16 different intent types, each with an optimal workflow:
8
+
9
+ ### Common Workflows
10
+
11
+ **New Feature**
12
+ ```
13
+ /plan → /tdd → /code-review → /verify
14
+ ```
15
+ Plan first, test-drive the implementation, review quality, validate.
16
+
17
+ **Bug Fix**
18
+ ```
19
+ /tdd → /verify
20
+ ```
21
+ Write a failing test that reproduces the bug, fix it, verify.
22
+
23
+ **Refactoring**
24
+ ```
25
+ /checkpoint → /refactor-clean → /code-review → /verify
26
+ ```
27
+ Safety checkpoint, clean up, review changes, validate nothing broke.
28
+
29
+ **Security Work**
30
+ ```
31
+ /code-review --security → /verify
32
+ ```
33
+ Security-focused review, then validation.
34
+
35
+ ## Why This Matters
36
+
37
+ Using the right workflow:
38
+ - **Prevents rework** - plan before coding
39
+ - **Catches bugs early** - test before implementation
40
+ - **Ensures quality** - review before commit
41
+ - **Enables rollback** - checkpoint before risky changes
42
+
43
+ ## Exercise
44
+
45
+ Let's execute a complete feature workflow.
46
+
47
+ **Step 1**: Start with a plan:
48
+ ```
49
+ /plan "add a greeting function that returns 'Hello, {name}!'"
50
+ ```
51
+
52
+ **Step 2**: Approve the plan, then use TDD:
53
+ ```
54
+ /tdd greeting
55
+ ```
56
+ Observe:
57
+ 1. Test file created first (RED)
58
+ 2. Implementation to pass tests (GREEN)
59
+ 3. Cleanup if needed (REFACTOR)
60
+
61
+ **Step 3**: Review the code:
62
+ ```
63
+ /code-review
64
+ ```
65
+ Check for:
66
+ - Code quality feedback
67
+ - Potential improvements
68
+ - Security considerations
69
+
70
+ **Step 4**: Final verification:
71
+ ```
72
+ /verify
73
+ ```
74
+ Ensure everything passes.
75
+
76
+ ## Verification
77
+
78
+ You've completed this exercise successfully if:
79
+ - [ ] You followed the plan → tdd → review → verify sequence
80
+ - [ ] Tests were written BEFORE implementation
81
+ - [ ] Code review provided actionable feedback
82
+ - [ ] Final verify showed all green
83
+
84
+ ## Key Takeaway
85
+
86
+ Match your workflow to your task. The system suggests the right pattern via training mode.
87
+
88
+ ## Workflow Quick Reference
89
+
90
+ | Task Type | Workflow |
91
+ |-----------|----------|
92
+ | New feature | plan → tdd → review → verify |
93
+ | Bug fix | tdd → verify |
94
+ | Refactor | checkpoint → refactor-clean → review → verify |
95
+ | Security | review (security) → verify |
96
+ | Deployment | checkpoint → verify → deploy |
97
+ | Documentation | update-docs → update-codemaps |
98
+
99
+ ## The Orchestrate Shortcut
100
+
101
+ For complex tasks, use `/orchestrate` to chain agents automatically:
102
+ ```
103
+ /orchestrate feature "user authentication"
104
+ ```
105
+
106
+ This triggers: planner → architect → tdd-guide → code-reviewer
107
+
108
+ ## Next Steps
109
+
110
+ In Lesson 5, you'll learn about compliance modes for regulated industries.
111
+
112
+ ---
113
+
114
+ **Pattern learned**: Task-specific workflows - match the workflow to the task type
115
+ **Progress**: 5 of 15 lessons complete
@@ -0,0 +1,116 @@
1
+ # Lesson 5: Compliance Modes
2
+
3
+ For regulated industries (healthcare, finance, etc.), compliance modes ensure code meets standards.
4
+
5
+ ## Concept
6
+
7
+ The system supports three compliance frameworks:
8
+
9
+ | Mode | Industry | Key Requirements |
10
+ |------|----------|------------------|
11
+ | HIPAA | Healthcare | PHI protection, encryption, audit logs |
12
+ | SOC2 | SaaS/Cloud | Data security, availability, processing integrity |
13
+ | PCI-DSS | Payments | Cardholder data protection, access control |
14
+
15
+ When compliance mode is active:
16
+ 1. `/code-review` checks for compliance violations
17
+ 2. `/compliance-check` runs a full audit
18
+ 3. Agents add compliance-specific validations
19
+ 4. Generated code includes required safeguards
20
+
21
+ ## Why This Matters
22
+
23
+ Compliance violations can result in:
24
+ - **HIPAA**: Fines up to $1.5M per incident
25
+ - **SOC2**: Failed audits, lost enterprise customers
26
+ - **PCI-DSS**: Inability to process payments
27
+
28
+ The system catches violations during development, not after deployment.
29
+
30
+ ## Exercise
31
+
32
+ Let's set up compliance mode and run an audit.
33
+
34
+ **Step 1**: Add compliance mode to your CLAUDE.md:
35
+ ```markdown
36
+ ## Compliance Mode: hipaa
37
+ ```
38
+
39
+ **Step 2**: Run a compliance check:
40
+ ```
41
+ /compliance-check
42
+ ```
43
+
44
+ **Step 3**: Observe the audit output:
45
+ - PHI exposure risks
46
+ - Encryption requirements
47
+ - Audit logging gaps
48
+ - Access control issues
49
+
50
+ **Step 4**: Review compliance-aware code review:
51
+ ```
52
+ /code-review
53
+ ```
54
+ Notice the additional compliance checks in the output.
55
+
56
+ ## Verification
57
+
58
+ You've completed this exercise successfully if:
59
+ - [ ] You set compliance mode in CLAUDE.md
60
+ - [ ] `/compliance-check` ran an audit
61
+ - [ ] You saw compliance-specific findings
62
+ - [ ] `/code-review` included compliance checks
63
+
64
+ ## Key Takeaway
65
+
66
+ Set compliance mode once per project, and the system handles the rest.
67
+
68
+ ## Compliance Quick Reference
69
+
70
+ ### HIPAA Mode
71
+ ```markdown
72
+ ## Compliance Mode: hipaa
73
+ ```
74
+ Checks for:
75
+ - PHI in logs/errors
76
+ - Encryption at rest/transit
77
+ - Audit trail for data access
78
+ - Minimum necessary access
79
+
80
+ ### SOC2 Mode
81
+ ```markdown
82
+ ## Compliance Mode: soc2
83
+ ```
84
+ Checks for:
85
+ - Data retention policies
86
+ - Change management
87
+ - Incident response
88
+ - Vendor management
89
+
90
+ ### PCI-DSS Mode
91
+ ```markdown
92
+ ## Compliance Mode: pci-dss
93
+ ```
94
+ Checks for:
95
+ - Card data exposure
96
+ - Encryption standards
97
+ - Access logging
98
+ - Network segmentation
99
+
100
+ ## Combining Modes
101
+
102
+ For projects requiring multiple frameworks:
103
+ ```markdown
104
+ ## Compliance Mode: hipaa, soc2
105
+ ```
106
+
107
+ The system applies all relevant checks.
108
+
109
+ ## Next Steps
110
+
111
+ In Lesson 6, you'll learn Zoho-specific development workflows.
112
+
113
+ ---
114
+
115
+ **Feature learned**: Compliance modes - automatic regulatory compliance checks
116
+ **Progress**: 6 of 15 lessons complete
@@ -0,0 +1,121 @@
1
+ # Lesson 6: Zoho Development
2
+
3
+ Specialized workflows for Zoho Creator, Catalyst, and Deluge development.
4
+
5
+ ## Concept
6
+
7
+ Zoho development has unique constraints:
8
+ - **Deluge** has a 5,000-statement limit per function
9
+ - **Catalyst** functions have 40-second timeout
10
+ - **Creator** forms have specific relationship patterns
11
+
12
+ The system includes agents specialized for Zoho:
13
+ - `creator-architect` - Creator app design
14
+ - `catalyst-deployer` - Catalyst function deployment
15
+ - `deluge-reviewer` - Deluge script validation
16
+
17
+ ## Why This Matters
18
+
19
+ Without these constraints in mind:
20
+ - Scripts hit statement limits and fail
21
+ - Functions timeout in production
22
+ - Creator relationships break data integrity
23
+
24
+ The system catches these issues before deployment.
25
+
26
+ ## Exercise
27
+
28
+ Let's scaffold a Catalyst function and write Deluge code.
29
+
30
+ **Step 1**: Scaffold a Catalyst function:
31
+ ```
32
+ /zoho-scaffold catalyst-function "process-webhook"
33
+ ```
34
+ Observe the generated structure:
35
+ - Function boilerplate
36
+ - Error handling
37
+ - Timeout management
38
+ - Logging setup
39
+
40
+ **Step 2**: Generate Deluge code:
41
+ ```
42
+ /deluge "fetch contacts from CRM and update Creator form"
43
+ ```
44
+ Notice:
45
+ - Null checks on every variable
46
+ - Try-catch error handling
47
+ - Statement count awareness
48
+ - API call batching
49
+
50
+ **Step 3**: Review the generated code:
51
+ ```
52
+ /code-review
53
+ ```
54
+ See Zoho-specific checks:
55
+ - Statement count estimation
56
+ - API quota usage
57
+ - Timeout risks
58
+
59
+ ## Verification
60
+
61
+ You've completed this exercise successfully if:
62
+ - [ ] `/zoho-scaffold` created a function structure
63
+ - [ ] `/deluge` generated code with proper safeguards
64
+ - [ ] Code review included Zoho-specific checks
65
+ - [ ] You understand the platform constraints
66
+
67
+ ## Key Takeaway
68
+
69
+ Use the Zoho commands to generate code that respects platform limits.
70
+
71
+ ## Zoho Quick Reference
72
+
73
+ ### Creator Development
74
+ ```
75
+ /zoho-scaffold creator-app "inventory-tracker"
76
+ ```
77
+ Generates:
78
+ - Form hierarchy design
79
+ - Workflow templates
80
+ - Widget placeholders
81
+ - Connection setup
82
+
83
+ ### Catalyst Functions
84
+ ```
85
+ /zoho-scaffold catalyst-function "data-sync"
86
+ ```
87
+ Generates:
88
+ - Function entry point
89
+ - Error handling
90
+ - Environment config
91
+ - Logging setup
92
+
93
+ ### Deluge Scripts
94
+ ```
95
+ /deluge "calculate invoice totals with tax"
96
+ ```
97
+ Generates:
98
+ - Null-safe code
99
+ - Error handling
100
+ - Optimized queries
101
+ - Comment documentation
102
+
103
+ ## Platform Constraints Reference
104
+
105
+ | Platform | Constraint | Limit |
106
+ |----------|------------|-------|
107
+ | Deluge | Statements per function | 5,000 |
108
+ | Catalyst | Function timeout | 40 seconds |
109
+ | Creator | Subforms per form | 10 |
110
+ | Catalyst | Memory per function | 512 MB |
111
+ | Deluge | API calls per function | 25,000/day |
112
+
113
+ ## Next Steps
114
+
115
+ In Lesson 7, you'll learn about the Hooks System - how to automate quality checks before and after Claude Code actions.
116
+
117
+ ---
118
+
119
+ **Commands learned**: `/zoho-scaffold`, `/deluge`
120
+ **Agents introduced**: creator-architect, catalyst-deployer, deluge-reviewer
121
+ **Progress**: 7 of 15 lessons complete