@orderful/droid 0.31.2 → 0.33.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.
Files changed (115) hide show
  1. package/.claude-plugin/marketplace.json +33 -7
  2. package/AGENTS.md +15 -0
  3. package/CHANGELOG.md +69 -0
  4. package/README.md +24 -0
  5. package/dist/bin/droid.js +515 -434
  6. package/dist/commands/setup.d.ts +1 -0
  7. package/dist/commands/setup.d.ts.map +1 -1
  8. package/dist/commands/tui/components/PlatformBadges.d.ts +6 -0
  9. package/dist/commands/tui/components/PlatformBadges.d.ts.map +1 -0
  10. package/dist/commands/tui/components/SettingsDetails.d.ts +4 -1
  11. package/dist/commands/tui/components/SettingsDetails.d.ts.map +1 -1
  12. package/dist/commands/tui/types.d.ts +1 -1
  13. package/dist/commands/tui/types.d.ts.map +1 -1
  14. package/dist/commands/tui/views/SetupScreen.d.ts +3 -2
  15. package/dist/commands/tui/views/SetupScreen.d.ts.map +1 -1
  16. package/dist/commands/tui.d.ts.map +1 -1
  17. package/dist/index.js +138 -86
  18. package/dist/lib/agents.d.ts +7 -2
  19. package/dist/lib/agents.d.ts.map +1 -1
  20. package/dist/lib/platforms.d.ts +10 -1
  21. package/dist/lib/platforms.d.ts.map +1 -1
  22. package/dist/lib/skills.d.ts.map +1 -1
  23. package/dist/lib/types.d.ts +5 -0
  24. package/dist/lib/types.d.ts.map +1 -1
  25. package/dist/tools/brain/.claude-plugin/plugin.json +1 -1
  26. package/dist/tools/brain/TOOL.yaml +1 -1
  27. package/dist/tools/brain/skills/brain/SKILL.md +6 -4
  28. package/dist/tools/brain/skills/brain/references/workflows.md +17 -12
  29. package/dist/tools/coach/.claude-plugin/plugin.json +1 -1
  30. package/dist/tools/coach/TOOL.yaml +1 -1
  31. package/dist/tools/coach/skills/coach/SKILL.md +2 -1
  32. package/dist/tools/code-review/.claude-plugin/plugin.json +1 -1
  33. package/dist/tools/code-review/TOOL.yaml +1 -1
  34. package/dist/tools/code-review/skills/code-review/SKILL.md +1 -1
  35. package/dist/tools/codex/.claude-plugin/plugin.json +1 -1
  36. package/dist/tools/codex/TOOL.yaml +1 -1
  37. package/dist/tools/codex/skills/codex/SKILL.md +1 -1
  38. package/dist/tools/codex/skills/codex/references/loading.md +1 -1
  39. package/dist/tools/comments/.claude-plugin/plugin.json +1 -1
  40. package/dist/tools/comments/TOOL.yaml +1 -1
  41. package/dist/tools/comments/skills/comments/SKILL.md +9 -7
  42. package/dist/tools/plan/.claude-plugin/plugin.json +16 -0
  43. package/dist/tools/plan/TOOL.yaml +18 -0
  44. package/dist/tools/plan/commands/plan.md +33 -0
  45. package/dist/tools/plan/skills/plan/SKILL.md +103 -0
  46. package/dist/tools/plan/skills/plan/references/templates.md +176 -0
  47. package/dist/tools/plan/skills/plan/references/workflows.md +299 -0
  48. package/dist/tools/plan/skills/plan/references/xml-conversion.md +123 -0
  49. package/dist/tools/project/.claude-plugin/plugin.json +1 -1
  50. package/dist/tools/project/TOOL.yaml +3 -2
  51. package/dist/tools/project/skills/project/SKILL.md +10 -12
  52. package/dist/tools/project/skills/project/references/creating.md +5 -5
  53. package/dist/tools/project/skills/project/references/loading.md +4 -4
  54. package/dist/tools/tech-design/.claude-plugin/plugin.json +1 -1
  55. package/dist/tools/tech-design/TOOL.yaml +1 -1
  56. package/dist/tools/tech-design/skills/tech-design/SKILL.md +3 -3
  57. package/dist/tools/tech-design/skills/tech-design/references/publish.md +1 -1
  58. package/dist/tools/tech-design/skills/tech-design/references/start.md +2 -2
  59. package/dist/tools/wrapup/.claude-plugin/plugin.json +16 -0
  60. package/dist/tools/wrapup/TOOL.yaml +16 -0
  61. package/dist/tools/wrapup/commands/wrapup.md +21 -0
  62. package/dist/tools/wrapup/skills/wrapup/SKILL.md +86 -0
  63. package/dist/tools/wrapup/skills/wrapup/references/output-schema.md +93 -0
  64. package/dist/tools/wrapup/skills/wrapup/references/subagent-prompts.md +93 -0
  65. package/package.json +1 -1
  66. package/src/commands/setup.ts +67 -61
  67. package/src/commands/tui/components/PlatformBadges.tsx +36 -0
  68. package/src/commands/tui/components/SettingsDetails.tsx +16 -4
  69. package/src/commands/tui/types.ts +1 -1
  70. package/src/commands/tui/views/SetupScreen.tsx +26 -49
  71. package/src/commands/tui.tsx +21 -9
  72. package/src/lib/agents.ts +23 -7
  73. package/src/lib/platforms.ts +44 -1
  74. package/src/lib/skills.ts +79 -40
  75. package/src/lib/types.ts +11 -0
  76. package/src/tools/brain/.claude-plugin/plugin.json +1 -1
  77. package/src/tools/brain/TOOL.yaml +1 -1
  78. package/src/tools/brain/skills/brain/SKILL.md +6 -4
  79. package/src/tools/brain/skills/brain/references/workflows.md +17 -12
  80. package/src/tools/coach/.claude-plugin/plugin.json +1 -1
  81. package/src/tools/coach/TOOL.yaml +1 -1
  82. package/src/tools/coach/skills/coach/SKILL.md +2 -1
  83. package/src/tools/code-review/.claude-plugin/plugin.json +1 -1
  84. package/src/tools/code-review/TOOL.yaml +1 -1
  85. package/src/tools/code-review/skills/code-review/SKILL.md +1 -1
  86. package/src/tools/codex/.claude-plugin/plugin.json +1 -1
  87. package/src/tools/codex/TOOL.yaml +1 -1
  88. package/src/tools/codex/skills/codex/SKILL.md +1 -1
  89. package/src/tools/codex/skills/codex/references/loading.md +1 -1
  90. package/src/tools/comments/.claude-plugin/plugin.json +1 -1
  91. package/src/tools/comments/TOOL.yaml +1 -1
  92. package/src/tools/comments/skills/comments/SKILL.md +9 -7
  93. package/src/tools/plan/.claude-plugin/plugin.json +16 -0
  94. package/src/tools/plan/TOOL.yaml +18 -0
  95. package/src/tools/plan/commands/plan.md +33 -0
  96. package/src/tools/plan/skills/plan/SKILL.md +103 -0
  97. package/src/tools/plan/skills/plan/references/templates.md +176 -0
  98. package/src/tools/plan/skills/plan/references/workflows.md +299 -0
  99. package/src/tools/plan/skills/plan/references/xml-conversion.md +123 -0
  100. package/src/tools/project/.claude-plugin/plugin.json +1 -1
  101. package/src/tools/project/TOOL.yaml +3 -2
  102. package/src/tools/project/skills/project/SKILL.md +10 -12
  103. package/src/tools/project/skills/project/references/creating.md +5 -5
  104. package/src/tools/project/skills/project/references/loading.md +4 -4
  105. package/src/tools/tech-design/.claude-plugin/plugin.json +1 -1
  106. package/src/tools/tech-design/TOOL.yaml +1 -1
  107. package/src/tools/tech-design/skills/tech-design/SKILL.md +3 -3
  108. package/src/tools/tech-design/skills/tech-design/references/publish.md +1 -1
  109. package/src/tools/tech-design/skills/tech-design/references/start.md +2 -2
  110. package/src/tools/wrapup/.claude-plugin/plugin.json +16 -0
  111. package/src/tools/wrapup/TOOL.yaml +16 -0
  112. package/src/tools/wrapup/commands/wrapup.md +21 -0
  113. package/src/tools/wrapup/skills/wrapup/SKILL.md +86 -0
  114. package/src/tools/wrapup/skills/wrapup/references/output-schema.md +93 -0
  115. package/src/tools/wrapup/skills/wrapup/references/subagent-prompts.md +93 -0
