@cloudstreamsoftware/claude-tools 1.0.0 → 1.2.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 (190) 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/bin/cloudstream-setup.js +16 -6
  17. package/config/versions.json +63 -0
  18. package/dist/hooks/hooks.json +209 -0
  19. package/dist/index.js +47 -0
  20. package/dist/lib/asset-value.js +609 -0
  21. package/dist/lib/client-manager.js +300 -0
  22. package/dist/lib/command-matcher.js +242 -0
  23. package/dist/lib/cross-session-patterns.js +754 -0
  24. package/dist/lib/intent-classifier.js +1075 -0
  25. package/dist/lib/package-manager.js +374 -0
  26. package/dist/lib/recommendation-engine.js +597 -0
  27. package/dist/lib/session-memory.js +489 -0
  28. package/dist/lib/skill-effectiveness.js +486 -0
  29. package/dist/lib/skill-matcher.js +595 -0
  30. package/dist/lib/tutorial-metrics.js +242 -0
  31. package/dist/lib/tutorial-progress.js +209 -0
  32. package/dist/lib/tutorial-renderer.js +431 -0
  33. package/dist/lib/utils.js +380 -0
  34. package/dist/lib/verify-formatter.js +143 -0
  35. package/dist/lib/workflow-state.js +249 -0
  36. package/hooks/hooks.json +209 -0
  37. package/package.json +5 -1
  38. package/scripts/aggregate-sessions.js +290 -0
  39. package/scripts/branch-name-validator.js +291 -0
  40. package/scripts/build.js +101 -0
  41. package/scripts/commands/client-switch.js +231 -0
  42. package/scripts/deprecate-skill.js +610 -0
  43. package/scripts/diagnose.js +324 -0
  44. package/scripts/doc-freshness.js +168 -0
  45. package/scripts/generate-weekly-digest.js +393 -0
  46. package/scripts/health-check.js +270 -0
  47. package/scripts/hooks/credential-check.js +101 -0
  48. package/scripts/hooks/evaluate-session.js +81 -0
  49. package/scripts/hooks/pre-compact.js +66 -0
  50. package/scripts/hooks/prompt-analyzer.js +276 -0
  51. package/scripts/hooks/prompt-router.js +422 -0
  52. package/scripts/hooks/quality-gate-enforcer.js +371 -0
  53. package/scripts/hooks/session-end.js +156 -0
  54. package/scripts/hooks/session-start.js +195 -0
  55. package/scripts/hooks/skill-injector.js +333 -0
  56. package/scripts/hooks/suggest-compact.js +58 -0
  57. package/scripts/lib/asset-value.js +609 -0
  58. package/scripts/lib/client-manager.js +300 -0
  59. package/scripts/lib/command-matcher.js +242 -0
  60. package/scripts/lib/cross-session-patterns.js +754 -0
  61. package/scripts/lib/intent-classifier.js +1075 -0
  62. package/scripts/lib/package-manager.js +374 -0
  63. package/scripts/lib/recommendation-engine.js +597 -0
  64. package/scripts/lib/session-memory.js +489 -0
  65. package/scripts/lib/skill-effectiveness.js +486 -0
  66. package/scripts/lib/skill-matcher.js +595 -0
  67. package/scripts/lib/tutorial-metrics.js +242 -0
  68. package/scripts/lib/tutorial-progress.js +209 -0
  69. package/scripts/lib/tutorial-renderer.js +431 -0
  70. package/scripts/lib/utils.js +380 -0
  71. package/scripts/lib/verify-formatter.js +143 -0
  72. package/scripts/lib/workflow-state.js +249 -0
  73. package/scripts/onboard.js +363 -0
  74. package/scripts/quarterly-report.js +692 -0
  75. package/scripts/setup-package-manager.js +204 -0
  76. package/scripts/sync-upstream.js +391 -0
  77. package/scripts/test.js +108 -0
  78. package/scripts/tutorial-runner.js +351 -0
  79. package/scripts/validate-all.js +201 -0
  80. package/scripts/verifiers/agents.js +245 -0
  81. package/scripts/verifiers/config.js +186 -0
  82. package/scripts/verifiers/environment.js +123 -0
  83. package/scripts/verifiers/hooks.js +188 -0
  84. package/scripts/verifiers/index.js +38 -0
  85. package/scripts/verifiers/persistence.js +140 -0
  86. package/scripts/verifiers/plugin.js +215 -0
  87. package/scripts/verifiers/skills.js +209 -0
  88. package/scripts/verify-setup.js +164 -0
  89. package/skills/INDEX.md +157 -0
  90. package/skills/backend-patterns/SKILL.md +586 -0
  91. package/skills/backend-patterns/catalyst-patterns.md +128 -0
  92. package/skills/bigquery-patterns/SKILL.md +27 -0
  93. package/skills/bigquery-patterns/performance-optimization.md +518 -0
  94. package/skills/bigquery-patterns/query-patterns.md +372 -0
  95. package/skills/bigquery-patterns/schema-design.md +78 -0
  96. package/skills/cloudstream-project-template/SKILL.md +20 -0
  97. package/skills/cloudstream-project-template/structure.md +65 -0
  98. package/skills/coding-standards/SKILL.md +524 -0
  99. package/skills/coding-standards/deluge-standards.md +83 -0
  100. package/skills/compliance-patterns/SKILL.md +28 -0
  101. package/skills/compliance-patterns/hipaa/audit-requirements.md +251 -0
  102. package/skills/compliance-patterns/hipaa/baa-process.md +298 -0
  103. package/skills/compliance-patterns/hipaa/data-archival-strategy.md +387 -0
  104. package/skills/compliance-patterns/hipaa/phi-handling.md +52 -0
  105. package/skills/compliance-patterns/pci-dss/saq-a-requirements.md +307 -0
  106. package/skills/compliance-patterns/pci-dss/tokenization-patterns.md +382 -0
  107. package/skills/compliance-patterns/pci-dss/zoho-checkout-patterns.md +56 -0
  108. package/skills/compliance-patterns/soc2/access-controls.md +344 -0
  109. package/skills/compliance-patterns/soc2/audit-logging.md +458 -0
  110. package/skills/compliance-patterns/soc2/change-management.md +403 -0
  111. package/skills/compliance-patterns/soc2/deluge-execution-logging.md +407 -0
  112. package/skills/consultancy-workflows/SKILL.md +19 -0
  113. package/skills/consultancy-workflows/client-isolation.md +21 -0
  114. package/skills/consultancy-workflows/documentation-automation.md +454 -0
  115. package/skills/consultancy-workflows/handoff-procedures.md +257 -0
  116. package/skills/consultancy-workflows/knowledge-capture.md +513 -0
  117. package/skills/consultancy-workflows/time-tracking.md +26 -0
  118. package/skills/continuous-learning/SKILL.md +84 -0
  119. package/skills/continuous-learning/config.json +18 -0
  120. package/skills/continuous-learning/evaluate-session.sh +60 -0
  121. package/skills/continuous-learning-v2/SKILL.md +126 -0
  122. package/skills/continuous-learning-v2/config.json +61 -0
  123. package/skills/frontend-patterns/SKILL.md +635 -0
  124. package/skills/frontend-patterns/zoho-widget-patterns.md +103 -0
  125. package/skills/gcp-data-engineering/SKILL.md +36 -0
  126. package/skills/gcp-data-engineering/bigquery/performance-optimization.md +337 -0
  127. package/skills/gcp-data-engineering/dataflow/error-handling.md +496 -0
  128. package/skills/gcp-data-engineering/dataflow/pipeline-patterns.md +444 -0
  129. package/skills/gcp-data-engineering/dbt/model-organization.md +63 -0
  130. package/skills/gcp-data-engineering/dbt/testing-patterns.md +503 -0
  131. package/skills/gcp-data-engineering/medallion-architecture/bronze-layer.md +60 -0
  132. package/skills/gcp-data-engineering/medallion-architecture/gold-layer.md +311 -0
  133. package/skills/gcp-data-engineering/medallion-architecture/layer-transitions.md +517 -0
  134. package/skills/gcp-data-engineering/medallion-architecture/silver-layer.md +305 -0
  135. package/skills/gcp-data-engineering/zoho-to-gcp/data-extraction.md +543 -0
  136. package/skills/gcp-data-engineering/zoho-to-gcp/real-time-vs-batch.md +337 -0
  137. package/skills/security-review/SKILL.md +498 -0
  138. package/skills/security-review/compliance-checklist.md +53 -0
  139. package/skills/strategic-compact/SKILL.md +67 -0
  140. package/skills/tdd-workflow/SKILL.md +413 -0
  141. package/skills/tdd-workflow/zoho-testing.md +124 -0
  142. package/skills/tutorial/SKILL.md +249 -0
  143. package/skills/tutorial/docs/ACCESSIBILITY.md +169 -0
  144. package/skills/tutorial/lessons/00-philosophy-and-workflow.md +198 -0
  145. package/skills/tutorial/lessons/01-basics.md +81 -0
  146. package/skills/tutorial/lessons/02-training.md +86 -0
  147. package/skills/tutorial/lessons/03-commands.md +109 -0
  148. package/skills/tutorial/lessons/04-workflows.md +115 -0
  149. package/skills/tutorial/lessons/05-compliance.md +116 -0
  150. package/skills/tutorial/lessons/06-zoho.md +121 -0
  151. package/skills/tutorial/lessons/07-hooks-system.md +277 -0
  152. package/skills/tutorial/lessons/08-mcp-servers.md +316 -0
  153. package/skills/tutorial/lessons/09-client-management.md +215 -0
  154. package/skills/tutorial/lessons/10-testing-e2e.md +260 -0
  155. package/skills/tutorial/lessons/11-skills-deep-dive.md +272 -0
  156. package/skills/tutorial/lessons/12-rules-system.md +326 -0
  157. package/skills/tutorial/lessons/13-golden-standard-graduation.md +213 -0
  158. package/skills/tutorial/lessons/14-fork-setup-and-sync.md +312 -0
  159. package/skills/tutorial/lessons/15-living-examples-system.md +221 -0
  160. package/skills/tutorial/tracks/accelerated/README.md +134 -0
  161. package/skills/tutorial/tracks/accelerated/assessment/checkpoint-1.md +161 -0
  162. package/skills/tutorial/tracks/accelerated/assessment/checkpoint-2.md +175 -0
  163. package/skills/tutorial/tracks/accelerated/day-1-core-concepts.md +234 -0
  164. package/skills/tutorial/tracks/accelerated/day-2-essential-commands.md +270 -0
  165. package/skills/tutorial/tracks/accelerated/day-3-workflow-mastery.md +305 -0
  166. package/skills/tutorial/tracks/accelerated/day-4-compliance-zoho.md +304 -0
  167. package/skills/tutorial/tracks/accelerated/day-5-hooks-skills.md +344 -0
  168. package/skills/tutorial/tracks/accelerated/day-6-client-testing.md +386 -0
  169. package/skills/tutorial/tracks/accelerated/day-7-graduation.md +369 -0
  170. package/skills/zoho-patterns/CHANGELOG.md +108 -0
  171. package/skills/zoho-patterns/SKILL.md +446 -0
  172. package/skills/zoho-patterns/analytics/dashboard-patterns.md +352 -0
  173. package/skills/zoho-patterns/analytics/zoho-to-bigquery-pipeline.md +427 -0
  174. package/skills/zoho-patterns/catalyst/appsail-deployment.md +349 -0
  175. package/skills/zoho-patterns/catalyst/context-close-patterns.md +354 -0
  176. package/skills/zoho-patterns/catalyst/cron-batch-processing.md +374 -0
  177. package/skills/zoho-patterns/catalyst/function-patterns.md +439 -0
  178. package/skills/zoho-patterns/creator/form-design.md +304 -0
  179. package/skills/zoho-patterns/creator/publish-api-patterns.md +313 -0
  180. package/skills/zoho-patterns/creator/widget-integration.md +306 -0
  181. package/skills/zoho-patterns/creator/workflow-automation.md +253 -0
  182. package/skills/zoho-patterns/deluge/api-patterns.md +468 -0
  183. package/skills/zoho-patterns/deluge/batch-processing.md +403 -0
  184. package/skills/zoho-patterns/deluge/cross-app-integration.md +356 -0
  185. package/skills/zoho-patterns/deluge/error-handling.md +423 -0
  186. package/skills/zoho-patterns/deluge/syntax-reference.md +65 -0
  187. package/skills/zoho-patterns/integration/cors-proxy-architecture.md +426 -0
  188. package/skills/zoho-patterns/integration/crm-books-native-sync.md +277 -0
  189. package/skills/zoho-patterns/integration/oauth-token-management.md +461 -0
  190. package/skills/zoho-patterns/integration/zoho-flow-patterns.md +334 -0
