productkit 1.5.0 → 1.6.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
@@ -98,6 +98,7 @@ These markdown files are your product foundation — share them with your team,
98
98
  | `productkit status` | Show progress — which artifacts exist and what's next |
99
99
  | `productkit update` | Refresh slash commands to the latest version |
100
100
  | `productkit reset` | Remove all artifacts and start over |
101
+ | `productkit list` | Show available slash commands with descriptions |
101
102
  | `productkit check` | Verify Claude Code is installed |
102
103
 
103
104
  ## How It Works
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "productkit",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Slash-command-driven product thinking toolkit for Claude Code",
5
5
  "main": "src/cli.js",
6
6
  "bin": {
@@ -20,6 +20,14 @@
20
20
  "slash-commands",
21
21
  "product-thinking"
22
22
  ],
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/iamquechua/product-kit.git"
26
+ },
27
+ "homepage": "https://github.com/iamquechua/product-kit#readme",
28
+ "bugs": {
29
+ "url": "https://github.com/iamquechua/product-kit/issues"
30
+ },
23
31
  "author": "Douno",
24
32
  "license": "MIT",
25
33
  "dependencies": {
package/src/cli.js CHANGED
@@ -7,13 +7,14 @@ const checkCommand = require('./commands/check');
7
7
  const statusCommand = require('./commands/status');
8
8
  const updateCommand = require('./commands/update');
9
9
  const resetCommand = require('./commands/reset');
10
+ const listCommand = require('./commands/list');
10
11
 
11
12
  const program = new Command();
12
13
 
13
14
  program
14
15
  .name('productkit')
15
16
  .description(chalk.cyan.bold('Product thinking toolkit for Claude Code'))
16
- .version('1.5.0');
17
+ .version('1.6.0');
17
18
 
18
19
  program
19
20
  .command('init [projectName]')
@@ -41,6 +42,11 @@ program
41
42
  .description('Remove all artifacts and start over')
42
43
  .action(resetCommand);
43
44
 
45
+ program
46
+ .command('list')
47
+ .description('Show available slash commands with descriptions')
48
+ .action(listCommand);
49
+
44
50
  program.parse(process.argv);
45
51
 
46
52
  if (process.argv.length === 2) {
@@ -0,0 +1,47 @@
1
+ const fs = require('fs-extra');
2
+ const path = require('path');
3
+ const chalk = require('chalk');
4
+
5
+ async function list() {
6
+ const root = process.cwd();
7
+ const commandsDir = path.join(root, '.claude', 'commands');
8
+
9
+ if (!fs.existsSync(commandsDir)) {
10
+ console.error(chalk.red('No slash commands found.'));
11
+ console.log('Run: productkit init <name>');
12
+ process.exit(1);
13
+ }
14
+
15
+ const files = fs.readdirSync(commandsDir)
16
+ .filter(f => f.startsWith('productkit.') && f.endsWith('.md'))
17
+ .sort();
18
+
19
+ if (files.length === 0) {
20
+ console.log(chalk.yellow('No Product Kit slash commands found.'));
21
+ process.exit(0);
22
+ }
23
+
24
+ console.log();
25
+ console.log(chalk.bold('Available slash commands:'));
26
+ console.log();
27
+
28
+ for (const file of files) {
29
+ const name = '/' + file.replace('.md', '');
30
+ const content = fs.readFileSync(path.join(commandsDir, file), 'utf-8');
31
+
32
+ // Extract description from front-matter
33
+ let description = '';
34
+ const match = content.match(/^---\s*\n[\s\S]*?description:\s*(.+)\n[\s\S]*?---/);
35
+ if (match) {
36
+ description = match[1].trim();
37
+ }
38
+
39
+ console.log(` ${chalk.cyan(name)}`);
40
+ if (description) {
41
+ console.log(` ${description}`);
42
+ }
43
+ console.log();
44
+ }
45
+ }
46
+
47
+ module.exports = list;