plankit-cli 1.0.0 → 1.0.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/README.md CHANGED
@@ -1,71 +1,101 @@
1
1
  # `plankit` — AI Coding Agent Workflow Command Suite
2
2
 
3
- > [!IMPORTANT]
4
- > **PlanKit CLI** is a lightweight, zero-dependency command-line tool that installs the **PlanKit Command Suite** (`plankit.plan`, `plankit.clarify`, `plankit.implement`, `plankit.review`) into any project. Works seamlessly with **Google Antigravity**, **OpenCode**, **Codex**, **Cursor**, and **Claude Code**.
3
+ PlanKit is a lightweight, zero-dependency CLI that installs and manages a multi-phase feature workflow for AI coding assistants.
5
4
 
6
- ---
5
+ It creates a predictable artifact structure, agent instruction files, phase specs, phase output reports, and archive records.
7
6
 
8
- ## Quick Start (Usage without installation)
9
-
10
- Run in any project directory:
7
+ ## Quick start
11
8
 
12
9
  ```bash
13
10
  npx plankit-cli init
11
+ npx plankit-cli plan my-feature "Add configurable templates"
14
12
  ```
15
13
 
16
- This single command sets up all required configuration files and folders:
17
- - `artifacts/current/` & `artifacts/archived/`
18
- - `artifacts/PLANKIT.md` (Specification)
19
- - `.gemini/instructions.md` (Antigravity binding)
20
- - `.opencode/commands/*.md` (OpenCode Markdown custom commands)
21
- - `.cursorrules` (Cursor rules)
22
- - `AGENTS.md` (Codex / Claude Code universal instructions)
14
+ If installed globally:
23
15
 
24
- ---
16
+ ```bash
17
+ npm install -g plankit-cli
18
+ plankit init
19
+ plankit plan my-feature
20
+ ```
25
21
 
26
- ## Global Installation (Optional)
22
+ ## Commands
23
+
24
+ | Command | Action |
25
+ |---|---|
26
+ | `plankit init` | Create PlanKit config, artifact folders, spec, and selected agent bindings. |
27
+ | `plankit plan <feature> [requirements]` | Create `artifacts/current/<feature>/` with README, phase specs, outputs folder, and state metadata. |
28
+ | `plankit clarify <feature> [phase]` | Create a clarification artifact for requirements and design decisions. |
29
+ | `plankit implement <feature> <phase>` | Validate phase context and prepare `outputs/phase-N-output.md`. |
30
+ | `plankit review <feature>` | Run verification commands, mark the README archived, and move the feature to `artifacts/archived/`. |
31
+ | `plankit status [--json]` | List active and archived features. |
32
+ | `plankit archive <feature>` | Move a feature to archived without running verification. |
33
+
34
+ ## Customization
35
+
36
+ `plankit init` creates `plankit.config.json`:
37
+
38
+ ```json
39
+ {
40
+ "artifactsDir": "artifacts",
41
+ "overwrite": "skip",
42
+ "agents": {
43
+ "codex": true,
44
+ "cursor": true,
45
+ "opencode": true,
46
+ "gemini": true
47
+ },
48
+ "defaultPhases": [
49
+ {
50
+ "title": "Foundation & Setup",
51
+ "slug": "foundation",
52
+ "objective": "Establish the base structure, constraints, and integration points.",
53
+ "tasks": ["Confirm scope and constraints", "Prepare base structure"]
54
+ }
55
+ ],
56
+ "verification": {
57
+ "testCommand": "npm test",
58
+ "buildCommand": "npm run build"
59
+ },
60
+ "templatesDir": null
61
+ }
62
+ ```
27
63
 
28
- Install globally using `npm`:
64
+ Useful options:
29
65
 
30
66
  ```bash
31
- npm install -g plankit-cli
67
+ plankit init --agents codex,opencode
68
+ plankit init --force
69
+ plankit plan my-feature --phases 4
70
+ plankit plan my-feature --phases "Design,Build,Test"
71
+ plankit review my-feature --test-command "pnpm test" --build-command "pnpm build"
72
+ plankit review my-feature --skip-build
73
+ plankit status --json
32
74
  ```
33
75
 
34
- Then run anywhere:
76
+ ## Template overrides
35
77
 
36
- ```bash
37
- plankit init
38
- plankit plan <feature-name>
39
- plankit status
40
- plankit archive <feature-name>
78
+ Default templates live in the package `templates/` directory. To override them in a project:
79
+
80
+ 1. Create a directory such as `.plankit/templates`.
81
+ 2. Set `"templatesDir": ".plankit/templates"` in `plankit.config.json`.
82
+ 3. Add files matching the built-in template names, for example:
83
+
84
+ ```text
85
+ .plankit/templates/
86
+ AGENTS.md
87
+ PLANKIT.md
88
+ feature-readme.md
89
+ phase-spec.md
90
+ opencode/
91
+ plankit-plan.md
41
92
  ```
42
93
 
43
- ---
94
+ Supported placeholders use `{{name}}` syntax.
44
95
 
45
- ## Commands Summary
96
+ ## Verification
46
97
 
47
- | Command | Action |
48
- |---|---|
49
- | `plankit init` | Scaffolds PlanKit configs & folders in the current directory. |
50
- | `plankit plan <feature>` | Scaffolds a new feature workspace under `artifacts/current/<feature>/`. |
51
- | `plankit status` | Lists all active and archived features. |
52
- | `plankit archive <feature>` | Moves a completed feature to `artifacts/archived/<feature>/`. |
53
-
54
- ---
55
-
56
- ## Publishing to NPM
57
-
58
- To publish this package to the official NPM registry so anyone in the world can run `npx plankit init`:
59
-
60
- 1. Log in to your NPM account:
61
- ```bash
62
- npm login
63
- ```
64
- 2. Navigate to the `packages/plankit` directory:
65
- ```bash
66
- cd packages/plankit
67
- ```
68
- 3. Publish to NPM:
69
- ```bash
70
- npm publish --access public
71
- ```
98
+ ```bash
99
+ npm test
100
+ npm pack --dry-run
101
+ ```
package/package.json CHANGED
@@ -1,12 +1,21 @@
1
1
  {
2
2
  "name": "plankit-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "PlanKit Command Suite CLI for AI Coding Assistants (Antigravity, OpenCode, Codex, Cursor)",
5
5
  "main": "src/cli.js",
6
6
  "bin": {
7
7
  "plankit": "bin/plankit.js"
8
8
  },
9
9
  "type": "module",
10
+ "files": [
11
+ "bin",
12
+ "src",
13
+ "templates",
14
+ "README.md"
15
+ ],
16
+ "engines": {
17
+ "node": ">=18"
18
+ },
10
19
  "scripts": {
11
20
  "start": "node bin/plankit.js",
12
21
  "test": "node --test"