Skip to content

Commit 35dd50a

Browse files
michaeloboyleclaude
andcommitted
feat: Add complete AgentDB + SPARC + GitHub integration
Implements self-learning development system with: AgentDB (Persistent Memory & Learning): - Pattern storage: browser-testing, performance-baseline, async-migration - Historical data import from benchmarks and docs - Cross-session memory for agents - Learning from issue/PR resolutions Claude Skills (Automated Tasks): - agentdb-browser-test: Browser validation with Playwright - agentdb-issue-analyzer: Pattern recognition for issues - agentdb-performance-predictor: Performance impact prediction SPARC Integration: - Memory-guided agent execution - Pre-task context retrieval from AgentDB - Post-task learning storage - Bottleneck prediction and optimization GitHub Automation: - Issue templates: browser-testing, bug-report, feature-request - Auto-labeling based on AgentDB patterns - Effort estimation from historical data - Learning pipeline (agentdb-learning.yml) - Initial issue creation script Files Added: - .agentdb/config.json - .agentdb/patterns/*.json (2 patterns) - .agentdb/memory/ (3 historical imports) - .claude/skills/*.md (3 AgentDB-powered skills) - .claude-flow/agentdb-config.json - .github/ISSUE_TEMPLATE/*.yml (3 templates) - .github/workflows/agentdb-learning.yml - .github/create-initial-issues.sh - README-AGENTDB-INTEGRATION.md Benefits: ✅ Self-improving workflows (each task makes next faster) ✅ Cross-session intelligence ✅ Automated issue analysis and routing ✅ Performance regression prediction ✅ Team knowledge retention Ready for v1.0.0 development with AgentDB-guided automation! 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 5402295 commit 35dd50a

File tree

10 files changed

+1205
-0
lines changed

10 files changed

+1205
-0
lines changed

.agentdb/config.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"project": "sqlite-graph",
3+
"version": "1.0.0",
4+
"agentdb": {
5+
"enabled": true,
6+
"auto_learning": true,
7+
"memory_retention_days": 90,
8+
"similarity_threshold": 0.75,
9+
"patterns": [
10+
"browser-testing",
11+
"async-migration",
12+
"performance-optimization",
13+
"ci-cd-setup",
14+
"pattern-matching-impl",
15+
"test-debugging"
16+
]
17+
},
18+
"learning": {
19+
"enabled": true,
20+
"confidence_threshold": 0.7,
21+
"min_samples": 3,
22+
"learning_rate": 0.1
23+
},
24+
"integration": {
25+
"github": {
26+
"enabled": true,
27+
"auto_label": true,
28+
"auto_assign": false
29+
},
30+
"sparc": {
31+
"enabled": true,
32+
"memory_guided": true,
33+
"optimization_enabled": true
34+
},
35+
"claude_skills": {
36+
"enabled": true,
37+
"agentdb_context": true
38+
}
39+
}
40+
}

.agentdb/import-historical.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
# Import historical data into AgentDB
3+
4+
echo "Importing historical benchmark data..."
5+
6+
# Import Node.js baseline benchmarks
7+
if [ -f "experiments/browser-poc/benchmark-node.json" ]; then
8+
cp experiments/browser-poc/benchmark-node.json .agentdb/memory/benchmark-baseline-$(date +%Y%m%d).json
9+
echo "✅ Imported benchmark baseline"
10+
fi
11+
12+
# Import implementation status
13+
if [ -f "docs/IMPLEMENTATION-STATUS.md" ]; then
14+
# Extract completed tasks and patterns
15+
grep -E "✅|COMPLETE" docs/IMPLEMENTATION-STATUS.md > .agentdb/memory/completed-tasks.txt
16+
echo "✅ Imported implementation status"
17+
fi
18+
19+
# Import browser POC learnings
20+
if [ -f "experiments/browser-poc/poc-summary.md" ]; then
21+
# Extract key findings
22+
grep -A 5 "Key Findings" experiments/browser-poc/poc-summary.md > .agentdb/memory/browser-poc-findings.txt
23+
echo "✅ Imported POC findings"
24+
fi
25+
26+
echo "Historical data import complete!"
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"pattern_id": "browser-testing-sqlite-graph",
3+
"pattern_type": "browser-validation",
4+
"description": "Cross-browser testing for wa-sqlite adapter with OPFS/IndexedDB validation",
5+
"context": {
6+
"baseline": {
7+
"node_js": {
8+
"delete_single": { "time_ms": 0.01, "ops_sec": 94341 },
9+
"select_single": { "time_ms": 0.02, "ops_sec": 59289 },
10+
"insert_single": { "time_ms": 0.02, "ops_sec": 60000 },
11+
"transaction_1000": { "time_ms": 0.58, "ops_sec": 1713 },
12+
"graph_traversal": { "time_ms": 0.05, "ops_sec": 20367 }
13+
}
14+
},
15+
"browsers": ["chrome", "firefox", "safari"],
16+
"vfs_backends": ["OPFS", "IndexedDB", "Memory"],
17+
"test_suite": "test.html",
18+
"benchmark_suite": "benchmark.html"
19+
},
20+
"expectations": {
21+
"opfs_ratio": { "min": 1.2, "max": 1.8, "target": 1.5 },
22+
"indexeddb_ratio": { "min": 1.8, "max": 2.5, "target": 2.0 },
23+
"memory_ratio": { "min": 1.1, "max": 1.5, "target": 1.3 }
24+
},
25+
"execution_history": [],
26+
"learned_patterns": {
27+
"opfs_availability": {
28+
"chrome": { "available": true, "version_min": 102 },
29+
"firefox": { "available": true, "version_min": 111 },
30+
"safari": { "available": true, "version_min": 15.2 }
31+
},
32+
"common_issues": [
33+
"OPFS not available in incognito mode",
34+
"IndexedDB quota limits in Safari",
35+
"WASM initialization delay on first load"
36+
],
37+
"optimizations": [
38+
"Pre-warm WASM module before tests",
39+
"Use SharedArrayBuffer for better performance",
40+
"Cache OPFS handles for reuse"
41+
]
42+
},
43+
"created_at": "2025-11-14T00:00:00Z",
44+
"updated_at": "2025-11-14T00:00:00Z",
45+
"confidence": 0.85
46+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"pattern_id": "performance-baseline-node",
3+
"pattern_type": "performance-benchmark",
4+
"description": "Node.js performance baseline for better-sqlite3 adapter",
5+
"context": {
6+
"platform": "node",
7+
"adapter": "better-sqlite3",
8+
"hardware": "macOS (Darwin 24.6.0)",
9+
"timestamp": "2025-11-14"
10+
},
11+
"benchmarks": {
12+
"database_creation": { "avg_ms": 0.54, "ops_sec": 1847, "category": "batch" },
13+
"single_insert": { "avg_ms": 0.02, "ops_sec": 60000, "category": "ultra-fast" },
14+
"batch_insert_100": { "avg_ms": 0.12, "ops_sec": 8232, "category": "batch" },
15+
"transaction_1000": { "avg_ms": 0.58, "ops_sec": 1713, "category": "batch" },
16+
"select_single": { "avg_ms": 0.02, "ops_sec": 59289, "category": "ultra-fast" },
17+
"select_all_1000": { "avg_ms": 0.40, "ops_sec": 2494, "category": "batch" },
18+
"update_single": { "avg_ms": 0.05, "ops_sec": 18459, "category": "fast" },
19+
"delete_single": { "avg_ms": 0.01, "ops_sec": 94341, "category": "ultra-fast" },
20+
"graph_traversal_bfs": { "avg_ms": 0.05, "ops_sec": 20367, "category": "fast" },
21+
"transaction_rollback": { "avg_ms": 0.03, "ops_sec": 36563, "category": "fast" }
22+
},
23+
"summary": {
24+
"all_operations_under_1ms": true,
25+
"fastest_operation": "delete_single",
26+
"slowest_operation": "transaction_1000",
27+
"average_point_query_ms": 0.025,
28+
"average_bulk_operation_ms": 0.41
29+
},
30+
"created_at": "2025-11-14T00:00:00Z",
31+
"confidence": 1.0
32+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Browser Testing Task
2+
description: Manual or automated browser testing for wa-sqlite adapter
3+
title: "[Browser Testing] "
4+
labels: ["browser-support", "testing", "skill-ready"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
## Browser Testing Checklist
10+
Use this template to track browser testing progress across Chrome, Firefox, and Safari.
11+
12+
**AgentDB Skill:** This issue can be automated with `agentdb-browser-test` skill
13+
14+
- type: checkboxes
15+
id: browsers
16+
attributes:
17+
label: Browsers to Test
18+
description: Select browsers for testing
19+
options:
20+
- label: Chrome (latest)
21+
- label: Firefox (latest)
22+
- label: Safari (latest)
23+
24+
- type: checkboxes
25+
id: vfs-backends
26+
attributes:
27+
label: VFS Backends
28+
description: Test each VFS backend
29+
options:
30+
- label: OPFS (Origin Private File System)
31+
- label: IndexedDB (Fallback)
32+
- label: Memory (In-memory, no persistence)
33+
34+
- type: checkboxes
35+
id: test-suite
36+
attributes:
37+
label: Test Suite (test.html)
38+
description: Functional tests from NodeAdapter (19 total)
39+
options:
40+
- label: All 19 tests pass
41+
- label: OPFS detection works
42+
- label: IndexedDB fallback works
43+
- label: Persistence validated (data survives page reload)
44+
45+
- type: checkboxes
46+
id: benchmarks
47+
attributes:
48+
label: Performance Benchmarks (benchmark.html)
49+
description: Compare with Node.js baseline
50+
options:
51+
- label: All operations complete successfully
52+
- label: Performance within 2.5x Node.js baseline
53+
- label: OPFS: 1.2-1.8x slower (target)
54+
- label: IndexedDB: 1.8-2.5x slower (acceptable)
55+
56+
- type: textarea
57+
id: results
58+
attributes:
59+
label: Test Results
60+
description: Paste results from browser console or attach screenshots
61+
placeholder: |
62+
Example:
63+
Chrome + OPFS: 19/19 tests pass, performance 1.6x slower ✅
64+
Firefox + OPFS: 19/19 tests pass, performance 1.7x slower ✅
65+
Safari + OPFS: 19/19 tests pass, performance 1.8x slower ✅
66+
67+
- type: dropdown
68+
id: automation
69+
attributes:
70+
label: Testing Method
71+
description: Manual or automated testing?
72+
options:
73+
- Manual (open test.html in browsers)
74+
- Automated (Playwright via agentdb-browser-test skill)
75+
- Both (manual validation after automated run)
76+
default: 1
77+
78+
- type: textarea
79+
id: notes
80+
attributes:
81+
label: Additional Notes
82+
description: Any issues, anomalies, or observations
83+
placeholder: |
84+
Example:
85+
- Safari OPFS faster than expected (1.8x vs 2.0x predicted)
86+
- OPFS not available in Firefox incognito mode
87+
- IndexedDB quota warning in Safari after 50MB
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: Bug Report
2+
description: Report a bug or unexpected behavior
3+
title: "[Bug] "
4+
labels: ["bug", "needs-triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
## Bug Report
10+
**AgentDB will analyze this issue** and suggest similar resolutions from history.
11+
12+
- type: textarea
13+
id: description
14+
attributes:
15+
label: Bug Description
16+
description: Clear description of the bug
17+
placeholder: What happened vs what you expected
18+
validations:
19+
required: true
20+
21+
- type: textarea
22+
id: reproduction
23+
attributes:
24+
label: Steps to Reproduce
25+
description: Minimal steps to reproduce the issue
26+
placeholder: |
27+
1. Create database with ...
28+
2. Run query ...
29+
3. See error
30+
validations:
31+
required: true
32+
33+
- type: textarea
34+
id: code-sample
35+
attributes:
36+
label: Code Sample
37+
description: Minimal code that reproduces the issue
38+
render: typescript
39+
placeholder: |
40+
const db = await GraphDatabase.create(':memory:');
41+
// ... code that triggers bug
42+
43+
- type: dropdown
44+
id: environment
45+
attributes:
46+
label: Environment
47+
description: Where does this occur?
48+
options:
49+
- Node.js (better-sqlite3)
50+
- Browser (wa-sqlite)
51+
- Both
52+
validations:
53+
required: true
54+
55+
- type: input
56+
id: version
57+
attributes:
58+
label: sqlite-graph Version
59+
description: npm package version
60+
placeholder: "0.3.0"
61+
validations:
62+
required: true
63+
64+
- type: textarea
65+
id: expected
66+
attributes:
67+
label: Expected Behavior
68+
description: What should happen?
69+
validations:
70+
required: true
71+
72+
- type: textarea
73+
id: actual
74+
attributes:
75+
label: Actual Behavior
76+
description: What actually happens?
77+
validations:
78+
required: true
79+
80+
- type: textarea
81+
id: error-log
82+
attributes:
83+
label: Error Log
84+
description: Full error message or stack trace
85+
render: shell
86+
placeholder: |
87+
Error: ...
88+
at ...
89+
90+
- type: checkboxes
91+
id: checklist
92+
attributes:
93+
label: Checklist
94+
options:
95+
- label: I've searched for similar issues
96+
required: true
97+
- label: I've included a minimal reproducible example
98+
required: true
99+
- label: I've checked the documentation
100+
required: true

0 commit comments

Comments
 (0)