solvdex 2.0.0-alpha.8 → 3.0.0-alpha.1
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/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +2 -2
- package/README.md +52 -48
- package/agents/capture.md +74 -37
- package/agents/duplicate-checker.md +6 -6
- package/agents/graph.md +24 -22
- package/agents/health.md +20 -16
- package/agents/scanner.md +28 -19
- package/agents/searcher.md +7 -5
- package/agents/stats.md +3 -4
- package/agents/validator.md +6 -6
- package/docs/README.md +21 -10
- package/docs/architecture.md +27 -37
- package/docs/diagrams/architecture-overview.md +8 -11
- package/docs/diagrams/data-structures.md +2 -2
- package/docs/diagrams/knowledge-retrieval-flow.md +1 -1
- package/docs/diagrams/session-workflow.md +1 -1
- package/docs/diagrams/system-overview.md +4 -8
- package/docs/getting-started.md +9 -12
- package/docs/plans/2025-01-22-marketplace-distribution.md +2 -0
- package/docs/plans/2025-01-22-solvdex-design.md +2 -0
- package/docs/plans/2025-02-02-generic-wiki-v3.md +747 -0
- package/docs/schema.md +53 -29
- package/docs/templates/problems.md +141 -0
- package/docs/templates/references.md +171 -0
- package/docs/templates/solutions.md +156 -0
- package/docs/use-cases.md +40 -93
- package/docs/workflows.md +19 -21
- package/hooks/hooks.json +3 -3
- package/package.json +2 -2
- package/skills/wiki/SKILL.md +17 -29
- package/skills/wiki-add/SKILL.md +27 -27
- package/skills/wiki-export/SKILL.md +6 -6
- package/skills/wiki-fix/SKILL.md +1 -1
- package/skills/wiki-flag/SKILL.md +1 -1
- package/skills/wiki-graph/SKILL.md +14 -15
- package/skills/wiki-health/SKILL.md +29 -12
- package/skills/wiki-import/SKILL.md +1 -1
- package/skills/wiki-init/SKILL.md +15 -26
- package/skills/wiki-scan/SKILL.md +4 -5
- package/skills/wiki-search/SKILL.md +49 -23
- package/skills/wiki-stats/SKILL.md +26 -30
- package/agents/templates/docs.md +0 -35
- package/agents/templates/gotchas.md +0 -31
- package/agents/templates/issues.md +0 -36
- package/agents/templates/patterns.md +0 -35
- package/agents/templates/performance.md +0 -36
- package/agents/templates/security.md +0 -36
- package/agents/templates/testing.md +0 -39
- package/docs/plans/2025-02-02-implementation-tasks.md +0 -1211
- package/skills/wiki-browse/SKILL.md +0 -74
- package/skills/wiki-capture/SKILL.md +0 -121
- package/skills/wiki-explorer/SKILL.md +0 -93
- package/skills/wiki-status/SKILL.md +0 -53
- package/skills/wiki-test-trigger/SKILL.md +0 -97
- package/skills/wiki-validate/SKILL.md +0 -61
package/agents/scanner.md
CHANGED
|
@@ -44,20 +44,33 @@ Check for these files to determine project type:
|
|
|
44
44
|
|
|
45
45
|
## Step 3: Create Entries
|
|
46
46
|
|
|
47
|
-
For each finding, create entry in appropriate
|
|
48
|
-
- `.wiki/
|
|
49
|
-
- `.wiki/
|
|
50
|
-
- `.wiki/
|
|
51
|
-
- `.wiki/testing/` - Test strategies
|
|
52
|
-
- `.wiki/docs/` - Documentation
|
|
53
|
-
- `.wiki/security/` - Security items
|
|
54
|
-
- `.wiki/performance/` - Optimizations
|
|
47
|
+
For each finding, create entry in appropriate folder:
|
|
48
|
+
- `.wiki/problems/` - Bug fixes, errors, gotchas, security issues
|
|
49
|
+
- `.wiki/solutions/` - Patterns, optimizations, test strategies, how-tos
|
|
50
|
+
- `.wiki/references/` - Documentation, guides, configs
|
|
55
51
|
|
|
56
|
-
###
|
|
52
|
+
### Folder Selection
|
|
57
53
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
| Source Type | Folder |
|
|
55
|
+
|-------------|--------|
|
|
56
|
+
| Error logs, bug fixes, git fix commits | problems/ |
|
|
57
|
+
| TODO/HACK comments about pitfalls | problems/ |
|
|
58
|
+
| Reusable code patterns | solutions/ |
|
|
59
|
+
| Test files, test strategies | solutions/ |
|
|
60
|
+
| README, docs/, guides | references/ |
|
|
61
|
+
| Config files, .env.example | references/ |
|
|
62
|
+
|
|
63
|
+
### Generate Entry
|
|
64
|
+
|
|
65
|
+
Use the fixed template for the target folder. See `docs/templates/`.
|
|
66
|
+
|
|
67
|
+
| Folder | Template Sections |
|
|
68
|
+
|--------|-------------------|
|
|
69
|
+
| `problems/` | Problem, Cause, Solution, Prevention, Related |
|
|
70
|
+
| `solutions/` | Overview, Prerequisites, Steps, Example, Related |
|
|
71
|
+
| `references/` | Summary, Details, Links, Related |
|
|
72
|
+
|
|
73
|
+
Write to `.wiki/<folder>/<slug>.md`
|
|
61
74
|
|
|
62
75
|
### Frontmatter Reference
|
|
63
76
|
|
|
@@ -86,13 +99,9 @@ Do NOT output progress. Return ONLY:
|
|
|
86
99
|
|
|
87
100
|
```
|
|
88
101
|
Scan complete: X entries created
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
- testing: N
|
|
93
|
-
- docs: N
|
|
94
|
-
- security: N
|
|
95
|
-
- performance: N
|
|
102
|
+
- problems: N
|
|
103
|
+
- solutions: N
|
|
104
|
+
- references: N
|
|
96
105
|
```
|
|
97
106
|
|
|
98
107
|
## Important Rules
|
package/agents/searcher.md
CHANGED
|
@@ -19,7 +19,7 @@ Input: `{ "mode": "search", "query": "<search query>" }`
|
|
|
19
19
|
|
|
20
20
|
Process:
|
|
21
21
|
1. Glob .wiki/**/*.md to find all entries
|
|
22
|
-
2. Read frontmatter (title, tags,
|
|
22
|
+
2. Read frontmatter (title, tags, folder, status, confidence, trigger)
|
|
23
23
|
3. Understand query intent, handle typos/synonyms
|
|
24
24
|
4. Rank by semantic relevance + confidence + maturity
|
|
25
25
|
5. Return top 5 results with explanations
|
|
@@ -38,7 +38,7 @@ Input: `{ "mode": "session-context", "taskDescription": "<task>", "filePaths": [
|
|
|
38
38
|
|
|
39
39
|
Process:
|
|
40
40
|
1. Analyze task description for keywords
|
|
41
|
-
2. Detect relevant
|
|
41
|
+
2. Detect relevant folders from file paths
|
|
42
42
|
3. Search for related entries
|
|
43
43
|
4. Return top 3 recommendations
|
|
44
44
|
|
|
@@ -48,8 +48,9 @@ Process:
|
|
|
48
48
|
```
|
|
49
49
|
Found X relevant entries:
|
|
50
50
|
|
|
51
|
-
1. **{title}** ({
|
|
51
|
+
1. **{title}** ({folder}, confidence: {n})
|
|
52
52
|
Path: {path}
|
|
53
|
+
Tags: {tags}
|
|
53
54
|
Why: {explanation}
|
|
54
55
|
|
|
55
56
|
2. ...
|
|
@@ -68,8 +69,9 @@ Found X relevant entries:
|
|
|
68
69
|
### Session Context
|
|
69
70
|
```
|
|
70
71
|
📚 Solvdex: {n} relevant entries
|
|
71
|
-
- {title} (
|
|
72
|
-
-
|
|
72
|
+
- {title} (problems/)
|
|
73
|
+
- {title} (solutions/)
|
|
74
|
+
- {title} (references/)
|
|
73
75
|
```
|
|
74
76
|
|
|
75
77
|
## Ranking Criteria
|
package/agents/stats.md
CHANGED
|
@@ -17,7 +17,7 @@ Key references:
|
|
|
17
17
|
- Entry frontmatter fields: `docs/schema.md#entry-frontmatter`
|
|
18
18
|
- Maturity rules: `docs/schema.md#maturity-rules`
|
|
19
19
|
- Confidence levels: `docs/schema.md#confidence-levels`
|
|
20
|
-
-
|
|
20
|
+
- Folders: `docs/schema.md#default-folders`
|
|
21
21
|
|
|
22
22
|
Calculate comprehensive wiki statistics and manage maturity tracking.
|
|
23
23
|
|
|
@@ -33,7 +33,7 @@ Calculate comprehensive wiki statistics and manage maturity tracking.
|
|
|
33
33
|
1. Glob .wiki/**/*.md
|
|
34
34
|
2. Read all entries
|
|
35
35
|
3. Calculate:
|
|
36
|
-
- Entry counts by
|
|
36
|
+
- Entry counts by folder, status, maturity
|
|
37
37
|
- Confidence distribution (high/medium/low)
|
|
38
38
|
- Usage stats (total uses, most used, never used)
|
|
39
39
|
- Staleness (entries not updated in 90+ days)
|
|
@@ -61,8 +61,7 @@ Calculate comprehensive wiki statistics and manage maturity tracking.
|
|
|
61
61
|
|
|
62
62
|
## Entries
|
|
63
63
|
Total: 24
|
|
64
|
-
|
|
65
|
-
testing: 3 | docs: 2 | security: 1
|
|
64
|
+
problems: 12 | solutions: 8 | references: 4
|
|
66
65
|
|
|
67
66
|
## By Status
|
|
68
67
|
Active: 20 | Flagged: 3 | Deprecated: 1
|
package/agents/validator.md
CHANGED
|
@@ -16,7 +16,7 @@ Key references:
|
|
|
16
16
|
- Entry frontmatter fields: `docs/schema.md#entry-frontmatter`
|
|
17
17
|
- Maturity rules: `docs/schema.md#maturity-rules`
|
|
18
18
|
- Confidence levels: `docs/schema.md#confidence-levels`
|
|
19
|
-
-
|
|
19
|
+
- Folders: `docs/schema.md#default-folders`
|
|
20
20
|
|
|
21
21
|
Validate wiki entries for quality and correctness.
|
|
22
22
|
|
|
@@ -32,7 +32,7 @@ Validate wiki entries for quality and correctness.
|
|
|
32
32
|
- **Required sections**: Problem, Solution present
|
|
33
33
|
- **No placeholders**: No TODO, FIXME, TBD in content
|
|
34
34
|
- **Valid wiki links**: [[entry]] format, target exists
|
|
35
|
-
- **Trigger syntax**: Valid regex (for
|
|
35
|
+
- **Trigger syntax**: Valid regex (for problems folder, optional)
|
|
36
36
|
- **Confidence/maturity match**: Confidence appropriate for maturity level
|
|
37
37
|
- **Tags present**: At least 1 tag
|
|
38
38
|
3. Categorize issues by severity
|
|
@@ -56,7 +56,7 @@ Passed: Y | Issues: Z
|
|
|
56
56
|
- Low confidence (30) for verified maturity
|
|
57
57
|
|
|
58
58
|
### [info] {path}
|
|
59
|
-
- No trigger pattern (
|
|
59
|
+
- No trigger pattern (problems folder)
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
## Severity Levels
|
|
@@ -79,11 +79,11 @@ Passed: Y | Issues: Z
|
|
|
79
79
|
- validated: confidence should be 85-100
|
|
80
80
|
|
|
81
81
|
### Trigger Patterns
|
|
82
|
-
-
|
|
83
|
-
- Trigger must be valid regex
|
|
82
|
+
- Problems folder: may have trigger pattern (optional)
|
|
83
|
+
- Trigger must be valid regex if present
|
|
84
84
|
|
|
85
85
|
### Wiki Links
|
|
86
|
-
- Format: [[
|
|
86
|
+
- Format: [[folder/entry-name]]
|
|
87
87
|
- Target entry must exist
|
|
88
88
|
|
|
89
89
|
### Tags
|
package/docs/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Solvdex Documentation
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A universal problem-solving journal - auto-capture and retrieve knowledge across any domain.
|
|
4
4
|
|
|
5
5
|
## Table of Contents
|
|
6
6
|
|
|
@@ -8,34 +8,45 @@ Auto-capture and retrieve project knowledge across 7 domains.
|
|
|
8
8
|
|----------|-------------|
|
|
9
9
|
| [Getting Started](./getting-started.md) | Quick setup and first steps |
|
|
10
10
|
| [Architecture](./architecture.md) | System design and components |
|
|
11
|
+
| [Schema Reference](./schema.md) | Entry structure, validation rules, constants |
|
|
11
12
|
| [Workflows](./workflows.md) | How hooks and skills work together |
|
|
12
13
|
| [Use Cases](./use-cases.md) | Common scenarios and examples |
|
|
13
14
|
|
|
15
|
+
### Reference
|
|
16
|
+
|
|
17
|
+
| Document | Description |
|
|
18
|
+
|----------|-------------|
|
|
19
|
+
| [templates/problems.md](./templates/problems.md) | Template for problems folder |
|
|
20
|
+
| [templates/solutions.md](./templates/solutions.md) | Template for solutions folder |
|
|
21
|
+
| [templates/references.md](./templates/references.md) | Template for references folder |
|
|
22
|
+
|
|
14
23
|
## Quick Links
|
|
15
24
|
|
|
16
|
-
- **Skills:**
|
|
17
|
-
- **Hooks:**
|
|
18
|
-
- **
|
|
25
|
+
- **Skills:** 12 commands for wiki management
|
|
26
|
+
- **Hooks:** 3 automated triggers for capture and retrieval
|
|
27
|
+
- **Folders:** 3 universal folders (problems, solutions, references)
|
|
19
28
|
|
|
20
29
|
## Project Structure
|
|
21
30
|
|
|
22
31
|
```
|
|
23
32
|
solvdex/
|
|
24
33
|
├── agents/ # ALL logic lives here (8 agents)
|
|
25
|
-
├── skills/ # Thin wrappers (
|
|
26
|
-
├── hooks/ # Agent-based hooks (
|
|
34
|
+
├── skills/ # Thin wrappers (12 commands)
|
|
35
|
+
├── hooks/ # Agent-based hooks (3)
|
|
27
36
|
├── docs/ # Documentation (you are here)
|
|
37
|
+
│ ├── templates/ # Entry templates per folder
|
|
38
|
+
│ ├── diagrams/ # Architecture diagrams
|
|
28
39
|
│ └── plans/ # Planning docs
|
|
29
40
|
└── tests/ # Validation tests
|
|
30
41
|
```
|
|
31
42
|
|
|
32
43
|
## Version
|
|
33
44
|
|
|
34
|
-
Current:
|
|
45
|
+
Current: v3.0.0-alpha.1
|
|
35
46
|
|
|
36
47
|
## Quick Stats
|
|
37
48
|
|
|
38
|
-
- **
|
|
39
|
-
- **
|
|
49
|
+
- **12 skills** - CLI commands for wiki management
|
|
50
|
+
- **3 hooks** - Automated capture and retrieval
|
|
40
51
|
- **8 agents** - Specialized wiki operations
|
|
41
|
-
- **
|
|
52
|
+
- **3 folders** - Universal organization (problems, solutions, references)
|
package/docs/architecture.md
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Solvdex system design and component overview.
|
|
4
4
|
|
|
5
|
-
**Version:**
|
|
5
|
+
**Version:** 3.0.0-alpha.1 - Universal Problem-Solving Journal
|
|
6
6
|
|
|
7
7
|
## System Overview
|
|
8
8
|
|
|
9
|
-
> **[View System Diagram](./diagrams/system-overview.md)**
|
|
9
|
+
> **[View System Diagram](./diagrams/system-overview.md)** | **[Schema Reference](./schema.md)** (source of truth for data types)
|
|
10
10
|
|
|
11
11
|
The system consists of three layers:
|
|
12
|
-
- **Skills (
|
|
12
|
+
- **Skills (12)**: Thin command wrappers with `agent:` field
|
|
13
13
|
- **Agents (8)**: All business logic in markdown files
|
|
14
|
-
- **Storage**: `.wiki/` directory with
|
|
14
|
+
- **Storage**: `.wiki/` directory with 3 universal folders
|
|
15
15
|
|
|
16
16
|
## Core Components
|
|
17
17
|
|
|
@@ -30,37 +30,29 @@ All business logic lives in agent markdown files. No TypeScript.
|
|
|
30
30
|
| `health` | Analyze coverage gaps, find stale entries | Glob, Read |
|
|
31
31
|
| `graph` | Generate relationship diagrams (Mermaid) | Glob, Read |
|
|
32
32
|
|
|
33
|
-
**Agent Naming:** Agent names are derived from
|
|
33
|
+
**Agent Naming:** Agent names are derived from file names without extension (e.g., `agents/scanner.md` → agent name is `scanner`). Do NOT include a `name` field in agent frontmatter.
|
|
34
34
|
|
|
35
35
|
### 2. Skills (`skills/`) - Thin Wrappers
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
12 skills that delegate to agents via `agent:` frontmatter field:
|
|
38
38
|
|
|
39
39
|
**Core:**
|
|
40
|
-
- `wiki` - Main router
|
|
41
|
-
- `wiki-init` - Initialize wiki
|
|
42
|
-
- `wiki-add` -
|
|
43
|
-
- `wiki-search` - Search entries → `searcher`
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
- `wiki-
|
|
48
|
-
- `stats` - Detailed statistics → `stats`
|
|
49
|
-
- `wiki-validate` - Full validation → `validator`
|
|
40
|
+
- `wiki` - Main router → `searcher`
|
|
41
|
+
- `wiki-init` - Initialize wiki → `capture`
|
|
42
|
+
- `wiki-add` - Capture knowledge → `capture`
|
|
43
|
+
- `wiki-search` - Search/browse entries → `searcher`
|
|
44
|
+
|
|
45
|
+
**Analysis:**
|
|
46
|
+
- `wiki-stats` - Statistics (--quick for summary) → `stats`
|
|
47
|
+
- `wiki-health` - Health + validation (--validate) → `health`
|
|
50
48
|
- `wiki-scan` - Project scanning → `scanner`
|
|
49
|
+
- `wiki-graph` - Relationship diagrams → `graph`
|
|
50
|
+
|
|
51
|
+
**Entry Management:**
|
|
51
52
|
- `wiki-flag` - Flag for review → `validator`
|
|
52
53
|
- `wiki-fix` - Update flagged entry → `capture`
|
|
53
|
-
- `health` - Coverage gaps → `health`
|
|
54
|
-
- `graph` - Relationship diagrams → `graph`
|
|
55
|
-
|
|
56
|
-
**Transfer:**
|
|
57
54
|
- `wiki-export` - Export to JSON → `capture`
|
|
58
55
|
- `wiki-import` - Import from JSON → `capture`
|
|
59
|
-
- `wiki-test-trigger` - Test trigger patterns → `searcher`
|
|
60
|
-
|
|
61
|
-
**Search:**
|
|
62
|
-
- `wiki-explorer` - Deep search → `searcher`
|
|
63
|
-
- `capture` - Knowledge extraction → `capture`
|
|
64
56
|
|
|
65
57
|
### 3. Hooks (`hooks/hooks.json`) - Prompt-Based
|
|
66
58
|
|
|
@@ -68,7 +60,7 @@ Hooks provide context prompts that guide Claude to use wiki agents when appropri
|
|
|
68
60
|
|
|
69
61
|
| Hook | Purpose | Agent Suggested |
|
|
70
62
|
|------|---------|-----------------|
|
|
71
|
-
| `SessionStart` |
|
|
63
|
+
| `SessionStart` | Show entry count, hint to use `/wiki search` | (prompt-based) |
|
|
72
64
|
| `Stop` | Capture knowledge after tasks | `capture` |
|
|
73
65
|
|
|
74
66
|
No TypeScript hook files - all handled by `hooks.json` with prompt-based hints.
|
|
@@ -90,7 +82,7 @@ No TypeScript hook files - all handled by `hooks.json` with prompt-based hints.
|
|
|
90
82
|
|
|
91
83
|
1. User starts task or encounters error
|
|
92
84
|
2. Hook triggers `searcher` agent
|
|
93
|
-
3. Agent searches by keywords, triggers,
|
|
85
|
+
3. Agent searches by keywords, triggers, folder
|
|
94
86
|
4. Matching solutions displayed
|
|
95
87
|
|
|
96
88
|
## Entry Structure
|
|
@@ -124,7 +116,7 @@ audit: # Audit trail
|
|
|
124
116
|
...
|
|
125
117
|
|
|
126
118
|
# Related
|
|
127
|
-
- [[
|
|
119
|
+
- [[problems/related-bug]]
|
|
128
120
|
- `src/db/config.ts:45`
|
|
129
121
|
```
|
|
130
122
|
|
|
@@ -177,13 +169,11 @@ Penalties:
|
|
|
177
169
|
.wiki/
|
|
178
170
|
├── wiki.yaml # Global configuration
|
|
179
171
|
├── README.md # Wiki overview
|
|
180
|
-
├──
|
|
181
|
-
│ ├── _overview.md #
|
|
182
|
-
│ └── *.md #
|
|
183
|
-
├── patterns
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
├── security/
|
|
188
|
-
└── performance/
|
|
172
|
+
├── problems/ # What went wrong - bugs, errors, gotchas
|
|
173
|
+
│ ├── _overview.md # Folder overview
|
|
174
|
+
│ └── *.md # Problem entries
|
|
175
|
+
├── solutions/ # How to fix/do things - patterns, recipes
|
|
176
|
+
│ └── *.md # Solution entries
|
|
177
|
+
└── references/ # Things to remember - docs, configs
|
|
178
|
+
└── *.md # Reference entries
|
|
189
179
|
```
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
```mermaid
|
|
4
4
|
graph TB
|
|
5
5
|
subgraph CC["Claude Code"]
|
|
6
|
-
subgraph Skills["Skills (
|
|
6
|
+
subgraph Skills["Skills (12)"]
|
|
7
7
|
S1["/wiki search"]
|
|
8
8
|
S2["/wiki add"]
|
|
9
9
|
S3["/wiki health"]
|
|
@@ -25,17 +25,13 @@ graph TB
|
|
|
25
25
|
A5["stats"]
|
|
26
26
|
A6["health"]
|
|
27
27
|
A7["graph"]
|
|
28
|
-
A8["
|
|
28
|
+
A8["duplicate-checker"]
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
subgraph ".wiki/ Storage"
|
|
32
|
-
W1["
|
|
33
|
-
W2["
|
|
34
|
-
W3["
|
|
35
|
-
W4["testing/"]
|
|
36
|
-
W5["docs/"]
|
|
37
|
-
W6["security/"]
|
|
38
|
-
W7["performance/"]
|
|
32
|
+
W1["problems/"]
|
|
33
|
+
W2["solutions/"]
|
|
34
|
+
W3["references/"]
|
|
39
35
|
end
|
|
40
36
|
|
|
41
37
|
S1 --> A1
|
|
@@ -47,8 +43,9 @@ graph TB
|
|
|
47
43
|
H3 --> A2
|
|
48
44
|
|
|
49
45
|
A1 --> W1
|
|
50
|
-
A2 --> W1
|
|
51
|
-
A3 --> W1
|
|
52
46
|
A1 --> W2
|
|
47
|
+
A1 --> W3
|
|
48
|
+
A2 --> W1
|
|
53
49
|
A2 --> W2
|
|
50
|
+
A2 --> W3
|
|
54
51
|
```
|
|
@@ -5,7 +5,7 @@ erDiagram
|
|
|
5
5
|
WikiEntry ||--|| EntryFrontmatter : has
|
|
6
6
|
WikiEntry {
|
|
7
7
|
string path
|
|
8
|
-
string
|
|
8
|
+
string folder
|
|
9
9
|
string slug
|
|
10
10
|
string content
|
|
11
11
|
}
|
|
@@ -34,7 +34,7 @@ erDiagram
|
|
|
34
34
|
WikiConfig {
|
|
35
35
|
number version
|
|
36
36
|
string project
|
|
37
|
-
array
|
|
37
|
+
array folders
|
|
38
38
|
object auto_capture
|
|
39
39
|
object auto_lookup
|
|
40
40
|
object validation
|
|
@@ -12,7 +12,7 @@ sequenceDiagram
|
|
|
12
12
|
Claude->>Hook: Trigger lookup
|
|
13
13
|
Hook->>Agent: Search request
|
|
14
14
|
Agent->>Wiki: Query entries
|
|
15
|
-
Note over Agent: Search by:<br/>- keywords<br/>- trigger patterns<br/>-
|
|
15
|
+
Note over Agent: Search by:<br/>- keywords<br/>- trigger patterns<br/>- folder
|
|
16
16
|
Wiki-->>Agent: Matching entries
|
|
17
17
|
Agent-->>User: Display solutions
|
|
18
18
|
```
|
|
@@ -5,7 +5,7 @@ flowchart TD
|
|
|
5
5
|
START([START]) --> SessionStart
|
|
6
6
|
|
|
7
7
|
subgraph Session["Session Lifecycle"]
|
|
8
|
-
SessionStart["SessionStart Hook<br/>(
|
|
8
|
+
SessionStart["SessionStart Hook<br/>(shows entry count)"] --> |Wiki available| Suggestions["Display: Wiki has N entries"]
|
|
9
9
|
Suggestions --> UserPrompt["User Prompt"]
|
|
10
10
|
UserPrompt --> Processing["Claude Code Processing"]
|
|
11
11
|
Processing --> ToolExec["Tool Execution"]
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
```mermaid
|
|
4
4
|
graph TB
|
|
5
5
|
subgraph CC["Claude Code"]
|
|
6
|
-
subgraph Skills["Skills (
|
|
6
|
+
subgraph Skills["Skills (12)"]
|
|
7
7
|
SK["Commands"]
|
|
8
8
|
end
|
|
9
9
|
subgraph Hooks["Hooks"]
|
|
@@ -24,12 +24,8 @@ graph TB
|
|
|
24
24
|
end
|
|
25
25
|
Agents --> Storage
|
|
26
26
|
subgraph Storage[".wiki/ Storage"]
|
|
27
|
-
S1["
|
|
28
|
-
S2["
|
|
29
|
-
S3["
|
|
30
|
-
S4["testing/"]
|
|
31
|
-
S5["docs/"]
|
|
32
|
-
S6["security/"]
|
|
33
|
-
S7["performance/"]
|
|
27
|
+
S1["problems/"]
|
|
28
|
+
S2["solutions/"]
|
|
29
|
+
S3["references/"]
|
|
34
30
|
end
|
|
35
31
|
```
|
package/docs/getting-started.md
CHANGED
|
@@ -22,7 +22,7 @@ npm install # For running tests only - no build step needed
|
|
|
22
22
|
|
|
23
23
|
2. Link to your project's Claude Code config.
|
|
24
24
|
|
|
25
|
-
> **Note:** Solvdex
|
|
25
|
+
> **Note:** Solvdex 3.0 is a pure agent plugin with no build step required.
|
|
26
26
|
|
|
27
27
|
## Initialize Wiki
|
|
28
28
|
|
|
@@ -37,13 +37,9 @@ This creates:
|
|
|
37
37
|
.wiki/
|
|
38
38
|
├── wiki.yaml # Configuration
|
|
39
39
|
├── README.md # Wiki overview
|
|
40
|
-
├──
|
|
41
|
-
├──
|
|
42
|
-
|
|
43
|
-
├── testing/ # Test strategies
|
|
44
|
-
├── docs/ # Documentation guides
|
|
45
|
-
├── security/ # Security patterns
|
|
46
|
-
└── performance/ # Optimizations
|
|
40
|
+
├── problems/ # What went wrong - bugs, errors, gotchas
|
|
41
|
+
├── solutions/ # How to fix/do things - patterns, recipes
|
|
42
|
+
└── references/ # Things to remember - docs, configs
|
|
47
43
|
```
|
|
48
44
|
|
|
49
45
|
## First Entry
|
|
@@ -57,7 +53,7 @@ After solving a problem:
|
|
|
57
53
|
Or with options:
|
|
58
54
|
|
|
59
55
|
```
|
|
60
|
-
/wiki add --
|
|
56
|
+
/wiki add --folder=problems --title="Database Timeout Fix"
|
|
61
57
|
```
|
|
62
58
|
|
|
63
59
|
## Search Knowledge
|
|
@@ -69,7 +65,7 @@ Or with options:
|
|
|
69
65
|
Or browse all:
|
|
70
66
|
|
|
71
67
|
```
|
|
72
|
-
/wiki
|
|
68
|
+
/wiki search
|
|
73
69
|
```
|
|
74
70
|
|
|
75
71
|
## Automatic Context
|
|
@@ -78,7 +74,7 @@ Solvdex hooks provide prompt-based hints to use wiki agents:
|
|
|
78
74
|
|
|
79
75
|
| Hook | Suggests | Trigger | Purpose |
|
|
80
76
|
|------|----------|---------|---------|
|
|
81
|
-
| SessionStart |
|
|
77
|
+
| SessionStart | (entry count) | New conversation | Shows wiki size, hints to use `/wiki search` |
|
|
82
78
|
| Stop | `capture` | Task completes | Hint to capture valuable knowledge |
|
|
83
79
|
|
|
84
80
|
Hooks are configured in `hooks/hooks.json` - no TypeScript needed. For error lookups, use `/wiki search` manually.
|
|
@@ -87,4 +83,5 @@ Hooks are configured in `hooks/hooks.json` - no TypeScript needed. For error loo
|
|
|
87
83
|
|
|
88
84
|
- Read [Workflows](./workflows.md) to understand automation
|
|
89
85
|
- See [Use Cases](./use-cases.md) for common scenarios
|
|
90
|
-
- Check [
|
|
86
|
+
- Check [Schema Reference](./schema.md#entry-templates) for entry structure
|
|
87
|
+
- See [Entry Templates](./templates/) for folder-specific templates
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# DevWiki Marketplace Distribution Plan
|
|
2
2
|
|
|
3
|
+
> **⚠️ HISTORICAL:** This document references DevWiki v0.2.0 and predates the Solvdex v3.0 rebranding. Some details may be outdated but the distribution approach remains relevant.
|
|
4
|
+
|
|
3
5
|
## Overview
|
|
4
6
|
|
|
5
7
|
Publish DevWiki as a Claude Code plugin to a marketplace for easy installation via `/plugin install`.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Solvdex Design
|
|
2
2
|
|
|
3
|
+
> **⚠️ SUPERSEDED:** This v2.0 design document has been replaced by v3.0. See [2025-02-02-generic-wiki-v3.md](./2025-02-02-generic-wiki-v3.md) for the current design with 3 universal folders (problems, solutions, references).
|
|
4
|
+
|
|
3
5
|
> Renamed from DevWiki. An index of solved problems.
|
|
4
6
|
|
|
5
7
|
## Overview
|