@orderful/droid 0.37.0 → 0.38.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/.claude-plugin/marketplace.json +1 -118
- package/.claude-plugin/plugin.json +49 -0
- package/AGENTS.md +4 -0
- package/CHANGELOG.md +43 -0
- package/README.md +53 -39
- package/dist/bin/droid.js +525 -212
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/tui/components/PlatformBadges.d.ts.map +1 -1
- package/dist/commands/tui/components/SettingsDetails.d.ts.map +1 -1
- package/dist/commands/tui/hooks/useAppUpdate.d.ts.map +1 -1
- package/dist/commands/tui/views/SetupScreen.d.ts.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/index.js +345 -186
- package/dist/lib/agents.d.ts +4 -2
- package/dist/lib/agents.d.ts.map +1 -1
- package/dist/lib/migrations.d.ts.map +1 -1
- package/dist/lib/platform.codex.d.ts +36 -0
- package/dist/lib/platform.codex.d.ts.map +1 -0
- package/dist/lib/platforms.d.ts +30 -24
- package/dist/lib/platforms.d.ts.map +1 -1
- package/dist/lib/skills.d.ts +4 -2
- package/dist/lib/skills.d.ts.map +1 -1
- package/dist/lib/types.d.ts +2 -1
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/tools/brain/.claude-plugin/plugin.json +8 -1
- package/dist/tools/brain/TOOL.yaml +1 -1
- package/dist/tools/brain/skills/brain/SKILL.md +6 -3
- package/dist/tools/brain/skills/brain/references/workflows.md +9 -5
- package/dist/tools/brain/skills/brain-obsidian/SKILL.md +2 -0
- package/dist/tools/coach/.claude-plugin/plugin.json +6 -0
- package/dist/tools/coach/skills/coach/SKILL.md +3 -0
- package/dist/tools/code-review/.claude-plugin/plugin.json +12 -0
- package/dist/tools/code-review/skills/code-review/SKILL.md +2 -0
- package/dist/tools/codex/.claude-plugin/plugin.json +9 -0
- package/dist/tools/codex/skills/codex/SKILL.md +3 -0
- package/dist/tools/comments/.claude-plugin/plugin.json +6 -0
- package/dist/tools/comments/skills/comments/SKILL.md +5 -0
- package/dist/tools/droid/.claude-plugin/plugin.json +8 -1
- package/dist/tools/droid/TOOL.yaml +4 -2
- package/dist/tools/droid/commands/setup.md +125 -0
- package/dist/tools/droid/skills/droid/SKILL.md +117 -2
- package/dist/tools/plan/.claude-plugin/plugin.json +6 -0
- package/dist/tools/plan/skills/plan/SKILL.md +2 -0
- package/dist/tools/project/.claude-plugin/plugin.json +6 -0
- package/dist/tools/project/skills/project/SKILL.md +3 -0
- package/dist/tools/tech-design/.claude-plugin/plugin.json +7 -1
- package/dist/tools/tech-design/TOOL.yaml +1 -1
- package/dist/tools/tech-design/commands/tech-design.md +2 -0
- package/dist/tools/tech-design/skills/tech-design/SKILL.md +39 -9
- package/dist/tools/tech-design/skills/tech-design/references/publish.md +272 -216
- package/dist/tools/tech-design/skills/tech-design/references/start.md +50 -20
- package/dist/tools/wrapup/.claude-plugin/plugin.json +6 -0
- package/dist/tools/wrapup/skills/wrapup/SKILL.md +2 -0
- package/package.json +1 -1
- package/scripts/build-plugins.ts +154 -6
- package/src/bin/droid.ts +16 -0
- package/src/commands/setup.ts +107 -2
- package/src/commands/tui/components/PlatformBadges.tsx +1 -0
- package/src/commands/tui/components/SettingsDetails.tsx +1 -0
- package/src/commands/tui/hooks/useAppUpdate.ts +21 -1
- package/src/commands/tui/views/SetupScreen.tsx +10 -1
- package/src/commands/update.ts +21 -1
- package/src/lib/agents.ts +13 -2
- package/src/lib/migrations.ts +81 -9
- package/src/lib/platform.codex.ts +131 -0
- package/src/lib/platforms.ts +127 -6
- package/src/lib/skills.ts +53 -6
- package/src/lib/types.ts +1 -0
- package/src/tools/brain/.claude-plugin/plugin.json +8 -1
- package/src/tools/brain/TOOL.yaml +1 -1
- package/src/tools/brain/skills/brain/SKILL.md +6 -3
- package/src/tools/brain/skills/brain/references/workflows.md +9 -5
- package/src/tools/brain/skills/brain-obsidian/SKILL.md +2 -0
- package/src/tools/coach/.claude-plugin/plugin.json +6 -0
- package/src/tools/coach/skills/coach/SKILL.md +3 -0
- package/src/tools/code-review/.claude-plugin/plugin.json +12 -0
- package/src/tools/code-review/skills/code-review/SKILL.md +2 -0
- package/src/tools/codex/.claude-plugin/plugin.json +9 -0
- package/src/tools/codex/skills/codex/SKILL.md +3 -0
- package/src/tools/comments/.claude-plugin/plugin.json +6 -0
- package/src/tools/comments/skills/comments/SKILL.md +5 -0
- package/src/tools/droid/.claude-plugin/plugin.json +8 -1
- package/src/tools/droid/TOOL.yaml +4 -2
- package/src/tools/droid/commands/setup.md +125 -0
- package/src/tools/droid/skills/droid/SKILL.md +117 -2
- package/src/tools/plan/.claude-plugin/plugin.json +6 -0
- package/src/tools/plan/skills/plan/SKILL.md +2 -0
- package/src/tools/project/.claude-plugin/plugin.json +6 -0
- package/src/tools/project/skills/project/SKILL.md +3 -0
- package/src/tools/tech-design/.claude-plugin/plugin.json +7 -1
- package/src/tools/tech-design/TOOL.yaml +1 -1
- package/src/tools/tech-design/commands/tech-design.md +2 -0
- package/src/tools/tech-design/skills/tech-design/SKILL.md +39 -9
- package/src/tools/tech-design/skills/tech-design/references/publish.md +272 -216
- package/src/tools/tech-design/skills/tech-design/references/start.md +50 -20
- package/src/tools/wrapup/.claude-plugin/plugin.json +6 -0
- package/src/tools/wrapup/skills/wrapup/SKILL.md +2 -0
package/src/lib/types.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "droid-brain",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Your scratchpad (or brain) - a collaborative space for planning and research. Create docs with /brain plan, /brain research, or /brain review. Use @mentions for async discussion. Docs persist across sessions.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Orderful",
|
|
@@ -12,5 +12,12 @@
|
|
|
12
12
|
"droid",
|
|
13
13
|
"ai",
|
|
14
14
|
"brain"
|
|
15
|
+
],
|
|
16
|
+
"skills": [
|
|
17
|
+
"./skills/brain/SKILL.md",
|
|
18
|
+
"./skills/brain-obsidian/SKILL.md"
|
|
19
|
+
],
|
|
20
|
+
"commands": [
|
|
21
|
+
"./commands/brain.md"
|
|
15
22
|
]
|
|
16
23
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
name: brain
|
|
2
2
|
description: "Your scratchpad (or brain) - a collaborative space for planning and research. Create docs with /brain plan, /brain research, or /brain review. Use @mentions for async discussion. Docs persist across sessions."
|
|
3
|
-
version: 0.
|
|
3
|
+
version: 0.4.0
|
|
4
4
|
status: beta
|
|
5
5
|
|
|
6
6
|
includes:
|
|
@@ -32,6 +32,7 @@ Your **scratchpad** (or **brain**) - a collaborative space for planning, researc
|
|
|
32
32
|
| -------------- | ------- | ------------------------------------------ |
|
|
33
33
|
| `brain_dir` | (none) | Where docs are stored - **must be configured** |
|
|
34
34
|
| `inbox_folder` | (empty) | Root folder for new docs (e.g., `0-Inbox`) |
|
|
35
|
+
| `override` | (none) | User-defined behaviour overrides |
|
|
35
36
|
|
|
36
37
|
**If not configured:** Ask the user:
|
|
37
38
|
> "Where would you like to store brain docs? Common choices:
|
|
@@ -39,11 +40,13 @@ Your **scratchpad** (or **brain**) - a collaborative space for planning, researc
|
|
|
39
40
|
> - `~/src/github.com/brain` - With your other repos
|
|
40
41
|
> - An existing Obsidian vault path"
|
|
41
42
|
|
|
42
|
-
Then
|
|
43
|
-
```
|
|
44
|
-
brain_dir
|
|
43
|
+
Then set their choice:
|
|
44
|
+
```bash
|
|
45
|
+
droid config --set tools.brain.brain_dir="{user's choice}"
|
|
45
46
|
```
|
|
46
47
|
|
|
48
|
+
**Overrides:** This skill supports user-defined overrides. See `/droid` skill § Skill Overrides for how to create, register, and use overrides.
|
|
49
|
+
|
|
47
50
|
## Commands
|
|
48
51
|
|
|
49
52
|
**Reserved keywords:** `search`, `add`, `check`, `cleanup`, `done`
|
|
@@ -14,7 +14,11 @@ Detailed procedures for each brain operation.
|
|
|
14
14
|
- If `brain_dir` is not configured, **ask the user** where they want brain docs stored
|
|
15
15
|
- **Do NOT skip this step or assume defaults**
|
|
16
16
|
|
|
17
|
-
2. **
|
|
17
|
+
2. **Check for override** (see `/droid` skill § Override Lookup)
|
|
18
|
+
- If override applies for `search` command, follow override instructions instead of step 3
|
|
19
|
+
- Fall back to step 3 if override fails
|
|
20
|
+
|
|
21
|
+
3. **Search for matches** (default behaviour)
|
|
18
22
|
|
|
19
23
|
```
|
|
20
24
|
Glob: {brain_dir}/**/*{topic}*.md
|
|
@@ -22,20 +26,20 @@ Detailed procedures for each brain operation.
|
|
|
22
26
|
|
|
23
27
|
Fuzzy match the topic against doc filenames
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
4. **Handle results:**
|
|
26
30
|
- **No matches**: Offer to create a new doc with that topic
|
|
27
31
|
- **One match**: Open it
|
|
28
32
|
- **Multiple matches**: Present list, let user choose
|
|
29
33
|
|
|
30
|
-
|
|
34
|
+
5. **Read the doc** and summarize key points:
|
|
31
35
|
- Current status
|
|
32
36
|
- Main topic/context
|
|
33
37
|
- Any open `@droid` comments
|
|
34
38
|
- Recent updates
|
|
35
39
|
|
|
36
|
-
|
|
40
|
+
6. **Set as active doc** - Remember path for subsequent `/brain add` and `/brain check` commands
|
|
37
41
|
|
|
38
|
-
|
|
42
|
+
7. **If `-- {instruction}` provided:** Execute the follow-up instruction against the loaded doc
|
|
39
43
|
|
|
40
44
|
## Creating
|
|
41
45
|
|
|
@@ -33,6 +33,8 @@ droid config --set tools.brain.brain_dir=~/path/to/your/vault
|
|
|
33
33
|
| `areas_folder` | `1-Areas` | Area docs (PARA only) |
|
|
34
34
|
| `resources_folder` | `3-Resources` | Reference material (PARA only) |
|
|
35
35
|
|
|
36
|
+
**Overrides:** This skill supports user-defined overrides. See `/droid` skill § Skill Overrides.
|
|
37
|
+
|
|
36
38
|
## What This Adds
|
|
37
39
|
|
|
38
40
|
| Feature | Description |
|
|
@@ -52,6 +52,9 @@ plan → AI scaffolds → human implements → AI coaches → iterate → ship
|
|
|
52
52
|
| Setting | Default | Description |
|
|
53
53
|
| -------------------- | -------- | ------------------------------------------------------- |
|
|
54
54
|
| `scaffold_verbosity` | `medium` | How detailed hints are: `minimal`, `medium`, `detailed` |
|
|
55
|
+
| `override` | (none) | User-defined behaviour overrides |
|
|
56
|
+
|
|
57
|
+
**Overrides:** This skill supports user-defined overrides. See `/droid` skill § Skill Overrides.
|
|
55
58
|
|
|
56
59
|
<!-- Note: @mention is the target, not author. @{user} = AI talking TO user, @droid = user talking TO AI -->
|
|
57
60
|
> @{user} Not yet - droid currently shows config as free text input. But we could add an `enum` type to the config schema that presents as a select dropdown in the TUI. Good feature request - want me to create an issue for it?
|
|
@@ -12,5 +12,17 @@
|
|
|
12
12
|
"droid",
|
|
13
13
|
"ai",
|
|
14
14
|
"code-review"
|
|
15
|
+
],
|
|
16
|
+
"skills": [
|
|
17
|
+
"./skills/code-review/SKILL.md"
|
|
18
|
+
],
|
|
19
|
+
"commands": [
|
|
20
|
+
"./commands/code-review.md"
|
|
21
|
+
],
|
|
22
|
+
"agents": [
|
|
23
|
+
"./agents/edi-standards-reviewer.md",
|
|
24
|
+
"./agents/error-handling-reviewer.md",
|
|
25
|
+
"./agents/test-coverage-analyzer.md",
|
|
26
|
+
"./agents/type-reviewer.md"
|
|
15
27
|
]
|
|
16
28
|
}
|
|
@@ -16,6 +16,8 @@ Code-review has no configuration of its own. Optional integration with other too
|
|
|
16
16
|
- **Brain skill** (optional): If installed, offers to save review results to a `/brain review` doc
|
|
17
17
|
- Check with: `droid config --get tools.brain` to see if `brain_dir` is configured
|
|
18
18
|
|
|
19
|
+
**Overrides:** This skill supports user-defined overrides. See `/droid` skill § Skill Overrides.
|
|
20
|
+
|
|
19
21
|
## How It Works
|
|
20
22
|
|
|
21
23
|
The `/code-review` command orchestrates multiple specialized agents in parallel:
|
|
@@ -82,6 +82,9 @@ If prerequisites fail, guide user to fix:
|
|
|
82
82
|
|---------|---------|-------------|
|
|
83
83
|
| codex_repo | ~/src/github.com/orderful-codex | Path to local codex repo |
|
|
84
84
|
| freshness_days | 30 | Days before staleness warning |
|
|
85
|
+
| override | (none) | User-defined behaviour overrides |
|
|
86
|
+
|
|
87
|
+
**Overrides:** This skill supports user-defined overrides. See `/droid` skill § Skill Overrides.
|
|
85
88
|
|
|
86
89
|
## Commands
|
|
87
90
|
|
|
@@ -122,8 +122,13 @@ ai_mentions: "@claude"
|
|
|
122
122
|
|
|
123
123
|
# Keep comments after addressing them (default: true)
|
|
124
124
|
preserve_comments: true
|
|
125
|
+
|
|
126
|
+
# User-defined behaviour overrides (see /droid skill)
|
|
127
|
+
override: ...
|
|
125
128
|
```
|
|
126
129
|
|
|
130
|
+
**Overrides:** This skill supports user-defined overrides. See `/droid` skill § Skill Overrides.
|
|
131
|
+
|
|
127
132
|
## File Type Support
|
|
128
133
|
|
|
129
134
|
Works in any text file. Respects `.gitignore` and skips common build directories (node_modules, dist, .git, etc.).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "droid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Core droid meta-skill for update awareness, tool discovery, and usage help. Checks for updates, helps users find tools, and answers 'how do I...' questions about droid workflows.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Orderful",
|
|
@@ -11,5 +11,12 @@
|
|
|
11
11
|
"keywords": [
|
|
12
12
|
"droid",
|
|
13
13
|
"ai"
|
|
14
|
+
],
|
|
15
|
+
"skills": [
|
|
16
|
+
"./skills/droid/SKILL.md",
|
|
17
|
+
"./skills/droid-bootstrap/SKILL.md"
|
|
18
|
+
],
|
|
19
|
+
"commands": [
|
|
20
|
+
"./commands/setup.md"
|
|
14
21
|
]
|
|
15
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
name: droid
|
|
2
2
|
description: "Core droid meta-skill for update awareness, tool discovery, and usage help. Checks for updates, helps users find tools, and answers 'how do I...' questions about droid workflows."
|
|
3
|
-
version: 0.
|
|
3
|
+
version: 0.7.0
|
|
4
4
|
status: beta
|
|
5
5
|
|
|
6
6
|
# System tool - always stays current regardless of auto-update settings
|
|
@@ -12,7 +12,9 @@ includes:
|
|
|
12
12
|
required: true
|
|
13
13
|
- name: droid-bootstrap
|
|
14
14
|
required: true
|
|
15
|
-
commands:
|
|
15
|
+
commands:
|
|
16
|
+
- name: setup
|
|
17
|
+
is_alias: false
|
|
16
18
|
agents: []
|
|
17
19
|
|
|
18
20
|
dependencies: []
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: setup
|
|
3
|
+
description: "Configure Droid after marketplace installation"
|
|
4
|
+
argument-hint: ""
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# /setup
|
|
8
|
+
|
|
9
|
+
**User invoked:** `/setup`
|
|
10
|
+
|
|
11
|
+
**Your task:** Guide the user through initial Droid configuration.
|
|
12
|
+
|
|
13
|
+
## When to Use
|
|
14
|
+
|
|
15
|
+
Run this command after installing Droid plugins via the marketplace (when `~/.droid/config.yaml` doesn't exist).
|
|
16
|
+
|
|
17
|
+
## Configuration Flow
|
|
18
|
+
|
|
19
|
+
### 1. Check Existing Configuration
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
ls -la ~/.droid/config.yaml 2>/dev/null || echo "No config found"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
- If config exists: Ask "You already have a config. Reconfigure? [y/N]"
|
|
26
|
+
- If no config: Proceed with setup
|
|
27
|
+
|
|
28
|
+
### 2. Create Config Directory
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
mkdir -p ~/.droid
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### 3. Detect Git Username
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
git config user.name
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Store this for `git_username` in config.
|
|
41
|
+
|
|
42
|
+
### 4. Gather Global Settings
|
|
43
|
+
|
|
44
|
+
Ask the user:
|
|
45
|
+
|
|
46
|
+
> **What handle should be used for @mentions in code comments?**
|
|
47
|
+
> (This is used by the comments tool for async collaboration)
|
|
48
|
+
> Default: `@droid`
|
|
49
|
+
|
|
50
|
+
### 5. Detect Installed Tools
|
|
51
|
+
|
|
52
|
+
Check which Droid plugins are installed by looking for skill files:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Check Claude Code skills directory and plugin cache
|
|
56
|
+
ls ~/.claude/skills/ 2>/dev/null | grep -E '^(brain|project|codex|wrapup|code-review|tech-design|comments|coach|plan)-' || true
|
|
57
|
+
find ~/.claude/plugins/cache -name "SKILL.md" -path "*droid*" 2>/dev/null | head -20 || true
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### 6. Configure Tools That Need Settings
|
|
61
|
+
|
|
62
|
+
For each detected tool that requires configuration:
|
|
63
|
+
|
|
64
|
+
**brain:**
|
|
65
|
+
> **Where should brain docs be stored?**
|
|
66
|
+
> Default: `~/brain`
|
|
67
|
+
> (This directory will be created if it doesn't exist)
|
|
68
|
+
|
|
69
|
+
**project:**
|
|
70
|
+
> **Where are your projects located?**
|
|
71
|
+
> Default: `~/Projects`
|
|
72
|
+
> (Used to find and link project-level context)
|
|
73
|
+
|
|
74
|
+
**codex:**
|
|
75
|
+
> **Where is your shared codex repository?**
|
|
76
|
+
> Default: `~/codex`
|
|
77
|
+
> (Leave blank to skip codex configuration)
|
|
78
|
+
|
|
79
|
+
### 7. Write Configuration
|
|
80
|
+
|
|
81
|
+
Create `~/.droid/config.yaml` with the gathered settings:
|
|
82
|
+
|
|
83
|
+
```yaml
|
|
84
|
+
# Droid global configuration
|
|
85
|
+
# Generated by /setup
|
|
86
|
+
|
|
87
|
+
user_mention: "@droid" # Or user's chosen handle
|
|
88
|
+
git_username: "detected-name"
|
|
89
|
+
|
|
90
|
+
# Tool-specific settings
|
|
91
|
+
brain:
|
|
92
|
+
brain_dir: "~/brain"
|
|
93
|
+
|
|
94
|
+
project:
|
|
95
|
+
projects_dir: "~/Projects"
|
|
96
|
+
|
|
97
|
+
codex:
|
|
98
|
+
codex_dir: "~/codex" # Only if provided
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### 8. Confirm Success
|
|
102
|
+
|
|
103
|
+
Display a summary:
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
Droid configured successfully!
|
|
107
|
+
|
|
108
|
+
Global settings:
|
|
109
|
+
- User mention: @droid
|
|
110
|
+
- Git username: Your Name
|
|
111
|
+
|
|
112
|
+
Tool settings:
|
|
113
|
+
- brain: ~/brain
|
|
114
|
+
- project: ~/Projects
|
|
115
|
+
- codex: ~/codex
|
|
116
|
+
|
|
117
|
+
You can edit these settings anytime at ~/.droid/config.yaml
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Notes
|
|
121
|
+
|
|
122
|
+
- All paths should be expanded (~ to full home directory) when written
|
|
123
|
+
- Only include tool sections for tools that are actually installed
|
|
124
|
+
- If a required directory doesn't exist, offer to create it
|
|
125
|
+
- Skip tools that aren't installed rather than configuring them
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: droid
|
|
3
|
-
description: "Core droid meta-skill for updates, tool discovery, and
|
|
4
|
-
allowed-tools: [Bash]
|
|
3
|
+
description: "Core droid meta-skill for updates, tool discovery, usage help, and skill overrides. Use when checking for droid updates, discovering available tools, answering 'how do I...' questions about droid workflows, or customizing skill behaviour. User prompts like 'any droid updates?', 'what tools do I have?', 'what tools do you have?', 'remind me what tools you have', 'hey droid what can you do', 'how do I add context?', 'remind me how to use codex', 'what's the best way to start a session?', 'customize brain search', 'create an override for brain'."
|
|
4
|
+
allowed-tools: [Bash, Read, Write]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Droid
|
|
@@ -87,3 +87,118 @@ When answering "how do I..." questions:
|
|
|
87
87
|
1. `/project search {name}` - Load working context
|
|
88
88
|
2. `/codex search {topic}` - Find relevant org knowledge (if needed)
|
|
89
89
|
3. Then start working with full context
|
|
90
|
+
|
|
91
|
+
## Skill Overrides
|
|
92
|
+
|
|
93
|
+
Users can customize skill behaviour by creating override files in `~/.droid/skill_overrides/`.
|
|
94
|
+
|
|
95
|
+
**When:** User asks to customize a skill, use a different tool for a command, or mentions overrides.
|
|
96
|
+
|
|
97
|
+
### Creating an Override
|
|
98
|
+
|
|
99
|
+
1. **Explain** the override system:
|
|
100
|
+
- Override files live in `~/.droid/skill_overrides/{skill}.md`
|
|
101
|
+
- Use YAML frontmatter to declare which commands are overridden
|
|
102
|
+
- Template available at `~/.droid/skill_overrides/_template.md`
|
|
103
|
+
|
|
104
|
+
2. **Create** the override file with proper structure:
|
|
105
|
+
```markdown
|
|
106
|
+
---
|
|
107
|
+
overrides: [command1, command2]
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## command1
|
|
111
|
+
|
|
112
|
+
Custom instructions for this command...
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
3. **Register** the override in config:
|
|
116
|
+
```bash
|
|
117
|
+
# Set override path (use tool name in config path, skill name for file)
|
|
118
|
+
droid config --set tools.{tool}.override.path="~/.droid/skill_overrides/{skill}.md"
|
|
119
|
+
|
|
120
|
+
# Set overridden commands (as JSON array)
|
|
121
|
+
droid config --set tools.{tool}.override.commands='["command1", "command2"]'
|
|
122
|
+
|
|
123
|
+
# Enable the override (can toggle off later)
|
|
124
|
+
droid config --set tools.{tool}.override.enabled=true
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Note: Config uses tool name (e.g., `tools.brain`), file uses skill name. Usually the same, but tools can contain multiple skills.
|
|
128
|
+
|
|
129
|
+
**Toggle off:** `droid config --set tools.{tool}.override.enabled=false` to disable without removing.
|
|
130
|
+
|
|
131
|
+
4. **Confirm** the override is active
|
|
132
|
+
|
|
133
|
+
### Registering an Existing Override
|
|
134
|
+
|
|
135
|
+
If user says "I added an override for {tool}" or "register my {tool} override":
|
|
136
|
+
|
|
137
|
+
1. **Read** `~/.droid/skill_overrides/{skill}.md`
|
|
138
|
+
2. **Parse** YAML frontmatter to extract `overrides: [...]` array
|
|
139
|
+
3. **Register** using the config commands above (with tool name in config path)
|
|
140
|
+
4. **Confirm** registration
|
|
141
|
+
|
|
142
|
+
### Override Visibility
|
|
143
|
+
|
|
144
|
+
When an override is active, skills show:
|
|
145
|
+
```
|
|
146
|
+
[override] brain/search → ~/.droid/skill_overrides/brain.md
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
This helps users know customisation is being used and where to find it.
|
|
150
|
+
|
|
151
|
+
### Example: qmd for Brain Search
|
|
152
|
+
|
|
153
|
+
User: "I want brain search to use qmd for semantic search"
|
|
154
|
+
|
|
155
|
+
Create `~/.droid/skill_overrides/brain.md`:
|
|
156
|
+
```markdown
|
|
157
|
+
---
|
|
158
|
+
overrides: [search]
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## search
|
|
162
|
+
|
|
163
|
+
Use qmd for semantic search instead of filename matching.
|
|
164
|
+
|
|
165
|
+
**Prerequisites:** qmd installed, brain collection indexed (`qmd index brain -p {brain_dir}`)
|
|
166
|
+
|
|
167
|
+
**Workflow:**
|
|
168
|
+
|
|
169
|
+
1. Check if qmd collection exists: `qmd ls brain`
|
|
170
|
+
2. If exists, run: `qmd query "{query}" -c brain -n 10 --files`
|
|
171
|
+
3. Parse CSV output (format: `docid,score,filepath,context`)
|
|
172
|
+
4. Extract filepath (field 3) from each row
|
|
173
|
+
5. Present matches sorted by score
|
|
174
|
+
6. If qmd fails or collection doesn't exist, fall back to Glob: `{brain_dir}/**/*{query}*.md`
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
Then register:
|
|
178
|
+
```bash
|
|
179
|
+
droid config --set tools.brain.override.path="~/.droid/skill_overrides/brain.md"
|
|
180
|
+
droid config --set tools.brain.override.commands='["search"]'
|
|
181
|
+
droid config --set tools.brain.override.enabled=true
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Override Lookup (for all skills)
|
|
185
|
+
|
|
186
|
+
When executing any skill command, check for overrides:
|
|
187
|
+
|
|
188
|
+
1. **Get tool config:** `droid config --get tools.{tool}`
|
|
189
|
+
|
|
190
|
+
2. **Check if override applies:**
|
|
191
|
+
- Config has `override` section AND
|
|
192
|
+
- `override.enabled` is `true` (or not set) AND
|
|
193
|
+
- `override.commands` includes the current command
|
|
194
|
+
|
|
195
|
+
3. **If override applies:**
|
|
196
|
+
- Show: `[override] {skill}/{command} → {override.path}`
|
|
197
|
+
- Read the override file at `override.path`
|
|
198
|
+
- Find the `## {command}` section
|
|
199
|
+
- Follow those instructions instead of default workflow
|
|
200
|
+
- If override fails or instructions unclear, fall back to default
|
|
201
|
+
|
|
202
|
+
4. **If no override:** Use default skill behaviour
|
|
203
|
+
|
|
204
|
+
This lookup is the same for all skills - config is per-tool, but the lookup workflow is universal.
|
|
@@ -28,6 +28,8 @@ Uses config from dependencies:
|
|
|
28
28
|
- `droid config --get tools.brain` → `brain_dir`, `inbox_folder`
|
|
29
29
|
- `droid config --get user_mention` → `user_mention` (global config)
|
|
30
30
|
|
|
31
|
+
**Overrides:** This skill supports user-defined overrides. See `/droid` skill § Skill Overrides.
|
|
32
|
+
|
|
31
33
|
## Commands
|
|
32
34
|
|
|
33
35
|
| Command | Action |
|
|
@@ -32,6 +32,9 @@ Chat history disappears. Projects persist.
|
|
|
32
32
|
| -------------- | ------------ | -------------------------------------------------- |
|
|
33
33
|
| `projects_dir` | **required** | Where projects are stored (must be configured) |
|
|
34
34
|
| `preset` | `markdown` | Output format: `markdown` or `obsidian` |
|
|
35
|
+
| `override` | (none) | User-defined behaviour overrides |
|
|
36
|
+
|
|
37
|
+
**Overrides:** This skill supports user-defined overrides. See `/droid` skill § Skill Overrides.
|
|
35
38
|
|
|
36
39
|
If `projects_dir` is not configured, inform the user they need to set it up:
|
|
37
40
|
```bash
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "droid-tech-design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Technical design authoring tool for engineers. Create structured tech design docs with /tech-design start, iterate in brain, publish to codex. Three-document approach: research doc (codebase discoveries) + thought doc (design workspace) + roll-up (clean summary for review).",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Orderful",
|
|
@@ -12,5 +12,11 @@
|
|
|
12
12
|
"droid",
|
|
13
13
|
"ai",
|
|
14
14
|
"tech-design"
|
|
15
|
+
],
|
|
16
|
+
"skills": [
|
|
17
|
+
"./skills/tech-design/SKILL.md"
|
|
18
|
+
],
|
|
19
|
+
"commands": [
|
|
20
|
+
"./commands/tech-design.md"
|
|
15
21
|
]
|
|
16
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
name: tech-design
|
|
2
2
|
description: "Technical design authoring tool for engineers. Create structured tech design docs with /tech-design start, iterate in brain, publish to codex. Three-document approach: research doc (codebase discoveries) + thought doc (design workspace) + roll-up (clean summary for review)."
|
|
3
|
-
version: 0.
|
|
3
|
+
version: 0.3.0
|
|
4
4
|
status: beta
|
|
5
5
|
|
|
6
6
|
includes:
|
|
@@ -13,6 +13,7 @@ argument-hint: "[start --from codex:{project} | draft [section] | think [topic]
|
|
|
13
13
|
## Examples
|
|
14
14
|
|
|
15
15
|
- `/tech-design start --from codex:billing-v2` → Create research + thought docs from codex project
|
|
16
|
+
- `/tech-design search billing` → Find and resume existing billing design
|
|
16
17
|
- `/tech-design draft rollout` → Auto-generate the rollout section
|
|
17
18
|
- `/tech-design think API design` → Guided exploration of API design, update research doc
|
|
18
19
|
- `/tech-design gaps` → Show checklist of missing/empty sections
|
|
@@ -22,6 +23,7 @@ argument-hint: "[start --from codex:{project} | draft [section] | think [topic]
|
|
|
22
23
|
|
|
23
24
|
```
|
|
24
25
|
/tech-design start --from codex:{project} # Create research + thought docs
|
|
26
|
+
/tech-design search {term} # Find and resume existing design
|
|
25
27
|
/tech-design draft [section] # Auto-generate section
|
|
26
28
|
/tech-design think [topic] # Guided exploration
|
|
27
29
|
/tech-design gaps # Missing sections checklist
|