Skip to content

Commit 45f526c

Browse files
committed
feat(claude): update working with superpowers, add task and implement-plan commands
1 parent cf9887a commit 45f526c

File tree

3 files changed

+62
-1
lines changed

3 files changed

+62
-1
lines changed

claude/CLAUDE.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,27 @@
55

66
# Working with superpowers plugin
77

8-
- When using `superpowers` skills, if directed to write to `docs/plans`, instead write to `~/.claude/plans` instead. This is to avoid cluttering the main repository with temporary plan files that will not be kept or committed.
8+
- When using `superpowers` skills, if directed to write to `docs/plans`, instead write to `~/.claude/plans`. This is to avoid cluttering the main repository with temporary plan files that will not be kept or committed.
9+
- The files should be written in the following tree structure:
10+
11+
```
12+
~/.claude/plans/
13+
├── `{timestamp}-{task-name}`/ # Each task in its own timestamped folder
14+
│ ├── 1-TASK.md # This is the main task description or details provided to brainstorming skill
15+
│ ├── 2-DESIGN.md # This is the resulting design file from the `superpowers:brainstorming` skill
16+
│ ├── 3-PLAN.md # This is the output of `superpowers:writing-plans` skill
17+
│ └── ...
18+
└── another-task/
19+
├── 3-PLAN.md
20+
└── ...
21+
```
22+
23+
- `superpowers:brainstorming` skill should:
24+
- Write the provided prompt and context to `1-TASK.md`
25+
- Generate a structured plan and write to `2-DESIGN.md`. Add all clarifying questions asked during brainstorming to the end of the `2-DESIGN.md` file.
26+
- `superpowers:writing-plans` skill should:
27+
- Read the `2-DESIGN.md` file from the respective plan folder
28+
- Write the resulting implementation details to `3-PLAN.md` in the same folder.
929

1030
# Coding Patterns and Best Practices (Typescript)
1131

claude/commands/implement-plan.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
description: Implement the PLAN.md file for a specific plan or feature development
3+
---
4+
5+
Implement the plan:
6+
7+
- **REQUIRED SUB-SKILL:** Use superpowers:subagent-driven-development
8+
- Dispatch a fresh subagent per task
9+
- Do code review between tasks using `superpowers:code-reviewer`
10+
- Quickly iterate until done
11+
- Group tasks if it makes sense for code review purposes

claude/commands/task.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
description: Create a new task file for a specific task or feature development
3+
argument-hint: <task-name-or-desc>
4+
allowed-commands: Write, Bash(mkdir:*), Bash(mkdir -p:*)
5+
---
6+
7+
# New Task
8+
9+
- Create the following structure in `~/.claude/plans/`:
10+
11+
```
12+
~/.claude/plans/
13+
├── `{timestamp}-{task-name}`/ # Each task in its own timestamped folder
14+
│ ├── 1-TASK.md # This is the main task description or details provided to brainstorming skill
15+
│ └── ...
16+
└── another-task/
17+
├── 1-TASK.md
18+
└── ...
19+
```
20+
21+
- The task-name should be a short, hyphenated version of the provided task name or description argument (e.g., "implement-authentication", "refactor-database-layer"). Be concise and summarize if necessary.
22+
- Create the directory with `mkdir -p ~/.claude/plans/$(date +%Y-%m-%d)-task-name` but replace `task-name` with the hyphenated version of the provided task name or description.
23+
- 1-TASK.md should contain a single H1 header with the provided task name or description.
24+
25+
Once created:
26+
27+
- Present the 1-TASK.md contents
28+
- AskUserQuestion:
29+
- Add details to task?
30+
- Brainstorm design using `superpowers:brainstorming`?

0 commit comments

Comments
 (0)