@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
|
@@ -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
|
|
@@ -1,113 +1,29 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
2
|
+
name: code-review
|
|
3
|
+
description: "Run comprehensive code review using specialized agents. Accepts PR number, 'staged', 'branch', or file path."
|
|
3
4
|
argument-hint: "[#123 | staged | branch | path/to/file.ts]"
|
|
4
|
-
allowed-tools: Task, Bash(git:*), Bash(gh:*), Read, Glob
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# /code-review
|
|
7
|
+
# /code-review
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**User invoked:** `/code-review $ARGUMENTS`
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
**Your task:** Invoke the **code-review skill** with these arguments.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
/code-review #123 # Review PR #123
|
|
15
|
-
/code-review staged # Review staged changes
|
|
16
|
-
/code-review branch # Review current branch vs main
|
|
17
|
-
/code-review path/to/file # Review specific file
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
### Step 0: Check for Brain Integration
|
|
21
|
-
|
|
22
|
-
**If the `brain` skill is installed** (check for `~/.claude/skills/brain/SKILL.md` or `~/.config/opencode/skills/brain/SKILL.md`):
|
|
23
|
-
|
|
24
|
-
Ask the user: **"Would you like the review results saved to a `/brain review` doc?"**
|
|
25
|
-
|
|
26
|
-
- If yes: Create a brain review doc at the start using `/brain review {PR title or branch name}`
|
|
27
|
-
- The final report will be written to the brain doc instead of just displayed
|
|
28
|
-
- This allows for async discussion via `@droid`/`@{user}` comments
|
|
29
|
-
|
|
30
|
-
If brain skill is not installed or user declines, proceed with normal terminal output.
|
|
31
|
-
|
|
32
|
-
### Step 1: Determine Review Scope
|
|
33
|
-
|
|
34
|
-
Parse the argument to determine what to review:
|
|
35
|
-
|
|
36
|
-
**If argument starts with `#` or is a number (e.g., `#123` or `123`):**
|
|
37
|
-
|
|
38
|
-
- This is a PR number
|
|
39
|
-
- Fetch PR details: `gh pr view $PR_NUMBER --json title,body,baseRefName,headRefName,files`
|
|
40
|
-
- Get the diff: `gh pr diff $PR_NUMBER`
|
|
41
|
-
- Note the PR author and description for context
|
|
42
|
-
|
|
43
|
-
**If argument is `staged` or empty:**
|
|
44
|
-
|
|
45
|
-
- Review staged changes: `git diff --cached`
|
|
46
|
-
|
|
47
|
-
**If argument is `branch`:**
|
|
48
|
-
|
|
49
|
-
- Review current branch vs main: `git diff origin/main...HEAD`
|
|
50
|
-
|
|
51
|
-
**If argument is a file path:**
|
|
52
|
-
|
|
53
|
-
- Review specific file: `git diff HEAD -- $FILE_PATH`
|
|
54
|
-
- If no changes, review the entire file for issues
|
|
55
|
-
|
|
56
|
-
### Step 2: Gather Context
|
|
57
|
-
|
|
58
|
-
For PR reviews, also fetch:
|
|
59
|
-
|
|
60
|
-
- PR description (may contain context about the change)
|
|
61
|
-
- Linked issues: `gh pr view $PR_NUMBER --json body` and parse for #issue refs
|
|
62
|
-
- Changed files list for targeted agent assignment
|
|
13
|
+
## Examples
|
|
63
14
|
|
|
64
|
-
|
|
15
|
+
- `/code-review #123` → Review PR #123 using specialized agents
|
|
16
|
+
- `/code-review staged` → Review currently staged changes
|
|
17
|
+
- `/code-review branch` → Review current branch vs main
|
|
18
|
+
- `/code-review src/lib/auth.ts` → Review specific file
|
|
65
19
|
|
|
66
|
-
|
|
20
|
+
## Quick Reference
|
|
67
21
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
1. The diff content
|
|
76
|
-
2. The full file content for changed files (for context)
|
|
77
|
-
3. PR description if available
|
|
78
|
-
|
|
79
|
-
Use TaskOutput to collect results from all agents.
|
|
80
|
-
|
|
81
|
-
### Step 4: Confidence Filtering
|
|
82
|
-
|
|
83
|
-
Each agent returns issues with confidence scores (0-100).
|
|
84
|
-
Filter out issues with confidence < 80.
|
|
85
|
-
|
|
86
|
-
### Step 5: Synthesize Report
|
|
87
|
-
|
|
88
|
-
Compile findings into a prioritized report:
|
|
89
|
-
|
|
90
|
-
**PR #123: "Add partnership billing events"** (if reviewing a PR)
|
|
91
|
-
_Author: @username_
|
|
92
|
-
|
|
93
|
-
**Critical** (security, data loss, billing errors)
|
|
94
|
-
|
|
95
|
-
- `file.ts:42` - Issue description
|
|
96
|
-
|
|
97
|
-
**Important** (bugs, missing tests, type issues)
|
|
98
|
-
|
|
99
|
-
- `file.ts:67` - Issue description
|
|
100
|
-
|
|
101
|
-
**Suggestions** (style, readability)
|
|
102
|
-
|
|
103
|
-
- `file.ts:89` - Issue description
|
|
104
|
-
|
|
105
|
-
**Summary**: X critical, Y important, Z suggestions across N files.
|
|
106
|
-
|
|
107
|
-
### Step 6: Offer Actions (for PRs)
|
|
108
|
-
|
|
109
|
-
After presenting the report, offer:
|
|
22
|
+
```
|
|
23
|
+
/code-review #123 # Review PR
|
|
24
|
+
/code-review staged # Review staged changes
|
|
25
|
+
/code-review branch # Review current branch
|
|
26
|
+
/code-review {path} # Review specific file
|
|
27
|
+
```
|
|
110
28
|
|
|
111
|
-
|
|
112
|
-
- "Should I suggest fixes for any of these issues?"
|
|
113
|
-
- "Want me to check out this branch and fix the critical issues?"
|
|
29
|
+
See the **code-review skill** for complete documentation and procedures.
|