plan-atlas 0.2.0 → 0.3.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/CHANGELOG.md CHANGED
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.0] - 2026-12-02
11
+
12
+ ### Added
13
+
14
+ - **Spec-driven workflow.** Plan Atlas now guides work on a feature through specify, plan, tasks, implement and converge, with optional clarify, checklist and analyze steps chosen from signals in the spec. A feature is a folder in `~/.plan-atlas` holding `spec.md`, one `plan.md`, checklists, design documents and notes written during tasks. Adapted from [github/spec-kit](https://github.com/github/spec-kit) and [obra/superpowers](https://github.com/obra/superpowers) (both MIT). Small work stays a plain plan.
15
+ - 9 `atlas-*` step skills plus an updated `plan-atlas` skill, installed by `plan-atlas setup` and removed by `plan-atlas uninstall-claude`.
16
+ - 10 new MCP tools: `create_feature`, `update_spec`, `set_track`, `get_feature`, `list_features`, `write_doc`, `write_checklist`, `record_converge`, `get_constitution`, `update_constitution`; `create_plan` accepts `feature_id`.
17
+ - Feature page with **Flow**, **Spec**, **Plan**, **Checklists** and **Documents** tabs, a flow map of the workflow steps, checklist ticking and track confirmation on the web, and features on the project page and in search.
18
+ - Task fields `story`, `covers`, `converge` and `gap` in plans.
19
+ - Launching Plan Atlas updates already-installed Skills to the current version (it never installs them when setup was declined). Upgrading: run `plan-atlas setup` again if skills are missing.
20
+ - README (English and Vietnamese) and the project site explain what installing Plan Atlas sets up.
21
+
22
+ ### Changed
23
+
24
+ - Specs, plans and notes are stored only in `~/.plan-atlas`; the Skill no longer asks Claude to write a copy into the repository.
25
+
10
26
  ## [0.2.0] - 2026-12-01
11
27
 
12
28
  ### Added
package/README.md CHANGED
@@ -25,6 +25,7 @@ Plan Atlas collects the plans Claude Code produces, organizes them by project an
25
25
  - [Installation](#installation)
26
26
  - [Getting started](#getting-started)
27
27
  - [Usage](#usage)
28
+ - [What Plan Atlas sets up when you install it](#what-plan-atlas-sets-up-when-you-install-it)
28
29
  - [Claude Code integration](#claude-code-integration)
29
30
  - [Configuration](#configuration)
30
31
  - [Plan format](#plan-format)
@@ -36,6 +37,8 @@ Plan Atlas collects the plans Claude Code produces, organizes them by project an
36
37
  ## Features
37
38
 
38
39
  - **Central plan store.** Plans from every project live in one place, grouped by project. Plans already in `~/.claude/plans` are imported automatically, and plans stored anywhere else can be imported from a file or folder. Source files are never modified.
40
+ - **Spec-driven workflow.** For work users will see, Claude follows specify, plan, tasks, implement and converge, with optional clarify, checklist and analyze steps. Specs, plans, checklists and the notes written during each task are stored together per feature. See [what Plan Atlas sets up](#what-plan-atlas-sets-up-when-you-install-it).
41
+ - **Feature flow map.** A Flow tab for each feature shows the current workflow step, the documents each step produced and the converge rounds. Tick checklist items and confirm the proposed steps on the web.
39
42
  - **Plans as documents.** A consistent structure (Overview, Requirements & Scope, Technical Analysis, Task Breakdown, Risks & Rollback) with a section outline that follows your reading position.
40
43
  - **Task tracking.** Each task carries a status, a complexity score from 1 to 5 and a recommended model and effort level. Update tasks from a board by drag and drop.
41
44
  - **Flow view.** Each plan has a Flow tab showing which tasks depend on each other, which can run in parallel and the critical path.
@@ -114,18 +117,98 @@ Plans kept outside `~/.claude/plans` can be imported from the interface or the c
114
117
 
115
118
  Folders are searched recursively for `*.md` files. Hidden directories, `node_modules` and `target` are skipped. Without `--project`, each plan is assigned to the Git repository that contains it, then to the project of the Claude Code session that wrote it, and otherwise to `unsorted`.
116
119
 
120
+ ## What Plan Atlas sets up when you install it
121
+
122
+ Installing the binary and running `plan-atlas setup` (offered on first launch) does three things in Claude Code, and nothing else:
123
+
124
+ | What | Where | What it is for |
125
+ |---|---|---|
126
+ | **10 Skills** | `~/.claude/skills/plan-atlas/` and `~/.claude/skills/atlas-*/` | `plan-atlas` is the coordinating skill; nine `atlas-*` skills guide one workflow step each |
127
+ | **Hooks** | `~/.claude/settings.json` (timestamped backup first, existing hooks kept) | `PreToolUse`, `SubagentStart`, `SubagentStop`, `SessionEnd`: show live what Claude and each subagent do |
128
+ | **MCP server, 18 tools** | `claude mcp add --transport stdio --scope user plan-atlas -- plan-atlas mcp` | The only way Claude writes plans, specs and notes; it never writes into `~/.plan-atlas` directly |
129
+
130
+ The 18 MCP tools:
131
+
132
+ - **Plans:** `list_plans`, `search_plans`, `get_plan`, `get_taxonomy`, `create_plan`, `update_plan`
133
+ - **Tasks:** `start_task`, `complete_task`
134
+ - **Features:** `create_feature`, `update_spec`, `set_track`, `get_feature`, `list_features`, `write_doc`, `write_checklist`, `record_converge`
135
+ - **Constitution:** `get_constitution`, `update_constitution`
136
+
137
+ ### The workflow it applies
138
+
139
+ The workflow adapts [github/spec-kit](https://github.com/github/spec-kit) (spec-driven development: spec, plan, tasks, `US`/`FR`/`SC`/`CHK` codes, checklists that test the requirements text) and the way [obra/superpowers](https://github.com/obra/superpowers) asks questions and verifies work. The `atlas-*` skills tell Claude to keep the superpowers question-and-answer style, but to save every spec, plan and document in Plan Atlas instead of in your repository.
140
+
141
+ ```
142
+ specify ──► plan ──► tasks ──► implement ──► converge
143
+ │ │ │ gaps found → new tasks ─┐
144
+ clarify checklist analyze (optional) └──────────── repeat ◄─────┘
145
+ ```
146
+
147
+ The five steps in the top row are the **short path**, always used for a feature. Three steps are optional and are switched on by signals in the spec; Claude proposes them with a reason, and you confirm on the web or in chat before the plan step starts:
148
+
149
+ | Optional step | Switched on when |
150
+ |---|---|
151
+ | clarify | the spec still has `[NEEDS CLARIFICATION]` markers or vague scope (asks up to 5 questions, one at a time) |
152
+ | checklist | it touches security, API, UI, performance or data (one checklist per domain, "unit tests for the requirements text") |
153
+ | analyze | 2 or more user stories, more than about 15 tasks, or the project has a constitution (read-only consistency report) |
154
+
155
+ A project can also have a **constitution** (core principles and governance, once per project) that the workflow checks against. It is optional and not part of the per-feature flow.
156
+
157
+ **Converge** compares the finished work with the spec and plan. Each gap becomes a new task (`converge`, `gap`, `covers` fields); implement and converge repeat until a round finds 0 gaps. The checklists gate implement: if any are not fully ticked, Claude stops and asks before going on.
158
+
159
+ You do not have to run all nine steps. Small work (a bug fix, a config change, a dependency bump, cleanup) skips the workflow and stays a **plain plan** created with `create_plan`, shown like any other plan. When it is unclear, Claude asks you.
160
+
161
+ ### Where everything is stored
162
+
163
+ Only in `~/.plan-atlas`. Plan Atlas writes nothing into your project repositories, and it keeps no copies there. Back up `~/.plan-atlas` yourself if you need to.
164
+
165
+ ```
166
+ ~/.plan-atlas/plans/<project>/
167
+ constitution.md optional, one per project
168
+ 2026-11-20-old-plan.md a plain plan, unchanged
169
+ 003-product-reviews/ a feature: the folder contains spec.md
170
+ spec.md user stories, FR-001…, SC-001…, Clarifications
171
+ plan.md the feature's one plan, tasks inside
172
+ research.md data-model.md quickstart.md contracts/*.md
173
+ checklists/<domain>.md requirements.md, security.md, api.md, ui.md, ...
174
+ analysis.md report of the analyze step
175
+ docs/*.md notes and reports written while doing a task
176
+ ```
177
+
178
+ Markdown files stay the source of truth; the SQLite index can be deleted and rebuilt. Plans you already have keep their ids, paths and content.
179
+
180
+ ### In the web app
181
+
182
+ <p align="center">
183
+ <img src="docs/images/feature-flow.png" alt="The Flow tab of a feature: one box per workflow step with the documents it produced" width="900">
184
+ </p>
185
+
186
+ A feature page has the tabs **Flow**, **Spec**, **Plan**, **Checklists** and **Documents**. The Flow tab is a map of the workflow: which step the feature is in now, which steps are done, skipped or waiting, the documents each step produced (documents written during a task hang under that task), the converge rounds and their gaps. Click a requirement code such as `FR-003` to highlight the tasks that cover it; requirements no task covers are marked. A few quick actions are available, and nothing else is editable on the web:
187
+
188
+ - tick checklist items (written straight into the file),
189
+ - confirm or adjust the optional steps Claude proposed,
190
+ - change a task's status.
191
+
192
+ Answering clarify questions stays in the Claude Code conversation.
193
+
194
+ ### Credits
195
+
196
+ The workflow, its step names, the `US`/`FR`/`SC`/`CHK` codes and the checklist idea come from [github/spec-kit](https://github.com/github/spec-kit); the brainstorm-spec-plan-execute-verify discipline comes from [obra/superpowers](https://github.com/obra/superpowers). Both are MIT-licensed, and the skills credit them as sources. Thank you to both projects.
197
+
117
198
  ## Claude Code integration
118
199
 
119
200
  `plan-atlas setup` makes three changes to your Claude Code configuration:
120
201
 
121
202
  | Change | Location |
122
203
  |---|---|
123
- | Installs a Skill that tells Claude where and how to write plans | `~/.claude/skills/plan-atlas/SKILL.md` |
204
+ | Installs 10 Skills: `plan-atlas` tells Claude where and how to write plans and specs, and nine `atlas-*` skills guide the workflow steps | `~/.claude/skills/plan-atlas/`, `~/.claude/skills/atlas-*/` |
124
205
  | Adds hooks for `PreToolUse`, `SubagentStart`, `SubagentStop` and `SessionEnd` | `~/.claude/settings.json` (a timestamped backup is written first; existing hooks are preserved) |
125
206
  | Registers the MCP server | `claude mcp add --transport stdio --scope user plan-atlas -- plan-atlas mcp` |
126
207
 
127
208
  With the integration in place, Claude creates plans through the MCP server, records task progress, and links related plans. Plans written in Claude Code's plan mode are registered after you approve them. To revert all changes, run `plan-atlas uninstall-claude`.
128
209
 
210
+ **Upgrading:** when the Skills are already installed, launching a new version of `plan-atlas` updates them in place. Run `plan-atlas setup` again if skills are missing.
211
+
129
212
  ## Configuration
130
213
 
131
214
  | Setting | Default | Override |
@@ -173,6 +256,18 @@ Description and acceptance criteria.
173
256
 
174
257
  Supported relation types: `depends_on`, `extends`, `relates_to`. Task statuses: `todo`, `in_progress`, `review`, `done`.
175
258
 
259
+ A feature's `plan.md` uses the same format, plus optional task fields written by the workflow:
260
+
261
+ ```markdown
262
+ ### TASK-011: Limit comment length
263
+ - story: US1
264
+ - covers: [FR-002, SC-001]
265
+ - converge: 1
266
+ - gap: partial
267
+ ```
268
+
269
+ `story` links a task to a user story, `covers` lists the requirement and success-criteria codes it satisfies, and `converge` (round number) and `gap` (`missing`, `partial`, `contradicts` or `unrequested`) mark tasks created by a converge round.
270
+
176
271
  </details>
177
272
 
178
273
  ## Architecture
@@ -180,13 +275,14 @@ Supported relation types: `depends_on`, `extends`, `relates_to`. Task statuses:
180
275
  ```
181
276
  Claude Code ── MCP (stdio) ── plan-atlas mcp ──┐
182
277
  Claude Code ── hooks ──────── plan-atlas hook ─┼──► SQLite index ◄── plan-atlas server (127.0.0.1)
183
- ~/.plan-atlas/plans/*.md ◄─── file watcher ────┘ ▲
278
+ ~/.plan-atlas/plans/**/*.md ◄── file watcher ────┘ ▲
184
279
  browser
185
280
  ```
186
281
 
187
282
  - A single Rust binary provides the web server, MCP server, hook handler and installer. The Svelte interface is embedded in it.
188
283
  - Markdown files are the source of truth. The SQLite database is an index that can be deleted and rebuilt at any time.
189
284
  - Live updates reach the browser over Server-Sent Events.
285
+ - A feature is a folder (`NNN-name/`) containing `spec.md`; its `plan.md` is indexed as a normal plan, and the other Markdown files (checklists, documents) get their own readers. Step status on the Flow map is derived from the files, never stored separately.
190
286
 
191
287
  ## Security and privacy
192
288
 
@@ -19,7 +19,7 @@
19
19
  "hasInstallScript": true,
20
20
  "license": "MIT",
21
21
  "name": "plan-atlas",
22
- "version": "0.2.0"
22
+ "version": "0.3.0"
23
23
  },
24
24
  "node_modules/detect-libc": {
25
25
  "engines": {
@@ -48,5 +48,5 @@
48
48
  }
49
49
  },
50
50
  "requires": true,
51
- "version": "0.2.0"
51
+ "version": "0.3.0"
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/wik1ngst-1103/plan-atlas/releases/download/v0.2.0"
3
+ "https://github.com/wik1ngst-1103/plan-atlas/releases/download/v0.3.0"
4
4
  ],
5
5
  "bin": {
6
6
  "plan-atlas": "run-plan-atlas.js"
@@ -90,7 +90,7 @@
90
90
  "zipExt": ".tar.xz"
91
91
  }
92
92
  },
93
- "version": "0.2.0",
93
+ "version": "0.3.0",
94
94
  "volta": {
95
95
  "node": "18.14.1",
96
96
  "npm": "9.5.0"