aetervie-kit 0.0.0-stage → 0.1.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.
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "aetervie-kit",
3
+ "owner": {
4
+ "name": "aetervie"
5
+ },
6
+ "description": "The aetervie product-development pipeline.",
7
+ "plugins": [
8
+ {
9
+ "name": "aetervie",
10
+ "source": ".",
11
+ "description": "Product-development pipeline for Claude Code: size, recall, clarify, plan, build, verify, review, wrap up."
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "aetervie",
3
+ "version": "0.1.0",
4
+ "description": "Product-development pipeline for Claude Code: size, recall, clarify, plan, build, verify, review, wrap up.",
5
+ "author": {
6
+ "name": "aetervie"
7
+ },
8
+ "license": "MIT",
9
+ "keywords": [
10
+ "workflow",
11
+ "pipeline",
12
+ "spec-driven-development",
13
+ "tdd",
14
+ "code-review"
15
+ ]
16
+ }
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 aetervie
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,98 @@
1
- # Temporary Holding Version
1
+ # aetervie-kit
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A product-development pipeline for Claude Code. One command takes a plain-language request
4
+ through **size → recall → clarify → plan → build → verify → review → wrap up**, and stops
5
+ only where a human decision is needed.
6
+
7
+ No other plugins needed, no runtime dependencies: just Markdown that Claude reads.
8
+
9
+ ## Install
10
+
11
+ Pick one. Both run the same process.
12
+
13
+ ### As a plugin (all your projects)
14
+
15
+ ```sh
16
+ npm i -g aetervie-kit
17
+ claude plugin marketplace add "$(npm root -g)/aetervie-kit"
18
+ claude plugin install aetervie@aetervie-kit
19
+ ```
20
+
21
+ Then in Claude Code: `/aetervie:flow <request>`.
22
+
23
+ ### Into one project (versioned with the repo, editable)
24
+
25
+ Needs Node.js 18 or later.
26
+
27
+ ```sh
28
+ npx aetervie-kit init
29
+ ```
30
+
31
+ Then in Claude Code: `/av-flow <request>`. Commit `.aetervie/` and `.claude/commands/` so
32
+ the whole team runs the same process and shares the same memory.
33
+
34
+ ## Use
35
+
36
+ | | Plugin | Project install |
37
+ |---|---|---|
38
+ | Full pipeline | `/aetervie:flow <request>` | `/av-flow <request>` |
39
+ | One phase | `/aetervie:plan`, `/aetervie:review`, … | `/av-plan`, `/av-review`, … |
40
+
41
+ Phases: `recall`, `clarify`, `plan`, `build`, `verify`, `review`, `wrap`. A phase run on
42
+ its own sizes the request first, then runs only that phase. Nothing runs unless you call it
43
+ by name.
44
+
45
+ Fill in `.aetervie/constitution.md` with your project's rules and commands. The plugin
46
+ creates it on first use; `init` creates it right away.
47
+
48
+ ## How it works
49
+
50
+ The kit (the same files in both installs):
51
+
52
+ ```
53
+ flow.md orchestrator: sizing (S/M/L), phase order, loops, STOP points
54
+ run.md runs a single phase
55
+ phases/*.md one file per phase: the single source of truth
56
+ templates/ spec.md, plan.md, tasks.md for large changes
57
+ seed/ starting constitution and memory
58
+ ```
59
+
60
+ Project state, always in your repo:
61
+
62
+ ```
63
+ .aetervie/
64
+ constitution.md your project rules; they win over the phases
65
+ memory/decisions.md non-obvious decisions and gotchas, kept across sessions
66
+ specs/NNN-slug/ spec, plan and tasks per large feature
67
+ ```
68
+
69
+ **Sizing.** S (obvious fix) runs recall, build, verify, wrap. M (a few files) runs every
70
+ phase with a light plan. L (new module, cross-layer) writes a full spec and can split tasks
71
+ across parallel subagents.
72
+
73
+ **Three STOP points**, the only times Claude asks you anything:
74
+ 1. clarify: a product decision only you can make (max 3 questions, each with a recommendation)
75
+ 2. plan: approve the plan for L changes
76
+ 3. wrap: commit / push / PR, never automatic
77
+
78
+ **Principles baked in:** smallest real change, test first, root cause before fix,
79
+ evidence before "done" (baseline vs treatment), review the diff like a stranger, write
80
+ memory only for what git cannot tell you.
81
+
82
+ ## Customising and upgrading a project install
83
+
84
+ `init` copies the kit into `.aetervie/`. Edit any file there to change the process. To
85
+ upgrade, run `npx aetervie-kit@latest init` again:
86
+
87
+ - files you did not edit are refreshed,
88
+ - files you edited are kept and listed,
89
+ - `--force` overwrites the edited ones too and saves your version as `<file>.bak`,
90
+ - `constitution.md` and `memory/` are never overwritten.
91
+
92
+ `.aetervie/.manifest.json` records what was installed; commit it with the rest.
93
+
94
+ To upgrade the plugin: `npm i -g aetervie-kit@latest`, then `claude plugin update aetervie@aetervie-kit`.
95
+
96
+ ## License
97
+
98
+ MIT
@@ -0,0 +1,143 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ // Installs the kit into a project for Claude Code, as an alternative to the plugin.
5
+ // The plugin's skills are the single source: each becomes a project slash command.
6
+
7
+ const crypto = require('crypto');
8
+ const fs = require('fs');
9
+ const path = require('path');
10
+
11
+ const PKG = path.join(__dirname, '..');
12
+ const VERSION = require('../package.json').version;
13
+ const KIT = path.join(PKG, 'kit');
14
+ const SKILLS = path.join(PKG, 'skills');
15
+ const PLUGIN_KIT = '${CLAUDE_PLUGIN_ROOT}/kit';
16
+ const MANIFEST = '.aetervie/.manifest.json';
17
+
18
+ function readTree(dir, prefix, files = {}) {
19
+ for (const e of fs.readdirSync(dir, { withFileTypes: true })) {
20
+ const rel = `${prefix}/${e.name}`;
21
+ if (e.isDirectory()) readTree(path.join(dir, e.name), rel, files);
22
+ else files[rel] = fs.readFileSync(path.join(dir, e.name), 'utf8');
23
+ }
24
+ return files;
25
+ }
26
+
27
+ function commandFiles() {
28
+ const files = {};
29
+ for (const name of fs.readdirSync(SKILLS)) {
30
+ const skill = fs.readFileSync(path.join(SKILLS, name, 'SKILL.md'), 'utf8');
31
+ files[`.claude/commands/av-${name}.md`] = skill.split(PLUGIN_KIT).join('.aetervie');
32
+ }
33
+ return files;
34
+ }
35
+
36
+ // Line endings are normalised so a CRLF checkout does not look like a local edit.
37
+ const hash = (s) => crypto.createHash('sha256').update(s.replace(/\r\n/g, '\n')).digest('hex');
38
+
39
+ function write(root, rel, content) {
40
+ const file = path.join(root, rel);
41
+ fs.mkdirSync(path.dirname(file), { recursive: true });
42
+ fs.writeFileSync(file, content);
43
+ }
44
+
45
+ // Managed files: refresh the ones the user has not edited, keep the ones they have
46
+ // (unless --force, which saves the edit as <file>.bak first).
47
+ function install(root, files, manifest, force, out) {
48
+ for (const [rel, content] of Object.entries(files)) {
49
+ const file = path.join(root, rel);
50
+ const want = hash(content);
51
+ if (fs.existsSync(file)) {
52
+ const have = hash(fs.readFileSync(file, 'utf8'));
53
+ if (have === want) {
54
+ manifest[rel] = want;
55
+ out.unchanged.push(rel);
56
+ continue;
57
+ }
58
+ const edited = manifest[rel] !== have;
59
+ if (edited && !force) {
60
+ out.kept.push(rel);
61
+ continue;
62
+ }
63
+ if (edited) fs.copyFileSync(file, `${file}.bak`);
64
+ (edited ? out.overwritten : out.updated).push(rel);
65
+ } else {
66
+ out.created.push(rel);
67
+ }
68
+ write(root, rel, content);
69
+ manifest[rel] = want;
70
+ }
71
+ }
72
+
73
+ function fail(msg) {
74
+ console.error(`aetervie: ${msg}`);
75
+ process.exit(1);
76
+ }
77
+
78
+ function init(argv) {
79
+ let dir = null;
80
+ let force = false;
81
+ for (const a of argv) {
82
+ if (a === '--force') force = true;
83
+ else if (a.startsWith('-')) fail(`Unknown option: ${a}`);
84
+ else if (dir !== null) fail(`Only one directory is allowed, got "${dir}" and "${a}"`);
85
+ else dir = a;
86
+ }
87
+ const root = path.resolve(dir || '.');
88
+
89
+ let manifest = {};
90
+ try {
91
+ manifest = JSON.parse(fs.readFileSync(path.join(root, MANIFEST), 'utf8')).files || {};
92
+ } catch {
93
+ // First install, or an unreadable manifest: every existing file counts as edited.
94
+ }
95
+
96
+ const out = { created: [], updated: [], unchanged: [], kept: [], overwritten: [] };
97
+ install(root, { ...readTree(KIT, '.aetervie'), ...commandFiles() }, manifest, force, out);
98
+
99
+ // Constitution and memory belong to the user: created once from seed/, never touched again.
100
+ for (const [rel, content] of Object.entries(readTree(path.join(KIT, 'seed'), '.aetervie'))) {
101
+ if (fs.existsSync(path.join(root, rel))) continue;
102
+ write(root, rel, content);
103
+ out.created.push(rel);
104
+ }
105
+
106
+ const sorted = Object.fromEntries(Object.keys(manifest).sort().map((k) => [k, manifest[k]]));
107
+ write(root, MANIFEST, JSON.stringify({ version: VERSION, files: sorted }, null, 2) + '\n');
108
+
109
+ console.log(`aetervie-kit ${VERSION} initialised in ${root}`);
110
+ console.log(` created: ${out.created.length}, updated: ${out.updated.length}, unchanged: ${out.unchanged.length}`);
111
+ if (out.kept.length) {
112
+ console.log(' kept, edited locally (--force overwrites them and saves a .bak):');
113
+ for (const f of out.kept) console.log(` ${f}`);
114
+ }
115
+ if (out.overwritten.length) {
116
+ console.log(' overwritten, your version saved as <file>.bak:');
117
+ for (const f of out.overwritten) console.log(` ${f}`);
118
+ }
119
+ console.log('\nNext:');
120
+ console.log(' 1. Fill in .aetervie/constitution.md with your project rules.');
121
+ console.log(' 2. In Claude Code, run: /av-flow <request>');
122
+ }
123
+
124
+ function help() {
125
+ console.log(`aetervie-kit ${VERSION} - product-development pipeline for Claude Code
126
+
127
+ Usage:
128
+ aetervie init [dir] [--force]
129
+
130
+ Copies the kit into .aetervie/ and adds the /av-* slash commands to .claude/commands/.
131
+
132
+ Options:
133
+ --force Also overwrite kit files you edited; your version is saved as <file>.bak.
134
+ constitution.md and memory/ are never overwritten.
135
+
136
+ Run init again after upgrading: files you did not edit are refreshed automatically.`);
137
+ }
138
+
139
+ const [cmd, ...rest] = process.argv.slice(2);
140
+ if (cmd === 'init') init(rest);
141
+ else if (!cmd || ['help', '--help', '-h'].includes(cmd)) help();
142
+ else if (['--version', '-v'].includes(cmd)) console.log(VERSION);
143
+ else fail(`Unknown command "${cmd}". Run "aetervie help".`);
package/kit/flow.md ADDED
@@ -0,0 +1,55 @@
1
+ # aetervie flow — product-development pipeline
2
+
3
+ You are running the aetervie pipeline on the user's request. Take a request in plain
4
+ language through to a verified, reviewed change. If the request is empty, ask for it in one
5
+ line and stop.
6
+
7
+ ## Ground rules
8
+
9
+ - **Kit and project state.** The kit folder is the folder this file is in; it holds
10
+ `phases/`, `templates/` and `seed/`. Project state lives in `.aetervie/` at the repo root:
11
+ `constitution.md`, `memory/decisions.md` and `specs/`. If `constitution.md` or
12
+ `memory/decisions.md` is missing there, create it from the kit's `seed/` folder and say so
13
+ in one line.
14
+ - **Order of authority:** the user's words > `.aetervie/constitution.md` > project agent
15
+ files (AGENTS.md, CLAUDE.md, .cursor/rules, …) > this file.
16
+ - **Autonomy:** run the phases in order without asking anything, except at the three
17
+ **STOP** points. Reply in the user's language.
18
+ - **Progress:** one line per phase, numbered as in the list below, e.g. `[3/7] plan: 4 tasks`.
19
+ - **Smallest real change.** Every phase asks: what is the least work that fully solves the
20
+ request? If the request needs no code (already done, solvable by config), say so and stop.
21
+ - **Never** commit, push, open a PR, delete data or write to shared/production systems
22
+ unless the user says so in this session.
23
+ - **Tools are optional.** If a tool a phase mentions does not exist in this agent (browser
24
+ automation, subagents, …), say so in one line and use the closest manual equivalent.
25
+ Never stall.
26
+
27
+ ## 0. Size the request
28
+
29
+ Classify, then print the size and the phases that will run:
30
+
31
+ | Size | Looks like | Phases |
32
+ |---|---|---|
33
+ | **S** | one-file fix, typo, config, bug with an obvious cause | recall → build → verify → wrap |
34
+ | **M** | a feature or bug touching a few files | all, light plan |
35
+ | **L** | new module/screen, cross-layer change (DB + API + UI), architecture | all, full plan, parallel work |
36
+
37
+ When unsure between two sizes, pick the larger.
38
+
39
+ ## Phases
40
+
41
+ For each phase, read its file in the kit's `phases/` folder and follow it. Pass the size along.
42
+
43
+ 1. `phases/recall.md`
44
+ 2. `phases/clarify.md` (M/L) — **STOP 1** inside, only on real ambiguity
45
+ 3. `phases/plan.md` (M/L) — **STOP 2** inside, L only
46
+ 4. `phases/build.md`
47
+ 5. `phases/verify.md` — checks, real-app test, proof of done
48
+ 6. `phases/review.md` (M/L)
49
+ 7. `phases/wrap.md` — **STOP 3** inside: commit/PR only on the user's yes
50
+
51
+ ## Loops
52
+
53
+ - verify fails → back to build. review finds real issues → fix, then verify again.
54
+ - **Max 3 loops.** Then stop and report: what works, what is blocked, what you tried,
55
+ what you need from the user.
@@ -0,0 +1,35 @@
1
+ # Phase: build — small, proven steps
2
+
3
+ ## Before the first edit
4
+ - **Branch.** Never work on `main` or `master`; create a feature branch. If the working tree
5
+ has unrelated changes, use a separate worktree — never mix them into this change.
6
+ - **State the success check** for each task: the test, command or observation that proves it.
7
+
8
+ ## Write the code
9
+ - **Test first** when the project has a test harness:
10
+ 1. Write one failing test for the next behaviour. Run it. See it fail for the right reason.
11
+ 2. Write the least code that makes it pass. Run it. See it pass.
12
+ 3. Refactor only while green. Repeat.
13
+ No harness: write a minimal probe (script, curl, REPL call) and run it before and after.
14
+ - **Surgical diffs.** Touch only what the task needs. Match the surrounding style. Keep
15
+ existing comments. No drive-by renames, reformatting or "improvements".
16
+ - **Refactors** move in steps that keep the build green; run the tests after each step.
17
+ - **Follow existing patterns** found in recall. A new screen looks like its siblings.
18
+ - **UI work:** follow the project's design system. Cover every state (loading, empty, error,
19
+ disabled), keyboard access and contrast — not only the happy path.
20
+
21
+ ## Bugs: root cause first
22
+ 1. Reproduce it. No repro, no fix — build a repro first.
23
+ 2. One hypothesis at a time; test it with a log, a breakpoint or a minimal case.
24
+ 3. Fix the cause, not the symptom. Add a regression test that failed before the fix.
25
+ 4. Three failed hypotheses → stop guessing and re-read the code path end to end.
26
+
27
+ ## Build errors
28
+ Read the first error, not the last. Fix the minimum. Never silence types, lints or tests
29
+ to get green.
30
+
31
+ ## L: parallel work
32
+ Tasks marked `[P]` with disjoint files may go to parallel subagents if the agent supports
33
+ them. Give each: the spec, its task, the files it owns, the contracts it must not change,
34
+ and "no commit, no push". Afterwards, check that every changed file belongs to a task;
35
+ revert or flag anything else. Subagent output is untrusted until verify and review pass.
@@ -0,0 +1,19 @@
1
+ # Phase: clarify — make the goal falsifiable (M/L)
2
+
3
+ Goal: a goal statement that a test or a check can prove true or false.
4
+
5
+ 1. **Interrogate yourself first.** Write down every question the request leaves open: who
6
+ uses it, inputs, outputs, edge cases (empty, huge, invalid, concurrent, unauthorised),
7
+ error behaviour, where it shows up, what must not change.
8
+ 2. **Answer from evidence.** Answer each question from the code, memory, specs, docs and
9
+ similar existing features. Mark each answer with its source.
10
+ 3. **Sharpen.** Rewrite the request as:
11
+ `When <situation>, <actor> can <action>, and <observable result>. Done when <check>.`
12
+ 4. **STOP 1 — only if a product decision remains** that only the user can make (business
13
+ rule, UX choice, scope trade-off). Ask at most 3 questions in one message. Each question
14
+ stands alone, offers 2–4 options and marks one as recommended.
15
+ Otherwise do not ask: list your assumptions in ≤5 bullets and continue.
16
+ 5. **L with an unclear product shape:** sketch 2–3 approaches in one line each with the main
17
+ trade-off, pick one, say why.
18
+
19
+ Never ask what you could look up. Never ask for confirmation of something obvious.
@@ -0,0 +1,28 @@
1
+ # Phase: plan — decide before you type (M/L)
2
+
3
+ ## M — light plan
4
+ Write a checklist of 3–8 steps in the chat. Each step: the file(s), the change, how you
5
+ will check it. No files on disk.
6
+
7
+ ## L — full plan
8
+ Create `.aetervie/specs/<NNN>-<slug>/` (NNN = next free 3-digit number, slug = 2–4 kebab
9
+ words) and fill it from the templates in the kit's `templates/` folder (next to `phases/`):
10
+
11
+ 1. `spec.md` — what and why, no technology. User-visible behaviour, acceptance criteria,
12
+ edge cases, out of scope.
13
+ 2. `plan.md` — how. Choices that follow the existing code, exact contracts (API shapes,
14
+ schema changes, function signatures), data flow, risks, rollout/migration.
15
+ - Multi-state behaviour (status machine, approval, wizard): write the states and
16
+ transitions as a table or mermaid diagram before any code.
17
+ - Architecture choices: 2–3 options with trade-offs, pick one, record why.
18
+ 3. `tasks.md` — ordered tasks. Each has: id, files it owns, acceptance check, dependencies.
19
+ Mark tasks that can run in parallel with `[P]` (they must not share files).
20
+
21
+ ## Cut it down (both sizes)
22
+ Before showing the plan, delete every step the request does not require: speculative
23
+ options, configurability nobody asked for, abstractions with one caller, "while we're here"
24
+ refactors. Prefer the standard library and existing helpers to new code, and existing
25
+ dependencies to new ones.
26
+
27
+ ## STOP 2 (L only)
28
+ Show the plan in ≤15 lines (goal, approach, tasks, risks) and wait for "ok" or changes.
@@ -0,0 +1,23 @@
1
+ # Phase: recall — know before you touch
2
+
3
+ Goal: enough context to plan, without dumping the repo into your context.
4
+
5
+ 1. **Memory.** Read `.aetervie/memory/decisions.md`. Search it for the feature, module and
6
+ file names in the request. Past decisions and gotchas bind you unless the user overrides.
7
+ 2. **Prior specs.** List `.aetervie/specs/`. If a spec for this area exists, read its
8
+ `spec.md` and the end of its `tasks.md`.
9
+ 3. **Project rules.** Read `.aetervie/constitution.md` and any agent files at the repo root.
10
+ 4. **Map (M/L).** Find the entry points for the area: search for the user-visible words
11
+ (route, screen title, command name, error text), then follow imports one or two hops.
12
+ If the repo has a generated map (architecture doc, `docs/`, a code graph), read it first.
13
+ 5. **Blast radius (M/L).** For every symbol you expect to change, find its callers and its
14
+ tests. Note public contracts (API shapes, DB schema, exported functions, CLI flags) the
15
+ change could break.
16
+ 6. **Current behaviour.** For bugs: how the code behaves today and where it diverges from
17
+ what the user expects. For features: the closest existing feature and how it is built —
18
+ new code should look like it.
19
+
20
+ Locate, don't dump: read the parts of files you need, not whole trees.
21
+
22
+ Output (in your notes, or in the spec for L): files to touch, contracts at risk, patterns
23
+ to follow, relevant memory entries.
@@ -0,0 +1,22 @@
1
+ # Phase: review — read the diff like a stranger (M/L)
2
+
3
+ Read the full diff against the base branch. If the agent supports parallel subagents, run
4
+ the passes below in parallel and give each only the diff and the spec — not your own
5
+ conclusions. Then fix what is real and run verify again.
6
+
7
+ 1. **Correctness.** Does each change do what the spec says? Off-by-one, null/empty input,
8
+ error paths, concurrency, time zones, callers of changed contracts.
9
+ 2. **Simplicity.** Anything the request did not need: dead code, unused parameters,
10
+ one-caller abstractions, config nobody sets, checks for impossible states. Is there a
11
+ simpler standard alternative?
12
+ 3. **Slop.** Comments that restate the code, narration, inconsistent naming, copy-pasted
13
+ blocks, swallowed errors, leftover debug output.
14
+ 4. **Maintainability (L).** Files or functions that grew too large, deep nesting, tangled
15
+ conditions, hidden coupling.
16
+ 5. **Security** — when the diff touches auth, user input, SQL, files, network or secrets:
17
+ injection, missing authorisation, secrets in code or logs, unsafe deserialisation, path
18
+ traversal, SSRF.
19
+ 6. **Idioms.** The conventions of the language and framework in the diff.
20
+
21
+ One line per finding: `file:line`, severity, fix. Drop style nits that contradict project
22
+ conventions. Report only what you can point to in the diff.
@@ -0,0 +1,26 @@
1
+ # Phase: verify — evidence, not belief
2
+
3
+ Never say "done", "fixed" or "works" without output you just ran and read.
4
+
5
+ ## 1. Run the checks
6
+ Run the project's tests, type check, lint and build (commands from the constitution,
7
+ package scripts, Makefile, CI config or README). Read the output. A command you did not
8
+ run is not a check.
9
+
10
+ ## 2. Exercise it in the real app (UI or API changes)
11
+ - Start the app the way the project does.
12
+ - **UI:** open the page in a browser (automation tool if available), do what the user would
13
+ do, check the console and network for errors, capture a screenshot. Check empty and error
14
+ states too.
15
+ - **API:** call the endpoint; check status, response shape and one error case.
16
+ - **Shared or production data:** never write. Intercept or mock every write request.
17
+
18
+ ## 3. Prove the main claim
19
+ Write the claim ("bug X is fixed", "screen Y loads with data"). Show:
20
+ - **baseline** — behaviour before the change (from the repro, or stash and re-run),
21
+ - **treatment** — behaviour after.
22
+
23
+ Verdict: **VERIFIED**, **NOT VERIFIED**, or **INCONCLUSIVE** (say what evidence is missing).
24
+
25
+ ## 4. On failure
26
+ Back to build with the exact failing output. Max 3 loops, then stop and report.
@@ -0,0 +1,17 @@
1
+ # Phase: wrap — close the loop
2
+
3
+ 1. **Project hooks.** Run any post-change step the constitution or agent files require
4
+ (regenerate docs or maps, format, changelog).
5
+ 2. **Memory.** Append to `.aetervie/memory/decisions.md` only non-obvious facts a future
6
+ session needs: decisions and their reasons, gotchas, surprising constraints. Not the
7
+ diff, not what git already records. Format: `## YYYY-MM-DD — <title>` then 1–3 lines,
8
+ newest first. Fix or remove entries that turned out wrong.
9
+ 3. **Spec status (L).** Tick finished tasks in `tasks.md`; note anything deferred.
10
+ 4. **Report** to the user, short: what changed (files), how it was verified (real output or
11
+ verdict), what was skipped or is still open.
12
+ 5. **STOP 3 — commit, push and PR are never automatic.** Offer in one line: "Commit + PR?"
13
+ On yes: one commit per logical change, message in the repo's convention (imperative
14
+ subject ≤72 chars, body says why). PR description: goal, changes, verification, risks.
15
+ Every push needs the user's yes.
16
+ 6. **Unfinished work.** Write a handoff in the spec's `tasks.md` (or in chat for M): current
17
+ state, next step, open questions, commands to resume.
package/kit/run.md ADDED
@@ -0,0 +1,11 @@
1
+ # aetervie — run one phase
2
+
3
+ The skill that sent you here named one phase. The kit folder is the folder this file is in.
4
+
5
+ 1. **Rules.** Read the ground rules and section 0 of `flow.md` in the kit. They apply here.
6
+ 2. **Request.** If the request is empty, apply the phase to the work already in progress in
7
+ this conversation.
8
+ 3. **Size.** If no size (S/M/L) has been chosen for this work yet, size it with section 0 of
9
+ `flow.md`. The user asked for this phase by name, so run it even where the flow would
10
+ skip it at that size; treat S as M.
11
+ 4. **Run.** Read `phases/<phase>.md` in the kit and follow it exactly. Run only that phase.
@@ -0,0 +1,20 @@
1
+ # Constitution
2
+
3
+ Project rules every aetervie phase must follow. They win over the phase files.
4
+ This file is yours: `aetervie init --force` never overwrites it.
5
+
6
+ ## Always
7
+ - Commit, push and open PRs only when the user asks.
8
+ - Never write to shared or production data while testing; mock or intercept writes.
9
+
10
+ ## Commands
11
+ - Test: `<command>`
12
+ - Build: `<command>`
13
+ - Lint / type check: `<command>`
14
+ - Run app: `<command>`
15
+
16
+ ## Conventions
17
+ - <language, framework, folder layout, naming>
18
+
19
+ ## After every code change
20
+ - <e.g. regenerate docs, run formatter>
@@ -0,0 +1,3 @@
1
+ # Decisions & gotchas
2
+
3
+ <!-- One entry per non-obvious fact, newest first. Format: ## YYYY-MM-DD — <title>, then 1–3 lines. -->
@@ -0,0 +1,23 @@
1
+ # Plan: <title>
2
+
3
+ ## Approach
4
+ <2–5 lines: what, and why this over the alternatives.>
5
+
6
+ | Option | Pros | Cons |
7
+ |---|---|---|
8
+ | <chosen> | | |
9
+ | <rejected> | | |
10
+
11
+ ## Contracts
12
+ <API shapes, schema changes, function signatures, events. Exact.>
13
+
14
+ ## Data flow / states
15
+ <table or mermaid diagram>
16
+
17
+ ## Files
18
+ | File | Change |
19
+ |---|---|
20
+
21
+ ## Risks & rollout
22
+ - <risk> → <mitigation>
23
+ - Migration / backfill / feature flag: <if any>
@@ -0,0 +1,26 @@
1
+ # Spec: <title>
2
+
3
+ - **Id:** <NNN-slug>
4
+ - **Date:** <YYYY-MM-DD>
5
+ - **Status:** draft | approved | done
6
+
7
+ ## Goal
8
+ When <situation>, <actor> can <action>, and <observable result>.
9
+
10
+ ## Why
11
+ <problem this solves, for whom>
12
+
13
+ ## Behaviour
14
+ - <user-visible behaviour, one per line>
15
+
16
+ ## Acceptance criteria
17
+ - [ ] <check that proves it: a test, a command, an observation>
18
+
19
+ ## Edge cases
20
+ - <empty / invalid / huge / concurrent / unauthorised>
21
+
22
+ ## Out of scope
23
+ - <what this change will not do>
24
+
25
+ ## Assumptions
26
+ - <assumption> — source: <code / memory / user>
@@ -0,0 +1,15 @@
1
+ # Tasks: <title>
2
+
3
+ `[P]` = can run in parallel with other `[P]` tasks (no shared files).
4
+
5
+ - [ ] **T1** <task>
6
+ - Files: <owned files>
7
+ - Check: <test / command / observation>
8
+ - Depends on: —
9
+ - [ ] **T2** [P] <task>
10
+ - Files:
11
+ - Check:
12
+ - Depends on: T1
13
+
14
+ ## Handoff
15
+ <filled when work stops unfinished: state, next step, open questions, resume commands>
package/package.json CHANGED
@@ -1,6 +1,30 @@
1
1
  {
2
2
  "name": "aetervie-kit",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "A product-development pipeline for Claude Code: size, recall, clarify, plan, build, verify, review, wrap up. Ships as a plugin and as a CLI.",
5
+ "bin": {
6
+ "aetervie": "bin/aetervie.js"
7
+ },
8
+ "files": [
9
+ "bin",
10
+ "kit",
11
+ "skills",
12
+ ".claude-plugin"
13
+ ],
14
+ "engines": {
15
+ "node": ">=18"
16
+ },
17
+ "scripts": {
18
+ "test": "node test/smoke.js"
19
+ },
20
+ "keywords": [
21
+ "ai",
22
+ "agents",
23
+ "claude-code",
24
+ "claude-code-plugin",
25
+ "spec-driven-development",
26
+ "workflow"
27
+ ],
28
+ "author": "aetervie",
29
+ "license": "MIT"
30
+ }
@@ -0,0 +1,12 @@
1
+ ---
2
+ description: "Implement the current plan with tests first and surgical diffs."
3
+ argument-hint: <request>
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ Request: $ARGUMENTS
8
+
9
+ Kit folder: `${CLAUDE_PLUGIN_ROOT}/kit`
10
+ Phase: `build`
11
+
12
+ Read `run.md` in the kit folder and follow it for this phase.
@@ -0,0 +1,12 @@
1
+ ---
2
+ description: "Turn a vague request into a falsifiable goal; ask only what the code cannot answer."
3
+ argument-hint: <request>
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ Request: $ARGUMENTS
8
+
9
+ Kit folder: `${CLAUDE_PLUGIN_ROOT}/kit`
10
+ Phase: `clarify`
11
+
12
+ Read `run.md` in the kit folder and follow it for this phase.
@@ -0,0 +1,11 @@
1
+ ---
2
+ description: "Run the full aetervie pipeline (size, recall, clarify, plan, build, verify, review, wrap up) on a request."
3
+ argument-hint: <request>
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ Request: $ARGUMENTS
8
+
9
+ Kit folder: `${CLAUDE_PLUGIN_ROOT}/kit`
10
+
11
+ Read `flow.md` in the kit folder and follow it exactly for this request.
@@ -0,0 +1,12 @@
1
+ ---
2
+ description: "Write a spec, plan and ordered tasks for a request under .aetervie/specs/."
3
+ argument-hint: <request>
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ Request: $ARGUMENTS
8
+
9
+ Kit folder: `${CLAUDE_PLUGIN_ROOT}/kit`
10
+ Phase: `plan`
11
+
12
+ Read `run.md` in the kit folder and follow it for this phase.
@@ -0,0 +1,12 @@
1
+ ---
2
+ description: "Gather context for a request: memory, codebase map, files it will touch."
3
+ argument-hint: <request>
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ Request: $ARGUMENTS
8
+
9
+ Kit folder: `${CLAUDE_PLUGIN_ROOT}/kit`
10
+ Phase: `recall`
11
+
12
+ Read `run.md` in the kit folder and follow it for this phase.
@@ -0,0 +1,12 @@
1
+ ---
2
+ description: "Review the current diff for correctness, simplicity, slop and security; fix what is real."
3
+ argument-hint: <request>
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ Request: $ARGUMENTS
8
+
9
+ Kit folder: `${CLAUDE_PLUGIN_ROOT}/kit`
10
+ Phase: `review`
11
+
12
+ Read `run.md` in the kit folder and follow it for this phase.
@@ -0,0 +1,12 @@
1
+ ---
2
+ description: "Prove the change works: run tests/build and exercise it in the real app."
3
+ argument-hint: <request>
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ Request: $ARGUMENTS
8
+
9
+ Kit folder: `${CLAUDE_PLUGIN_ROOT}/kit`
10
+ Phase: `verify`
11
+
12
+ Read `run.md` in the kit folder and follow it for this phase.
@@ -0,0 +1,12 @@
1
+ ---
2
+ description: "Wrap up: record lessons in memory, report, offer commit/PR."
3
+ argument-hint: <request>
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ Request: $ARGUMENTS
8
+
9
+ Kit folder: `${CLAUDE_PLUGIN_ROOT}/kit`
10
+ Phase: `wrap`
11
+
12
+ Read `run.md` in the kit folder and follow it for this phase.