@@ -0,0 +1,234 @@
1
+ # Day 1: Core Concepts & Philosophy
2
+
3
+ **Duration**: 2-3 hours
4
+ **Covers**: Standard Lessons 0-1 (Philosophy, Core Architecture)
5
+
6
+ ---
7
+
8
+ ## Part 1: The CloudStream Philosophy
9
+
10
+ ### Why This System Exists
11
+
12
+ CloudStream Software LLC is a consultancy serving regulated industries. This means:
13
+
14
+ - **Billable work** that must be traceable and auditable
15
+ - **Multiple clients** requiring strict isolation
16
+ - **Compliance requirements** (HIPAA, SOC2, PCI-DSS)
17
+ - **Knowledge compounding** across engagements
18
+
19
+ The CloudStream Claude Tools system enforces a single principle:
20
+
21
+ > **All work must meet top 1% enterprise professional quality - the Golden Standard.**
22
+
23
+ This is code that would pass review at Google, Microsoft, or Amazon. Every commit auditable. Every pattern reusable.
24
+
25
+ ### The Golden Standard
26
+
27
+ What "top 1%" means in practice:
28
+
29
+ | Aspect | Requirement |
30
+ |--------|-------------|
31
+ | Code Quality | Production-ready, bulletproof |
32
+ | Test Coverage | 80%+ with TDD workflow |
33
+ | Security | OWASP Top 10 awareness, reviewed |
34
+ | Documentation | Handoff-ready, no tribal knowledge |
35
+ | Compliance | Audit-ready for regulated industries |
36
+
37
+ ---
38
+
39
+ ## Part 2: The Daily Workflow Lifecycle
40
+
41
+ ### Session Start (Automatic)
42
+
43
+ When Claude Code launches:
44
+ 1. Context restored from previous session
45
+ 2. Client/project detected from credentials
46
+ 3. Tutorial progress shown if incomplete
47
+ 4. Learned patterns loaded from knowledge base
48
+
49
+ **Key insight**: You never start from zero. The system remembers.
50
+
51
+ ### The Core Loop
52
+
53
+ Every feature follows four steps:
54
+
55
+ ```
56
+ /plan → /tdd → /code-review → /verify
57
+ ```
58
+
59
+ | Step | Command | Why |
60
+ |------|---------|-----|
61
+ | 1 | `/plan` | Prevents scope creep, aligns on approach |
62
+ | 2 | `/tdd` | Tests first ensure testability |
63
+ | 3 | `/code-review` | Catches issues before PR |
64
+ | 4 | `/verify` | Final validation before commit |
65
+
66
+ This sequence prevents the most common development failures.
67
+
68
+ ### Session End (Automatic)
69
+
70
+ When your session ends:
71
+ 1. State saved automatically
72
+ 2. Run `/learn` to extract reusable patterns
73
+ 3. Patterns available for future projects
74
+
75
+ ---
76
+
77
+ ## Part 3: The Architecture
78
+
79
+ ### Commands → Agents → Rules → Skills
80
+
81
+ The system uses a layered architecture:
82
+
83
+ ```
84
+ ┌─────────────────────────────────────┐
85
+ │ COMMANDS (/verify, /plan, /tdd) │ ← What you type
86
+ ├─────────────────────────────────────┤
87
+ │ AGENTS (planner, tdd-guide, etc) │ ← Specialized AI personas
88
+ ├─────────────────────────────────────┤
89
+ │ RULES (CLAUDE.md, frontmatter) │ ← Behavior constraints
90
+ ├─────────────────────────────────────┤
91
+ │ SKILLS (zoho-patterns, tdd, etc) │ ← Reusable knowledge
92
+ └─────────────────────────────────────┘
93
+ ```
94
+
95
+ **Think of it like a restaurant**:
96
+ - Commands = your order ("I'll have the steak")
97
+ - Agents = the chef (knows techniques)
98
+ - Rules = the recipe (constraints)
99
+ - Skills = cooking techniques
100
+
101
+ ### Why This Matters
102
+
103
+ 1. **Consistency**: Same command, same workflow every time
104
+ 2. **Expertise**: Agents have deep domain knowledge
105
+ 3. **Customization**: Rules adjust per-project
106
+ 4. **Extensibility**: Add skills without breaking others
107
+
108
+ You don't need to memorize all agents or rules. Learn the commands; the system handles the rest.
109
+
110
+ ---
111
+
112
+ ## Part 4: Training Mode
113
+
114
+ The key differentiator from vanilla Claude Code:
115
+
116
+ | Vanilla Claude | CloudStream Claude Tools |
117
+ |----------------|------------------------|
118
+ | Reactive | Proactive guidance |
119
+ | No workflow suggestions | Optimal patterns suggested |
120
+ | Fresh start each session | Context persists |
121
+ | You must know best practices | Best practices built-in |
122
+
123
+ ### How Training Mode Works
124
+
125
+ When you type a request, the system:
126
+ 1. **Analyzes intent** via keyword detection
127
+ 2. **Suggests optimal command sequence**
128
+ 3. **Explains why** this order matters
129
+ 4. **Lets you proceed, modify, or skip**
130
+
131
+ Example:
132
+ ```
133
+ You: "Add a login feature"
134
+
135
+ [Training Mode] Intent: NEW FEATURE + SECURITY-SENSITIVE
136
+
137
+ Suggested workflow:
138
+ /plan "Add login feature"
139
+ /tdd "Login component"
140
+ /code-review (with security focus)
141
+ /verify
142
+
143
+ Rationale: Plan prevents scope creep. TDD ensures testability.
144
+ Security review catches auth vulnerabilities.
145
+
146
+ Ready to proceed? (yes/modify/skip)
147
+ ```
148
+
149
+ Over time, these patterns become muscle memory.
150
+
151
+ ---
152
+
153
+ ## Exercises
154
+
155
+ ### Exercise 1.1: First Session Observation
156
+
157
+ Start a new Claude Code session and observe:
158
+ - What context is restored?
159
+ - What client/project is detected?
160
+ - What recommendations appear?
161
+
162
+ ### Exercise 1.2: Run Your First Command
163
+
164
+ Navigate to a project directory and run:
165
+ ```
166
+ /verify
167
+ ```
168
+
169
+ Observe:
170
+ 1. Build check runs
171
+ 2. Tests execute
172
+ 3. Lint validates code style
173
+ 4. Type check verifies TypeScript
174
+
175
+ Note: If `/verify` finds issues, that's fine. The goal is seeing the workflow.
176
+
177
+ ### Exercise 1.3: Understand the Architecture
178
+
179
+ Run:
180
+ ```
181
+ /audit
182
+ ```
183
+
184
+ This shows:
185
+ - Memory MCP status
186
+ - Feature availability
187
+ - System configuration
188
+ - Active compliance mode
189
+
190
+ ### Exercise 1.4: Training Mode in Action
191
+
192
+ Type a natural request:
193
+ ```
194
+ Add validation to the user form
195
+ ```
196
+
197
+ Observe:
198
+ - Does it suggest a workflow?
199
+ - What's the rationale?
200
+ - Can you modify or skip?
201
+
202
+ ---
203
+
204
+ ## Verification Checklist
205
+
206
+ Before proceeding to Day 2, confirm:
207
+
208
+ - [ ] Understand the Golden Standard quality bar
209
+ - [ ] Can explain the core loop: plan → tdd → code-review → verify
210
+ - [ ] Ran `/verify` and saw multi-step output
211
+ - [ ] Ran `/audit` and saw system health status
212
+ - [ ] Understand how Training Mode suggests workflows
213
+
214
+ ---
215
+
216
+ ## Key Takeaways
217
+
218
+ 1. **The system makes the right way the easy way** - quality is built-in, not bolted on
219
+ 2. **Knowledge compounds** - work on Client A accelerates Client B
220
+ 3. **Four commands form the core loop** - plan/tdd/code-review/verify
221
+ 4. **Training Mode teaches while you work** - suggestions become muscle memory
222
+
223
+ ---
224
+
225
+ ## Quick Reference
226
+
227
+ ```
228
+ /verify - Validate project state
229
+ /audit - System health check
230
+ ```
231
+
232
+ ---
233
+
234
+ **Day 1 Complete** | Next: [Day 2 - Essential Commands](day-2-essential-commands.md)
@@ -0,0 +1,270 @@
1
+ # Day 2: Essential Commands & Training Mode
2
+
3
+ **Duration**: 2-3 hours
4
+ **Covers**: Standard Lessons 2-3 (Training Mode, Essential Commands)
5
+
6
+ ---
7
+
8
+ ## Part 1: Training Mode Deep Dive
9
+
10
+ ### Intent Detection
11
+
12
+ The system analyzes your requests using keyword patterns:
13
+
14
+ | Intent | Keywords | Suggested Workflow |
15
+ |--------|----------|-------------------|
16
+ | New Feature | "add", "create", "implement" | plan → tdd → code-review → verify |
17
+ | Bug Fix | "fix", "bug", "broken", "error" | tdd (reproduce) → fix → verify |
18
+ | Refactor | "refactor", "improve", "clean" | checkpoint → refactor → code-review → verify |
19
+ | Documentation | "document", "explain", "docs" | plan → write → review |
20
+
21
+ ### Workflow Suggestions
22
+
23
+ When Training Mode detects intent, it provides:
24
+
25
+ ```
26
+ [Training Mode] Intent detected: NEW FEATURE
27
+
28
+ Suggested workflow:
29
+ 1. /plan "feature description" # Design first
30
+ 2. /tdd "component name" # Tests before code
31
+ 3. /code-review # Quality check
32
+ 4. /verify # Final validation
33
+
34
+ Rationale: [Explanation of why this order matters]
35
+
36
+ Ready to proceed? (yes/modify/skip)
37
+ ```
38
+
39
+ ### Customizing Responses
40
+
41
+ You can:
42
+ - **yes**: Execute the suggested workflow
43
+ - **modify**: Adjust the sequence
44
+ - **skip**: Proceed without guidance (not recommended)
45
+
46
+ ---
47
+
48
+ ## Part 2: The Essential Commands
49
+
50
+ ### The Core Six
51
+
52
+ These 6 commands cover 90% of daily work:
53
+
54
+ | # | Command | Purpose | When to Use |
55
+ |---|---------|---------|-------------|
56
+ | 1 | `/audit` | System health | Start of session, debugging |
57
+ | 2 | `/verify` | Validate project | Before every commit |
58
+ | 3 | `/plan` | Design implementation | Complex features (>30 min) |
59
+ | 4 | `/tdd` | Test-driven development | All new code |
60
+ | 5 | `/code-review` | Quality check | Before PR |
61
+ | 6 | `/checkpoint` | Recovery point | Before risky changes |
62
+
63
+ ### The Safety Workflow
64
+
65
+ ```
66
+ /audit → /checkpoint → /plan → /tdd → /code-review → /verify → commit
67
+ ```
68
+
69
+ Each command prevents specific problems:
70
+
71
+ | Command | Prevents |
72
+ |---------|----------|
73
+ | `/audit` | Working with broken system config |
74
+ | `/checkpoint` | Losing work during risky changes |
75
+ | `/plan` | Scope creep and requirement churn |
76
+ | `/tdd` | Untestable code, low coverage |
77
+ | `/code-review` | Security holes, code smells |
78
+ | `/verify` | Broken builds reaching CI |
79
+
80
+ ---
81
+
82
+ ## Part 3: Command Details
83
+
84
+ ### /audit - System Health Check
85
+
86
+ ```
87
+ /audit
88
+ ```
89
+
90
+ Shows:
91
+ - Memory MCP connection status
92
+ - Feature availability (hooks, skills, agents)
93
+ - Active compliance mode
94
+ - Configuration issues
95
+
96
+ **Use when**: Start of session, debugging strange behavior
97
+
98
+ ### /verify - Project Validation
99
+
100
+ ```
101
+ /verify
102
+ ```
103
+
104
+ Runs:
105
+ 1. Build check
106
+ 2. Test suite
107
+ 3. Linting
108
+ 4. Type checking
109
+
110
+ **Use when**: Before every commit, after significant changes
111
+
112
+ ### /plan - Implementation Design
113
+
114
+ ```
115
+ /plan "add user authentication with OAuth"
116
+ ```
117
+
118
+ Produces:
119
+ - Step-by-step implementation plan
120
+ - Risk assessment
121
+ - File changes overview
122
+ - Estimated complexity
123
+
124
+ **Use when**: Features taking >30 minutes, architectural decisions
125
+
126
+ ### /tdd - Test-Driven Development
127
+
128
+ ```
129
+ /tdd "UserAuth component"
130
+ ```
131
+
132
+ Follows RED → GREEN → REFACTOR:
133
+ 1. Writes failing tests first
134
+ 2. Implements minimal code to pass
135
+ 3. Refactors while keeping tests green
136
+
137
+ **Use when**: All new code, enforces 80%+ coverage
138
+
139
+ ### /code-review - Quality Check
140
+
141
+ ```
142
+ /code-review
143
+ /code-review --security # For auth/payment code
144
+ ```
145
+
146
+ Checks:
147
+ - Code quality and patterns
148
+ - Security vulnerabilities
149
+ - Performance issues
150
+ - Documentation gaps
151
+
152
+ **Use when**: Before PR, after implementing features
153
+
154
+ ### /checkpoint - Recovery Point
155
+
156
+ ```
157
+ /checkpoint
158
+ /checkpoint "before-refactor" # Named checkpoint
159
+ ```
160
+
161
+ Creates:
162
+ - Git stash or branch
163
+ - Restoration instructions
164
+ - Safe rollback point
165
+
166
+ **Use when**: Before refactors, risky changes, experiments
167
+
168
+ ---
169
+
170
+ ## Exercises
171
+
172
+ ### Exercise 2.1: Practice the Safety Workflow
173
+
174
+ Create a test file and practice the full workflow:
175
+
176
+ ```javascript
177
+ // practice.js
178
+ function greet(name) {
179
+ return `Hello, ${name}!`;
180
+ }
181
+ ```
182
+
183
+ **Step 1**: Check system health
184
+ ```
185
+ /audit
186
+ ```
187
+
188
+ **Step 2**: Create checkpoint
189
+ ```
190
+ /checkpoint "before-practice"
191
+ ```
192
+
193
+ **Step 3**: Plan enhancement
194
+ ```
195
+ /plan "add greeting customization"
196
+ ```
197
+
198
+ **Step 4**: Implement with TDD
199
+ ```
200
+ /tdd "custom greeting"
201
+ ```
202
+
203
+ **Step 5**: Review quality
204
+ ```
205
+ /code-review
206
+ ```
207
+
208
+ **Step 6**: Validate
209
+ ```
210
+ /verify
211
+ ```
212
+
213
+ ### Exercise 2.2: Training Mode Interaction
214
+
215
+ Type this natural request:
216
+ ```
217
+ I need to add form validation to the signup page
218
+ ```
219
+
220
+ Observe:
221
+ 1. What workflow is suggested?
222
+ 2. What's the rationale?
223
+ 3. Choose "modify" and customize the sequence
224
+
225
+ ### Exercise 2.3: Recovery Practice
226
+
227
+ 1. Run `/checkpoint "experiment"`
228
+ 2. Make some changes to files
229
+ 3. Decide you don't like them
230
+ 4. Practice rolling back
231
+
232
+ ---
233
+
234
+ ## Verification Checklist
235
+
236
+ Before proceeding to Day 3, confirm:
237
+
238
+ - [ ] Can execute all 6 essential commands
239
+ - [ ] Understand when to use each command
240
+ - [ ] Practiced the safety workflow sequence
241
+ - [ ] Interacted with Training Mode suggestions
242
+ - [ ] Created and used a checkpoint
243
+
244
+ ---
245
+
246
+ ## Key Takeaways
247
+
248
+ 1. **Six commands cover 90% of work** - master these first
249
+ 2. **Training Mode learns your patterns** - use it, don't skip it
250
+ 3. **Checkpoints before risk** - cheap insurance
251
+ 4. **Verify before commit** - catches 80% of issues
252
+
253
+ ---
254
+
255
+ ## Quick Reference
256
+
257
+ ```
258
+ /audit - System health check
259
+ /verify - Build/test/lint/typecheck
260
+ /plan "description" - Create implementation plan
261
+ /tdd "component" - Test-driven development
262
+ /code-review - Quality check
263
+ /code-review --security - Security-focused review
264
+ /checkpoint - Create recovery point
265
+ /checkpoint "name" - Named checkpoint
266
+ ```
267
+
268
+ ---
269
+
270
+ **Day 2 Complete** | Next: [Day 3 - Workflow Mastery](day-3-workflow-mastery.md)