toenobu-agent 0.1.0 → 0.1.2
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/Makefile +21 -0
- package/package.json +1 -1
- package/skills/brainstorming/SKILL.md +59 -0
- package/skills/executing-plans/SKILL.md +96 -0
- package/skills/writing-plans/SKILL.md +122 -0
package/Makefile
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.PHONY: login publish patch minor major
|
|
2
|
+
|
|
3
|
+
# Login with your npm account
|
|
4
|
+
login:
|
|
5
|
+
npm login
|
|
6
|
+
|
|
7
|
+
# Bump patch version (0.1.0 -> 0.1.1)
|
|
8
|
+
patch:
|
|
9
|
+
npm version patch
|
|
10
|
+
|
|
11
|
+
# Bump minor version (0.1.0 -> 0.2.0)
|
|
12
|
+
minor:
|
|
13
|
+
npm version minor
|
|
14
|
+
|
|
15
|
+
# Bump major version (0.1.0 -> 1.0.0)
|
|
16
|
+
major:
|
|
17
|
+
npm version major
|
|
18
|
+
|
|
19
|
+
# Publish toenobu-agent
|
|
20
|
+
publish:
|
|
21
|
+
npm publish
|
package/package.json
CHANGED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorming
|
|
3
|
+
description: "You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Brainstorming Ideas Into Designs
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
|
|
11
|
+
|
|
12
|
+
Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design in small sections (200-300 words), checking after each section whether it looks right so far.
|
|
13
|
+
|
|
14
|
+
## The Process
|
|
15
|
+
|
|
16
|
+
**Understanding the idea:**
|
|
17
|
+
|
|
18
|
+
- Check out the current project state first (files, docs, recent commits)
|
|
19
|
+
- Ask questions one at a time to refine the idea
|
|
20
|
+
- Prefer multiple choice questions when possible, but open-ended is fine too
|
|
21
|
+
- Only one question per message - if a topic needs more exploration, break it into multiple questions
|
|
22
|
+
- Focus on understanding: purpose, constraints, success criteria
|
|
23
|
+
|
|
24
|
+
**Exploring approaches:**
|
|
25
|
+
|
|
26
|
+
- Propose 2-3 different approaches with trade-offs
|
|
27
|
+
- Present options conversationally with your recommendation and reasoning
|
|
28
|
+
- Lead with your recommended option and explain why
|
|
29
|
+
|
|
30
|
+
**Presenting the design:**
|
|
31
|
+
|
|
32
|
+
- Once you believe you understand what you're building, present the design
|
|
33
|
+
- Break it into sections of 200-300 words
|
|
34
|
+
- Ask after each section whether it looks right so far
|
|
35
|
+
- Cover: architecture, components, data flow, error handling, testing
|
|
36
|
+
- Be ready to go back and clarify if something doesn't make sense
|
|
37
|
+
|
|
38
|
+
## After the Design
|
|
39
|
+
|
|
40
|
+
**Documentation:**
|
|
41
|
+
|
|
42
|
+
- Write the validated design to `docs/plans/YYYY-MM-DD-<topic>-design.md`
|
|
43
|
+
- Use elements-of-style:writing-clearly-and-concisely skill if available
|
|
44
|
+
- Commit the design document to git
|
|
45
|
+
|
|
46
|
+
**Implementation (if continuing):**
|
|
47
|
+
|
|
48
|
+
- Ask: "Ready to set up for implementation?"
|
|
49
|
+
- Use superpowers:using-git-worktrees to create isolated workspace
|
|
50
|
+
- Use superpowers:writing-plans to create detailed implementation plan
|
|
51
|
+
|
|
52
|
+
## Key Principles
|
|
53
|
+
|
|
54
|
+
- **One question at a time** - Don't overwhelm with multiple questions
|
|
55
|
+
- **Multiple choice preferred** - Easier to answer than open-ended when possible
|
|
56
|
+
- **YAGNI ruthlessly** - Remove unnecessary features from all designs
|
|
57
|
+
- **Explore alternatives** - Always propose 2-3 approaches before settling
|
|
58
|
+
- **Incremental validation** - Present design in sections, validate each
|
|
59
|
+
- **Be flexible** - Go back and clarify when something doesn't make sense
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: executing-plans
|
|
3
|
+
description: Use when you have a written implementation plan to execute in a separate session with review checkpoints
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Executing Plans
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Load plan, review critically, execute tasks in batches, report for review between batches.
|
|
11
|
+
|
|
12
|
+
**Core principle:** Batch execution with checkpoints for architect review.
|
|
13
|
+
|
|
14
|
+
**Announce at start:** "I'm using the executing-plans skill to implement this plan."
|
|
15
|
+
|
|
16
|
+
## The Process
|
|
17
|
+
|
|
18
|
+
### Step 1: Load and Review Plan
|
|
19
|
+
|
|
20
|
+
1. Read plan file
|
|
21
|
+
2. Review critically - identify any questions or concerns about the plan
|
|
22
|
+
3. If concerns: Raise them with your human partner before starting
|
|
23
|
+
4. If no concerns: Create TodoWrite and proceed
|
|
24
|
+
|
|
25
|
+
### Step 2: Execute Batch
|
|
26
|
+
|
|
27
|
+
**Default: First 3 tasks**
|
|
28
|
+
|
|
29
|
+
For each task:
|
|
30
|
+
|
|
31
|
+
1. Mark as in_progress
|
|
32
|
+
2. Follow each step exactly (plan has bite-sized steps)
|
|
33
|
+
3. Run verifications as specified
|
|
34
|
+
4. Mark as completed
|
|
35
|
+
|
|
36
|
+
### Step 3: Report
|
|
37
|
+
|
|
38
|
+
When batch complete:
|
|
39
|
+
|
|
40
|
+
- Show what was implemented
|
|
41
|
+
- Show verification output
|
|
42
|
+
- Say: "Ready for feedback."
|
|
43
|
+
|
|
44
|
+
### Step 4: Continue
|
|
45
|
+
|
|
46
|
+
Based on feedback:
|
|
47
|
+
|
|
48
|
+
- Apply changes if needed
|
|
49
|
+
- Execute next batch
|
|
50
|
+
- Repeat until complete
|
|
51
|
+
|
|
52
|
+
### Step 5: Complete Development
|
|
53
|
+
|
|
54
|
+
After all tasks complete and verified:
|
|
55
|
+
|
|
56
|
+
- Announce: "I'm using the finishing-a-development-branch skill to complete this work."
|
|
57
|
+
- **REQUIRED SUB-SKILL:** Use superpowers:finishing-a-development-branch
|
|
58
|
+
- Follow that skill to verify tests, present options, execute choice
|
|
59
|
+
|
|
60
|
+
## When to Stop and Ask for Help
|
|
61
|
+
|
|
62
|
+
**STOP executing immediately when:**
|
|
63
|
+
|
|
64
|
+
- Hit a blocker mid-batch (missing dependency, test fails, instruction unclear)
|
|
65
|
+
- Plan has critical gaps preventing starting
|
|
66
|
+
- You don't understand an instruction
|
|
67
|
+
- Verification fails repeatedly
|
|
68
|
+
|
|
69
|
+
**Ask for clarification rather than guessing.**
|
|
70
|
+
|
|
71
|
+
## When to Revisit Earlier Steps
|
|
72
|
+
|
|
73
|
+
**Return to Review (Step 1) when:**
|
|
74
|
+
|
|
75
|
+
- Partner updates the plan based on your feedback
|
|
76
|
+
- Fundamental approach needs rethinking
|
|
77
|
+
|
|
78
|
+
**Don't force through blockers** - stop and ask.
|
|
79
|
+
|
|
80
|
+
## Remember
|
|
81
|
+
|
|
82
|
+
- Review plan critically first
|
|
83
|
+
- Follow plan steps exactly
|
|
84
|
+
- Don't skip verifications
|
|
85
|
+
- Reference skills when plan says to
|
|
86
|
+
- Between batches: just report and wait
|
|
87
|
+
- Stop when blocked, don't guess
|
|
88
|
+
- Never start implementation on main/master branch without explicit user consent
|
|
89
|
+
|
|
90
|
+
## Integration
|
|
91
|
+
|
|
92
|
+
**Required workflow skills:**
|
|
93
|
+
|
|
94
|
+
- **superpowers:using-git-worktrees** - REQUIRED: Set up isolated workspace before starting
|
|
95
|
+
- **superpowers:writing-plans** - Creates the plan this skill executes
|
|
96
|
+
- **superpowers:finishing-a-development-branch** - Complete development after all tasks
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: writing-plans
|
|
3
|
+
description: Use when you have a spec or requirements for a multi-step task, before touching code
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Writing Plans
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks.
|
|
11
|
+
|
|
12
|
+
DRY. YAGNI. TDD. Frequent commits.
|
|
13
|
+
|
|
14
|
+
Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.
|
|
15
|
+
|
|
16
|
+
**Announce at start:** "I'm using the writing-plans skill to create the implementation plan."
|
|
17
|
+
|
|
18
|
+
**Context:** This should be run in a dedicated worktree (created by brainstorming skill).
|
|
19
|
+
|
|
20
|
+
**Save plans to:** `docs/plans/YYYY-MM-DD-<feature-name>.md`
|
|
21
|
+
|
|
22
|
+
## Bite-Sized Task Granularity
|
|
23
|
+
|
|
24
|
+
**Each step is one action (2-5 minutes):**
|
|
25
|
+
|
|
26
|
+
- "Write the failing test" - step
|
|
27
|
+
- "Run it to make sure it fails" - step
|
|
28
|
+
- "Implement the minimal code to make the test pass" - step
|
|
29
|
+
- "Run the tests and make sure they pass" - step
|
|
30
|
+
- "Commit" - step
|
|
31
|
+
|
|
32
|
+
## Plan Document Header
|
|
33
|
+
|
|
34
|
+
**Every plan MUST start with this header:**
|
|
35
|
+
|
|
36
|
+
```markdown
|
|
37
|
+
# [Feature Name] Implementation Plan
|
|
38
|
+
|
|
39
|
+
> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.
|
|
40
|
+
|
|
41
|
+
**Goal:** [One sentence describing what this builds]
|
|
42
|
+
|
|
43
|
+
**Architecture:** [2-3 sentences about approach]
|
|
44
|
+
|
|
45
|
+
**Tech Stack:** [Key technologies/libraries]
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Task Structure
|
|
51
|
+
|
|
52
|
+
```markdown
|
|
53
|
+
### Task N: [Component Name]
|
|
54
|
+
|
|
55
|
+
**Files:**
|
|
56
|
+
- Create: `exact/path/to/file.py`
|
|
57
|
+
- Modify: `exact/path/to/existing.py:123-145`
|
|
58
|
+
- Test: `tests/exact/path/to/test.py`
|
|
59
|
+
|
|
60
|
+
**Step 1: Write the failing test**
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
def test_specific_behavior():
|
|
64
|
+
result = function(input)
|
|
65
|
+
assert result == expected
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Step 2: Run test to verify it fails**
|
|
69
|
+
|
|
70
|
+
Run: `pytest tests/path/test.py::test_name -v`
|
|
71
|
+
Expected: FAIL with "function not defined"
|
|
72
|
+
|
|
73
|
+
**Step 3: Write minimal implementation**
|
|
74
|
+
|
|
75
|
+
```python
|
|
76
|
+
def function(input):
|
|
77
|
+
return expected
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**Step 4: Run test to verify it passes**
|
|
81
|
+
|
|
82
|
+
Run: `pytest tests/path/test.py::test_name -v`
|
|
83
|
+
Expected: PASS
|
|
84
|
+
|
|
85
|
+
**Step 5: Commit**
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
git add tests/path/test.py src/path/file.py
|
|
89
|
+
git commit -m "feat: add specific feature"
|
|
90
|
+
```
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Remember
|
|
94
|
+
|
|
95
|
+
- Exact file paths always
|
|
96
|
+
- Complete code in plan (not "add validation")
|
|
97
|
+
- Exact commands with expected output
|
|
98
|
+
- Reference relevant skills with @ syntax
|
|
99
|
+
- DRY, YAGNI, TDD, frequent commits
|
|
100
|
+
|
|
101
|
+
## Execution Handoff
|
|
102
|
+
|
|
103
|
+
After saving the plan, offer execution choice:
|
|
104
|
+
|
|
105
|
+
**"Plan complete and saved to `docs/plans/<filename>.md`. Two execution options:**
|
|
106
|
+
|
|
107
|
+
**1. Subagent-Driven (this session)**
|
|
108
|
+
- I dispatch fresh subagent per task, review between tasks, fast iteration
|
|
109
|
+
|
|
110
|
+
**2. Parallel Session (separate)**
|
|
111
|
+
- Open new session with executing-plans, batch execution with checkpoints
|
|
112
|
+
|
|
113
|
+
**Which approach?"**
|
|
114
|
+
|
|
115
|
+
**If Subagent-Driven chosen:**
|
|
116
|
+
- **REQUIRED SUB-SKILL:** Use superpowers:subagent-driven-development
|
|
117
|
+
- Stay in this session
|
|
118
|
+
- Fresh subagent per task + code review
|
|
119
|
+
|
|
120
|
+
**If Parallel Session chosen:**
|
|
121
|
+
- Guide them to open new session in worktree
|
|
122
|
+
- **REQUIRED SUB-SKILL:** New session uses superpowers:executing-plans
|