opencodekit 0.15.21 → 0.16.1
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/dist/index.js +5 -7
- package/dist/template/.opencode/AGENTS.md +85 -23
- package/dist/template/.opencode/agent/build.md +88 -7
- package/dist/template/.opencode/agent/explore.md +1 -1
- package/dist/template/.opencode/agent/general.md +54 -4
- package/dist/template/.opencode/agent/looker.md +1 -1
- package/dist/template/.opencode/agent/painter.md +1 -1
- package/dist/template/.opencode/agent/plan.md +52 -0
- package/dist/template/.opencode/agent/review.md +1 -1
- package/dist/template/.opencode/agent/scout.md +3 -3
- package/dist/template/.opencode/agent/vision.md +1 -1
- package/dist/template/.opencode/command/create.md +231 -91
- package/dist/template/.opencode/command/design.md +40 -7
- package/dist/template/.opencode/command/handoff.md +22 -0
- package/dist/template/.opencode/command/init.md +49 -78
- package/dist/template/.opencode/command/plan.md +36 -16
- package/dist/template/.opencode/command/pr.md +15 -0
- package/dist/template/.opencode/command/research.md +3 -0
- package/dist/template/.opencode/command/resume.md +8 -18
- package/dist/template/.opencode/command/review-codebase.md +30 -0
- package/dist/template/.opencode/command/ship.md +199 -0
- package/dist/template/.opencode/command/start.md +316 -28
- package/dist/template/.opencode/command/status.md +24 -1
- package/dist/template/.opencode/command/ui-review.md +36 -7
- package/dist/template/.opencode/command/verify.md +307 -0
- package/dist/template/.opencode/memory/_templates/prd.md +29 -0
- package/dist/template/.opencode/memory/_templates/proposal.md +38 -0
- package/dist/template/.opencode/memory/_templates/spec.md +66 -0
- package/dist/template/.opencode/memory/_templates/tasks.md +198 -0
- package/dist/template/.opencode/memory/_templates/tech-stack.md +50 -0
- package/dist/template/.opencode/memory/project/tech-stack.md +53 -0
- package/dist/template/.opencode/memory/research/ccpm-analysis.md +334 -0
- package/dist/template/.opencode/memory/research/openspec-analysis.md +226 -0
- package/dist/template/.opencode/memory.db +0 -0
- package/dist/template/.opencode/memory.db-shm +0 -0
- package/dist/template/.opencode/memory.db-wal +0 -0
- package/dist/template/.opencode/opencode.json +18 -4
- package/dist/template/.opencode/package.json +1 -0
- package/dist/template/.opencode/plans/1770006237537-mighty-otter.md +418 -0
- package/dist/template/.opencode/plans/1770006913647-glowing-forest.md +170 -0
- package/dist/template/.opencode/plans/1770013678126-witty-planet.md +278 -0
- package/dist/template/.opencode/plugin/lib/memory-db.ts +828 -0
- package/dist/template/.opencode/plugin/memory.ts +38 -1
- package/dist/template/.opencode/skill/index-knowledge/SKILL.md +76 -31
- package/dist/template/.opencode/skill/memory-system/SKILL.md +110 -55
- package/dist/template/.opencode/skill/tool-priority/SKILL.md +2 -2
- package/dist/template/.opencode/tool/memory-get.ts +143 -0
- package/dist/template/.opencode/tool/memory-maintain.ts +167 -0
- package/dist/template/.opencode/tool/memory-migrate.ts +319 -0
- package/dist/template/.opencode/tool/memory-read.ts +17 -46
- package/dist/template/.opencode/tool/memory-search.ts +131 -28
- package/dist/template/.opencode/tool/memory-timeline.ts +105 -0
- package/dist/template/.opencode/tool/memory-update.ts +21 -26
- package/dist/template/.opencode/tool/observation.ts +112 -100
- package/dist/template/.opencode/tsconfig.json +19 -19
- package/package.json +1 -1
- package/dist/template/.opencode/command/accessibility-check.md +0 -331
- package/dist/template/.opencode/command/agent-browser.md +0 -21
- package/dist/template/.opencode/command/analyze-mockup.md +0 -423
- package/dist/template/.opencode/command/analyze-project.md +0 -295
- package/dist/template/.opencode/command/brainstorm.md +0 -373
- package/dist/template/.opencode/command/cloudflare.md +0 -70
- package/dist/template/.opencode/command/commit.md +0 -245
- package/dist/template/.opencode/command/complete-next-task.md +0 -77
- package/dist/template/.opencode/command/design-audit.md +0 -480
- package/dist/template/.opencode/command/edit-image.md +0 -242
- package/dist/template/.opencode/command/finish.md +0 -255
- package/dist/template/.opencode/command/fix-ci.md +0 -109
- package/dist/template/.opencode/command/fix-types.md +0 -104
- package/dist/template/.opencode/command/fix-ui.md +0 -117
- package/dist/template/.opencode/command/fix.md +0 -168
- package/dist/template/.opencode/command/frontend-design.md +0 -21
- package/dist/template/.opencode/command/generate-diagram.md +0 -349
- package/dist/template/.opencode/command/generate-icon.md +0 -283
- package/dist/template/.opencode/command/generate-image.md +0 -246
- package/dist/template/.opencode/command/generate-pattern.md +0 -247
- package/dist/template/.opencode/command/generate-storyboard.md +0 -250
- package/dist/template/.opencode/command/implement.md +0 -609
- package/dist/template/.opencode/command/import-plan.md +0 -406
- package/dist/template/.opencode/command/index-knowledge.md +0 -25
- package/dist/template/.opencode/command/integration-test.md +0 -424
- package/dist/template/.opencode/command/issue.md +0 -102
- package/dist/template/.opencode/command/new-feature.md +0 -651
- package/dist/template/.opencode/command/opensrc.md +0 -58
- package/dist/template/.opencode/command/quick-build.md +0 -238
- package/dist/template/.opencode/command/ralph.md +0 -41
- package/dist/template/.opencode/command/research-and-implement.md +0 -148
- package/dist/template/.opencode/command/research-ui.md +0 -466
- package/dist/template/.opencode/command/restore-image.md +0 -424
- package/dist/template/.opencode/command/revert-feature.md +0 -386
- package/dist/template/.opencode/command/skill-create.md +0 -517
- package/dist/template/.opencode/command/skill-optimize.md +0 -556
- package/dist/template/.opencode/command/summarize.md +0 -412
- package/dist/template/.opencode/command/triage.md +0 -398
- package/dist/template/.opencode/memory/_templates/README.md +0 -35
- package/dist/template/.opencode/memory/_templates/observation.md +0 -39
- package/dist/template/.opencode/memory/_templates/project/architecture.md +0 -60
- package/dist/template/.opencode/memory/_templates/project/commands.md +0 -72
- package/dist/template/.opencode/memory/_templates/project/conventions.md +0 -68
- package/dist/template/.opencode/memory/_templates/project/gotchas.md +0 -41
- package/dist/template/.opencode/memory/_templates/prompt-engineering.md +0 -333
- package/dist/template/.opencode/memory/observations/2026-01-22-decision-agents-md-prompt-engineering-improvement.md +0 -29
- package/dist/template/.opencode/memory/observations/2026-01-25-decision-agent-roles-build-orchestrates-general-e.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-01-25-decision-simplified-swarm-helper-tool-to-fix-type.md +0 -20
- package/dist/template/.opencode/memory/observations/2026-01-25-decision-use-beads-as-swarm-board-source-of-truth.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-01-25-learning-user-wants-real-swarm-coordination-guida.md +0 -15
- package/dist/template/.opencode/memory/observations/2026-01-28-decision-created-deep-research-skill-for-thorough.md +0 -29
- package/dist/template/.opencode/memory/observations/2026-01-28-decision-gh-grep-mcp-wrapper-vs-native-grep-searc.md +0 -21
- package/dist/template/.opencode/memory/observations/2026-01-28-decision-oracle-tool-optimal-usage-patterns.md +0 -32
- package/dist/template/.opencode/memory/observations/2026-01-28-learning-ampcode-deep-mode-research-integration-w.md +0 -42
- package/dist/template/.opencode/memory/observations/2026-01-28-pattern-research-delegation-pattern-explore-for-.md +0 -32
- package/dist/template/.opencode/memory/observations/2026-01-29-decision-copilot-auth-plugin-rate-limit-handling.md +0 -27
- package/dist/template/.opencode/memory/observations/2026-01-29-decision-spec-driven-approach-for-opencodekit.md +0 -21
- package/dist/template/.opencode/memory/observations/2026-01-29-learning-karpathy-llm-coding-insights-dec-2025.md +0 -44
- package/dist/template/.opencode/memory/observations/2026-01-30-decision-github-copilot-claude-routing-keep-disab.md +0 -32
- package/dist/template/.opencode/memory/observations/2026-01-30-discovery-context-management-research-critical-gap.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-01-30-discovery-kimi-k2-5-agent-swarm-architecture-patte.md +0 -45
- package/dist/template/.opencode/memory/observations/2026-01-30-pattern-swarm-tools-architecture.md +0 -28
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-copilot-auth-plugin-updated-with-baseurl.md +0 -63
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-created-dedicated-worker-agent-for-swarm.md +0 -20
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-rollback-to-v1-1-47-for-copilot-claude-r.md +0 -21
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-simplified-swarm-to-task-tool-pattern.md +0 -44
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-swarm-architecture-task-tool-over-tmux.md +0 -33
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-worker-skills-defined-for-swarm-delegati.md +0 -30
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-gpt-reasoning-config-for-github-copilot.md +0 -51
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-auth-comparison-finding.md +0 -61
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-reasoning-architecture-.md +0 -66
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-custom-tools-api.md +0 -48
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-v1-1-48-skills-as-slash-command.md +0 -21
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-swarm-system-simplified-removed-mailbox-.md +0 -30
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-v1-1-48-native-copilot-reasoning-via-pr-.md +0 -45
- package/dist/template/.opencode/memory/observations/2026-01-31-warning-cannot-add-custom-config-to-opencode-jso.md +0 -18
- package/dist/template/.opencode/memory/observations/2026-01-31-warning-copilot-claude-v1-endpoint-returns-404-c.md +0 -48
- package/dist/template/.opencode/memory/observations/2026-01-31-warning-opencode-v1-1-48-claude-thinking-block-s.md +0 -51
- package/dist/template/.opencode/memory/project/architecture.md +0 -60
- package/dist/template/.opencode/memory/project/commands.md +0 -72
- package/dist/template/.opencode/memory/project/conventions.md +0 -68
- package/dist/template/.opencode/memory/project/gotchas.md +0 -41
- package/dist/template/.opencode/skill/notebooklm/SKILL.md +0 -272
- package/dist/template/.opencode/skill/notebooklm/references/setup.md +0 -353
- package/dist/template/.opencode/tool/notebooklm.ts +0 -488
- package/dist/template/.opencode/tool/oracle.ts +0 -240
- /package/dist/template/.opencode/memory/{user.example.md → _templates/user.md} +0 -0
- /package/dist/template/.opencode/memory/{user.md → project/user.md} +0 -0
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Load Cloudflare skill and get contextual guidance for your task
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Load the Cloudflare platform skill and help with any Cloudflare development task.
|
|
6
|
-
|
|
7
|
-
## Workflow
|
|
8
|
-
|
|
9
|
-
### Step 1: Check for --update-skill flag
|
|
10
|
-
|
|
11
|
-
If $ARGUMENTS contains `--update-skill`:
|
|
12
|
-
|
|
13
|
-
1. Determine install location by checking which exists:
|
|
14
|
-
- Local: `.opencode/skill/cloudflare/`
|
|
15
|
-
- Global: `~/.config/opencode/skill/cloudflare/`
|
|
16
|
-
|
|
17
|
-
2. Run the appropriate install command:
|
|
18
|
-
```bash
|
|
19
|
-
# For local installation
|
|
20
|
-
curl -fsSL https://raw.githubusercontent.com/dmmulroy/cloudflare-skill/main/install.sh | bash
|
|
21
|
-
|
|
22
|
-
# For global installation
|
|
23
|
-
curl -fsSL https://raw.githubusercontent.com/dmmulroy/cloudflare-skill/main/install.sh | bash -s -- --global
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
3. Output success message and stop (do not continue to other steps).
|
|
27
|
-
|
|
28
|
-
### Step 2: Load cloudflare skill
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
skill({ name: 'cloudflare' })
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Step 3: Identify task type from user request
|
|
35
|
-
|
|
36
|
-
Analyze $ARGUMENTS to determine:
|
|
37
|
-
- **Product(s) needed** (Workers, D1, R2, Durable Objects, etc.)
|
|
38
|
-
- **Task type** (new project setup, feature implementation, debugging, config)
|
|
39
|
-
|
|
40
|
-
Use decision trees in SKILL.md to select correct product.
|
|
41
|
-
|
|
42
|
-
### Step 4: Read relevant reference files
|
|
43
|
-
|
|
44
|
-
Based on task type, read from `references/<product>/`:
|
|
45
|
-
|
|
46
|
-
| Task | Files to Read |
|
|
47
|
-
|------|---------------|
|
|
48
|
-
| New project | `README.md` + `configuration.md` |
|
|
49
|
-
| Implement feature | `README.md` + `api.md` + `patterns.md` |
|
|
50
|
-
| Debug/troubleshoot | `gotchas.md` |
|
|
51
|
-
| All-in-one (monolithic) | `SKILL.md` |
|
|
52
|
-
|
|
53
|
-
### Step 5: Execute task
|
|
54
|
-
|
|
55
|
-
Apply Cloudflare-specific patterns and APIs from references to complete the user's request.
|
|
56
|
-
|
|
57
|
-
### Step 6: Summarize
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
=== Cloudflare Task Complete ===
|
|
61
|
-
|
|
62
|
-
Product(s): <products used>
|
|
63
|
-
Files referenced: <reference files consulted>
|
|
64
|
-
|
|
65
|
-
<brief summary of what was done>
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
<user-request>
|
|
69
|
-
$ARGUMENTS
|
|
70
|
-
</user-request>
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Commit with verification and optional bead traceability
|
|
3
|
-
argument-hint: "[bead-id] [--amend]"
|
|
4
|
-
agent: build
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Commit
|
|
8
|
-
|
|
9
|
-
**Load skills:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
skill({ name: "beads" }); // Session protocol
|
|
13
|
-
skill({ name: "verification-before-completion" });
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Options
|
|
17
|
-
|
|
18
|
-
- `--amend`: Amend the last commit (only if not pushed and you created it)
|
|
19
|
-
|
|
20
|
-
## Phase 1: Check Git State
|
|
21
|
-
|
|
22
|
-
!`git status --porcelain`
|
|
23
|
-
!`git diff --stat`
|
|
24
|
-
!`git diff --cached --stat`
|
|
25
|
-
|
|
26
|
-
Report:
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
Git State:
|
|
30
|
-
━━━━━━━━━━
|
|
31
|
-
|
|
32
|
-
Staged:
|
|
33
|
-
- [file1] (modified)
|
|
34
|
-
- [file2] (new)
|
|
35
|
-
|
|
36
|
-
Unstaged:
|
|
37
|
-
- [file3] (modified)
|
|
38
|
-
|
|
39
|
-
Untracked:
|
|
40
|
-
- [file4]
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
If nothing staged: "No changes staged. Run `git add <files>` first."
|
|
44
|
-
|
|
45
|
-
## Phase 2: Run Verification Gates
|
|
46
|
-
|
|
47
|
-
Detect project type and run gates:
|
|
48
|
-
|
|
49
|
-
!`ls package.json Cargo.toml pyproject.toml go.mod Makefile 2>/dev/null`
|
|
50
|
-
|
|
51
|
-
| Project | Test Command | Lint Command |
|
|
52
|
-
| ------- | --------------- | ------------------------------------ |
|
|
53
|
-
| Node.js | `npm test` | `npm run lint && npm run type-check` |
|
|
54
|
-
| Rust | `cargo test` | `cargo clippy -- -D warnings` |
|
|
55
|
-
| Python | `pytest` | `ruff check . && mypy .` |
|
|
56
|
-
| Go | `go test ./...` | `golangci-lint run` |
|
|
57
|
-
|
|
58
|
-
```
|
|
59
|
-
Verification:
|
|
60
|
-
━━━━━━━━━━━━━
|
|
61
|
-
|
|
62
|
-
Tests: [✓/✗/skipped]
|
|
63
|
-
Lint: [✓/✗/skipped]
|
|
64
|
-
Types: [✓/✗/skipped]
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
**If any gate fails:**
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
Cannot commit: [gate] failed.
|
|
71
|
-
|
|
72
|
-
Fix errors or use `git commit --no-verify` (not recommended).
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Phase 3: Analyze Changes for Message
|
|
76
|
-
|
|
77
|
-
!`git diff --cached --stat`
|
|
78
|
-
!`git diff --cached`
|
|
79
|
-
|
|
80
|
-
Determine:
|
|
81
|
-
|
|
82
|
-
- **Type**: What kind of change is this?
|
|
83
|
-
- **Scope**: Which module/component changed?
|
|
84
|
-
- **Summary**: What does this change do?
|
|
85
|
-
|
|
86
|
-
### Commit Type Guide
|
|
87
|
-
|
|
88
|
-
| Type | When to Use | Example |
|
|
89
|
-
| ---------- | --------------------------------------- | ---------------------------------- |
|
|
90
|
-
| `feat` | New feature for user | `feat(auth): add OAuth login` |
|
|
91
|
-
| `fix` | Bug fix | `fix(api): handle null response` |
|
|
92
|
-
| `refactor` | Code change (no new feature or fix) | `refactor(utils): simplify parser` |
|
|
93
|
-
| `docs` | Documentation only | `docs: update API reference` |
|
|
94
|
-
| `test` | Adding or updating tests | `test(auth): add login tests` |
|
|
95
|
-
| `chore` | Maintenance, deps, tooling | `chore: update dependencies` |
|
|
96
|
-
| `style` | Formatting, whitespace (no code change) | `style: fix indentation` |
|
|
97
|
-
| `perf` | Performance improvement | `perf(db): add query caching` |
|
|
98
|
-
| `ci` | CI/CD changes | `ci: add deploy workflow` |
|
|
99
|
-
|
|
100
|
-
### Scope Detection
|
|
101
|
-
|
|
102
|
-
Auto-detect scope from changed files:
|
|
103
|
-
|
|
104
|
-
| Changed Files | Suggested Scope |
|
|
105
|
-
| ----------------------- | --------------- |
|
|
106
|
-
| `src/auth/*` | auth |
|
|
107
|
-
| `src/api/*` | api |
|
|
108
|
-
| `src/components/*` | ui |
|
|
109
|
-
| `tests/*` | test |
|
|
110
|
-
| `docs/*` | docs |
|
|
111
|
-
| Multiple unrelated dirs | (omit scope) |
|
|
112
|
-
|
|
113
|
-
## Phase 4: Generate Commit Message
|
|
114
|
-
|
|
115
|
-
Propose message based on analysis:
|
|
116
|
-
|
|
117
|
-
```
|
|
118
|
-
Proposed Commit:
|
|
119
|
-
━━━━━━━━━━━━━━━━
|
|
120
|
-
|
|
121
|
-
<type>(<scope>): <summary>
|
|
122
|
-
|
|
123
|
-
[body - what and why, not how]
|
|
124
|
-
|
|
125
|
-
[footer - bead reference, breaking changes]
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
**Example with bead:**
|
|
129
|
-
|
|
130
|
-
```
|
|
131
|
-
feat(auth): add token refresh mechanism
|
|
132
|
-
|
|
133
|
-
Implement automatic token refresh when access token expires.
|
|
134
|
-
Tokens are stored in secure session storage.
|
|
135
|
-
|
|
136
|
-
bd-a1b2c3: OAuth implementation
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
**Example with breaking change:**
|
|
140
|
-
|
|
141
|
-
```
|
|
142
|
-
feat(api)!: change response format
|
|
143
|
-
|
|
144
|
-
BREAKING CHANGE: API responses now use camelCase instead of snake_case.
|
|
145
|
-
Migration guide: https://...
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
Ask user:
|
|
149
|
-
|
|
150
|
-
```
|
|
151
|
-
Use this message? (yes/edit/cancel)
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
## Phase 5: Execute Commit
|
|
155
|
-
|
|
156
|
-
```bash
|
|
157
|
-
git commit -m "<message>"
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
**If pre-commit hook fails:**
|
|
161
|
-
|
|
162
|
-
```
|
|
163
|
-
Pre-commit hook failed:
|
|
164
|
-
━━━━━━━━━━━━━━━━━━━━━━━
|
|
165
|
-
|
|
166
|
-
[hook output]
|
|
167
|
-
|
|
168
|
-
Options:
|
|
169
|
-
1. Fix issues and retry: /commit [bead-id]
|
|
170
|
-
2. Skip hook (not recommended): git commit --no-verify -m "..."
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
**Do NOT use --amend** unless:
|
|
174
|
-
|
|
175
|
-
1. User explicitly requested `--amend`
|
|
176
|
-
2. You created the HEAD commit in this session
|
|
177
|
-
3. Commit has NOT been pushed to remote
|
|
178
|
-
|
|
179
|
-
## Phase 6: Sync (for multi-agent)
|
|
180
|
-
|
|
181
|
-
If bead ID was provided:
|
|
182
|
-
|
|
183
|
-
```bash
|
|
184
|
-
bd sync
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
## Output
|
|
188
|
-
|
|
189
|
-
```
|
|
190
|
-
Committed: [short-hash]
|
|
191
|
-
━━━━━━━━━━━━━━━━━━━━━━━
|
|
192
|
-
|
|
193
|
-
Message: <type>(<scope>): <summary>
|
|
194
|
-
Files: [N] changed
|
|
195
|
-
Bead: <bead-id> (if provided)
|
|
196
|
-
|
|
197
|
-
Verification: All gates passed ✓
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
**Next steps:**
|
|
201
|
-
|
|
202
|
-
```
|
|
203
|
-
Continue working:
|
|
204
|
-
[make more changes]
|
|
205
|
-
/commit [bead-id]
|
|
206
|
-
|
|
207
|
-
Ready to finish:
|
|
208
|
-
/finish <bead-id>
|
|
209
|
-
|
|
210
|
-
Create PR:
|
|
211
|
-
/pr <bead-id>
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
## Amend Workflow (--amend)
|
|
215
|
-
|
|
216
|
-
**Safety checks before amend:**
|
|
217
|
-
|
|
218
|
-
!`git log -1 --format='%H %s'` # What we're amending
|
|
219
|
-
!`git status` # Check if pushed
|
|
220
|
-
|
|
221
|
-
```
|
|
222
|
-
Amend Safety Check:
|
|
223
|
-
━━━━━━━━━━━━━━━━━━━
|
|
224
|
-
|
|
225
|
-
HEAD commit: [hash] [message]
|
|
226
|
-
Pushed to remote: [yes/no]
|
|
227
|
-
Created by you: [yes/no]
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
**If pushed or not created by you: STOP.**
|
|
231
|
-
|
|
232
|
-
```
|
|
233
|
-
Cannot amend: Commit already pushed or not created by you.
|
|
234
|
-
|
|
235
|
-
Use a new commit instead:
|
|
236
|
-
git add <files>
|
|
237
|
-
/commit [bead-id]
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
**If safe to amend:**
|
|
241
|
-
|
|
242
|
-
```bash
|
|
243
|
-
git add <files>
|
|
244
|
-
git commit --amend -m "<updated message>"
|
|
245
|
-
```
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Complete the next incomplete PRD task for a bead
|
|
3
|
-
argument-hint: "<bead-id>"
|
|
4
|
-
agent: build
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Complete Next Task: $ARGUMENTS
|
|
8
|
-
|
|
9
|
-
Complete one task from a bead PRD task list.
|
|
10
|
-
|
|
11
|
-
This command is **Beads-native**:
|
|
12
|
-
|
|
13
|
-
- PRD: `.beads/artifacts/<bead-id>/prd.md`
|
|
14
|
-
- Tasks: `.beads/artifacts/<bead-id>/prd.json`
|
|
15
|
-
- Progress: `.beads/artifacts/<bead-id>/progress.txt`
|
|
16
|
-
|
|
17
|
-
## Preconditions
|
|
18
|
-
|
|
19
|
-
- A bead exists: `bd show $ARGUMENTS`
|
|
20
|
-
- PRD task list exists:
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
ls ".beads/artifacts/$ARGUMENTS/prd.json"
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
If missing:
|
|
27
|
-
|
|
28
|
-
- Create PRD: `.beads/artifacts/$ARGUMENTS/prd.md` (use `skill({ name: "prd" })`)
|
|
29
|
-
- Convert: `skill({ name: "prd-task" })`
|
|
30
|
-
|
|
31
|
-
## Process
|
|
32
|
-
|
|
33
|
-
### 1) Get Bearings
|
|
34
|
-
|
|
35
|
-
- Read `.beads/artifacts/$ARGUMENTS/progress.txt` (create if missing)
|
|
36
|
-
- Read `.beads/artifacts/$ARGUMENTS/prd.json`
|
|
37
|
-
- Pick the next task with `passes: false`
|
|
38
|
-
|
|
39
|
-
### 2) Implement the Task
|
|
40
|
-
|
|
41
|
-
Implement only what’s needed to satisfy the verification steps.
|
|
42
|
-
|
|
43
|
-
### 3) Run Feedback Loops (Required)
|
|
44
|
-
|
|
45
|
-
Run what applies to the repo:
|
|
46
|
-
|
|
47
|
-
- tests
|
|
48
|
-
- lint
|
|
49
|
-
- typecheck
|
|
50
|
-
|
|
51
|
-
Do not commit if any fail.
|
|
52
|
-
|
|
53
|
-
### 4) Update PRD JSON
|
|
54
|
-
|
|
55
|
-
Set that task’s `passes` to `true`.
|
|
56
|
-
|
|
57
|
-
### 5) Update Progress Log
|
|
58
|
-
|
|
59
|
-
Append a short entry to `.beads/artifacts/$ARGUMENTS/progress.txt`:
|
|
60
|
-
|
|
61
|
-
```markdown
|
|
62
|
-
## Task - <task.id>
|
|
63
|
-
|
|
64
|
-
- What was implemented
|
|
65
|
-
- Files changed
|
|
66
|
-
- Learnings / patterns
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### 6) Commit (Ask First)
|
|
70
|
-
|
|
71
|
-
Show staged changes and ask user before committing.
|
|
72
|
-
|
|
73
|
-
## Completion
|
|
74
|
-
|
|
75
|
-
If all tasks have `passes: true`, report that the PRD is complete and recommend:
|
|
76
|
-
|
|
77
|
-
- `/finish $ARGUMENTS`
|