work-kit-cli 0.2.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/README.md +147 -0
- package/cli/bin/work-kit.mjs +21 -0
- package/cli/src/commands/complete.ts +163 -0
- package/cli/src/commands/completions.ts +137 -0
- package/cli/src/commands/context.ts +41 -0
- package/cli/src/commands/doctor.ts +79 -0
- package/cli/src/commands/init.test.ts +116 -0
- package/cli/src/commands/init.ts +184 -0
- package/cli/src/commands/loopback.ts +64 -0
- package/cli/src/commands/next.ts +172 -0
- package/cli/src/commands/observe.ts +144 -0
- package/cli/src/commands/setup.ts +159 -0
- package/cli/src/commands/status.ts +50 -0
- package/cli/src/commands/uninstall.ts +89 -0
- package/cli/src/commands/upgrade.ts +12 -0
- package/cli/src/commands/validate.ts +34 -0
- package/cli/src/commands/workflow.ts +125 -0
- package/cli/src/config/agent-map.ts +62 -0
- package/cli/src/config/loopback-routes.ts +45 -0
- package/cli/src/config/phases.ts +119 -0
- package/cli/src/context/extractor.test.ts +77 -0
- package/cli/src/context/extractor.ts +73 -0
- package/cli/src/context/prompt-builder.ts +70 -0
- package/cli/src/engine/loopbacks.test.ts +33 -0
- package/cli/src/engine/loopbacks.ts +32 -0
- package/cli/src/engine/parallel.ts +60 -0
- package/cli/src/engine/phases.ts +23 -0
- package/cli/src/engine/transitions.test.ts +117 -0
- package/cli/src/engine/transitions.ts +97 -0
- package/cli/src/index.ts +253 -0
- package/cli/src/observer/data.ts +267 -0
- package/cli/src/observer/renderer.ts +364 -0
- package/cli/src/observer/watcher.ts +104 -0
- package/cli/src/state/helpers.test.ts +91 -0
- package/cli/src/state/helpers.ts +65 -0
- package/cli/src/state/schema.ts +113 -0
- package/cli/src/state/store.ts +82 -0
- package/cli/src/state/validators.test.ts +105 -0
- package/cli/src/state/validators.ts +81 -0
- package/cli/src/utils/colors.ts +12 -0
- package/package.json +50 -0
- package/skills/auto-kit/SKILL.md +216 -0
- package/skills/build/SKILL.md +88 -0
- package/skills/build/stages/commit.md +43 -0
- package/skills/build/stages/core.md +48 -0
- package/skills/build/stages/integration.md +44 -0
- package/skills/build/stages/migration.md +41 -0
- package/skills/build/stages/red.md +44 -0
- package/skills/build/stages/refactor.md +48 -0
- package/skills/build/stages/setup.md +42 -0
- package/skills/build/stages/ui.md +51 -0
- package/skills/deploy/SKILL.md +62 -0
- package/skills/deploy/stages/merge.md +59 -0
- package/skills/deploy/stages/monitor.md +39 -0
- package/skills/deploy/stages/remediate.md +54 -0
- package/skills/full-kit/SKILL.md +197 -0
- package/skills/plan/SKILL.md +77 -0
- package/skills/plan/stages/architecture.md +53 -0
- package/skills/plan/stages/audit.md +58 -0
- package/skills/plan/stages/blueprint.md +60 -0
- package/skills/plan/stages/clarify.md +61 -0
- package/skills/plan/stages/investigate.md +47 -0
- package/skills/plan/stages/scope.md +46 -0
- package/skills/plan/stages/sketch.md +44 -0
- package/skills/plan/stages/ux-flow.md +49 -0
- package/skills/review/SKILL.md +104 -0
- package/skills/review/stages/compliance.md +48 -0
- package/skills/review/stages/handoff.md +59 -0
- package/skills/review/stages/performance.md +45 -0
- package/skills/review/stages/security.md +49 -0
- package/skills/review/stages/self-review.md +41 -0
- package/skills/test/SKILL.md +83 -0
- package/skills/test/stages/e2e.md +44 -0
- package/skills/test/stages/validate.md +51 -0
- package/skills/test/stages/verify.md +41 -0
- package/skills/wrap-up/SKILL.md +81 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: wrap-up
|
|
3
|
+
description: "Final step: Synthesize all phase outputs into a work-kit log summary and clean up."
|
|
4
|
+
user-invocable: false
|
|
5
|
+
allowed-tools: Bash, Read, Write, Edit, Glob, Grep
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Wrap-up
|
|
9
|
+
|
|
10
|
+
**Role:** Work Historian
|
|
11
|
+
**Goal:** Produce a concise, useful summary of what was built and why — then clean up.
|
|
12
|
+
|
|
13
|
+
## Instructions
|
|
14
|
+
|
|
15
|
+
> **Note:** Archiving state.md and appending to `.claude/work-kit/index.md` are handled automatically by the CLI when you run `work-kit complete` on the last sub-stage. You do NOT need to do these manually.
|
|
16
|
+
|
|
17
|
+
1. **Read the full `.work-kit/state.md`** — every phase output from Plan through the last completed phase
|
|
18
|
+
2. **Synthesize the work-kit log entry** — not a copy-paste of state, but a distilled record that a future developer (or agent) would find useful
|
|
19
|
+
3. **Write the summary file** to `.claude/work-kit/<date>-<slug>.md` on the **main branch** (not the worktree)
|
|
20
|
+
4. **Ask the user** if they want the worktree and branch removed
|
|
21
|
+
|
|
22
|
+
## Work-Kit Log Entry Format
|
|
23
|
+
|
|
24
|
+
Write to `.claude/work-kit/<YYYY-MM-DD>-<slug>.md`:
|
|
25
|
+
|
|
26
|
+
```markdown
|
|
27
|
+
---
|
|
28
|
+
slug: <slug>
|
|
29
|
+
branch: feature/<slug>
|
|
30
|
+
pr: <#number or n/a>
|
|
31
|
+
started: <YYYY-MM-DD>
|
|
32
|
+
completed: <YYYY-MM-DD>
|
|
33
|
+
status: <completed | partial | rolled-back>
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Summary
|
|
37
|
+
<2-3 sentences: what was built, why it was needed, and the end state>
|
|
38
|
+
|
|
39
|
+
## Criteria
|
|
40
|
+
<copy the final criteria checklist from state.md — checked and unchecked>
|
|
41
|
+
|
|
42
|
+
## Key Decisions
|
|
43
|
+
<only the non-obvious ones — decisions where the alternative was reasonable>
|
|
44
|
+
- <decision>: <what was chosen> — <why, in one line>
|
|
45
|
+
|
|
46
|
+
## Deviations from Plan
|
|
47
|
+
<anything that changed between Blueprint and final implementation — skip if none>
|
|
48
|
+
- <what changed and why>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## What to Include vs. Exclude
|
|
52
|
+
|
|
53
|
+
**Include:**
|
|
54
|
+
- Decisions where you chose between real alternatives
|
|
55
|
+
- Deviations from the Blueprint (and why)
|
|
56
|
+
- Anything a future developer would need to understand the "why" behind the code
|
|
57
|
+
- Criteria status — what was met, what wasn't
|
|
58
|
+
|
|
59
|
+
**Exclude:**
|
|
60
|
+
- Artifact lists (files, PRs, migrations) — derivable from git
|
|
61
|
+
- Routine implementation details ("created file X, modified file Y")
|
|
62
|
+
- Full phase outputs — the summary is a distillation, not a dump
|
|
63
|
+
- Internal process notes ("ran tests 3 times before they passed")
|
|
64
|
+
- Anything derivable from the git diff or PR description
|
|
65
|
+
|
|
66
|
+
## Cleanup
|
|
67
|
+
|
|
68
|
+
After writing the summary:
|
|
69
|
+
|
|
70
|
+
1. Switch to main branch: `cd` back to the main repo root
|
|
71
|
+
2. Stage and commit all work-kit log files:
|
|
72
|
+
```bash
|
|
73
|
+
git add .claude/work-kit/
|
|
74
|
+
git commit -m "work-kit: <slug>"
|
|
75
|
+
```
|
|
76
|
+
3. Remove the worktree and delete the feature branch (merge already happened, cleanup is safe):
|
|
77
|
+
```bash
|
|
78
|
+
git worktree remove worktrees/<slug> --force
|
|
79
|
+
git branch -d feature/<slug> 2>/dev/null || true
|
|
80
|
+
```
|
|
81
|
+
4. Report: summary written, worktree removed, branch deleted, done.
|