@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.
- package/README.md +152 -37
- package/agents/INDEX.md +183 -0
- package/agents/architect.md +247 -0
- package/agents/build-error-resolver.md +555 -0
- package/agents/catalyst-deployer.md +132 -0
- package/agents/code-reviewer.md +121 -0
- package/agents/compliance-auditor.md +148 -0
- package/agents/creator-architect.md +395 -0
- package/agents/deluge-reviewer.md +98 -0
- package/agents/doc-updater.md +471 -0
- package/agents/e2e-runner.md +711 -0
- package/agents/planner.md +122 -0
- package/agents/refactor-cleaner.md +309 -0
- package/agents/security-reviewer.md +582 -0
- package/agents/tdd-guide.md +302 -0
- package/bin/cloudstream-setup.js +16 -6
- package/config/versions.json +63 -0
- package/dist/hooks/hooks.json +209 -0
- package/dist/index.js +47 -0
- package/dist/lib/asset-value.js +609 -0
- package/dist/lib/client-manager.js +300 -0
- package/dist/lib/command-matcher.js +242 -0
- package/dist/lib/cross-session-patterns.js +754 -0
- package/dist/lib/intent-classifier.js +1075 -0
- package/dist/lib/package-manager.js +374 -0
- package/dist/lib/recommendation-engine.js +597 -0
- package/dist/lib/session-memory.js +489 -0
- package/dist/lib/skill-effectiveness.js +486 -0
- package/dist/lib/skill-matcher.js +595 -0
- package/dist/lib/tutorial-metrics.js +242 -0
- package/dist/lib/tutorial-progress.js +209 -0
- package/dist/lib/tutorial-renderer.js +431 -0
- package/dist/lib/utils.js +380 -0
- package/dist/lib/verify-formatter.js +143 -0
- package/dist/lib/workflow-state.js +249 -0
- package/hooks/hooks.json +209 -0
- package/package.json +5 -1
- package/scripts/aggregate-sessions.js +290 -0
- package/scripts/branch-name-validator.js +291 -0
- package/scripts/build.js +101 -0
- package/scripts/commands/client-switch.js +231 -0
- package/scripts/deprecate-skill.js +610 -0
- package/scripts/diagnose.js +324 -0
- package/scripts/doc-freshness.js +168 -0
- package/scripts/generate-weekly-digest.js +393 -0
- package/scripts/health-check.js +270 -0
- package/scripts/hooks/credential-check.js +101 -0
- package/scripts/hooks/evaluate-session.js +81 -0
- package/scripts/hooks/pre-compact.js +66 -0
- package/scripts/hooks/prompt-analyzer.js +276 -0
- package/scripts/hooks/prompt-router.js +422 -0
- package/scripts/hooks/quality-gate-enforcer.js +371 -0
- package/scripts/hooks/session-end.js +156 -0
- package/scripts/hooks/session-start.js +195 -0
- package/scripts/hooks/skill-injector.js +333 -0
- package/scripts/hooks/suggest-compact.js +58 -0
- package/scripts/lib/asset-value.js +609 -0
- package/scripts/lib/client-manager.js +300 -0
- package/scripts/lib/command-matcher.js +242 -0
- package/scripts/lib/cross-session-patterns.js +754 -0
- package/scripts/lib/intent-classifier.js +1075 -0
- package/scripts/lib/package-manager.js +374 -0
- package/scripts/lib/recommendation-engine.js +597 -0
- package/scripts/lib/session-memory.js +489 -0
- package/scripts/lib/skill-effectiveness.js +486 -0
- package/scripts/lib/skill-matcher.js +595 -0
- package/scripts/lib/tutorial-metrics.js +242 -0
- package/scripts/lib/tutorial-progress.js +209 -0
- package/scripts/lib/tutorial-renderer.js +431 -0
- package/scripts/lib/utils.js +380 -0
- package/scripts/lib/verify-formatter.js +143 -0
- package/scripts/lib/workflow-state.js +249 -0
- package/scripts/onboard.js +363 -0
- package/scripts/quarterly-report.js +692 -0
- package/scripts/setup-package-manager.js +204 -0
- package/scripts/sync-upstream.js +391 -0
- package/scripts/test.js +108 -0
- package/scripts/tutorial-runner.js +351 -0
- package/scripts/validate-all.js +201 -0
- package/scripts/verifiers/agents.js +245 -0
- package/scripts/verifiers/config.js +186 -0
- package/scripts/verifiers/environment.js +123 -0
- package/scripts/verifiers/hooks.js +188 -0
- package/scripts/verifiers/index.js +38 -0
- package/scripts/verifiers/persistence.js +140 -0
- package/scripts/verifiers/plugin.js +215 -0
- package/scripts/verifiers/skills.js +209 -0
- package/scripts/verify-setup.js +164 -0
- package/skills/INDEX.md +157 -0
- package/skills/backend-patterns/SKILL.md +586 -0
- package/skills/backend-patterns/catalyst-patterns.md +128 -0
- package/skills/bigquery-patterns/SKILL.md +27 -0
- package/skills/bigquery-patterns/performance-optimization.md +518 -0
- package/skills/bigquery-patterns/query-patterns.md +372 -0
- package/skills/bigquery-patterns/schema-design.md +78 -0
- package/skills/cloudstream-project-template/SKILL.md +20 -0
- package/skills/cloudstream-project-template/structure.md +65 -0
- package/skills/coding-standards/SKILL.md +524 -0
- package/skills/coding-standards/deluge-standards.md +83 -0
- package/skills/compliance-patterns/SKILL.md +28 -0
- package/skills/compliance-patterns/hipaa/audit-requirements.md +251 -0
- package/skills/compliance-patterns/hipaa/baa-process.md +298 -0
- package/skills/compliance-patterns/hipaa/data-archival-strategy.md +387 -0
- package/skills/compliance-patterns/hipaa/phi-handling.md +52 -0
- package/skills/compliance-patterns/pci-dss/saq-a-requirements.md +307 -0
- package/skills/compliance-patterns/pci-dss/tokenization-patterns.md +382 -0
- package/skills/compliance-patterns/pci-dss/zoho-checkout-patterns.md +56 -0
- package/skills/compliance-patterns/soc2/access-controls.md +344 -0
- package/skills/compliance-patterns/soc2/audit-logging.md +458 -0
- package/skills/compliance-patterns/soc2/change-management.md +403 -0
- package/skills/compliance-patterns/soc2/deluge-execution-logging.md +407 -0
- package/skills/consultancy-workflows/SKILL.md +19 -0
- package/skills/consultancy-workflows/client-isolation.md +21 -0
- package/skills/consultancy-workflows/documentation-automation.md +454 -0
- package/skills/consultancy-workflows/handoff-procedures.md +257 -0
- package/skills/consultancy-workflows/knowledge-capture.md +513 -0
- package/skills/consultancy-workflows/time-tracking.md +26 -0
- package/skills/continuous-learning/SKILL.md +84 -0
- package/skills/continuous-learning/config.json +18 -0
- package/skills/continuous-learning/evaluate-session.sh +60 -0
- package/skills/continuous-learning-v2/SKILL.md +126 -0
- package/skills/continuous-learning-v2/config.json +61 -0
- package/skills/frontend-patterns/SKILL.md +635 -0
- package/skills/frontend-patterns/zoho-widget-patterns.md +103 -0
- package/skills/gcp-data-engineering/SKILL.md +36 -0
- package/skills/gcp-data-engineering/bigquery/performance-optimization.md +337 -0
- package/skills/gcp-data-engineering/dataflow/error-handling.md +496 -0
- package/skills/gcp-data-engineering/dataflow/pipeline-patterns.md +444 -0
- package/skills/gcp-data-engineering/dbt/model-organization.md +63 -0
- package/skills/gcp-data-engineering/dbt/testing-patterns.md +503 -0
- package/skills/gcp-data-engineering/medallion-architecture/bronze-layer.md +60 -0
- package/skills/gcp-data-engineering/medallion-architecture/gold-layer.md +311 -0
- package/skills/gcp-data-engineering/medallion-architecture/layer-transitions.md +517 -0
- package/skills/gcp-data-engineering/medallion-architecture/silver-layer.md +305 -0
- package/skills/gcp-data-engineering/zoho-to-gcp/data-extraction.md +543 -0
- package/skills/gcp-data-engineering/zoho-to-gcp/real-time-vs-batch.md +337 -0
- package/skills/security-review/SKILL.md +498 -0
- package/skills/security-review/compliance-checklist.md +53 -0
- package/skills/strategic-compact/SKILL.md +67 -0
- package/skills/tdd-workflow/SKILL.md +413 -0
- package/skills/tdd-workflow/zoho-testing.md +124 -0
- package/skills/tutorial/SKILL.md +249 -0
- package/skills/tutorial/docs/ACCESSIBILITY.md +169 -0
- package/skills/tutorial/lessons/00-philosophy-and-workflow.md +198 -0
- package/skills/tutorial/lessons/01-basics.md +81 -0
- package/skills/tutorial/lessons/02-training.md +86 -0
- package/skills/tutorial/lessons/03-commands.md +109 -0
- package/skills/tutorial/lessons/04-workflows.md +115 -0
- package/skills/tutorial/lessons/05-compliance.md +116 -0
- package/skills/tutorial/lessons/06-zoho.md +121 -0
- package/skills/tutorial/lessons/07-hooks-system.md +277 -0
- package/skills/tutorial/lessons/08-mcp-servers.md +316 -0
- package/skills/tutorial/lessons/09-client-management.md +215 -0
- package/skills/tutorial/lessons/10-testing-e2e.md +260 -0
- package/skills/tutorial/lessons/11-skills-deep-dive.md +272 -0
- package/skills/tutorial/lessons/12-rules-system.md +326 -0
- package/skills/tutorial/lessons/13-golden-standard-graduation.md +213 -0
- package/skills/tutorial/lessons/14-fork-setup-and-sync.md +312 -0
- package/skills/tutorial/lessons/15-living-examples-system.md +221 -0
- package/skills/tutorial/tracks/accelerated/README.md +134 -0
- package/skills/tutorial/tracks/accelerated/assessment/checkpoint-1.md +161 -0
- package/skills/tutorial/tracks/accelerated/assessment/checkpoint-2.md +175 -0
- package/skills/tutorial/tracks/accelerated/day-1-core-concepts.md +234 -0
- package/skills/tutorial/tracks/accelerated/day-2-essential-commands.md +270 -0
- package/skills/tutorial/tracks/accelerated/day-3-workflow-mastery.md +305 -0
- package/skills/tutorial/tracks/accelerated/day-4-compliance-zoho.md +304 -0
- package/skills/tutorial/tracks/accelerated/day-5-hooks-skills.md +344 -0
- package/skills/tutorial/tracks/accelerated/day-6-client-testing.md +386 -0
- package/skills/tutorial/tracks/accelerated/day-7-graduation.md +369 -0
- package/skills/zoho-patterns/CHANGELOG.md +108 -0
- package/skills/zoho-patterns/SKILL.md +446 -0
- package/skills/zoho-patterns/analytics/dashboard-patterns.md +352 -0
- package/skills/zoho-patterns/analytics/zoho-to-bigquery-pipeline.md +427 -0
- package/skills/zoho-patterns/catalyst/appsail-deployment.md +349 -0
- package/skills/zoho-patterns/catalyst/context-close-patterns.md +354 -0
- package/skills/zoho-patterns/catalyst/cron-batch-processing.md +374 -0
- package/skills/zoho-patterns/catalyst/function-patterns.md +439 -0
- package/skills/zoho-patterns/creator/form-design.md +304 -0
- package/skills/zoho-patterns/creator/publish-api-patterns.md +313 -0
- package/skills/zoho-patterns/creator/widget-integration.md +306 -0
- package/skills/zoho-patterns/creator/workflow-automation.md +253 -0
- package/skills/zoho-patterns/deluge/api-patterns.md +468 -0
- package/skills/zoho-patterns/deluge/batch-processing.md +403 -0
- package/skills/zoho-patterns/deluge/cross-app-integration.md +356 -0
- package/skills/zoho-patterns/deluge/error-handling.md +423 -0
- package/skills/zoho-patterns/deluge/syntax-reference.md +65 -0
- package/skills/zoho-patterns/integration/cors-proxy-architecture.md +426 -0
- package/skills/zoho-patterns/integration/crm-books-native-sync.md +277 -0
- package/skills/zoho-patterns/integration/oauth-token-management.md +461 -0
- package/skills/zoho-patterns/integration/zoho-flow-patterns.md +334 -0
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
# Knowledge Capture
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
CloudStream delivers repeated patterns across client engagements -- HIPAA audit logging, Zoho Creator workflows, GCP integrations, compliance configurations. Without systematic knowledge capture, every new engagement starts from scratch, wasting billable hours on solved problems. This document defines how to extract, catalog, and reuse patterns across projects while maintaining client data isolation.
|
|
6
|
+
|
|
7
|
+
> **WARNING**: Knowledge capture MUST maintain strict client isolation. Shared patterns must NEVER contain client-specific data, credentials, business logic, or identifiable information. Violating client confidentiality is a breach of contract and professional ethics.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Pattern Extraction Across Client Projects
|
|
12
|
+
|
|
13
|
+
### What to Extract
|
|
14
|
+
|
|
15
|
+
| Category | Examples | Reuse Value |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| **Architecture Patterns** | Form structures for common use cases | High |
|
|
18
|
+
| **Deluge Templates** | Audit logging, CRUD operations, integrations | Very High |
|
|
19
|
+
| **Compliance Configurations** | HIPAA/SOC2/PCI implementation checklists | Critical |
|
|
20
|
+
| **Workflow Patterns** | Approval chains, notification sequences | High |
|
|
21
|
+
| **Integration Patterns** | Zoho-to-GCP, webhook handlers, API connectors | High |
|
|
22
|
+
| **Deployment Procedures** | Environment promotion, rollback steps | Medium |
|
|
23
|
+
| **Troubleshooting Guides** | Common Creator/Catalyst issues and fixes | High |
|
|
24
|
+
| **Estimation Templates** | Hours-by-task-type for project planning | Very High |
|
|
25
|
+
|
|
26
|
+
### What NOT to Extract
|
|
27
|
+
|
|
28
|
+
| Never Share | Reason |
|
|
29
|
+
|---|---|
|
|
30
|
+
| Client business rules | Proprietary to client |
|
|
31
|
+
| Client data samples | Confidentiality + compliance |
|
|
32
|
+
| Client credentials | Security |
|
|
33
|
+
| Client-specific pricing | Competitive sensitivity |
|
|
34
|
+
| Client names in examples | NDA obligations |
|
|
35
|
+
| Client org IDs | Security |
|
|
36
|
+
| Production URLs | Security |
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Extraction Process
|
|
41
|
+
|
|
42
|
+
### Post-Engagement Pattern Review
|
|
43
|
+
|
|
44
|
+
After every completed engagement (or major milestone):
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
1. Developer reviews completed work
|
|
48
|
+
|
|
|
49
|
+
v
|
|
50
|
+
2. Identify reusable patterns (code, config, process)
|
|
51
|
+
|
|
|
52
|
+
v
|
|
53
|
+
3. Abstract pattern (remove ALL client-specific details)
|
|
54
|
+
|
|
|
55
|
+
v
|
|
56
|
+
4. Document pattern with:
|
|
57
|
+
- Problem it solves
|
|
58
|
+
- When to use it
|
|
59
|
+
- Implementation steps
|
|
60
|
+
- Known limitations
|
|
61
|
+
- Compliance implications
|
|
62
|
+
|
|
|
63
|
+
v
|
|
64
|
+
5. Tag pattern (industry, compliance, technology, complexity)
|
|
65
|
+
|
|
|
66
|
+
v
|
|
67
|
+
6. Peer review (another developer validates reusability)
|
|
68
|
+
|
|
|
69
|
+
v
|
|
70
|
+
7. Add to internal knowledge base
|
|
71
|
+
|
|
|
72
|
+
v
|
|
73
|
+
8. Announce in team channel
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Abstraction Example
|
|
77
|
+
|
|
78
|
+
**Client-Specific (DO NOT SHARE)**:
|
|
79
|
+
```deluge
|
|
80
|
+
// Acme Healthcare patient intake form
|
|
81
|
+
patientRecord = zoho.creator.getRecordById("acme-health-app", "Patient_Intake", patientId);
|
|
82
|
+
sendmail [to: "intake@acmehealthcare.com", subject: "New patient: " + patientRecord.get("Name")];
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**Abstracted Pattern (SAFE TO SHARE)**:
|
|
86
|
+
```deluge
|
|
87
|
+
// Pattern: Record notification on creation
|
|
88
|
+
// Use case: Alert stakeholders when new records are created
|
|
89
|
+
// Compliance: Ensure notification does not contain ePHI in subject/body for HIPAA
|
|
90
|
+
|
|
91
|
+
record = zoho.creator.getRecordById("[APP_NAME]", "[FORM_NAME]", recordId);
|
|
92
|
+
sendmail [
|
|
93
|
+
to: "[NOTIFICATION_EMAIL]",
|
|
94
|
+
subject: "New [RECORD_TYPE] submitted - ID: " + record.get("ID"),
|
|
95
|
+
message: "A new record requires attention. View in application."
|
|
96
|
+
// WARNING: Do NOT include ePHI in email body for HIPAA clients
|
|
97
|
+
];
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Building Reusable Templates from Completed Work
|
|
103
|
+
|
|
104
|
+
### Template Categories
|
|
105
|
+
|
|
106
|
+
#### 1. Form Templates
|
|
107
|
+
|
|
108
|
+
```json
|
|
109
|
+
{
|
|
110
|
+
"template_id": "TMPL-FORM-001",
|
|
111
|
+
"name": "HIPAA Audit Log Form",
|
|
112
|
+
"category": "compliance",
|
|
113
|
+
"tags": ["hipaa", "audit", "logging", "healthcare"],
|
|
114
|
+
"description": "Standard audit log form for HIPAA-regulated Creator applications",
|
|
115
|
+
"fields": [
|
|
116
|
+
{"name": "Audit_ID", "type": "auto-number", "required": true},
|
|
117
|
+
{"name": "Timestamp", "type": "datetime", "required": true},
|
|
118
|
+
{"name": "User_Email", "type": "email", "required": true},
|
|
119
|
+
{"name": "Action_Type", "type": "picklist", "required": true,
|
|
120
|
+
"values": ["Access", "Create", "Update", "Delete", "Export", "Share"]},
|
|
121
|
+
{"name": "Form_Name", "type": "single-line", "required": true},
|
|
122
|
+
{"name": "Record_ID", "type": "number", "required": true},
|
|
123
|
+
{"name": "Field_Name", "type": "single-line", "required": false},
|
|
124
|
+
{"name": "Old_Value", "type": "multi-line", "required": false},
|
|
125
|
+
{"name": "New_Value", "type": "multi-line", "required": false}
|
|
126
|
+
],
|
|
127
|
+
"permissions": {
|
|
128
|
+
"admin": "view-only",
|
|
129
|
+
"all_others": "no-access",
|
|
130
|
+
"service_account": "add-only"
|
|
131
|
+
},
|
|
132
|
+
"compliance_notes": "Must be paired with BigQuery archival for 6-year retention",
|
|
133
|
+
"used_in_projects": 7,
|
|
134
|
+
"last_updated": "2025-01-15",
|
|
135
|
+
"author": "developer@cloudstreamsoftware.com"
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
#### 2. Workflow Templates
|
|
140
|
+
|
|
141
|
+
```json
|
|
142
|
+
{
|
|
143
|
+
"template_id": "TMPL-WF-003",
|
|
144
|
+
"name": "Multi-Level Approval Workflow",
|
|
145
|
+
"category": "business-process",
|
|
146
|
+
"tags": ["approval", "workflow", "soc2", "change-management"],
|
|
147
|
+
"description": "Configurable multi-level approval with separation of duties",
|
|
148
|
+
"stages": [
|
|
149
|
+
{"name": "Submit", "actor": "Requester", "actions": ["submit"]},
|
|
150
|
+
{"name": "Review", "actor": "Reviewer", "actions": ["approve", "reject", "request-info"]},
|
|
151
|
+
{"name": "Approve", "actor": "Approver", "actions": ["approve", "reject"],
|
|
152
|
+
"constraint": "Cannot be same person as Requester"},
|
|
153
|
+
{"name": "Implement", "actor": "Implementer", "actions": ["complete", "rollback"],
|
|
154
|
+
"constraint": "Cannot be same person as Requester for SOC2"}
|
|
155
|
+
],
|
|
156
|
+
"deluge_template": "[see approval-workflow.deluge in templates/]",
|
|
157
|
+
"customization_points": ["Number of approval levels", "Approval criteria", "Notification recipients"],
|
|
158
|
+
"used_in_projects": 12,
|
|
159
|
+
"avg_implementation_hours": 8
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
#### 3. Integration Templates
|
|
164
|
+
|
|
165
|
+
```json
|
|
166
|
+
{
|
|
167
|
+
"template_id": "TMPL-INT-005",
|
|
168
|
+
"name": "Creator-to-BigQuery Archival",
|
|
169
|
+
"category": "integration",
|
|
170
|
+
"tags": ["bigquery", "gcp", "archival", "hipaa", "catalyst"],
|
|
171
|
+
"description": "Monthly batch export of Creator form data to BigQuery for long-term storage",
|
|
172
|
+
"components": [
|
|
173
|
+
"Catalyst Cron function (scheduled trigger)",
|
|
174
|
+
"Creator API integration (data source)",
|
|
175
|
+
"BigQuery client library (data destination)",
|
|
176
|
+
"Alerting function (failure notification)"
|
|
177
|
+
],
|
|
178
|
+
"estimated_hours": 16,
|
|
179
|
+
"prerequisites": ["GCP project", "BigQuery dataset", "Catalyst plan", "BAA if HIPAA"],
|
|
180
|
+
"used_in_projects": 5
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Documenting Lessons Learned Per Engagement
|
|
187
|
+
|
|
188
|
+
### Lessons Learned Template
|
|
189
|
+
|
|
190
|
+
```markdown
|
|
191
|
+
# Lessons Learned: [Project Code - NO client name]
|
|
192
|
+
## Date: [Engagement end date]
|
|
193
|
+
## Duration: [weeks/months]
|
|
194
|
+
## Team: [CloudStream team members]
|
|
195
|
+
|
|
196
|
+
### What Went Well
|
|
197
|
+
- [Specific practice that saved time or prevented issues]
|
|
198
|
+
- [Tool/approach that exceeded expectations]
|
|
199
|
+
|
|
200
|
+
### What Went Poorly
|
|
201
|
+
- [Issue encountered and root cause]
|
|
202
|
+
- [Time lost and how it could have been prevented]
|
|
203
|
+
|
|
204
|
+
### Technical Discoveries
|
|
205
|
+
- [Platform behavior not documented elsewhere]
|
|
206
|
+
- [Workaround for Zoho/GCP limitation]
|
|
207
|
+
- [Performance insight at scale]
|
|
208
|
+
|
|
209
|
+
### Process Improvements
|
|
210
|
+
- [Estimation accuracy: actual vs estimated hours]
|
|
211
|
+
- [Communication patterns that worked/failed]
|
|
212
|
+
- [Handoff process improvements needed]
|
|
213
|
+
|
|
214
|
+
### Reusable Artifacts Created
|
|
215
|
+
- [Templates added to knowledge base]
|
|
216
|
+
- [Scripts/functions contributed to shared repo]
|
|
217
|
+
- [Documentation patterns established]
|
|
218
|
+
|
|
219
|
+
### Compliance Insights
|
|
220
|
+
- [Audit findings and resolutions]
|
|
221
|
+
- [Compliance requirements discovered mid-project]
|
|
222
|
+
- [Platform limitations affecting compliance]
|
|
223
|
+
|
|
224
|
+
### Tags
|
|
225
|
+
Industry: [healthcare/finance/enterprise]
|
|
226
|
+
Compliance: [hipaa/soc2/pci-dss/none]
|
|
227
|
+
Technology: [creator/catalyst/bigquery/etc]
|
|
228
|
+
Complexity: [simple/moderate/complex]
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## Internal Knowledge Base Structure
|
|
234
|
+
|
|
235
|
+
### Repository Organization
|
|
236
|
+
|
|
237
|
+
```
|
|
238
|
+
cloudstream-knowledge-base/
|
|
239
|
+
├── patterns/
|
|
240
|
+
│ ├── compliance/
|
|
241
|
+
│ │ ├── hipaa/
|
|
242
|
+
│ │ ├── soc2/
|
|
243
|
+
│ │ └── pci-dss/
|
|
244
|
+
│ ├── integration/
|
|
245
|
+
│ │ ├── zoho-to-gcp/
|
|
246
|
+
│ │ ├── webhooks/
|
|
247
|
+
│ │ └── third-party/
|
|
248
|
+
│ ├── forms/
|
|
249
|
+
│ │ ├── healthcare/
|
|
250
|
+
│ │ ├── finance/
|
|
251
|
+
│ │ └── enterprise/
|
|
252
|
+
│ └── workflows/
|
|
253
|
+
│ ├── approvals/
|
|
254
|
+
│ ├── notifications/
|
|
255
|
+
│ └── scheduled/
|
|
256
|
+
├── templates/
|
|
257
|
+
│ ├── deluge/
|
|
258
|
+
│ ├── catalyst/
|
|
259
|
+
│ ├── documentation/
|
|
260
|
+
│ └── project-setup/
|
|
261
|
+
├── lessons-learned/
|
|
262
|
+
│ ├── 2024/
|
|
263
|
+
│ └── 2025/
|
|
264
|
+
├── estimation/
|
|
265
|
+
│ ├── task-benchmarks.md
|
|
266
|
+
│ └── complexity-matrix.md
|
|
267
|
+
├── troubleshooting/
|
|
268
|
+
│ ├── creator-issues.md
|
|
269
|
+
│ ├── catalyst-issues.md
|
|
270
|
+
│ └── integration-issues.md
|
|
271
|
+
└── onboarding/
|
|
272
|
+
├── week-1-guide.md
|
|
273
|
+
├── tool-setup.md
|
|
274
|
+
└── compliance-training.md
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## Tagging Patterns by Industry/Compliance/Technology
|
|
280
|
+
|
|
281
|
+
### Tag Taxonomy
|
|
282
|
+
|
|
283
|
+
| Dimension | Values | Purpose |
|
|
284
|
+
|---|---|---|
|
|
285
|
+
| **Industry** | healthcare, finance, enterprise, retail, education | Filter by client vertical |
|
|
286
|
+
| **Compliance** | hipaa, soc2, pci-dss, none | Filter by regulatory need |
|
|
287
|
+
| **Technology** | creator, catalyst, bigquery, cloud-functions, zoho-crm | Filter by platform |
|
|
288
|
+
| **Complexity** | starter, intermediate, advanced | Match to team skill level |
|
|
289
|
+
| **Type** | pattern, template, guide, troubleshooting, lesson | Filter by artifact type |
|
|
290
|
+
| **Status** | draft, reviewed, production-tested, deprecated | Quality indicator |
|
|
291
|
+
|
|
292
|
+
### Search Examples
|
|
293
|
+
|
|
294
|
+
```
|
|
295
|
+
# Find all HIPAA audit patterns for Creator
|
|
296
|
+
tags: hipaa + creator + audit + pattern
|
|
297
|
+
|
|
298
|
+
# Find all BigQuery integration templates
|
|
299
|
+
tags: bigquery + template + integration
|
|
300
|
+
|
|
301
|
+
# Find lessons learned for healthcare projects
|
|
302
|
+
tags: healthcare + lesson
|
|
303
|
+
|
|
304
|
+
# Find starter-level workflow patterns
|
|
305
|
+
tags: workflow + starter + pattern
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
---
|
|
309
|
+
|
|
310
|
+
## Quarterly Knowledge Sharing Sessions
|
|
311
|
+
|
|
312
|
+
### Session Format (90 minutes)
|
|
313
|
+
|
|
314
|
+
| Time | Activity | Presenter |
|
|
315
|
+
|---|---|---|
|
|
316
|
+
| 0-10 min | New patterns added this quarter | Knowledge lead |
|
|
317
|
+
| 10-30 min | Deep dive: Pattern of the quarter | Subject expert |
|
|
318
|
+
| 30-50 min | Lessons learned review (anonymized) | Team discussion |
|
|
319
|
+
| 50-70 min | Live demo: Applying a pattern to a new project | Developer |
|
|
320
|
+
| 70-85 min | Q&A and improvement suggestions | All |
|
|
321
|
+
| 85-90 min | Action items and next quarter focus | Knowledge lead |
|
|
322
|
+
|
|
323
|
+
### Session Outputs
|
|
324
|
+
|
|
325
|
+
- Updated knowledge base with new patterns discussed
|
|
326
|
+
- Action items for filling identified knowledge gaps
|
|
327
|
+
- Recording stored in internal learning library
|
|
328
|
+
- Summary posted in team channel
|
|
329
|
+
|
|
330
|
+
---
|
|
331
|
+
|
|
332
|
+
## Onboarding New Employees with Captured Knowledge
|
|
333
|
+
|
|
334
|
+
### Onboarding Path (First 30 Days)
|
|
335
|
+
|
|
336
|
+
| Week | Focus | Knowledge Base Resources |
|
|
337
|
+
|---|---|---|
|
|
338
|
+
| Week 1 | Tool setup + CloudStream processes | `onboarding/week-1-guide.md`, `onboarding/tool-setup.md` |
|
|
339
|
+
| Week 2 | Compliance fundamentals | `patterns/compliance/` (all README files) |
|
|
340
|
+
| Week 3 | Zoho Creator/Catalyst deep-dive | `patterns/forms/`, `templates/deluge/` |
|
|
341
|
+
| Week 4 | First project (paired with senior dev) | `estimation/task-benchmarks.md` |
|
|
342
|
+
|
|
343
|
+
### Self-Assessment Checkpoints
|
|
344
|
+
|
|
345
|
+
```markdown
|
|
346
|
+
## Week 2 Checkpoint
|
|
347
|
+
|
|
348
|
+
- [ ] Can explain HIPAA 6-year retention requirement
|
|
349
|
+
- [ ] Understands BAA chain for Zoho + GCP
|
|
350
|
+
- [ ] Can identify which forms need audit logging
|
|
351
|
+
- [ ] Knows where to find compliance patterns in the knowledge base
|
|
352
|
+
- [ ] Has read the SOC 2 change management process
|
|
353
|
+
- [ ] Understands PCI SAQ-A scope reduction via hosted pages
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
## Measuring Knowledge Reuse
|
|
359
|
+
|
|
360
|
+
### Metrics to Track
|
|
361
|
+
|
|
362
|
+
| Metric | How to Measure | Target |
|
|
363
|
+
|---|---|---|
|
|
364
|
+
| Template usage rate | Projects using templates vs. building from scratch | >70% |
|
|
365
|
+
| Time-to-first-commit | Days from project start to first meaningful work | <3 days |
|
|
366
|
+
| Estimation accuracy | Actual hours vs. estimated (using benchmarks) | Within 20% |
|
|
367
|
+
| Pattern adoption | New patterns used within 1 quarter of creation | >50% |
|
|
368
|
+
| Onboarding time | Days to productive contribution for new hires | <30 days |
|
|
369
|
+
| Knowledge base growth | New patterns/templates per quarter | >5 per quarter |
|
|
370
|
+
| Stale content ratio | Patterns not updated in >6 months | <20% |
|
|
371
|
+
|
|
372
|
+
### Quarterly Knowledge Health Report
|
|
373
|
+
|
|
374
|
+
```markdown
|
|
375
|
+
## Q1 2025 Knowledge Base Health
|
|
376
|
+
|
|
377
|
+
### Growth
|
|
378
|
+
- New patterns added: 8
|
|
379
|
+
- Templates updated: 12
|
|
380
|
+
- Lessons learned documented: 4
|
|
381
|
+
|
|
382
|
+
### Usage
|
|
383
|
+
- Projects leveraging templates: 6/8 (75%)
|
|
384
|
+
- Most-used pattern: HIPAA Audit Logging (used in 3 projects)
|
|
385
|
+
- Least-used category: Troubleshooting (needs refresh)
|
|
386
|
+
|
|
387
|
+
### Quality
|
|
388
|
+
- Patterns reviewed this quarter: 15/42 (36%)
|
|
389
|
+
- Deprecated patterns removed: 3
|
|
390
|
+
- Stale content flagged: 7 (assigned for update)
|
|
391
|
+
|
|
392
|
+
### Team Impact
|
|
393
|
+
- Average estimation accuracy: +/-18% (on target)
|
|
394
|
+
- New hire onboarding: 22 days to first solo task (improved from 35)
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
---
|
|
398
|
+
|
|
399
|
+
## Avoiding Client-Specific Data in Shared Patterns
|
|
400
|
+
|
|
401
|
+
### Sanitization Checklist
|
|
402
|
+
|
|
403
|
+
Before adding any artifact to the shared knowledge base:
|
|
404
|
+
|
|
405
|
+
- [ ] No client names, logos, or branding references
|
|
406
|
+
- [ ] No org IDs, project IDs, or account numbers
|
|
407
|
+
- [ ] No real email addresses (use `user@example.com`)
|
|
408
|
+
- [ ] No real URLs (use `https://client-app.example.com`)
|
|
409
|
+
- [ ] No real data values (use synthetic/placeholder data)
|
|
410
|
+
- [ ] No client business rules that could identify them
|
|
411
|
+
- [ ] No pricing, contract terms, or financial details
|
|
412
|
+
- [ ] No employee names from client organizations
|
|
413
|
+
- [ ] No proprietary algorithms or trade secrets
|
|
414
|
+
- [ ] Variable names genericized (`clientApp` not `acmeHealthApp`)
|
|
415
|
+
|
|
416
|
+
### Automated Sanitization Check
|
|
417
|
+
|
|
418
|
+
```javascript
|
|
419
|
+
// Pre-commit hook for knowledge base repo
|
|
420
|
+
// Flags potential client data leaks
|
|
421
|
+
|
|
422
|
+
const SENSITIVE_PATTERNS = [
|
|
423
|
+
/\b[A-Za-z0-9._%+-]+@(?!example\.com|cloudstreamsoftware\.com)[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/, // Real emails
|
|
424
|
+
/org_[a-z0-9]{10,}/, // Zoho org IDs
|
|
425
|
+
/CLT-\d{3}/, // Client IDs
|
|
426
|
+
/https?:\/\/(?!example\.com)[a-z0-9.-]+\.zoho(creator)?\.com/, // Real Zoho URLs
|
|
427
|
+
/\b\d{3}-\d{2}-\d{4}\b/, // SSN patterns
|
|
428
|
+
/\b\d{16}\b/, // Card numbers
|
|
429
|
+
];
|
|
430
|
+
|
|
431
|
+
function checkForSensitiveData(content) {
|
|
432
|
+
const findings = [];
|
|
433
|
+
SENSITIVE_PATTERNS.forEach(pattern => {
|
|
434
|
+
if (pattern.test(content)) {
|
|
435
|
+
findings.push(`Potential sensitive data: ${pattern.toString()}`);
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
return findings;
|
|
439
|
+
}
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
---
|
|
443
|
+
|
|
444
|
+
## Contributing Back to the cloudstream-claude-code Repo
|
|
445
|
+
|
|
446
|
+
### Contribution Workflow
|
|
447
|
+
|
|
448
|
+
```
|
|
449
|
+
Developer identifies reusable pattern from client work
|
|
450
|
+
|
|
|
451
|
+
v
|
|
452
|
+
Abstract and sanitize (remove ALL client specifics)
|
|
453
|
+
|
|
|
454
|
+
v
|
|
455
|
+
Create branch: knowledge/[pattern-name]
|
|
456
|
+
|
|
|
457
|
+
v
|
|
458
|
+
Add pattern to appropriate directory
|
|
459
|
+
|
|
|
460
|
+
v
|
|
461
|
+
Include: README, code template, usage examples
|
|
462
|
+
|
|
|
463
|
+
v
|
|
464
|
+
Open PR with tags: industry, compliance, technology
|
|
465
|
+
|
|
|
466
|
+
v
|
|
467
|
+
Peer review (minimum 1 reviewer)
|
|
468
|
+
|
|
|
469
|
+
v
|
|
470
|
+
Merge to main
|
|
471
|
+
|
|
|
472
|
+
v
|
|
473
|
+
Announce in #knowledge-sharing channel
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
### PR Template for Knowledge Contributions
|
|
477
|
+
|
|
478
|
+
```markdown
|
|
479
|
+
## Knowledge Contribution
|
|
480
|
+
|
|
481
|
+
### Pattern Name
|
|
482
|
+
[Name]
|
|
483
|
+
|
|
484
|
+
### Category
|
|
485
|
+
[compliance/integration/forms/workflows/troubleshooting]
|
|
486
|
+
|
|
487
|
+
### Tags
|
|
488
|
+
- Industry: [healthcare/finance/enterprise]
|
|
489
|
+
- Compliance: [hipaa/soc2/pci-dss/none]
|
|
490
|
+
- Technology: [creator/catalyst/bigquery]
|
|
491
|
+
- Complexity: [starter/intermediate/advanced]
|
|
492
|
+
|
|
493
|
+
### Problem It Solves
|
|
494
|
+
[1-2 sentences]
|
|
495
|
+
|
|
496
|
+
### Times Used in Client Projects
|
|
497
|
+
[Number - demonstrates proven value]
|
|
498
|
+
|
|
499
|
+
### Sanitization Checklist
|
|
500
|
+
- [ ] No client names or identifiers
|
|
501
|
+
- [ ] No real credentials or URLs
|
|
502
|
+
- [ ] No proprietary business logic
|
|
503
|
+
- [ ] Placeholder values for all examples
|
|
504
|
+
- [ ] Reviewed by second team member
|
|
505
|
+
|
|
506
|
+
### Quality Checklist
|
|
507
|
+
- [ ] Clear README with usage instructions
|
|
508
|
+
- [ ] Code template with comments
|
|
509
|
+
- [ ] Known limitations documented
|
|
510
|
+
- [ ] Compliance implications noted
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
> **WARNING**: All contributions to the shared repo undergo mandatory peer review for client data leakage. Any PR containing identifiable client information must be rejected and the contributor notified immediately. This is a fireable offense if intentional.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Time Tracking in Commits
|
|
2
|
+
|
|
3
|
+
## Commit Convention
|
|
4
|
+
```
|
|
5
|
+
[CLIENT-ID] type(scope): description | Time: Xh Xm
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
Examples:
|
|
9
|
+
```
|
|
10
|
+
[CSI] feat(widget): Add dashboard KPI cards | Time: 2h 30m
|
|
11
|
+
[PROGUARD] fix(deluge): Fix null check in invoice sync | Time: 0h 45m
|
|
12
|
+
[ZUBLER] docs(handoff): Complete API documentation | Time: 1h 15m
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Time Categories
|
|
16
|
+
- Development: Writing code, testing, debugging
|
|
17
|
+
- Architecture: Design, planning, decision-making
|
|
18
|
+
- Documentation: Writing docs, updating runbooks
|
|
19
|
+
- Communication: Client meetings, email correspondence
|
|
20
|
+
- Research: Learning new APIs, investigating solutions
|
|
21
|
+
|
|
22
|
+
## Billing Rules
|
|
23
|
+
- Round to nearest 15 minutes
|
|
24
|
+
- Minimum billable: 15 minutes
|
|
25
|
+
- Include research time when directly for client
|
|
26
|
+
- Track admin time separately (not billable)
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: continuous-learning
|
|
3
|
+
description: Automatically extract reusable patterns from Claude Code sessions and save them as learned skills for future use.
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
status: active
|
|
6
|
+
introduced: 1.0.0
|
|
7
|
+
lastUpdated: 2026-01-25
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Continuous Learning Skill
|
|
11
|
+
|
|
12
|
+
Automatically evaluates Claude Code sessions on end to extract reusable patterns that can be saved as learned skills.
|
|
13
|
+
|
|
14
|
+
## How It Works
|
|
15
|
+
|
|
16
|
+
This skill runs as a **Stop hook** at the end of each session:
|
|
17
|
+
|
|
18
|
+
1. **Session Evaluation**: Checks if session has enough messages (default: 10+)
|
|
19
|
+
2. **Pattern Detection**: Identifies extractable patterns from the session
|
|
20
|
+
3. **Skill Extraction**: Saves useful patterns to `~/.claude/skills/learned/`
|
|
21
|
+
|
|
22
|
+
## Configuration
|
|
23
|
+
|
|
24
|
+
Edit `config.json` to customize:
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"min_session_length": 10,
|
|
29
|
+
"extraction_threshold": "medium",
|
|
30
|
+
"auto_approve": false,
|
|
31
|
+
"learned_skills_path": "~/.claude/skills/learned/",
|
|
32
|
+
"patterns_to_detect": [
|
|
33
|
+
"error_resolution",
|
|
34
|
+
"user_corrections",
|
|
35
|
+
"workarounds",
|
|
36
|
+
"debugging_techniques",
|
|
37
|
+
"project_specific"
|
|
38
|
+
],
|
|
39
|
+
"ignore_patterns": [
|
|
40
|
+
"simple_typos",
|
|
41
|
+
"one_time_fixes",
|
|
42
|
+
"external_api_issues"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Pattern Types
|
|
48
|
+
|
|
49
|
+
| Pattern | Description |
|
|
50
|
+
|---------|-------------|
|
|
51
|
+
| `error_resolution` | How specific errors were resolved |
|
|
52
|
+
| `user_corrections` | Patterns from user corrections |
|
|
53
|
+
| `workarounds` | Solutions to framework/library quirks |
|
|
54
|
+
| `debugging_techniques` | Effective debugging approaches |
|
|
55
|
+
| `project_specific` | Project-specific conventions |
|
|
56
|
+
|
|
57
|
+
## Hook Setup
|
|
58
|
+
|
|
59
|
+
Add to your `~/.claude/settings.json`:
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
{
|
|
63
|
+
"hooks": {
|
|
64
|
+
"Stop": [{
|
|
65
|
+
"matcher": "*",
|
|
66
|
+
"hooks": [{
|
|
67
|
+
"type": "command",
|
|
68
|
+
"command": "~/.claude/skills/continuous-learning/evaluate-session.sh"
|
|
69
|
+
}]
|
|
70
|
+
}]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Why Stop Hook?
|
|
76
|
+
|
|
77
|
+
- **Lightweight**: Runs once at session end
|
|
78
|
+
- **Non-blocking**: Doesn't add latency to every message
|
|
79
|
+
- **Complete context**: Has access to full session transcript
|
|
80
|
+
|
|
81
|
+
## Related
|
|
82
|
+
|
|
83
|
+
- `/learn` command - Manual pattern extraction mid-session
|
|
84
|
+
- Memory persistence hooks - For state that survives compaction
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"min_session_length": 10,
|
|
3
|
+
"extraction_threshold": "medium",
|
|
4
|
+
"auto_approve": false,
|
|
5
|
+
"learned_skills_path": "~/.claude/skills/learned/",
|
|
6
|
+
"patterns_to_detect": [
|
|
7
|
+
"error_resolution",
|
|
8
|
+
"user_corrections",
|
|
9
|
+
"workarounds",
|
|
10
|
+
"debugging_techniques",
|
|
11
|
+
"project_specific"
|
|
12
|
+
],
|
|
13
|
+
"ignore_patterns": [
|
|
14
|
+
"simple_typos",
|
|
15
|
+
"one_time_fixes",
|
|
16
|
+
"external_api_issues"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Continuous Learning - Session Evaluator
|
|
3
|
+
# Runs on Stop hook to extract reusable patterns from Claude Code sessions
|
|
4
|
+
#
|
|
5
|
+
# Why Stop hook instead of UserPromptSubmit:
|
|
6
|
+
# - Stop runs once at session end (lightweight)
|
|
7
|
+
# - UserPromptSubmit runs every message (heavy, adds latency)
|
|
8
|
+
#
|
|
9
|
+
# Hook config (in ~/.claude/settings.json):
|
|
10
|
+
# {
|
|
11
|
+
# "hooks": {
|
|
12
|
+
# "Stop": [{
|
|
13
|
+
# "matcher": "*",
|
|
14
|
+
# "hooks": [{
|
|
15
|
+
# "type": "command",
|
|
16
|
+
# "command": "~/.claude/skills/continuous-learning/evaluate-session.sh"
|
|
17
|
+
# }]
|
|
18
|
+
# }]
|
|
19
|
+
# }
|
|
20
|
+
# }
|
|
21
|
+
#
|
|
22
|
+
# Patterns to detect: error_resolution, debugging_techniques, workarounds, project_specific
|
|
23
|
+
# Patterns to ignore: simple_typos, one_time_fixes, external_api_issues
|
|
24
|
+
# Extracted skills saved to: ~/.claude/skills/learned/
|
|
25
|
+
|
|
26
|
+
set -e
|
|
27
|
+
|
|
28
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
29
|
+
CONFIG_FILE="$SCRIPT_DIR/config.json"
|
|
30
|
+
LEARNED_SKILLS_PATH="${HOME}/.claude/skills/learned"
|
|
31
|
+
MIN_SESSION_LENGTH=10
|
|
32
|
+
|
|
33
|
+
# Load config if exists
|
|
34
|
+
if [ -f "$CONFIG_FILE" ]; then
|
|
35
|
+
MIN_SESSION_LENGTH=$(jq -r '.min_session_length // 10' "$CONFIG_FILE")
|
|
36
|
+
LEARNED_SKILLS_PATH=$(jq -r '.learned_skills_path // "~/.claude/skills/learned/"' "$CONFIG_FILE" | sed "s|~|$HOME|")
|
|
37
|
+
fi
|
|
38
|
+
|
|
39
|
+
# Ensure learned skills directory exists
|
|
40
|
+
mkdir -p "$LEARNED_SKILLS_PATH"
|
|
41
|
+
|
|
42
|
+
# Get transcript path from environment (set by Claude Code)
|
|
43
|
+
transcript_path="${CLAUDE_TRANSCRIPT_PATH:-}"
|
|
44
|
+
|
|
45
|
+
if [ -z "$transcript_path" ] || [ ! -f "$transcript_path" ]; then
|
|
46
|
+
exit 0
|
|
47
|
+
fi
|
|
48
|
+
|
|
49
|
+
# Count messages in session
|
|
50
|
+
message_count=$(grep -c '"type":"user"' "$transcript_path" 2>/dev/null || echo "0")
|
|
51
|
+
|
|
52
|
+
# Skip short sessions
|
|
53
|
+
if [ "$message_count" -lt "$MIN_SESSION_LENGTH" ]; then
|
|
54
|
+
echo "[ContinuousLearning] Session too short ($message_count messages), skipping" >&2
|
|
55
|
+
exit 0
|
|
56
|
+
fi
|
|
57
|
+
|
|
58
|
+
# Signal to Claude that session should be evaluated for extractable patterns
|
|
59
|
+
echo "[ContinuousLearning] Session has $message_count messages - evaluate for extractable patterns" >&2
|
|
60
|
+
echo "[ContinuousLearning] Save learned skills to: $LEARNED_SKILLS_PATH" >&2
|