@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.
- 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/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,126 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: continuous-learning-v2
|
|
3
|
+
description: Instinct-based learning system that observes sessions, creates atomic instincts with confidence scoring, and evolves them into skills/commands/agents
|
|
4
|
+
version: 2.0.0
|
|
5
|
+
status: active
|
|
6
|
+
introduced: 1.3.0
|
|
7
|
+
lastUpdated: 2026-01-27
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Continuous Learning v2 - Instinct-Based Architecture
|
|
11
|
+
|
|
12
|
+
## Overview
|
|
13
|
+
|
|
14
|
+
This system transforms Claude Code sessions into reusable knowledge through atomic "instincts" - small learned behaviors with confidence scoring. The v2 architecture upgrades from the original continuous-learning skill with better pattern detection and evolution capabilities.
|
|
15
|
+
|
|
16
|
+
## Core Concepts
|
|
17
|
+
|
|
18
|
+
### Instincts
|
|
19
|
+
Minimal, actionable units featuring:
|
|
20
|
+
- **Single trigger and action pairing** - One behavior per instinct
|
|
21
|
+
- **Confidence weighting** - 0.3 to 0.9 range based on observations
|
|
22
|
+
- **Domain classification** - code-style, testing, workflow, git, etc.
|
|
23
|
+
- **Evidence tracking** - How many times the pattern was observed
|
|
24
|
+
|
|
25
|
+
### Example Instinct
|
|
26
|
+
|
|
27
|
+
```yaml
|
|
28
|
+
id: prefer-functional-style
|
|
29
|
+
trigger: "when writing new functions"
|
|
30
|
+
action: "Use functional patterns over classes"
|
|
31
|
+
confidence: 0.8
|
|
32
|
+
domain: code-style
|
|
33
|
+
observations: 12
|
|
34
|
+
source: session-observation
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Workflow
|
|
38
|
+
|
|
39
|
+
1. **Capture** - PreToolUse/PostToolUse hooks observe session activity
|
|
40
|
+
2. **Analyze** - Background process detects patterns (corrections, workflows, errors)
|
|
41
|
+
3. **Generate** - Creates instincts in personal directory with confidence scores
|
|
42
|
+
4. **Evolve** - Clusters related instincts into commands/skills/agents
|
|
43
|
+
|
|
44
|
+
## Key Improvements Over v1
|
|
45
|
+
|
|
46
|
+
| Feature | v1 | v2 |
|
|
47
|
+
|---------|----|----|
|
|
48
|
+
| Observation | Stop hook (unreliable) | PreToolUse/PostToolUse (reliable) |
|
|
49
|
+
| Granularity | Full skills | Atomic instincts |
|
|
50
|
+
| Sharing | Manual | Import/Export commands |
|
|
51
|
+
| Evolution | Manual | Automatic clustering |
|
|
52
|
+
|
|
53
|
+
## Directory Structure
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
~/.claude/homunculus/
|
|
57
|
+
observations.jsonl # Raw session observations
|
|
58
|
+
instincts/
|
|
59
|
+
personal/ # Learned from your sessions
|
|
60
|
+
inherited/ # Imported from teammates
|
|
61
|
+
evolved/
|
|
62
|
+
commands/ # Generated command files
|
|
63
|
+
skills/ # Generated skill files
|
|
64
|
+
agents/ # Generated agent files
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Commands
|
|
68
|
+
|
|
69
|
+
| Command | Purpose |
|
|
70
|
+
|---------|---------|
|
|
71
|
+
| `/instinct-status` | View all instincts with confidence scores |
|
|
72
|
+
| `/instinct-export` | Export instincts for sharing |
|
|
73
|
+
| `/instinct-import` | Import instincts from teammates |
|
|
74
|
+
| `/skill-create` | Generate skills from git history |
|
|
75
|
+
| `/evolve` | Cluster instincts into higher structures |
|
|
76
|
+
|
|
77
|
+
## Pattern Detection
|
|
78
|
+
|
|
79
|
+
The system detects several pattern types:
|
|
80
|
+
|
|
81
|
+
- **User corrections** - When you fix something Claude did wrong
|
|
82
|
+
- **Repeated workflows** - Same sequence of actions multiple times
|
|
83
|
+
- **Error resolutions** - How errors were fixed
|
|
84
|
+
- **Code style preferences** - Formatting, naming, structure choices
|
|
85
|
+
|
|
86
|
+
## Confidence Scoring
|
|
87
|
+
|
|
88
|
+
| Range | Meaning | Action |
|
|
89
|
+
|-------|---------|--------|
|
|
90
|
+
| 0.3 - 0.5 | Observed once or twice | Track but don't apply |
|
|
91
|
+
| 0.5 - 0.7 | Growing pattern | Suggest when relevant |
|
|
92
|
+
| 0.7 - 0.9 | Established pattern | Auto-apply when triggered |
|
|
93
|
+
| 0.9+ | Core workflow | Always apply |
|
|
94
|
+
|
|
95
|
+
## Privacy & Sharing
|
|
96
|
+
|
|
97
|
+
### Local only (not exported):
|
|
98
|
+
- Raw observations
|
|
99
|
+
- File paths
|
|
100
|
+
- Session transcripts
|
|
101
|
+
- Code snippets
|
|
102
|
+
|
|
103
|
+
### Shareable (via export):
|
|
104
|
+
- Trigger patterns
|
|
105
|
+
- Actions
|
|
106
|
+
- Confidence scores
|
|
107
|
+
- Domain classifications
|
|
108
|
+
|
|
109
|
+
## CloudStream Integration
|
|
110
|
+
|
|
111
|
+
Works with existing CloudStream workflows:
|
|
112
|
+
|
|
113
|
+
1. **Client isolation** - Instincts can be filtered by project/client
|
|
114
|
+
2. **Knowledge capture** - Export high-confidence instincts during handoff
|
|
115
|
+
3. **Team learning** - Import team conventions for consistency
|
|
116
|
+
4. **Consultancy patterns** - Evolve client-specific patterns into reusable skills
|
|
117
|
+
|
|
118
|
+
## Setup
|
|
119
|
+
|
|
120
|
+
The system activates automatically when continuous-learning-v2 skill is loaded. Instincts are stored in the user's home directory and persist across sessions.
|
|
121
|
+
|
|
122
|
+
## Related
|
|
123
|
+
|
|
124
|
+
- [continuous-learning](../continuous-learning/SKILL.md) - Original v1 skill (still available)
|
|
125
|
+
- [consultancy-workflows](../consultancy-workflows/SKILL.md) - Client knowledge capture
|
|
126
|
+
- `/learn` command - Manual pattern extraction
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.0",
|
|
3
|
+
"description": "Configuration for continuous-learning-v2 instinct system",
|
|
4
|
+
|
|
5
|
+
"observation": {
|
|
6
|
+
"enabled": true,
|
|
7
|
+
"storage": "~/.claude/homunculus/observations.jsonl",
|
|
8
|
+
"tracked_tools": ["Edit", "Write", "Bash", "Read", "Grep", "Glob"],
|
|
9
|
+
"excluded_tools": ["TodoWrite"]
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
"instincts": {
|
|
13
|
+
"personal_dir": "~/.claude/homunculus/instincts/personal/",
|
|
14
|
+
"inherited_dir": "~/.claude/homunculus/instincts/inherited/",
|
|
15
|
+
"min_confidence": 0.3,
|
|
16
|
+
"auto_approve_threshold": 0.7,
|
|
17
|
+
"max_instincts": 100,
|
|
18
|
+
"decay": {
|
|
19
|
+
"enabled": true,
|
|
20
|
+
"rate": 0.05,
|
|
21
|
+
"min_observations_to_decay": 30
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
"observer": {
|
|
26
|
+
"enabled": false,
|
|
27
|
+
"model": "haiku",
|
|
28
|
+
"interval_minutes": 5,
|
|
29
|
+
"patterns_to_detect": [
|
|
30
|
+
"user_corrections",
|
|
31
|
+
"repeated_workflows",
|
|
32
|
+
"error_resolutions",
|
|
33
|
+
"code_style_preferences"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
"evolution": {
|
|
38
|
+
"enabled": true,
|
|
39
|
+
"auto_evolve": false,
|
|
40
|
+
"cluster_threshold": 3,
|
|
41
|
+
"output_dir": "~/.claude/homunculus/evolved/",
|
|
42
|
+
"types": ["command", "skill", "agent"]
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
"integration": {
|
|
46
|
+
"skill_creator_api": "https://api.skillcreator.dev",
|
|
47
|
+
"backward_compatible_with_v1": true
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
"domains": [
|
|
51
|
+
"code-style",
|
|
52
|
+
"testing",
|
|
53
|
+
"workflow",
|
|
54
|
+
"git",
|
|
55
|
+
"architecture",
|
|
56
|
+
"security",
|
|
57
|
+
"documentation",
|
|
58
|
+
"zoho",
|
|
59
|
+
"compliance"
|
|
60
|
+
]
|
|
61
|
+
}
|