sdlc-kit 0.1.0 → 0.1.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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +3 -3
- package/CHANGELOG.md +8 -0
- package/README.md +25 -24
- package/dist/bin/cli.js +7 -7
- package/dist/lib/installer.js +55 -27
- package/package.json +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "sdlc-kit",
|
|
3
3
|
"owner": {
|
|
4
4
|
"name": "sumitroajiprabowo"
|
|
5
5
|
},
|
|
6
6
|
"plugins": [
|
|
7
7
|
{
|
|
8
|
-
"name": "
|
|
8
|
+
"name": "sdlc-kit",
|
|
9
9
|
"source": "./",
|
|
10
10
|
"description": "Universal, token-efficient SDLC workflow skills, commands, and orchestrator protocol."
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
3
|
-
"version": "0.1.
|
|
2
|
+
"name": "sdlc-kit",
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Universal, token-efficient SDLC workflow skills, commands, and orchestrator protocol for AI coding agents.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "sumitroajiprabowo"
|
|
7
7
|
},
|
|
8
|
-
"repository": "https://github.com/sumitroajiprabowo/
|
|
8
|
+
"repository": "https://github.com/sumitroajiprabowo/sdlc-kit",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"skills": "./skills",
|
|
11
11
|
"commands": "./commands"
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.1] - 2026-11-25
|
|
11
|
+
|
|
12
|
+
First release published from CI via npm trusted publishing (OIDC, with provenance).
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- GitHub repository renamed from `agent-sdlc` to `sdlc-kit`; the old URL redirects. README now documents `npx sdlc-kit` as the primary install.
|
|
16
|
+
- Remaining `agent-sdlc` identifiers renamed to `sdlc-kit`: the Claude plugin and marketplace name (reinstall the plugin with `/plugin install sdlc-kit@sdlc-kit`), the `~/.sdlc-kit/` manifest and local prompt directory, `sdlc-kit-statusline.mjs`, and `settings.json.sdlc-kit.bak`. Installs made with 0.1.0 are migrated on the next run, and `--uninstall` and `--doctor` still recognize the old names.
|
|
17
|
+
|
|
10
18
|
### Added
|
|
11
19
|
- Manifest (`~/.agent-sdlc/manifest.json`) tracking installed files; `--force` flag.
|
|
12
20
|
- Slash commands now also install for `--cursor` (`~/.cursor/commands/`) and `--opencode` (`~/.config/opencode/command/`).
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# sdlc-kit
|
|
2
2
|
|
|
3
3
|
Skills, slash commands, and a multi-agent handoff protocol for an end-to-end SDLC (plan, code, QA, ship, incident response). Installs into Claude Code, Codex, Antigravity, Cursor, OpenCode, or any local LLM. TypeScript, no runtime dependencies.
|
|
4
4
|
|
|
@@ -17,56 +17,57 @@ Long sessions, bloated global instructions, full test logs, and whole chat histo
|
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
19
|
# Auto-detect installed agents on your machine
|
|
20
|
-
npx github:sumitroajiprabowo/agent-sdlc
|
|
21
|
-
|
|
22
|
-
# Not published to npm yet. Once it is:
|
|
23
20
|
npx sdlc-kit
|
|
24
21
|
```
|
|
25
22
|
|
|
23
|
+
The package is published on npm as [`sdlc-kit`](https://www.npmjs.com/package/sdlc-kit), with provenance, from this repository's CI. To run straight from GitHub instead: `npx github:sumitroajiprabowo/sdlc-kit`.
|
|
24
|
+
|
|
26
25
|
### Install for Specific Agents
|
|
27
26
|
|
|
28
27
|
```bash
|
|
29
28
|
# Claude Code only (skills + 9 slash commands)
|
|
30
|
-
npx
|
|
29
|
+
npx sdlc-kit --claude
|
|
31
30
|
|
|
32
31
|
# Claude Code + token-saving preset: adds opusplan (only if you have no model set),
|
|
33
32
|
# 200k context cap, tool search, auto-compact, and a statusline. Existing values are kept.
|
|
34
|
-
npx
|
|
33
|
+
npx sdlc-kit --claude --optimize
|
|
35
34
|
|
|
36
35
|
# Codex only
|
|
37
|
-
npx
|
|
36
|
+
npx sdlc-kit --codex
|
|
38
37
|
|
|
39
38
|
# Antigravity only
|
|
40
|
-
npx
|
|
39
|
+
npx sdlc-kit --antigravity
|
|
41
40
|
|
|
42
41
|
# Cursor or OpenCode (skills + 9 slash commands)
|
|
43
|
-
npx
|
|
44
|
-
npx
|
|
42
|
+
npx sdlc-kit --cursor
|
|
43
|
+
npx sdlc-kit --opencode
|
|
45
44
|
|
|
46
45
|
# Local LLMs (Ollama / OpenCode / Aider / Cline) -> <800-token prompt
|
|
47
|
-
npx
|
|
46
|
+
npx sdlc-kit --local
|
|
48
47
|
|
|
49
48
|
# Scaffold a project repository (docs/INDEX.md, ADR template, PR template, AGENTS.md + CLAUDE.md bridge, .gitignore)
|
|
50
|
-
npx
|
|
49
|
+
npx sdlc-kit --project
|
|
51
50
|
|
|
52
51
|
# Run a read-only health & token-efficiency audit
|
|
53
|
-
npx
|
|
52
|
+
npx sdlc-kit --doctor
|
|
54
53
|
|
|
55
54
|
# Install to all agents at once
|
|
56
|
-
npx
|
|
55
|
+
npx sdlc-kit --all
|
|
57
56
|
```
|
|
58
57
|
|
|
59
58
|
### Alternative Install Methods
|
|
60
59
|
|
|
61
60
|
```bash
|
|
62
61
|
# Via skills CLI
|
|
63
|
-
npx skills add sumitroajiprabowo/
|
|
62
|
+
npx skills add sumitroajiprabowo/sdlc-kit
|
|
64
63
|
|
|
65
64
|
# Via Claude Code plugin marketplace
|
|
66
|
-
/plugin marketplace add sumitroajiprabowo/
|
|
67
|
-
/plugin install
|
|
65
|
+
/plugin marketplace add sumitroajiprabowo/sdlc-kit
|
|
66
|
+
/plugin install sdlc-kit@sdlc-kit
|
|
68
67
|
```
|
|
69
68
|
|
|
69
|
+
> Formerly `agent-sdlc`. Installs made with 0.1.0 are migrated automatically the next time you run `sdlc-kit`. If you installed the Claude plugin, reinstall it under the new name.
|
|
70
|
+
|
|
70
71
|
---
|
|
71
72
|
|
|
72
73
|
## CLI Options
|
|
@@ -78,7 +79,7 @@ npx skills add sumitroajiprabowo/agent-sdlc
|
|
|
78
79
|
| `--antigravity` | Install skills into `~/.agents/skills/` |
|
|
79
80
|
| `--cursor` | Install skills into `~/.cursor/skills/` and commands into `~/.cursor/commands/` |
|
|
80
81
|
| `--opencode` | Install skills into `~/.config/opencode/skills/` and `~/.agents/skills/`, commands into `~/.config/opencode/command/` |
|
|
81
|
-
| `--local` | Install a compact prompt (`<800` tokens) to `~/.
|
|
82
|
+
| `--local` | Install a compact prompt (`<800` tokens) to `~/.sdlc-kit/LOCAL_PROMPT.md` |
|
|
82
83
|
| `--project` | Scaffold non-destructive project templates (`docs/`, PR template, `AGENTS.md`, `CLAUDE.md -> @AGENTS.md`, `.gitignore`) |
|
|
83
84
|
| `--all` | Install across `claude`, `codex`, `antigravity`, `cursor`, `opencode`, and `local` |
|
|
84
85
|
| `--optimize` | With `--claude`: backs up `~/.claude/settings.json` (the original `.bak` is never overwritten), then adds only the keys you haven't set: `opusplan` model, 200k context cap, tool search, auto-compact at 70%, bounded outputs, and a context statusline. Run `--claude --uninstall` to revert just those keys |
|
|
@@ -86,7 +87,7 @@ npx skills add sumitroajiprabowo/agent-sdlc
|
|
|
86
87
|
| `--no-orchestrator` | Skip installing `sdlc-orchestrator` (single-agent workflow only) |
|
|
87
88
|
| `--dry-run` | Preview actions without writing any files |
|
|
88
89
|
| `--force` | Overwrite or remove files even if they were not installed (or were edited after install) |
|
|
89
|
-
| `--uninstall` | Remove only files `
|
|
90
|
+
| `--uninstall` | Remove only files `sdlc-kit` installed and you haven't edited; reverts the settings `--optimize` added |
|
|
90
91
|
|
|
91
92
|
---
|
|
92
93
|
|
|
@@ -108,7 +109,7 @@ npx skills add sumitroajiprabowo/agent-sdlc
|
|
|
108
109
|
- **Antigravity**: Skills in `~/.agents/skills/` are discovered automatically; reference `sdlc-workflow` during `/plan` or `sdlc-orchestrator` for `/swarm` and subagents.
|
|
109
110
|
- **Cursor**: Skills in `~/.cursor/skills/` are discovered automatically and the 9 commands are available from `~/.cursor/commands/`.
|
|
110
111
|
- **OpenCode**: Skills in `~/.config/opencode/skills/` and `~/.agents/skills/` are discovered automatically; the 9 commands are in `~/.config/opencode/command/`.
|
|
111
|
-
- **Local LLMs**: Load `~/.
|
|
112
|
+
- **Local LLMs**: Load `~/.sdlc-kit/LOCAL_PROMPT.md` as your system prompt or project instruction.
|
|
112
113
|
|
|
113
114
|
---
|
|
114
115
|
|
|
@@ -137,14 +138,14 @@ npx skills add sumitroajiprabowo/agent-sdlc
|
|
|
137
138
|
| `--antigravity` | `~/.agents/skills/` | none |
|
|
138
139
|
| `--cursor` | `~/.cursor/skills/` | `~/.cursor/commands/` |
|
|
139
140
|
| `--opencode` | `~/.config/opencode/skills/`, `~/.agents/skills/` | `~/.config/opencode/command/` |
|
|
140
|
-
| `--local` | `~/.
|
|
141
|
+
| `--local` | `~/.sdlc-kit/LOCAL_PROMPT.md` | none |
|
|
141
142
|
|
|
142
|
-
Every installed file is recorded with a hash in `~/.
|
|
143
|
+
Every installed file is recorded with a hash in `~/.sdlc-kit/manifest.json`. The installer skips files it didn't create, and `--uninstall` removes only files that are unchanged since install.
|
|
143
144
|
|
|
144
145
|
## Troubleshooting
|
|
145
146
|
|
|
146
|
-
- **"Skipped ... not installed by
|
|
147
|
-
- **Slash command name clashes** (`/review`, `/ship`, `/qa` vs. built-ins or other plugins): installed commands never overwrite existing files. If a clash remains, rename the installed `.md` file; plugin installs are namespaced (`/
|
|
147
|
+
- **"Skipped ... not installed by sdlc-kit"**: a file with that name already exists (e.g. your own `review.md`). Keep it, rename ours, or pass `--force` to overwrite.
|
|
148
|
+
- **Slash command name clashes** (`/review`, `/ship`, `/qa` vs. built-ins or other plugins): installed commands never overwrite existing files. If a clash remains, rename the installed `.md` file; plugin installs are namespaced (`/sdlc-kit:review`).
|
|
148
149
|
- **Skills load twice**: you have both the Claude plugin and `npx --claude`. `--doctor` flags this; remove one with `npx sdlc-kit --claude --uninstall`.
|
|
149
150
|
- **Uninstall left a file**: it was edited after install. Delete it manually or use `--uninstall --force`.
|
|
150
151
|
- **Windows, macOS, Linux**: all three are tested in CI on Node 20 and 22. The installer and the `--optimize` statusline need only Node.js (no `bash` or `jq`). Paths use your home directory (`%USERPROFILE%` on Windows). The Cursor and OpenCode directories are unverified on Windows.
|
package/dist/bin/cli.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import fs from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { DEFAULT_PACKAGE_ROOT, parseArgs, runDoctor, runInstall } from '../lib/installer.js';
|
|
5
|
-
const HELP_TEXT = `
|
|
5
|
+
const HELP_TEXT = `sdlc-kit — SDLC skills, slash commands & multi-agent orchestrator protocol
|
|
6
6
|
|
|
7
7
|
Usage:
|
|
8
8
|
npx sdlc-kit [options]
|
|
9
|
-
npx github:sumitroajiprabowo/
|
|
9
|
+
npx github:sumitroajiprabowo/sdlc-kit [options]
|
|
10
10
|
|
|
11
11
|
Targets (auto-detected if omitted):
|
|
12
12
|
--claude Install skills & 9 slash commands to ~/.claude/
|
|
@@ -14,7 +14,7 @@ Targets (auto-detected if omitted):
|
|
|
14
14
|
--antigravity Install skills to ~/.agents/skills/
|
|
15
15
|
--cursor Install skills & commands to ~/.cursor/
|
|
16
16
|
--opencode Install skills & commands to ~/.config/opencode/ and ~/.agents/skills/
|
|
17
|
-
--local Install a compact prompt (<800 tokens) to ~/.
|
|
17
|
+
--local Install a compact prompt (<800 tokens) to ~/.sdlc-kit/LOCAL_PROMPT.md
|
|
18
18
|
--project Scaffold docs/, PR template, AGENTS.md, CLAUDE.md bridge & .gitignore
|
|
19
19
|
--all Install to claude, codex, antigravity, cursor, opencode, and local
|
|
20
20
|
|
|
@@ -23,8 +23,8 @@ Options:
|
|
|
23
23
|
--doctor Run a read-only health & token-efficiency audit
|
|
24
24
|
--no-orchestrator Skip installing the multi-agent sdlc-orchestrator skill
|
|
25
25
|
--dry-run Preview planned changes without writing files
|
|
26
|
-
--uninstall Remove
|
|
27
|
-
--force Overwrite/remove files even if they were not installed by
|
|
26
|
+
--uninstall Remove sdlc-kit managed files from selected targets (skips files you edited)
|
|
27
|
+
--force Overwrite/remove files even if they were not installed by sdlc-kit
|
|
28
28
|
-h, --help Show help
|
|
29
29
|
-v, --version Show version
|
|
30
30
|
`;
|
|
@@ -48,7 +48,7 @@ function main() {
|
|
|
48
48
|
}
|
|
49
49
|
if (parsed.doctor) {
|
|
50
50
|
const report = runDoctor();
|
|
51
|
-
console.log('
|
|
51
|
+
console.log('sdlc-kit --doctor');
|
|
52
52
|
for (const c of report.checks) {
|
|
53
53
|
console.log(` [${c.level}] ${c.area}: ${c.message}`);
|
|
54
54
|
}
|
|
@@ -57,7 +57,7 @@ function main() {
|
|
|
57
57
|
}
|
|
58
58
|
const result = runInstall(parsed);
|
|
59
59
|
const mode = parsed.uninstall ? 'Uninstall' : 'Install';
|
|
60
|
-
console.log(`
|
|
60
|
+
console.log(`sdlc-kit (${mode}) targets: ${result.targets.join(', ')}`);
|
|
61
61
|
for (const action of result.actions) {
|
|
62
62
|
console.log(` - ${action}`);
|
|
63
63
|
}
|
package/dist/lib/installer.js
CHANGED
|
@@ -44,9 +44,11 @@ const CLAUDE_OPTIMIZE_ENV = {
|
|
|
44
44
|
// Pre-TypeScript installs used a bash statusline; uninstall must still clean it up.
|
|
45
45
|
const LEGACY_STATUSLINE_FILE = 'statusline-command.sh';
|
|
46
46
|
const LEGACY_STATUSLINE_COMMAND = 'bash ~/.claude/statusline-command.sh';
|
|
47
|
-
const STATUSLINE_FILE = '
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
const STATUSLINE_FILE = 'sdlc-kit-statusline.mjs';
|
|
48
|
+
// 0.1.0 shipped under the name agent-sdlc; installs made then are migrated on the next run.
|
|
49
|
+
const PRE_RENAME_STATUSLINE_FILE = 'agent-sdlc-statusline.mjs';
|
|
50
|
+
function statuslineCommand(homeDir, file = STATUSLINE_FILE) {
|
|
51
|
+
return `node "${path.join(homeDir, '.claude', file)}"`;
|
|
50
52
|
}
|
|
51
53
|
const PROJECT_GITIGNORE_ENTRIES = [
|
|
52
54
|
'.claude/HANDOFF.md',
|
|
@@ -157,7 +159,10 @@ export function detectTargets(homeDir = os.homedir()) {
|
|
|
157
159
|
detected.push('opencode');
|
|
158
160
|
return detected.length > 0 ? detected : ['antigravity'];
|
|
159
161
|
}
|
|
160
|
-
const MANIFEST_NAME = path.join('.
|
|
162
|
+
const MANIFEST_NAME = path.join('.sdlc-kit', 'manifest.json');
|
|
163
|
+
const PRE_RENAME_MANIFEST_NAME = path.join('.agent-sdlc', 'manifest.json');
|
|
164
|
+
const LOCAL_PROMPT_NAME = path.join('.sdlc-kit', 'LOCAL_PROMPT.md');
|
|
165
|
+
const PRE_RENAME_LOCAL_PROMPT_NAME = path.join('.agent-sdlc', 'LOCAL_PROMPT.md');
|
|
161
166
|
function sha256(file) {
|
|
162
167
|
return crypto.createHash('sha256').update(fs.readFileSync(file)).digest('hex');
|
|
163
168
|
}
|
|
@@ -165,12 +170,25 @@ function readPackageVersion(packageRoot) {
|
|
|
165
170
|
return JSON.parse(fs.readFileSync(path.join(packageRoot, 'package.json'), 'utf8')).version;
|
|
166
171
|
}
|
|
167
172
|
function loadManifest(homeDir) {
|
|
173
|
+
for (const name of [MANIFEST_NAME, PRE_RENAME_MANIFEST_NAME]) {
|
|
174
|
+
try {
|
|
175
|
+
const m = JSON.parse(fs.readFileSync(path.join(homeDir, name), 'utf8'));
|
|
176
|
+
return { version: m.version, files: m.files ?? {}, settings: m.settings ?? null };
|
|
177
|
+
}
|
|
178
|
+
catch {
|
|
179
|
+
// missing or unreadable: try the pre-rename location
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
return { version: null, files: {}, settings: null };
|
|
183
|
+
}
|
|
184
|
+
function removeManifestFile(homeDir, name) {
|
|
185
|
+
const file = path.join(homeDir, name);
|
|
186
|
+
fs.rmSync(file, { force: true });
|
|
168
187
|
try {
|
|
169
|
-
|
|
170
|
-
return { version: m.version, files: m.files ?? {}, settings: m.settings ?? null };
|
|
188
|
+
fs.rmdirSync(path.dirname(file));
|
|
171
189
|
}
|
|
172
190
|
catch {
|
|
173
|
-
|
|
191
|
+
// directory not empty or already gone
|
|
174
192
|
}
|
|
175
193
|
}
|
|
176
194
|
function saveManifest(homeDir, manifest, version, dryRun) {
|
|
@@ -178,18 +196,14 @@ function saveManifest(homeDir, manifest, version, dryRun) {
|
|
|
178
196
|
return;
|
|
179
197
|
const file = path.join(homeDir, MANIFEST_NAME);
|
|
180
198
|
if (Object.keys(manifest.files).length === 0 && !manifest.settings) {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
fs.rmdirSync(path.dirname(file));
|
|
184
|
-
}
|
|
185
|
-
catch {
|
|
186
|
-
// directory not empty or already gone
|
|
187
|
-
}
|
|
199
|
+
removeManifestFile(homeDir, MANIFEST_NAME);
|
|
200
|
+
removeManifestFile(homeDir, PRE_RENAME_MANIFEST_NAME);
|
|
188
201
|
return;
|
|
189
202
|
}
|
|
190
203
|
fs.mkdirSync(path.dirname(file), { recursive: true });
|
|
191
204
|
const body = { version, files: manifest.files, settings: manifest.settings };
|
|
192
205
|
fs.writeFileSync(file, `${JSON.stringify(body, null, 2)}\n`, 'utf8');
|
|
206
|
+
removeManifestFile(homeDir, PRE_RENAME_MANIFEST_NAME);
|
|
193
207
|
}
|
|
194
208
|
/** Copy a managed file unless it exists with content we did not write (unless --force). */
|
|
195
209
|
function installManagedFile(ctx, src, dst) {
|
|
@@ -197,7 +211,7 @@ function installManagedFile(ctx, src, dst) {
|
|
|
197
211
|
if (fs.existsSync(dst)) {
|
|
198
212
|
const cur = sha256(dst);
|
|
199
213
|
if (cur !== srcHash && cur !== ctx.manifest.files[dst] && !ctx.force) {
|
|
200
|
-
ctx.warnings.push(`Skipped ${dst}: exists and was not installed by
|
|
214
|
+
ctx.warnings.push(`Skipped ${dst}: exists and was not installed by sdlc-kit (use --force to overwrite)`);
|
|
201
215
|
return;
|
|
202
216
|
}
|
|
203
217
|
}
|
|
@@ -308,7 +322,8 @@ function uninstallSkillsFromDir(ctx, skillsRoot) {
|
|
|
308
322
|
function applyClaudeOptimize(ctx) {
|
|
309
323
|
const claudeDir = path.join(ctx.homeDir, '.claude');
|
|
310
324
|
const settingsPath = path.join(claudeDir, 'settings.json');
|
|
311
|
-
const backupPath = path.join(claudeDir, 'settings.json.
|
|
325
|
+
const backupPath = path.join(claudeDir, 'settings.json.sdlc-kit.bak');
|
|
326
|
+
const preRenameBackupPath = path.join(claudeDir, 'settings.json.agent-sdlc.bak');
|
|
312
327
|
const statuslineSrc = path.join(ctx.packageRoot, 'dist', 'lib', 'statusline.js');
|
|
313
328
|
const statuslineDst = path.join(claudeDir, STATUSLINE_FILE);
|
|
314
329
|
const { dryRun, actions, warnings } = ctx;
|
|
@@ -322,7 +337,7 @@ function applyClaudeOptimize(ctx) {
|
|
|
322
337
|
warnings.push(`Skipped --optimize on ${settingsPath}: existing file is not valid JSON.`);
|
|
323
338
|
return;
|
|
324
339
|
}
|
|
325
|
-
if (!fs.existsSync(backupPath)) {
|
|
340
|
+
if (!fs.existsSync(backupPath) && !fs.existsSync(preRenameBackupPath)) {
|
|
326
341
|
if (!dryRun) {
|
|
327
342
|
fs.writeFileSync(backupPath, raw, 'utf8');
|
|
328
343
|
}
|
|
@@ -347,6 +362,10 @@ function applyClaudeOptimize(ctx) {
|
|
|
347
362
|
}
|
|
348
363
|
}
|
|
349
364
|
installManagedFile(ctx, statuslineSrc, statuslineDst);
|
|
365
|
+
uninstallManagedFile(ctx, null, path.join(claudeDir, PRE_RENAME_STATUSLINE_FILE));
|
|
366
|
+
if (rec.statusLine && settings.statusLine?.command === statuslineCommand(ctx.homeDir, PRE_RENAME_STATUSLINE_FILE)) {
|
|
367
|
+
settings.statusLine.command = statuslineCommand(ctx.homeDir);
|
|
368
|
+
}
|
|
350
369
|
if (!settings.statusLine) {
|
|
351
370
|
settings.statusLine = {
|
|
352
371
|
type: 'command',
|
|
@@ -385,16 +404,21 @@ function revertClaudeOptimize(ctx) {
|
|
|
385
404
|
if (settings.env && Object.keys(settings.env).length === 0)
|
|
386
405
|
delete settings.env;
|
|
387
406
|
const slCommand = settings.statusLine?.command;
|
|
388
|
-
if (rec.statusLine &&
|
|
407
|
+
if (rec.statusLine &&
|
|
408
|
+
(slCommand === statuslineCommand(ctx.homeDir) ||
|
|
409
|
+
slCommand === statuslineCommand(ctx.homeDir, PRE_RENAME_STATUSLINE_FILE) ||
|
|
410
|
+
slCommand === LEGACY_STATUSLINE_COMMAND)) {
|
|
389
411
|
delete settings.statusLine;
|
|
390
412
|
}
|
|
391
413
|
if (!ctx.dryRun) {
|
|
392
414
|
fs.writeFileSync(settingsPath, `${JSON.stringify(settings, null, 2)}\n`, 'utf8');
|
|
393
415
|
}
|
|
394
416
|
ctx.actions.push(`${ctx.dryRun ? '[dry-run] ' : ''}revert optimize ${settingsPath}`);
|
|
395
|
-
const
|
|
396
|
-
|
|
397
|
-
|
|
417
|
+
for (const suffix of ['sdlc-kit', 'agent-sdlc']) {
|
|
418
|
+
const backup = `${settingsPath}.${suffix}.bak`;
|
|
419
|
+
if (fs.existsSync(backup))
|
|
420
|
+
ctx.warnings.push(`Left ${backup} in place (original pre-optimize copy).`);
|
|
421
|
+
}
|
|
398
422
|
}
|
|
399
423
|
ctx.manifest.settings = null;
|
|
400
424
|
}
|
|
@@ -489,6 +513,7 @@ export function runInstall(options = {}) {
|
|
|
489
513
|
if (uninstall) {
|
|
490
514
|
revertClaudeOptimize(ctx);
|
|
491
515
|
uninstallManagedFile(ctx, path.join(packageRoot, 'dist', 'lib', 'statusline.js'), path.join(homeDir, '.claude', STATUSLINE_FILE));
|
|
516
|
+
uninstallManagedFile(ctx, null, path.join(homeDir, '.claude', PRE_RENAME_STATUSLINE_FILE));
|
|
492
517
|
uninstallManagedFile(ctx, null, path.join(homeDir, '.claude', LEGACY_STATUSLINE_FILE));
|
|
493
518
|
}
|
|
494
519
|
else if (optimize) {
|
|
@@ -513,13 +538,15 @@ export function runInstall(options = {}) {
|
|
|
513
538
|
}
|
|
514
539
|
else if (target === 'local') {
|
|
515
540
|
const src = path.join(packageRoot, 'templates', 'local', 'LOCAL_PROMPT.md');
|
|
516
|
-
const dst = path.join(homeDir,
|
|
541
|
+
const dst = path.join(homeDir, LOCAL_PROMPT_NAME);
|
|
542
|
+
const preRenameDst = path.join(homeDir, PRE_RENAME_LOCAL_PROMPT_NAME);
|
|
517
543
|
if (uninstall) {
|
|
518
544
|
uninstallManagedFile(ctx, src, dst);
|
|
519
545
|
}
|
|
520
546
|
else {
|
|
521
547
|
installManagedFile(ctx, src, dst);
|
|
522
548
|
}
|
|
549
|
+
uninstallManagedFile(ctx, src, preRenameDst);
|
|
523
550
|
}
|
|
524
551
|
else if (target === 'project') {
|
|
525
552
|
if (uninstall) {
|
|
@@ -549,14 +576,15 @@ export function runDoctor(options = {}) {
|
|
|
549
576
|
['antigravity', path.join(homeDir, '.agents/skills/sdlc-workflow/SKILL.md')],
|
|
550
577
|
['cursor', path.join(homeDir, '.cursor/skills/sdlc-workflow/SKILL.md')],
|
|
551
578
|
['opencode', path.join(homeDir, '.config/opencode/skills/sdlc-workflow/SKILL.md')],
|
|
552
|
-
['local', path.join(homeDir,
|
|
579
|
+
['local', path.join(homeDir, LOCAL_PROMPT_NAME)],
|
|
580
|
+
['local', path.join(homeDir, PRE_RENAME_LOCAL_PROMPT_NAME)],
|
|
553
581
|
];
|
|
554
|
-
const installed = locations.filter(([, p]) => fs.existsSync(p)).map(([name]) => name);
|
|
582
|
+
const installed = [...new Set(locations.filter(([, p]) => fs.existsSync(p)).map(([name]) => name))];
|
|
555
583
|
if (installed.length > 0) {
|
|
556
584
|
add('OK', 'installs', `Installed for: ${installed.join(', ')}`);
|
|
557
585
|
}
|
|
558
586
|
else {
|
|
559
|
-
add('WARN', 'installs', 'No
|
|
587
|
+
add('WARN', 'installs', 'No sdlc-kit targets installed yet. Run npx sdlc-kit.');
|
|
560
588
|
}
|
|
561
589
|
const manifest = loadManifest(homeDir);
|
|
562
590
|
if (manifest.version) {
|
|
@@ -573,13 +601,13 @@ export function runDoctor(options = {}) {
|
|
|
573
601
|
if (fs.existsSync(pluginsFile)) {
|
|
574
602
|
let pluginInstalled = false;
|
|
575
603
|
try {
|
|
576
|
-
pluginInstalled = Object.keys(JSON.parse(fs.readFileSync(pluginsFile, 'utf8')).plugins ?? {}).some((k) => k.startsWith('agent-sdlc@'));
|
|
604
|
+
pluginInstalled = Object.keys(JSON.parse(fs.readFileSync(pluginsFile, 'utf8')).plugins ?? {}).some((k) => k.startsWith('sdlc-kit@') || k.startsWith('agent-sdlc@'));
|
|
577
605
|
}
|
|
578
606
|
catch {
|
|
579
607
|
// unreadable plugin registry: skip the duplicate check
|
|
580
608
|
}
|
|
581
609
|
if (pluginInstalled && fs.existsSync(path.join(claudeDir, 'skills', 'sdlc-workflow'))) {
|
|
582
|
-
add('WARN', 'duplicate-install', '
|
|
610
|
+
add('WARN', 'duplicate-install', 'sdlc-kit is installed as a Claude plugin AND via npx; skills load twice. Uninstall one (npx sdlc-kit --claude --uninstall).');
|
|
583
611
|
}
|
|
584
612
|
}
|
|
585
613
|
if (fs.existsSync(claudeDir)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sdlc-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Universal, token-efficient SDLC workflow skills, commands, and orchestrator protocol for Claude Code, Codex, Antigravity, and Local LLMs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"author": "sumitroajiprabowo",
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
|
46
|
-
"url": "git+https://github.com/sumitroajiprabowo/
|
|
46
|
+
"url": "git+https://github.com/sumitroajiprabowo/sdlc-kit.git"
|
|
47
47
|
},
|
|
48
48
|
"bugs": {
|
|
49
|
-
"url": "https://github.com/sumitroajiprabowo/
|
|
49
|
+
"url": "https://github.com/sumitroajiprabowo/sdlc-kit/issues"
|
|
50
50
|
},
|
|
51
|
-
"homepage": "https://github.com/sumitroajiprabowo/
|
|
51
|
+
"homepage": "https://github.com/sumitroajiprabowo/sdlc-kit#readme",
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/node": "^22.20.6",
|
|
54
54
|
"typescript": "~5.9.0"
|