@@ -0,0 +1,86 @@
1
+ ---
2
+ name: wrapup
3
+ description: "Session wrap-up that captures decisions, learnings, and open items to persistent docs. Use when ending a session to persist context. User prompts like 'let's wrap up', 'end of session', 'capture what we did'."
4
+ allowed-tools: [Read, Edit, Write, Glob, Grep, Bash, Task]
5
+ ---
6
+
7
+ # Wrapup Skill
8
+
9
+ Session wrap-up that captures decisions, learnings, and open items before closing.
10
+
11
+ ## Context Lifeboat Pattern
12
+
13
+ This skill runs at the END of sessions when context pressure is highest.
14
+ To avoid triggering compaction mid-wrapup, offload heavy lifting to fresh-context subagents.
15
+
16
+ ## Phase 1: Quick Context Extraction
17
+
18
+ You have the conversation history. Quickly extract and write to `/tmp/wrapup-session-brief.md`:
19
+
20
+ ```markdown
21
+ # Session Brief
22
+
23
+ ## User Goals
24
+ - {what the user was trying to accomplish}
25
+
26
+ ## Decisions Made
27
+ - {explicit choices, design decisions, why}
28
+
29
+ ## Key Learnings
30
+ - {discoveries, aha moments, findings}
31
+
32
+ ## Open Items
33
+ - {unresolved questions, blockers, WIP state}
34
+
35
+ ## Files Touched
36
+ - {files discussed/modified and why}
37
+
38
+ ## Mentioned But Not Done
39
+ - {bugs to file, docs to update, future work}
40
+ ```
41
+
42
+ Do this IMMEDIATELY. Don't analyse deeply—just dump what you know.
43
+
44
+ ## Phase 2: Artifact Analysis
45
+
46
+ Spawn subagents **in parallel** to analyse artifacts. Each reads your session brief and analyses one area.
47
+
48
+ | Subagent | Type | Analyses |
49
+ |----------|------|----------|
50
+ | Git state | Bash | Uncommitted changes, branch status |
51
+ | Project file | Explore | ~/.droid/project.md staleness |
52
+ | Brain docs | Explore | Recently modified docs needing updates |
53
+ | Codex gaps | Explore | Knowledge worth codifying |
54
+
55
+ See `references/subagent-prompts.md` for detailed prompts.
56
+
57
+ ## Phase 3: Synthesise and Present
58
+
59
+ Combine subagent findings into a summary:
60
+
61
+ ```markdown
62
+ ## Wrapup Summary
63
+
64
+ **Session:** {brief description}
65
+
66
+ **Uncommitted Work:**
67
+ {from git subagent}
68
+
69
+ **Proposed Updates:**
70
+ 1. **{destination}** ({type})
71
+ - {item}
72
+
73
+ **Suggested Actions:**
74
+ - {action}: {description}
75
+ ```
76
+
77
+ See `references/output-schema.md` for structured output format.
78
+
79
+ ## Phase 4: Confirm and Write
80
+
81
+ Present options using AskUserQuestion:
82
+ - **"Yes, update all"** → Write to all destinations
83
+ - **"Let me review first"** → Show detailed diff for each
84
+ - **"Skip"** → Close without updating
85
+
86
+ On approval, write updates using appropriate format for each destination.
@@ -0,0 +1,93 @@
1
+ # Output Schema
2
+
3
+ Structured format for subagent findings. Main agent uses this to synthesise the wrapup summary.
4
+
5
+ ## Schema
6
+
7
+ ```json
8
+ {
9
+ "active_contexts": [
10
+ {
11
+ "type": "brain | project | codex | git",
12
+ "name": "human-readable name",
13
+ "path": "file path (if applicable)",
14
+ "status": "active | stale | clean"
15
+ }
16
+ ],
17
+ "proposed_updates": [
18
+ {
19
+ "destination": "filename or identifier",
20
+ "destination_type": "brain | project | codex",
21
+ "items": [
22
+ {
23
+ "category": "decision | learning | open_item | next_step",
24
+ "content": "text to add"
25
+ }
26
+ ]
27
+ }
28
+ ],
29
+ "suggested_actions": [
30
+ {
31
+ "type": "commit | codex_topic | file_bug | update_docs",
32
+ "content": "description of suggested action",
33
+ "priority": "high | medium | low"
34
+ }
35
+ ]
36
+ }
37
+ ```
38
+
39
+ ## Field Descriptions
40
+
41
+ ### active_contexts
42
+
43
+ What's currently "open" or relevant:
44
+ - **brain**: Active planning/research docs
45
+ - **project**: ~/.droid/project.md if it exists
46
+ - **codex**: Relevant codex entries touched
47
+ - **git**: Current branch and uncommitted state
48
+
49
+ ### proposed_updates
50
+
51
+ Concrete changes to write on approval:
52
+ - **destination**: Where to write (filename)
53
+ - **destination_type**: Which system (brain, project, codex)
54
+ - **items**: List of things to add, categorised
55
+
56
+ Item categories:
57
+ - `decision`: Explicit choice made during session
58
+ - `learning`: Discovery, insight, or finding
59
+ - `open_item`: Unresolved question or blocker
60
+ - `next_step`: Identified future work
61
+
62
+ ### suggested_actions
63
+
64
+ Actions that need user judgment:
65
+ - `commit`: Git changes ready to commit
66
+ - `codex_topic`: Knowledge worth codifying
67
+ - `file_bug`: Bug discovered but not filed
68
+ - `update_docs`: Documentation that needs updating
69
+
70
+ ## Example
71
+
72
+ ```json
73
+ {
74
+ "active_contexts": [
75
+ {"type": "brain", "name": "plan-wrapup-tool", "path": "1-Projects/droid/plans/plan-wrapup-tool.md", "status": "active"},
76
+ {"type": "git", "name": "tf/wrapup-tool", "path": null, "status": "uncommitted"}
77
+ ],
78
+ "proposed_updates": [
79
+ {
80
+ "destination": "plan-wrapup-tool.md",
81
+ "destination_type": "brain",
82
+ "items": [
83
+ {"category": "decision", "content": "Using context lifeboat pattern - main agent extracts, subagents analyse"},
84
+ {"category": "next_step", "content": "Test with real session, iterate on prompts"}
85
+ ]
86
+ }
87
+ ],
88
+ "suggested_actions": [
89
+ {"type": "commit", "content": "4 files ready: TOOL.yaml, SKILL.md, wrapup.md, changeset", "priority": "high"},
90
+ {"type": "codex_topic", "content": "Context lifeboat pattern for end-of-session tooling", "priority": "medium"}
91
+ ]
92
+ }
93
+ ```
@@ -0,0 +1,93 @@
1
+ # Subagent Prompts
2
+
3
+ Detailed prompts for Phase 2 artifact analysis. Spawn these in parallel using the Task tool.
4
+
5
+ ## Git State Analysis
6
+
7
+ **Subagent type:** Bash
8
+
9
+ ```
10
+ Analyse git status and git diff in the current working directory. Categorise changes:
11
+
12
+ 1. **Ready to commit** - Complete, coherent changes that could be committed now
13
+ 2. **WIP** - Partial changes, incomplete features, or messy state
14
+ 3. **Untracked files** - New files that might need to be added or ignored
15
+
16
+ For each category, list the files and briefly describe what changed.
17
+
18
+ Output format:
19
+ - Status: clean | uncommitted | wip
20
+ - Branch: {current branch name}
21
+ - Summary of uncommitted work (if any)
22
+ - Recommendation: commit now, stash, or leave as-is
23
+ ```
24
+
25
+ ## Project File Check
26
+
27
+ **Subagent type:** Bash
28
+
29
+ ```
30
+ Read /tmp/wrapup-session-brief.md for session context.
31
+
32
+ First, run `droid config project` to get the project skill configuration.
33
+ Parse the JSON output to find the `projects_dir` value.
34
+
35
+ If `projects_dir` is not set, skip project file analysis.
36
+
37
+ If configured:
38
+ 1. Search the projects directory for recently modified PROJECT.md files (last 7 days)
39
+ 2. Read the most recently modified project file
40
+ 3. Compare against session brief
41
+ 4. Identify:
42
+ - Stale entries that should be updated or removed
43
+ - New items from the session to add (decisions, blockers, next steps)
44
+ - Status changes (completed items, new blockers)
45
+
46
+ Output specific proposed updates with exact text to add/change.
47
+ If no active project found, note that and skip.
48
+ ```
49
+
50
+ ## Brain Doc Check
51
+
52
+ **Subagent type:** Explore
53
+
54
+ ```
55
+ Read /tmp/wrapup-session-brief.md for session context.
56
+
57
+ First, run `droid config brain` and parse the JSON output for the `brain_dir` setting.
58
+ If not configured, skip brain doc analysis.
59
+
60
+ If configured:
61
+ 1. Search the brain directory for recently modified .md files (last 24 hours)
62
+ 2. Read any that seem related to the session topics
63
+ 3. Check if they need updates based on session decisions/learnings
64
+ 4. Look for @droid comments that were addressed
65
+
66
+ Output:
67
+ - Active brain docs found (if any)
68
+ - Proposed additions for each relevant doc
69
+ - Any resolved @droid comments to mark done
70
+ ```
71
+
72
+ ## Codex Gap Analysis
73
+
74
+ **Subagent type:** Explore
75
+
76
+ ```
77
+ Read /tmp/wrapup-session-brief.md for session context.
78
+
79
+ Run `droid config codex` and check if `codex_repo` is set.
80
+ If not configured, skip codex analysis.
81
+
82
+ If the session involved:
83
+ - Deep research on a topic
84
+ - Discovering patterns or best practices
85
+ - Solving a non-trivial problem with reusable insights
86
+
87
+ Then suggest potential codex topics:
88
+ - Topic name
89
+ - Brief description of what to capture
90
+ - Why it's worth codifying (reusable, non-obvious, hard-won knowledge)
91
+
92
+ Output: List of suggested codex topics, or "No codex suggestions" if session was routine.
93
+ ```