@abdullahsahmad/work-kit 0.1.0 → 0.1.2
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 +3 -3
- package/cli/bin/work-kit.mjs +8 -5
- package/cli/src/index.ts +6 -1
- package/package.json +3 -2
- package/skills/auto-kit/SKILL.md +1 -1
- package/skills/full-kit/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Structured development workflow for [Claude Code](https://claude.com/claude-code
|
|
|
7
7
|
**One-step setup** (recommended):
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npx work-kit setup
|
|
10
|
+
npx @abdullahsahmad/work-kit setup
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
This auto-detects Claude Code projects in your workspace and installs the skill files. If multiple projects are found, it lists them for you to choose.
|
|
@@ -15,14 +15,14 @@ This auto-detects Claude Code projects in your workspace and installs the skill
|
|
|
15
15
|
**Global install**:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npm install -g work-kit
|
|
18
|
+
npm install -g @abdullahsahmad/work-kit
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## Quick start
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
# 1. Set up work-kit in your project
|
|
25
|
-
npx work-kit setup
|
|
25
|
+
npx @abdullahsahmad/work-kit setup
|
|
26
26
|
|
|
27
27
|
# 2. In Claude Code, start a workflow
|
|
28
28
|
/full-kit add user avatar upload # strict, all phases
|
package/cli/bin/work-kit.mjs
CHANGED
|
@@ -3,16 +3,19 @@
|
|
|
3
3
|
import { execFileSync } from "node:child_process";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { dirname, resolve } from "node:path";
|
|
6
|
+
import { createRequire } from "node:module";
|
|
6
7
|
|
|
7
8
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
9
|
const entry = resolve(__dirname, "..", "src", "index.ts");
|
|
9
10
|
|
|
11
|
+
// Find tsx binary from the package's own dependencies
|
|
12
|
+
const require = createRequire(import.meta.url);
|
|
13
|
+
const tsxBin = resolve(dirname(require.resolve("tsx/package.json")), "dist", "cli.mjs");
|
|
14
|
+
|
|
10
15
|
try {
|
|
11
|
-
execFileSync(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{ stdio: "inherit" }
|
|
15
|
-
);
|
|
16
|
+
execFileSync(process.execPath, [tsxBin, entry, ...process.argv.slice(2)], {
|
|
17
|
+
stdio: "inherit",
|
|
18
|
+
});
|
|
16
19
|
} catch (e) {
|
|
17
20
|
process.exit(e.status ?? 1);
|
|
18
21
|
}
|
package/cli/src/index.ts
CHANGED
|
@@ -18,12 +18,17 @@ import { uninstallCommand } from "./commands/uninstall.js";
|
|
|
18
18
|
import { bold, green, yellow, red } from "./utils/colors.js";
|
|
19
19
|
import type { Classification, PhaseName } from "./state/schema.js";
|
|
20
20
|
|
|
21
|
+
import { createRequire } from "node:module";
|
|
22
|
+
|
|
23
|
+
const require = createRequire(import.meta.url);
|
|
24
|
+
const pkg = require("../../package.json");
|
|
25
|
+
|
|
21
26
|
const program = new Command();
|
|
22
27
|
|
|
23
28
|
program
|
|
24
29
|
.name("work-kit")
|
|
25
30
|
.description("State machine orchestrator for work-kit development workflow")
|
|
26
|
-
.version(
|
|
31
|
+
.version(pkg.version);
|
|
27
32
|
|
|
28
33
|
// ── init ─────────────────────────────────────────────────────────────
|
|
29
34
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abdullahsahmad/work-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Structured development workflow for Claude Code. Two modes, 6 phases, 27 sub-stages.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"work-kit": "cli/bin/work-kit.mjs"
|
|
7
|
+
"work-kit": "cli/bin/work-kit.mjs",
|
|
8
|
+
"wk": "cli/bin/work-kit.mjs"
|
|
8
9
|
},
|
|
9
10
|
"files": [
|
|
10
11
|
"cli/bin/",
|
package/skills/auto-kit/SKILL.md
CHANGED
|
@@ -18,7 +18,7 @@ npx work-kit doctor
|
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
If `work-kit` is not found, ask the user to install it:
|
|
21
|
-
> work-kit CLI is required but not installed. Install it with: `npm install -g work-kit
|
|
21
|
+
> work-kit CLI is required but not installed. Install it with: `npm install -g @abdullahsahmad/work-kit`
|
|
22
22
|
|
|
23
23
|
Do not proceed until `doctor` reports all checks passed.
|
|
24
24
|
|
package/skills/full-kit/SKILL.md
CHANGED
|
@@ -18,7 +18,7 @@ npx work-kit doctor
|
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
If `work-kit` is not found, ask the user to install it:
|
|
21
|
-
> work-kit CLI is required but not installed. Install it with: `npm install -g work-kit
|
|
21
|
+
> work-kit CLI is required but not installed. Install it with: `npm install -g @abdullahsahmad/work-kit`
|
|
22
22
|
|
|
23
23
|
Do not proceed until `doctor` reports all checks passed.
|
|
24
24
|
|