productkit 1.1.0 → 1.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 CHANGED
@@ -94,6 +94,7 @@ These markdown files are your product foundation — share them with your team,
94
94
  | Command | Description |
95
95
  |---------|-------------|
96
96
  | `productkit init <name>` | Scaffold a new project |
97
+ | `productkit status` | Show progress — which artifacts exist and what's next |
97
98
  | `productkit check` | Verify Claude Code is installed |
98
99
 
99
100
  ## How It Works
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "productkit",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Slash-command-driven product thinking toolkit for Claude Code",
5
5
  "main": "src/cli.js",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -4,13 +4,14 @@ const { Command } = require('commander');
4
4
  const chalk = require('chalk');
5
5
  const initCommand = require('./commands/init');
6
6
  const checkCommand = require('./commands/check');
7
+ const statusCommand = require('./commands/status');
7
8
 
8
9
  const program = new Command();
9
10
 
10
11
  program
11
12
  .name('productkit')
12
13
  .description(chalk.cyan.bold('Product thinking toolkit for Claude Code'))
13
- .version('1.1.0');
14
+ .version('1.2.0');
14
15
 
15
16
  program
16
17
  .command('init <projectName>')
@@ -22,6 +23,11 @@ program
22
23
  .description('Verify Claude Code is installed and available')
23
24
  .action(checkCommand);
24
25
 
26
+ program
27
+ .command('status')
28
+ .description('Show which artifacts exist and what steps remain')
29
+ .action(statusCommand);
30
+
25
31
  program.parse(process.argv);
26
32
 
27
33
  if (process.argv.length === 2) {
@@ -0,0 +1,66 @@
1
+ const fs = require('fs-extra');
2
+ const path = require('path');
3
+ const chalk = require('chalk');
4
+
5
+ const ARTIFACTS = [
6
+ { file: 'constitution.md', command: '/productkit.constitution', label: 'Constitution' },
7
+ { file: 'users.md', command: '/productkit.users', label: 'Users' },
8
+ { file: 'problem.md', command: '/productkit.problem', label: 'Problem' },
9
+ { file: 'assumptions.md', command: '/productkit.assumptions', label: 'Assumptions' },
10
+ { file: 'solution.md', command: '/productkit.solution', label: 'Solution' },
11
+ { file: 'priorities.md', command: '/productkit.prioritize', label: 'Priorities' },
12
+ { file: 'spec.md', command: '/productkit.spec', label: 'Spec' },
13
+ ];
14
+
15
+ async function status() {
16
+ const root = process.cwd();
17
+ const configPath = path.join(root, '.productkit', 'config.json');
18
+
19
+ if (!fs.existsSync(configPath)) {
20
+ console.error(chalk.red('Not a Product Kit project.'));
21
+ console.log('Run: productkit init <name>');
22
+ process.exit(1);
23
+ }
24
+
25
+ const done = [];
26
+ const remaining = [];
27
+
28
+ for (const artifact of ARTIFACTS) {
29
+ const exists = fs.existsSync(path.join(root, artifact.file));
30
+ if (exists) {
31
+ done.push(artifact);
32
+ } else {
33
+ remaining.push(artifact);
34
+ }
35
+ }
36
+
37
+ console.log();
38
+ console.log(chalk.bold(`Progress: ${done.length}/${ARTIFACTS.length} artifacts`));
39
+ console.log();
40
+
41
+ if (done.length > 0) {
42
+ console.log(chalk.green.bold('Completed:'));
43
+ for (const a of done) {
44
+ console.log(chalk.green(` done ${a.label} (${a.file})`));
45
+ }
46
+ console.log();
47
+ }
48
+
49
+ if (remaining.length > 0) {
50
+ console.log(chalk.yellow.bold('Remaining:'));
51
+ for (const a of remaining) {
52
+ console.log(chalk.yellow(` todo ${a.label} — run ${a.command}`));
53
+ }
54
+ console.log();
55
+ }
56
+
57
+ if (remaining.length === 0) {
58
+ console.log(chalk.green.bold('All artifacts complete!'));
59
+ console.log();
60
+ } else {
61
+ console.log(chalk.cyan(`Next step: ${remaining[0].command}`));
62
+ console.log();
63
+ }
64
+ }
65
+
66
+ module.exports = status;