@orderful/droid 0.25.2 → 0.27.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 +114 -0
- package/.github/workflows/ci.yml +20 -0
- package/AGENTS.md +75 -18
- package/CHANGELOG.md +73 -0
- package/README.md +30 -4
- package/dist/bin/droid.js +164 -75
- package/dist/index.js +68 -26
- package/dist/lib/migrations.d.ts +8 -0
- package/dist/lib/migrations.d.ts.map +1 -1
- package/dist/lib/skill-config.d.ts.map +1 -1
- package/dist/lib/skills.d.ts.map +1 -1
- package/dist/lib/tools.d.ts.map +1 -1
- package/dist/lib/types.d.ts +10 -2
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/tools/README.md +1 -1
- package/dist/tools/brain/.claude-plugin/plugin.json +16 -0
- package/dist/tools/brain/TOOL.yaml +7 -5
- package/dist/tools/brain/commands/brain.md +17 -49
- package/dist/tools/brain/commands/scratchpad.md +13 -50
- package/{src/tools/brain/skills/droid-brain → dist/tools/brain/skills/brain}/SKILL.md +6 -6
- package/dist/tools/brain/skills/{droid-brain-obsidian → brain-obsidian}/SKILL.md +9 -9
- package/dist/tools/coach/.claude-plugin/plugin.json +16 -0
- package/dist/tools/coach/TOOL.yaml +4 -3
- package/dist/tools/coach/commands/coach.md +14 -54
- package/{src/tools/coach/skills/droid-coach → dist/tools/coach/skills/coach}/SKILL.md +5 -4
- package/dist/tools/code-review/.claude-plugin/plugin.json +16 -0
- package/dist/tools/code-review/TOOL.yaml +4 -3
- package/dist/tools/code-review/commands/code-review.md +18 -102
- package/dist/tools/code-review/skills/code-review/SKILL.md +154 -0
- package/dist/tools/codex/.claude-plugin/plugin.json +16 -0
- package/dist/tools/codex/TOOL.yaml +5 -4
- package/dist/tools/codex/commands/codex.md +18 -65
- package/dist/tools/codex/skills/{droid-codex → codex}/SKILL.md +64 -45
- package/{src/tools/codex/skills/droid-codex → dist/tools/codex/skills/codex}/references/loading.md +94 -55
- package/dist/tools/codex/skills/codex/scripts/git-finish-write.d.ts.map +1 -0
- package/dist/tools/codex/skills/codex/scripts/git-preamble.d.ts.map +1 -0
- package/dist/tools/codex/skills/codex/scripts/git-start-write.d.ts.map +1 -0
- package/dist/tools/comments/.claude-plugin/plugin.json +16 -0
- package/dist/tools/comments/TOOL.yaml +4 -3
- package/dist/tools/comments/commands/comments.md +12 -14
- package/{src/tools/comments/skills/droid-comments → dist/tools/comments/skills/comments}/SKILL.md +4 -2
- package/dist/tools/droid/.claude-plugin/plugin.json +15 -0
- package/dist/tools/droid/TOOL.yaml +1 -1
- package/dist/tools/droid/skills/droid/SKILL.md +1 -1
- package/dist/tools/project/.claude-plugin/plugin.json +16 -0
- package/dist/tools/project/TOOL.yaml +4 -3
- package/dist/tools/project/commands/project.md +12 -27
- package/dist/tools/project/skills/{droid-project → project}/SKILL.md +13 -12
- package/dist/tools/tech-design/.claude-plugin/plugin.json +16 -0
- package/dist/tools/tech-design/TOOL.yaml +19 -0
- package/dist/tools/tech-design/commands/tech-design.md +31 -0
- package/dist/tools/tech-design/skills/tech-design/SKILL.md +218 -0
- package/dist/tools/tech-design/skills/tech-design/references/draft.md +321 -0
- package/dist/tools/tech-design/skills/tech-design/references/gaps.md +328 -0
- package/dist/tools/tech-design/skills/tech-design/references/publish.md +409 -0
- package/dist/tools/tech-design/skills/tech-design/references/research-doc-template.md +129 -0
- package/dist/tools/tech-design/skills/tech-design/references/rollup-template.md +55 -0
- package/dist/tools/tech-design/skills/tech-design/references/start.md +353 -0
- package/dist/tools/tech-design/skills/tech-design/references/think.md +356 -0
- package/dist/tools/tech-design/skills/tech-design/references/thought-doc-template.md +72 -0
- package/package.json +3 -2
- package/scripts/build-plugins.ts +207 -0
- package/src/commands/tui/components/Badge.test.tsx +10 -4
- package/src/commands/tui.tsx +4 -4
- package/src/lib/migrations.ts +95 -4
- package/src/lib/skill-config.ts +95 -57
- package/src/lib/skills.test.ts +199 -74
- package/src/lib/skills.ts +57 -56
- package/src/lib/tools.ts +19 -12
- package/src/lib/types.ts +20 -5
- package/src/tools/README.md +1 -1
- package/src/tools/brain/.claude-plugin/plugin.json +16 -0
- package/src/tools/brain/TOOL.yaml +7 -5
- package/src/tools/brain/commands/brain.md +17 -49
- package/src/tools/brain/commands/scratchpad.md +13 -50
- package/{dist/tools/brain/skills/droid-brain → src/tools/brain/skills/brain}/SKILL.md +6 -6
- package/src/tools/brain/skills/{droid-brain-obsidian → brain-obsidian}/SKILL.md +9 -9
- package/src/tools/coach/.claude-plugin/plugin.json +16 -0
- package/src/tools/coach/TOOL.yaml +4 -3
- package/src/tools/coach/commands/coach.md +14 -54
- package/{dist/tools/coach/skills/droid-coach → src/tools/coach/skills/coach}/SKILL.md +5 -4
- package/src/tools/code-review/.claude-plugin/plugin.json +16 -0
- package/src/tools/code-review/TOOL.yaml +4 -3
- package/src/tools/code-review/commands/code-review.md +18 -102
- package/src/tools/code-review/skills/code-review/SKILL.md +154 -0
- package/src/tools/codex/.claude-plugin/plugin.json +16 -0
- package/src/tools/codex/TOOL.yaml +5 -4
- package/src/tools/codex/commands/codex.md +18 -65
- package/src/tools/codex/skills/{droid-codex → codex}/SKILL.md +64 -45
- package/{dist/tools/codex/skills/droid-codex → src/tools/codex/skills/codex}/references/loading.md +94 -55
- package/src/tools/comments/.claude-plugin/plugin.json +16 -0
- package/src/tools/comments/TOOL.yaml +4 -3
- package/src/tools/comments/commands/comments.md +12 -14
- package/{dist/tools/comments/skills/droid-comments → src/tools/comments/skills/comments}/SKILL.md +4 -2
- package/src/tools/droid/.claude-plugin/plugin.json +15 -0
- package/src/tools/droid/TOOL.yaml +1 -1
- package/src/tools/droid/skills/droid/SKILL.md +1 -1
- package/src/tools/project/.claude-plugin/plugin.json +16 -0
- package/src/tools/project/TOOL.yaml +4 -3
- package/src/tools/project/commands/project.md +12 -27
- package/src/tools/project/skills/{droid-project → project}/SKILL.md +13 -12
- package/src/tools/tech-design/.claude-plugin/plugin.json +16 -0
- package/src/tools/tech-design/TOOL.yaml +19 -0
- package/src/tools/tech-design/commands/tech-design.md +31 -0
- package/src/tools/tech-design/skills/tech-design/SKILL.md +218 -0
- package/src/tools/tech-design/skills/tech-design/references/draft.md +321 -0
- package/src/tools/tech-design/skills/tech-design/references/gaps.md +328 -0
- package/src/tools/tech-design/skills/tech-design/references/publish.md +409 -0
- package/src/tools/tech-design/skills/tech-design/references/research-doc-template.md +129 -0
- package/src/tools/tech-design/skills/tech-design/references/rollup-template.md +55 -0
- package/src/tools/tech-design/skills/tech-design/references/start.md +353 -0
- package/src/tools/tech-design/skills/tech-design/references/think.md +356 -0
- package/src/tools/tech-design/skills/tech-design/references/thought-doc-template.md +72 -0
- package/dist/tools/code-review/skills/droid-code-review/SKILL.md +0 -55
- package/dist/tools/codex/skills/droid-codex/scripts/git-finish-write.d.ts.map +0 -1
- package/dist/tools/codex/skills/droid-codex/scripts/git-preamble.d.ts.map +0 -1
- package/dist/tools/codex/skills/droid-codex/scripts/git-start-write.d.ts.map +0 -1
- package/src/tools/code-review/skills/droid-code-review/SKILL.md +0 -55
- /package/dist/tools/brain/skills/{droid-brain → brain}/references/metadata.md +0 -0
- /package/dist/tools/brain/skills/{droid-brain → brain}/references/naming.md +0 -0
- /package/dist/tools/brain/skills/{droid-brain → brain}/references/templates.md +0 -0
- /package/dist/tools/brain/skills/{droid-brain → brain}/references/workflows.md +0 -0
- /package/dist/tools/brain/skills/{droid-brain-obsidian → brain-obsidian}/references/templates.md +0 -0
- /package/dist/tools/brain/skills/{droid-brain-obsidian → brain-obsidian}/references/workflows.md +0 -0
- /package/dist/tools/codex/skills/{droid-codex → codex}/references/creating.md +0 -0
- /package/dist/tools/codex/skills/{droid-codex → codex}/references/decisions.md +0 -0
- /package/dist/tools/codex/skills/{droid-codex → codex}/references/topics.md +0 -0
- /package/dist/tools/codex/skills/{droid-codex → codex}/scripts/git-finish-write.d.ts +0 -0
- /package/dist/tools/codex/skills/{droid-codex → codex}/scripts/git-finish-write.ts +0 -0
- /package/dist/tools/codex/skills/{droid-codex → codex}/scripts/git-preamble.d.ts +0 -0
- /package/dist/tools/codex/skills/{droid-codex → codex}/scripts/git-preamble.ts +0 -0
- /package/dist/tools/codex/skills/{droid-codex → codex}/scripts/git-scripts.test.ts +0 -0
- /package/dist/tools/codex/skills/{droid-codex → codex}/scripts/git-start-write.d.ts +0 -0
- /package/dist/tools/codex/skills/{droid-codex → codex}/scripts/git-start-write.ts +0 -0
- /package/dist/tools/project/skills/{droid-project → project}/references/changelog.md +0 -0
- /package/dist/tools/project/skills/{droid-project → project}/references/creating.md +0 -0
- /package/dist/tools/project/skills/{droid-project → project}/references/loading.md +0 -0
- /package/dist/tools/project/skills/{droid-project → project}/references/templates.md +0 -0
- /package/dist/tools/project/skills/{droid-project → project}/references/updating.md +0 -0
- /package/dist/tools/project/skills/{droid-project → project}/references/versioning.md +0 -0
- /package/src/tools/brain/skills/{droid-brain → brain}/references/metadata.md +0 -0
- /package/src/tools/brain/skills/{droid-brain → brain}/references/naming.md +0 -0
- /package/src/tools/brain/skills/{droid-brain → brain}/references/templates.md +0 -0
- /package/src/tools/brain/skills/{droid-brain → brain}/references/workflows.md +0 -0
- /package/src/tools/brain/skills/{droid-brain-obsidian → brain-obsidian}/references/templates.md +0 -0
- /package/src/tools/brain/skills/{droid-brain-obsidian → brain-obsidian}/references/workflows.md +0 -0
- /package/src/tools/codex/skills/{droid-codex → codex}/references/creating.md +0 -0
- /package/src/tools/codex/skills/{droid-codex → codex}/references/decisions.md +0 -0
- /package/src/tools/codex/skills/{droid-codex → codex}/references/topics.md +0 -0
- /package/src/tools/codex/skills/{droid-codex → codex}/scripts/git-finish-write.ts +0 -0
- /package/src/tools/codex/skills/{droid-codex → codex}/scripts/git-preamble.ts +0 -0
- /package/src/tools/codex/skills/{droid-codex → codex}/scripts/git-scripts.test.ts +0 -0
- /package/src/tools/codex/skills/{droid-codex → codex}/scripts/git-start-write.ts +0 -0
- /package/src/tools/project/skills/{droid-project → project}/references/changelog.md +0 -0
- /package/src/tools/project/skills/{droid-project → project}/references/creating.md +0 -0
- /package/src/tools/project/skills/{droid-project → project}/references/loading.md +0 -0
- /package/src/tools/project/skills/{droid-project → project}/references/templates.md +0 -0
- /package/src/tools/project/skills/{droid-project → project}/references/updating.md +0 -0
- /package/src/tools/project/skills/{droid-project → project}/references/versioning.md +0 -0
package/src/lib/types.ts
CHANGED
|
@@ -43,7 +43,7 @@ export interface PlatformConfig {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export interface AutoUpdateConfig {
|
|
46
|
-
app: boolean;
|
|
46
|
+
app: boolean; // Auto-update droid CLI (default: false)
|
|
47
47
|
tools: boolean; // Auto-update installed tools (default: true)
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -54,7 +54,12 @@ export interface DroidConfig {
|
|
|
54
54
|
git_username: string;
|
|
55
55
|
platforms: Record<string, PlatformConfig>;
|
|
56
56
|
auto_update?: AutoUpdateConfig;
|
|
57
|
-
migrations?:
|
|
57
|
+
migrations?: {
|
|
58
|
+
package?: string; // Last package version migrated
|
|
59
|
+
tools?: Record<string, string>; // tool name -> last tool version migrated
|
|
60
|
+
// Legacy: old configs may have tool names at root level
|
|
61
|
+
[key: string]: string | Record<string, string> | undefined;
|
|
62
|
+
};
|
|
58
63
|
}
|
|
59
64
|
|
|
60
65
|
// Legacy config structure for migration
|
|
@@ -69,14 +74,19 @@ export interface LegacyDroidConfig {
|
|
|
69
74
|
/**
|
|
70
75
|
* Get installed tools for the current platform
|
|
71
76
|
*/
|
|
72
|
-
export function getPlatformTools(
|
|
77
|
+
export function getPlatformTools(
|
|
78
|
+
config: DroidConfig,
|
|
79
|
+
): Record<string, InstalledSkill> {
|
|
73
80
|
return config.platforms[config.platform]?.tools ?? {};
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
/**
|
|
77
84
|
* Set installed tools for the current platform
|
|
78
85
|
*/
|
|
79
|
-
export function setPlatformTools(
|
|
86
|
+
export function setPlatformTools(
|
|
87
|
+
config: DroidConfig,
|
|
88
|
+
tools: Record<string, InstalledSkill>,
|
|
89
|
+
): void {
|
|
80
90
|
if (!config.platforms[config.platform]) {
|
|
81
91
|
config.platforms[config.platform] = { tools: {} };
|
|
82
92
|
}
|
|
@@ -145,9 +155,14 @@ export interface ToolSkillInclude {
|
|
|
145
155
|
examples?: SkillExample[];
|
|
146
156
|
}
|
|
147
157
|
|
|
158
|
+
export interface ToolCommandInclude {
|
|
159
|
+
name: string;
|
|
160
|
+
is_alias: boolean;
|
|
161
|
+
}
|
|
162
|
+
|
|
148
163
|
export interface ToolIncludes {
|
|
149
164
|
skills: ToolSkillInclude[];
|
|
150
|
-
commands:
|
|
165
|
+
commands: ToolCommandInclude[];
|
|
151
166
|
agents: string[];
|
|
152
167
|
}
|
|
153
168
|
|
package/src/tools/README.md
CHANGED
|
@@ -57,7 +57,7 @@ description: "What this skill does"
|
|
|
57
57
|
globs:
|
|
58
58
|
- "**/*.ts" # File patterns this skill applies to
|
|
59
59
|
alwaysApply: false # Always include in context?
|
|
60
|
-
allowed-tools: Read, Grep, Glob
|
|
60
|
+
allowed-tools: [Read, Grep, Glob] # Pre-authorize tools (reduces permission prompts)
|
|
61
61
|
---
|
|
62
62
|
|
|
63
63
|
# My Skill
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "droid-brain",
|
|
3
|
+
"version": "0.3.0",
|
|
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
|
+
"author": {
|
|
6
|
+
"name": "Orderful",
|
|
7
|
+
"url": "https://github.com/orderful"
|
|
8
|
+
},
|
|
9
|
+
"repository": "https://github.com/orderful/droid",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"droid",
|
|
13
|
+
"ai",
|
|
14
|
+
"brain"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -1,18 +1,20 @@
|
|
|
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.3.0
|
|
4
4
|
status: beta
|
|
5
5
|
|
|
6
6
|
includes:
|
|
7
7
|
skills:
|
|
8
|
-
- name:
|
|
8
|
+
- name: brain
|
|
9
9
|
required: true
|
|
10
|
-
- name:
|
|
10
|
+
- name: brain-obsidian
|
|
11
11
|
required: false
|
|
12
12
|
description: "Obsidian vault integration with YAML frontmatter and wikilinks"
|
|
13
13
|
commands:
|
|
14
|
-
- brain
|
|
15
|
-
|
|
14
|
+
- name: brain
|
|
15
|
+
is_alias: false
|
|
16
|
+
- name: scratchpad
|
|
17
|
+
is_alias: true
|
|
16
18
|
agents: []
|
|
17
19
|
|
|
18
20
|
dependencies: []
|
|
@@ -1,65 +1,33 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
2
|
+
name: brain
|
|
3
|
+
description: "Collaborative scratchpad for planning and research"
|
|
3
4
|
argument-hint: "[{topic} | plan|research|review {topic} | idea|add {text} | check|done]"
|
|
4
|
-
allowed-tools: Read, Write, Edit, Glob, Grep, Bash(mkdir:*), Bash(ls:*)
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# /brain
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**User invoked:** `/brain $ARGUMENTS`
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Arguments
|
|
14
|
-
|
|
15
|
-
$ARGUMENTS
|
|
16
|
-
|
|
17
|
-
## Default Behavior
|
|
11
|
+
**Your task:** Invoke the **brain skill** with these arguments.
|
|
18
12
|
|
|
19
|
-
**
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
/brain # List recent docs or create new
|
|
25
|
-
/brain {topic} # SEARCH: Open existing doc (fuzzy match) → active
|
|
26
|
-
/brain plan {topic} # CREATE: New planning doc → plans/
|
|
27
|
-
/brain research {topic} # Create research doc → research/
|
|
28
|
-
/brain review {topic} # Create review doc → reviews/
|
|
29
|
-
/brain idea {text} # Quick capture → ideas/ (fire-and-forget)
|
|
30
|
-
/brain add {text} # Append to active doc
|
|
31
|
-
/brain check # Address @droid comments in active doc
|
|
32
|
-
/brain done # Finalize active doc
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Configuration
|
|
36
|
-
|
|
37
|
-
**ALWAYS read `~/.droid/skills/brain/overrides.yaml` first.** Use configured values if present, only fall back to defaults if missing.
|
|
13
|
+
> **Alias:** This command also works as `/scratchpad` - use whichever feels natural.
|
|
38
14
|
|
|
39
|
-
|
|
40
|
-
- `inbox_folder` - Root for type folders (e.g., `0-Inbox`)
|
|
15
|
+
## Examples
|
|
41
16
|
|
|
42
|
-
|
|
17
|
+
- `/brain auth-refactor` → Search for existing doc about "auth-refactor"
|
|
18
|
+
- `/brain plan new-feature` → Create a new planning doc for "new-feature"
|
|
19
|
+
- `/brain add found a bug in the parser` → Append text to active doc
|
|
43
20
|
|
|
44
|
-
|
|
21
|
+
## Quick Reference
|
|
45
22
|
|
|
46
23
|
```
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
24
|
+
/brain {topic} # SEARCH for existing doc (default action)
|
|
25
|
+
/brain plan {topic} # CREATE new planning doc
|
|
26
|
+
/brain research {topic} # CREATE new research doc
|
|
27
|
+
/brain idea {text} # Quick capture to ideas/
|
|
28
|
+
/brain check # Address @droid comments
|
|
52
29
|
```
|
|
53
30
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
Refer to the brain skill for:
|
|
57
|
-
|
|
58
|
-
- **Opening**: How to fuzzy-match, handle multiple matches, set active
|
|
59
|
-
- **Creating**: Template structure by preset, naming conventions
|
|
60
|
-
- **Ideas**: Quick capture workflow
|
|
61
|
-
- **Adding**: Append to active doc with timestamp
|
|
62
|
-
- **Checking**: Find and address @droid comments
|
|
63
|
-
- **Finalizing**: Update status, suggest next steps
|
|
31
|
+
**Default behavior:** When given just a topic, SEARCH first (don't create unless plan/research/review keyword is present).
|
|
64
32
|
|
|
65
|
-
|
|
33
|
+
See the **brain skill** for complete documentation and procedures.
|
|
@@ -1,65 +1,28 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
allowed-tools: Read, Write, Edit, Glob, Grep, Bash(mkdir:*), Bash(ls:*)
|
|
2
|
+
name: scratchpad
|
|
3
|
+
description: "Alias for brain. See brain skill for full behavior."
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# /scratchpad
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
**User invoked:** `/scratchpad $ARGUMENTS`
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
**Your task:** Invoke the **brain skill** with these arguments (scratchpad is an alias for brain).
|
|
12
11
|
|
|
13
|
-
##
|
|
12
|
+
## Examples
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
- `/scratchpad auth-refactor` → Search for existing doc about "auth-refactor"
|
|
15
|
+
- `/scratchpad plan new-feature` → Create a new planning doc for "new-feature"
|
|
16
16
|
|
|
17
|
-
##
|
|
17
|
+
## Quick Reference
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
19
|
+
Same as `/brain` - use whichever name feels natural:
|
|
22
20
|
|
|
23
21
|
```
|
|
24
|
-
/scratchpad
|
|
25
|
-
/scratchpad {topic}
|
|
26
|
-
/scratchpad plan {topic} # CREATE: New planning doc → plans/
|
|
27
|
-
/scratchpad research {topic} # Create research doc → research/
|
|
28
|
-
/scratchpad review {topic} # Create review doc → reviews/
|
|
29
|
-
/scratchpad idea {text} # Quick capture → ideas/ (fire-and-forget)
|
|
30
|
-
/scratchpad add {text} # Append to active doc
|
|
31
|
-
/scratchpad check # Address @droid comments in active doc
|
|
32
|
-
/scratchpad done # Finalize active doc
|
|
22
|
+
/scratchpad {topic} # SEARCH for existing doc
|
|
23
|
+
/scratchpad plan {topic} # CREATE new planning doc
|
|
33
24
|
```
|
|
34
25
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
**ALWAYS read `~/.droid/skills/brain/overrides.yaml` first.** Use configured values if present, only fall back to defaults if missing.
|
|
38
|
-
|
|
39
|
-
- `brain_dir` - Where docs live (default varies by AI tool)
|
|
40
|
-
- `inbox_folder` - Root for type folders (e.g., `0-Inbox`)
|
|
41
|
-
|
|
42
|
-
## Folder Structure
|
|
43
|
-
|
|
44
|
-
Docs are organized by type:
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
{brain_dir}/{inbox_folder}/
|
|
48
|
-
├── plans/
|
|
49
|
-
├── research/
|
|
50
|
-
├── reviews/
|
|
51
|
-
└── ideas/
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## Behavior
|
|
55
|
-
|
|
56
|
-
Refer to the brain skill for:
|
|
57
|
-
|
|
58
|
-
- **Opening**: How to fuzzy-match, handle multiple matches, set active
|
|
59
|
-
- **Creating**: Template structure by preset, naming conventions
|
|
60
|
-
- **Ideas**: Quick capture workflow
|
|
61
|
-
- **Adding**: Append to active doc with timestamp
|
|
62
|
-
- **Checking**: Find and address @droid comments
|
|
63
|
-
- **Finalizing**: Update status, suggest next steps
|
|
26
|
+
**Default behavior:** SEARCH first, don't create unless plan/research/review keyword is present.
|
|
64
27
|
|
|
65
|
-
|
|
28
|
+
See `/brain` or the **brain skill** for complete documentation.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: brain
|
|
3
3
|
description: "Collaborative scratchpad for planning and research. Use when planning a feature, exploring a problem, or capturing thinking that should persist across sessions. User prompts like 'let's think through', 'open a scratchpad', 'plan this out', 'use our brain'."
|
|
4
4
|
globs:
|
|
5
5
|
- "**/brain/**/*.md"
|
|
6
6
|
alwaysApply: false
|
|
7
|
-
allowed-tools: Read, Write, Glob, Grep, Bash
|
|
7
|
+
allowed-tools: [Read, Write, Glob, Grep, Bash]
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Brain Skill
|
|
@@ -39,10 +39,10 @@ Ideas develop through iteration, not single prompts.
|
|
|
39
39
|
|
|
40
40
|
**IMPORTANT:** Before using any default paths, ALWAYS read `~/.droid/skills/brain/overrides.yaml` first. If `brain_dir` is configured there, use that path. Only fall back to defaults if the file doesn't exist or lacks a `brain_dir` setting.
|
|
41
41
|
|
|
42
|
-
| Setting | Default | Description
|
|
43
|
-
| -------------- | ----------- |
|
|
44
|
-
| `brain_dir` | (see below) | Where docs are stored
|
|
45
|
-
| `inbox_folder` | (empty) | Root folder for new docs (e.g., `0-Inbox`)
|
|
42
|
+
| Setting | Default | Description |
|
|
43
|
+
| -------------- | ----------- | ------------------------------------------ |
|
|
44
|
+
| `brain_dir` | (see below) | Where docs are stored |
|
|
45
|
+
| `inbox_folder` | (empty) | Root folder for new docs (e.g., `0-Inbox`) |
|
|
46
46
|
|
|
47
47
|
Default `brain_dir` by AI tool (only if not configured):
|
|
48
48
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: brain-obsidian
|
|
3
3
|
description: "Obsidian extension for brain skill with YAML frontmatter, wikilinks, and PARA folder organization. Use when your brain docs live in an Obsidian vault."
|
|
4
4
|
globs:
|
|
5
5
|
- "**/brain/**/*.md"
|
|
6
6
|
alwaysApply: false
|
|
7
|
-
allowed-tools: Read, Write, Glob, Grep, Bash
|
|
7
|
+
allowed-tools: [Read, Write, Glob, Grep, Bash]
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Brain Obsidian Extension
|
|
@@ -114,10 +114,10 @@ When running `/brain done`:
|
|
|
114
114
|
|
|
115
115
|
Same commands as brain skill, but with Obsidian output:
|
|
116
116
|
|
|
117
|
-
| Command | Obsidian Behavior
|
|
118
|
-
| ------------------------- |
|
|
119
|
-
| `/brain plan {topic}` | Creates in `plans/` with frontmatter
|
|
120
|
-
| `/brain research {topic}` | Creates in `research/` with frontmatter
|
|
121
|
-
| `/brain review {topic}` | Creates in `reviews/` with frontmatter
|
|
122
|
-
| `/brain idea {text}` | Quick capture to `ideas/`
|
|
123
|
-
| `/brain done` | Updates status, suggests archive/PARA move
|
|
117
|
+
| Command | Obsidian Behavior |
|
|
118
|
+
| ------------------------- | ------------------------------------------ |
|
|
119
|
+
| `/brain plan {topic}` | Creates in `plans/` with frontmatter |
|
|
120
|
+
| `/brain research {topic}` | Creates in `research/` with frontmatter |
|
|
121
|
+
| `/brain review {topic}` | Creates in `reviews/` with frontmatter |
|
|
122
|
+
| `/brain idea {text}` | Quick capture to `ideas/` |
|
|
123
|
+
| `/brain done` | Updates status, suggests archive/PARA move |
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "droid-coach",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Learning-mode AI assistance - AI as coach, not crutch. Use /coach plan for co-authored planning, /coach scaffold for structure with hints, /coach review for Socratic questions.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Orderful",
|
|
7
|
+
"url": "https://github.com/orderful"
|
|
8
|
+
},
|
|
9
|
+
"repository": "https://github.com/orderful/droid",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"droid",
|
|
13
|
+
"ai",
|
|
14
|
+
"coach"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
name: coach
|
|
2
2
|
description: "Learning-mode AI assistance - AI as coach, not crutch. Use /coach plan for co-authored planning, /coach scaffold for structure with hints, /coach review for Socratic questions."
|
|
3
|
-
version: 0.
|
|
3
|
+
version: 0.2.0
|
|
4
4
|
status: beta
|
|
5
5
|
|
|
6
6
|
includes:
|
|
7
7
|
skills:
|
|
8
|
-
- name:
|
|
8
|
+
- name: coach
|
|
9
9
|
required: true
|
|
10
10
|
commands:
|
|
11
|
-
- coach
|
|
11
|
+
- name: coach
|
|
12
|
+
is_alias: false
|
|
12
13
|
agents: []
|
|
13
14
|
|
|
14
15
|
dependencies:
|
|
@@ -1,71 +1,31 @@
|
|
|
1
1
|
---
|
|
2
|
+
name: coach
|
|
2
3
|
description: "Learning-mode AI assistance - scaffolds don't implement, questions don't fix"
|
|
3
4
|
argument-hint: "[plan {task} | scaffold [{path}] | review [{path}] | check | challenge [{path}]]"
|
|
4
|
-
allowed-tools: Read, Write, Edit, Glob, Grep, Bash(ls:*)
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# /coach
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**User invoked:** `/coach $ARGUMENTS`
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
**Your task:** Invoke the **coach skill** with these arguments.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
**Philosophy:** "AI as coach, not crutch" - preserves learning-through-doing while leveraging AI for guardrails and feedback.
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Examples
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
- `/coach plan refactor auth` → Co-authored planning with Socratic questions
|
|
18
|
+
- `/coach scaffold src/lib/auth.ts` → Generate types/signatures for that file
|
|
19
|
+
- `/coach review` → Review recent changes with inline questions
|
|
20
|
+
- `/coach challenge --staged` → Challenge on staged changes
|
|
18
21
|
|
|
19
|
-
##
|
|
22
|
+
## Quick Reference
|
|
20
23
|
|
|
21
24
|
```
|
|
22
25
|
/coach plan {task} # Co-authored planning with Socratic questions
|
|
23
|
-
/coach scaffold
|
|
24
|
-
/coach
|
|
25
|
-
/coach
|
|
26
|
-
/coach review {path} # Review specific file with inline questions
|
|
27
|
-
/coach check # Process comment responses (defers to /comments check)
|
|
28
|
-
/coach challenge # Productive struggle on current file
|
|
29
|
-
/coach challenge {path} # Challenge on specific file
|
|
30
|
-
/coach challenge --staged # Challenge on staged changes
|
|
26
|
+
/coach scaffold [{path}] # Generate types/signatures
|
|
27
|
+
/coach review [{path}] # Review with inline questions
|
|
28
|
+
/coach challenge [{path}] # Productive struggle mode
|
|
31
29
|
```
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
### plan
|
|
36
|
-
|
|
37
|
-
- Co-author, don't dictate
|
|
38
|
-
- ~30% proposing, ~70% questioning
|
|
39
|
-
- Offer to create brain doc for persistence
|
|
40
|
-
|
|
41
|
-
### scaffold
|
|
42
|
-
|
|
43
|
-
- Types, signatures, stubs with hint comments
|
|
44
|
-
- Points at what to think about, not the answer
|
|
45
|
-
- Human fills in the actual logic
|
|
46
|
-
|
|
47
|
-
### review
|
|
48
|
-
|
|
49
|
-
- Uses comments skill for inline `// @{user}` questions
|
|
50
|
-
- Socratic - probe reasoning, don't fix code
|
|
51
|
-
- Vary questions based on context
|
|
52
|
-
|
|
53
|
-
### check
|
|
54
|
-
|
|
55
|
-
- Defers to `/comments check`
|
|
56
|
-
|
|
57
|
-
### challenge
|
|
58
|
-
|
|
59
|
-
- Productive struggle - find what you missed
|
|
60
|
-
- Guide discovery, don't give answers
|
|
61
|
-
- Opt-in for those seeking growth
|
|
62
|
-
|
|
63
|
-
## Configuration
|
|
64
|
-
|
|
65
|
-
Read `~/.droid/skills/coach/overrides.yaml` for:
|
|
66
|
-
|
|
67
|
-
- `scaffold_verbosity` - `minimal` | `medium` | `detailed`
|
|
68
|
-
|
|
69
|
-
## The Golden Rule
|
|
70
|
-
|
|
71
|
-
**Never write code unless explicitly asked.** Only ask questions, explain tradeoffs, provide hints, or generate structure.
|
|
31
|
+
See the **coach skill** for complete documentation and procedures.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: coach
|
|
3
3
|
description: "Learning-mode AI assistance - scaffolds don't implement, questions don't fix. Use when learning a new codebase, wanting to understand deeply, or building skills to retain. User prompts like 'coach me on', 'help me think through', 'I want to learn how to', 'don't just give me the answer'."
|
|
4
4
|
alwaysApply: false
|
|
5
|
-
allowed-tools: Read, Grep, Glob
|
|
5
|
+
allowed-tools: [Read, Grep, Glob]
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Coach Skill
|
|
@@ -40,7 +40,7 @@ plan → AI scaffolds → human implements → AI coaches → iterate → ship
|
|
|
40
40
|
## Commands
|
|
41
41
|
|
|
42
42
|
| Command | Purpose |
|
|
43
|
-
|
|
43
|
+
| ------------------ | ------------------------------------------------------- |
|
|
44
44
|
| `/coach plan` | Co-authored planning with Socratic questions |
|
|
45
45
|
| `/coach scaffold` | Generate types/signatures/stubs with hints |
|
|
46
46
|
| `/coach review` | Inline questions via comments skill |
|
|
@@ -50,7 +50,7 @@ plan → AI scaffolds → human implements → AI coaches → iterate → ship
|
|
|
50
50
|
## Configuration
|
|
51
51
|
|
|
52
52
|
| Setting | Default | Description |
|
|
53
|
-
|
|
53
|
+
| -------------------- | -------- | ------------------------------------------------------- |
|
|
54
54
|
| `scaffold_verbosity` | `medium` | How detailed hints are: `minimal`, `medium`, `detailed` |
|
|
55
55
|
|
|
56
56
|
> @fry 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?
|
|
@@ -139,6 +139,7 @@ Read from `~/.droid/skills/coach/overrides.yaml` if present.
|
|
|
139
139
|
// @fry What happens if this promise rejects?
|
|
140
140
|
// @fry I notice you're mutating state directly - was that intentional?
|
|
141
141
|
```
|
|
142
|
+
|
|
142
143
|
> @droid is it worth mentioning using the correct comment syntax for the file language? We typically use TS but could be others
|
|
143
144
|
|
|
144
145
|
**Key principle:** Vary questions based on specific code and context. Avoid formulaic patterns. Questions show the _spirit_, not a script.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "droid-code-review",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Comprehensive code review using specialized agents. Reviews PRs, staged changes, branches, or specific files with confidence scoring.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Orderful",
|
|
7
|
+
"url": "https://github.com/orderful"
|
|
8
|
+
},
|
|
9
|
+
"repository": "https://github.com/orderful/droid",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"droid",
|
|
13
|
+
"ai",
|
|
14
|
+
"code-review"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
name: code-review
|
|
2
2
|
description: "Comprehensive code review using specialized agents. Reviews PRs, staged changes, branches, or specific files with confidence scoring."
|
|
3
|
-
version: 0.
|
|
3
|
+
version: 0.2.0
|
|
4
4
|
status: alpha
|
|
5
5
|
|
|
6
6
|
includes:
|
|
7
7
|
skills:
|
|
8
|
-
- name:
|
|
8
|
+
- name: code-review
|
|
9
9
|
required: true
|
|
10
10
|
commands:
|
|
11
|
-
- code-review
|
|
11
|
+
- name: code-review
|
|
12
|
+
is_alias: false
|
|
12
13
|
agents:
|
|
13
14
|
- edi-standards-reviewer
|
|
14
15
|
- error-handling-reviewer
|