sdlc-kit 0.0.0-stage → 0.1.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/.claude-plugin/marketplace.json +13 -0
- package/.claude-plugin/plugin.json +12 -0
- package/CHANGELOG.md +36 -0
- package/LICENSE +21 -0
- package/README.md +167 -2
- package/commands/adr.md +15 -0
- package/commands/handoff-pr.md +20 -0
- package/commands/handoff.md +14 -0
- package/commands/pickup.md +9 -0
- package/commands/qa.md +15 -0
- package/commands/review.md +16 -0
- package/commands/ship.md +15 -0
- package/commands/spec.md +11 -0
- package/commands/start.md +20 -0
- package/dist/bin/cli.js +71 -0
- package/dist/lib/installer.js +665 -0
- package/dist/lib/statusline.js +46 -0
- package/package.json +54 -4
- package/skills/sdlc-orchestrator/SKILL.md +44 -0
- package/skills/sdlc-workflow/SKILL.md +98 -0
- package/skills/sdlc-workflow/references/architecture-checklist.md +26 -0
- package/skills/sdlc-workflow/references/clean-code.md +15 -0
- package/skills/sdlc-workflow/references/database-hygiene.md +20 -0
- package/skills/sdlc-workflow/references/developer-habits.md +29 -0
- package/skills/sdlc-workflow/references/incident-response.md +25 -0
- package/skills/sdlc-workflow/references/monolith-and-microservices.md +20 -0
- package/skills/sdlc-workflow/references/quality-gates.md +35 -0
- package/skills/sdlc-workflow/references/security-checklist.md +20 -0
- package/templates/local/LOCAL_PROMPT.md +8 -0
- package/templates/project/.github/PULL_REQUEST_TEMPLATE.md +10 -0
- package/templates/project/AGENTS.md +15 -0
- package/templates/project/CLAUDE.md +1 -0
- package/templates/project/docs/INDEX.md +7 -0
- package/templates/project/docs/adr/TEMPLATE.md +16 -0
- package/templates/project/docs/plans/.gitkeep +1 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agent-sdlc",
|
|
3
|
+
"owner": {
|
|
4
|
+
"name": "sumitroajiprabowo"
|
|
5
|
+
},
|
|
6
|
+
"plugins": [
|
|
7
|
+
{
|
|
8
|
+
"name": "agent-sdlc",
|
|
9
|
+
"source": "./",
|
|
10
|
+
"description": "Universal, token-efficient SDLC workflow skills, commands, and orchestrator protocol."
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agent-sdlc",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Universal, token-efficient SDLC workflow skills, commands, and orchestrator protocol for AI coding agents.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "sumitroajiprabowo"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://github.com/sumitroajiprabowo/agent-sdlc",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"skills": "./skills",
|
|
11
|
+
"commands": "./commands"
|
|
12
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Manifest (`~/.agent-sdlc/manifest.json`) tracking installed files; `--force` flag.
|
|
12
|
+
- Slash commands now also install for `--cursor` (`~/.cursor/commands/`) and `--opencode` (`~/.config/opencode/command/`).
|
|
13
|
+
- `--doctor` detects outdated installs and plugin + npx duplicate installs.
|
|
14
|
+
- Release workflow (tag -> `npm publish --provenance`), macOS in CI matrix, `SECURITY.md`, issue template.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- The npm package is published as `sdlc-kit` (the name `agent-sdlc` is taken); the installed command is `sdlc-kit`.
|
|
18
|
+
- Source migrated to TypeScript (`strict`), compiled to `dist/` by `tsc`; the `bin` entry is now `dist/bin/cli.js`. No runtime dependencies were added. CI runs `npm run typecheck`.
|
|
19
|
+
- The `--optimize` statusline is now a Node script (`~/.claude/agent-sdlc-statusline.mjs`) instead of bash, so it works on Windows without `jq`. `--uninstall` still removes the old `statusline-command.sh` and its settings entry.
|
|
20
|
+
- CI now also runs on Windows; `.gitattributes` forces LF line endings.
|
|
21
|
+
- Install never overwrites files it did not install (use `--force`); uninstall removes only unmodified managed files.
|
|
22
|
+
- `--optimize` keeps your existing `model`/`env`; `--uninstall` reverts only what it added.
|
|
23
|
+
- Minimum Node.js is now 20 (18 is EOL).
|
|
24
|
+
- Command references now name the `sdlc-workflow` skill explicitly instead of a bare relative path.
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
- `--doctor` frontmatter parsing on CRLF files.
|
|
28
|
+
|
|
29
|
+
## [0.1.0] - 2026-11-25
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
- `sdlc-workflow` skill with 8 on-demand references (`architecture-checklist.md`, `monolith-and-microservices.md`, `clean-code.md`, `quality-gates.md`, `security-checklist.md`, `database-hygiene.md`, `incident-response.md`, `developer-habits.md`).
|
|
33
|
+
- Token-safe `sdlc-orchestrator` multi-agent protocol skill.
|
|
34
|
+
- 9 slash commands (`/spec`, `/start`, `/handoff`, `/pickup`, `/handoff-pr`, `/adr`, `/qa`, `/review`, `/ship`).
|
|
35
|
+
- Zero-dependency CLI installer (`bin/cli.mjs`) supporting `--claude` (+ `--optimize`), `--codex`, `--antigravity`, `--cursor`, `--opencode`, `--local`, `--project`, `--doctor`, `--dry-run`, `--uninstall`.
|
|
36
|
+
- Claude Code plugin & marketplace manifests (`.claude-plugin/`).
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 sumitroajiprabowo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,168 @@
|
|
|
1
|
-
#
|
|
1
|
+
# agent-sdlc
|
|
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
|
+
|
|
5
|
+
## Why
|
|
6
|
+
|
|
7
|
+
Long sessions, bloated global instructions, full test logs, and whole chat histories passed between subagents all burn tokens. This package keeps the always-loaded part small and moves the detail into files that load only when needed:
|
|
8
|
+
|
|
9
|
+
- **Small baseline**: each skill loads only its YAML frontmatter up front; the full playbook and its 8 `references/` load when the task calls for them. Slash commands load their one-line description until you invoke them.
|
|
10
|
+
- **9 slash commands**: `/spec`, `/start`, `/handoff`, `/pickup`, `/handoff-pr`, `/adr`, `/qa`, `/review`, `/ship`.
|
|
11
|
+
- **Covers repo setup to production**: milestone slicing, 5-state frontend checklist, QA pyramid, bugfix vs production hotfix, CI/CD, and Expand & Contract database migrations.
|
|
12
|
+
- **Orchestrator protocol**: fresh-context worker briefings and worker reports under 30 lines.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Quick Start
|
|
17
|
+
|
|
18
|
+
```bash
|
|
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
|
+
npx sdlc-kit
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Install for Specific Agents
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Claude Code only (skills + 9 slash commands)
|
|
30
|
+
npx github:sumitroajiprabowo/agent-sdlc --claude
|
|
31
|
+
|
|
32
|
+
# Claude Code + token-saving preset: adds opusplan (only if you have no model set),
|
|
33
|
+
# 200k context cap, tool search, auto-compact, and a statusline. Existing values are kept.
|
|
34
|
+
npx github:sumitroajiprabowo/agent-sdlc --claude --optimize
|
|
35
|
+
|
|
36
|
+
# Codex only
|
|
37
|
+
npx github:sumitroajiprabowo/agent-sdlc --codex
|
|
38
|
+
|
|
39
|
+
# Antigravity only
|
|
40
|
+
npx github:sumitroajiprabowo/agent-sdlc --antigravity
|
|
41
|
+
|
|
42
|
+
# Cursor or OpenCode (skills + 9 slash commands)
|
|
43
|
+
npx github:sumitroajiprabowo/agent-sdlc --cursor
|
|
44
|
+
npx github:sumitroajiprabowo/agent-sdlc --opencode
|
|
45
|
+
|
|
46
|
+
# Local LLMs (Ollama / OpenCode / Aider / Cline) -> <800-token prompt
|
|
47
|
+
npx github:sumitroajiprabowo/agent-sdlc --local
|
|
48
|
+
|
|
49
|
+
# Scaffold a project repository (docs/INDEX.md, ADR template, PR template, AGENTS.md + CLAUDE.md bridge, .gitignore)
|
|
50
|
+
npx github:sumitroajiprabowo/agent-sdlc --project
|
|
51
|
+
|
|
52
|
+
# Run a read-only health & token-efficiency audit
|
|
53
|
+
npx github:sumitroajiprabowo/agent-sdlc --doctor
|
|
54
|
+
|
|
55
|
+
# Install to all agents at once
|
|
56
|
+
npx github:sumitroajiprabowo/agent-sdlc --all
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Alternative Install Methods
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# Via skills CLI
|
|
63
|
+
npx skills add sumitroajiprabowo/agent-sdlc
|
|
64
|
+
|
|
65
|
+
# Via Claude Code plugin marketplace
|
|
66
|
+
/plugin marketplace add sumitroajiprabowo/agent-sdlc
|
|
67
|
+
/plugin install agent-sdlc@agent-sdlc
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## CLI Options
|
|
73
|
+
|
|
74
|
+
| Flag | Description |
|
|
75
|
+
|---|---|
|
|
76
|
+
| `--claude` | Install skills & 9 slash commands into `~/.claude/` |
|
|
77
|
+
| `--codex` | Install skills into `~/.codex/skills/` and `~/.agents/skills/` |
|
|
78
|
+
| `--antigravity` | Install skills into `~/.agents/skills/` |
|
|
79
|
+
| `--cursor` | Install skills into `~/.cursor/skills/` and commands into `~/.cursor/commands/` |
|
|
80
|
+
| `--opencode` | Install skills into `~/.config/opencode/skills/` and `~/.agents/skills/`, commands into `~/.config/opencode/command/` |
|
|
81
|
+
| `--local` | Install a compact prompt (`<800` tokens) to `~/.agent-sdlc/LOCAL_PROMPT.md` |
|
|
82
|
+
| `--project` | Scaffold non-destructive project templates (`docs/`, PR template, `AGENTS.md`, `CLAUDE.md -> @AGENTS.md`, `.gitignore`) |
|
|
83
|
+
| `--all` | Install across `claude`, `codex`, `antigravity`, `cursor`, `opencode`, and `local` |
|
|
84
|
+
| `--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 |
|
|
85
|
+
| `--doctor` | Run a read-only health & token-efficiency audit |
|
|
86
|
+
| `--no-orchestrator` | Skip installing `sdlc-orchestrator` (single-agent workflow only) |
|
|
87
|
+
| `--dry-run` | Preview actions without writing any files |
|
|
88
|
+
| `--force` | Overwrite or remove files even if they were not installed (or were edited after install) |
|
|
89
|
+
| `--uninstall` | Remove only files `agent-sdlc` installed and you haven't edited; reverts the settings `--optimize` added |
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Daily Developer Workflow
|
|
94
|
+
|
|
95
|
+
```text
|
|
96
|
+
[0] Repo Setup -> Thin AGENTS.md/CLAUDE.md (<4 KB) + docs/INDEX.md + path-scoped rules
|
|
97
|
+
[1] Plan -> /spec (big features) -> /start #123 (1 Issue = 1 PR)
|
|
98
|
+
[2] Code -> Planner designs -> Executor codes + targeted tests
|
|
99
|
+
[3] Handoff -> ctx >=70%: /handoff -> /clear -> /pickup (team: /handoff-pr)
|
|
100
|
+
[4] Ship & QA -> /qa -> /review -> /ship -> CI gate -> SemVer release -> Prod
|
|
101
|
+
[5] Incident -> Bug: fix/#id + regression test | Prod outage: hotfix/ from tag, minimal diff, back-merge
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Usage by Agent
|
|
105
|
+
|
|
106
|
+
- **Claude Code**: Use `/spec` (for big features), `/start #123`, `/handoff`, `/pickup`, `/handoff-pr`, `/adr`, `/qa`, `/review`, `/ship` directly. With `--optimize`, press `Shift+Tab` twice for Plan Mode (Opus) and approve to execute on Sonnet (`opusplan`).
|
|
107
|
+
- **Codex**: Invoke `$sdlc-workflow` or `$sdlc-orchestrator` in your prompt.
|
|
108
|
+
- **Antigravity**: Skills in `~/.agents/skills/` are discovered automatically; reference `sdlc-workflow` during `/plan` or `sdlc-orchestrator` for `/swarm` and subagents.
|
|
109
|
+
- **Cursor**: Skills in `~/.cursor/skills/` are discovered automatically and the 9 commands are available from `~/.cursor/commands/`.
|
|
110
|
+
- **OpenCode**: Skills in `~/.config/opencode/skills/` and `~/.agents/skills/` are discovered automatically; the 9 commands are in `~/.config/opencode/command/`.
|
|
111
|
+
- **Local LLMs**: Load `~/.agent-sdlc/LOCAL_PROMPT.md` as your system prompt or project instruction.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Included Playbooks & Docs
|
|
116
|
+
|
|
117
|
+
- **[sdlc-workflow](skills/sdlc-workflow/SKILL.md)** — 0 → Production SDLC playbook with 8 on-demand references:
|
|
118
|
+
- [architecture-checklist.md](skills/sdlc-workflow/references/architecture-checklist.md) — Idempotency, failure design, backward compatibility, data integrity
|
|
119
|
+
- [monolith-and-microservices.md](skills/sdlc-workflow/references/monolith-and-microservices.md) — Modular monolith boundaries, service extraction, outbox, tracing, sagas
|
|
120
|
+
- [clean-code.md](skills/sdlc-workflow/references/clean-code.md) — Coding discipline, layer boundaries, error handling, simplicity
|
|
121
|
+
- [quality-gates.md](skills/sdlc-workflow/references/quality-gates.md) — Auto-detect format, lint, vulncheck, secret scan, API QA & load/stress testing
|
|
122
|
+
- [security-checklist.md](skills/sdlc-workflow/references/security-checklist.md) — Multi-tenant isolation, session hygiene, OWASP, PII masking, audit logs
|
|
123
|
+
- [database-hygiene.md](skills/sdlc-workflow/references/database-hygiene.md) — Query plans, lock-safe migrations, pooling, short transactions, backups
|
|
124
|
+
- [incident-response.md](skills/sdlc-workflow/references/incident-response.md) — SEV1–SEV4 tiers, 5-minute mitigation rule, comms, post-mortems
|
|
125
|
+
- [developer-habits.md](skills/sdlc-workflow/references/developer-habits.md) — Observability, blameless post-mortems, code deletion, tech debt budget, DoD
|
|
126
|
+
- **[sdlc-orchestrator](skills/sdlc-orchestrator/SKILL.md)** — Token-safe multi-agent briefing & handoff protocol
|
|
127
|
+
- **[CHANGELOG.md](CHANGELOG.md)** & **[CONTRIBUTING.md](CONTRIBUTING.md)**
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## What gets installed
|
|
132
|
+
|
|
133
|
+
| Target | Skills | Slash commands |
|
|
134
|
+
|---|---|---|
|
|
135
|
+
| `--claude` | `~/.claude/skills/` | `~/.claude/commands/` |
|
|
136
|
+
| `--codex` | `~/.codex/skills/`, `~/.agents/skills/` | none |
|
|
137
|
+
| `--antigravity` | `~/.agents/skills/` | none |
|
|
138
|
+
| `--cursor` | `~/.cursor/skills/` | `~/.cursor/commands/` |
|
|
139
|
+
| `--opencode` | `~/.config/opencode/skills/`, `~/.agents/skills/` | `~/.config/opencode/command/` |
|
|
140
|
+
| `--local` | `~/.agent-sdlc/LOCAL_PROMPT.md` | none |
|
|
141
|
+
|
|
142
|
+
Every installed file is recorded with a hash in `~/.agent-sdlc/manifest.json`. The installer skips files it didn't create, and `--uninstall` removes only files that are unchanged since install.
|
|
143
|
+
|
|
144
|
+
## Troubleshooting
|
|
145
|
+
|
|
146
|
+
- **"Skipped ... not installed by agent-sdlc"**: a file with that name already exists (e.g. your own `review.md`). Keep it, rename ours, or pass `--force` to overwrite.
|
|
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 (`/agent-sdlc:review`).
|
|
148
|
+
- **Skills load twice**: you have both the Claude plugin and `npx --claude`. `--doctor` flags this; remove one with `npx sdlc-kit --claude --uninstall`.
|
|
149
|
+
- **Uninstall left a file**: it was edited after install. Delete it manually or use `--uninstall --force`.
|
|
150
|
+
- **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.
|
|
151
|
+
- **Requires Node.js >=20.**
|
|
152
|
+
|
|
153
|
+
## Verifying the token savings yourself
|
|
154
|
+
|
|
155
|
+
No benchmark numbers are published; measure on your own setup. In Claude Code run `/context` in a fresh session before and after `npx sdlc-kit --claude` and compare the "Skills" and "Slash commands" rows (only frontmatter loads up-front). Run `npx sdlc-kit --doctor` for a baseline audit.
|
|
156
|
+
|
|
157
|
+
## Development & Tests
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
npm test # Node >=20, runs in temp dirs only
|
|
161
|
+
node dist/bin/cli.js --dry-run --all # after `npm ci && npm run build`; previews an install without writing
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) before opening a PR.
|
|
165
|
+
|
|
166
|
+
## License
|
|
167
|
+
|
|
168
|
+
MIT
|
package/commands/adr.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Record a concise Architecture Decision Record (docs/adr/ADR-NNN-*.md) and update docs/INDEX.md"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Record an Architecture Decision Record for `$ARGUMENTS`:
|
|
6
|
+
|
|
7
|
+
1. Check existing files in `docs/adr/` to determine the next 3-digit sequence number (`ADR-001`, `ADR-002`, etc.); create `docs/adr/` if it does not exist.
|
|
8
|
+
2. Write a tight 25–40 line ADR at `docs/adr/ADR-NNN-<kebab-slug>.md` with these sections:
|
|
9
|
+
- `# ADR-NNN: <Title>`
|
|
10
|
+
- `**Status**: Accepted (YYYY-MM-DD)`
|
|
11
|
+
- `## Context`
|
|
12
|
+
- `## Decision`
|
|
13
|
+
- `## Rationale`
|
|
14
|
+
- `## Consequences`
|
|
15
|
+
3. If `docs/INDEX.md` exists, append a 1-line link to the new ADR. Keep it concise so it stays cheap to read on-demand.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Create a concise team handoff note (under 40 lines) and optionally post to a PR or Issue"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Prepare a clean team handoff (<40 lines, no long logs or code dumps):
|
|
6
|
+
|
|
7
|
+
1. Run `git status -sb && git log --oneline -5` and check for an active PR/MR (`gh pr view --json number,url,title 2>/dev/null || glab mr view 2>/dev/null || true`).
|
|
8
|
+
2. Draft the handoff in this exact format:
|
|
9
|
+
```markdown
|
|
10
|
+
## Handoff — <branch or ticket>
|
|
11
|
+
- **Goal**: ...
|
|
12
|
+
- **Done**:
|
|
13
|
+
- [x] ... (`path/to/file`)
|
|
14
|
+
- **Key Decisions**: ...
|
|
15
|
+
- **Blocker / Last Error**: ... (max 2 lines)
|
|
16
|
+
- **Exact Next Step**:
|
|
17
|
+
1. ...
|
|
18
|
+
2. Verify with `<exact test command>`
|
|
19
|
+
```
|
|
20
|
+
3. Show the draft to the user and ask for confirmation before posting via `gh pr comment` / `gh issue comment` / `glab mr note` (or opening a Draft PR/MR if none exists yet). Keep commits and comments free of AI attribution trailers unless requested.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Save concise session state to .claude/HANDOFF.md so you can safely /clear"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Write (overwrite) `.claude/HANDOFF.md` in the current project root with a concise handoff note (strictly under 60 lines):
|
|
6
|
+
|
|
7
|
+
- **Goal**: What we are building/fixing
|
|
8
|
+
- **Done**: Completed steps with exact file paths
|
|
9
|
+
- **Modified Files**: Output of `git status -sb` (short list only)
|
|
10
|
+
- **Key Decisions**: Non-obvious choices and why
|
|
11
|
+
- **Open Issues / Last Error**: Any failing test or blocker (1–3 lines)
|
|
12
|
+
- **Exact Next Step**: What the next session should do first
|
|
13
|
+
|
|
14
|
+
Do not include full code dumps or long logs. After writing `.claude/HANDOFF.md`, tell the user it is ready and remind them to run `/clear` then `/pickup`.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Resume work from .claude/HANDOFF.md in a fresh low-token session"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Resume work efficiently without scanning the whole repository:
|
|
6
|
+
|
|
7
|
+
1. Read `.claude/HANDOFF.md` in the current project root (if missing, say so and stop).
|
|
8
|
+
2. Run `git status -sb && git log --oneline -5` in one shell call.
|
|
9
|
+
3. Summarize the current state and next step in 3–5 bullet points, then immediately proceed with the Exact Next Step (or ask for confirmation if the next step is destructive or ambiguous).
|
package/commands/qa.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Run a token-safe CLI-first QA pyramid verification on changed modules before shipping"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Verify quality on current branch changes without dumping noisy logs or screenshots into context:
|
|
6
|
+
|
|
7
|
+
1. Run `git status -sb && git diff --stat` to identify touched layers (backend, frontend, API, DB).
|
|
8
|
+
2. Execute the QA pyramid in order with bounded output (`| tail -n 50`):
|
|
9
|
+
- **Quality Gates (Auto-Detected via `references/quality-gates.md` in the `sdlc-workflow` skill)**: Formatter, Lint & Typecheck, Vulnerability Audit, Secret Scan (report `SKIPPED (not installed)` honestly if a tool is missing)
|
|
10
|
+
- **Unit / Component**: targeted test suites covering modified files
|
|
11
|
+
- **API / Contract** (if API/models changed): validation (`400`/`422`), AuthN/AuthZ & tenant isolation (`401`/`403`), idempotency, pagination bounds, and OpenAPI/schema contract match
|
|
12
|
+
- **E2E (critical paths only)**: run via CLI test runner (e.g. `npx playwright test <spec> --reporter=line`) — do NOT take interactive browser screenshots unless explicitly requested
|
|
13
|
+
- **Load / Stress (Staging only)**: for high-traffic or DB-heavy changes, recommend or run `k6` Smoke/Load thresholds in Staging (never against Production)
|
|
14
|
+
3. If frontend UI changed, verify code covers all **5 UI States**: Default, Loading, Empty, Error, Responsive/A11y.
|
|
15
|
+
4. Output a compact QA matrix (`PASS` / `FAIL` / `SKIPPED` per layer). If a bug is found, report exact failing lines and offer to add a failing regression test before fixing.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Run a focused senior-engineer code review on current git diff before shipping"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Review ONLY the current branch changes (do not scan unrelated files):
|
|
6
|
+
|
|
7
|
+
1. Run `git status -sb && git diff --stat` and inspect `git diff` (if changes are already committed, detect the default branch via `git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/@@' || echo origin/main` and inspect `git diff <base>...HEAD`).
|
|
8
|
+
2. Check strictly for high-signal issues:
|
|
9
|
+
- **Correctness & Clean Code**: null/empty handling, off-by-one, error swallowing, concurrency/race conditions, missing idempotency/timeouts on critical mutations, surgical diffs & clean layer boundaries (`references/clean-code.md` in the `sdlc-workflow` skill)
|
|
10
|
+
- **Security**: injection, auth/tenant bypass, exposed secrets, unsafe input handling (`references/security-checklist.md` in the `sdlc-workflow` skill)
|
|
11
|
+
- **Quality Gates**: confirm Formatter, Lint & Typecheck, Vulnerability Audit, and Secret Scan pass (`references/quality-gates.md` in the `sdlc-workflow` skill)
|
|
12
|
+
- **Regressions & Contracts**: breaking API/DB changes, backward-incompatible or table-locking migrations, N+1 queries (`references/database-hygiene.md` in the `sdlc-workflow` skill)
|
|
13
|
+
- **Frontend (if UI touched)**: missing Loading, Empty, Error, or Responsive/A11y states
|
|
14
|
+
- **Tests**: missing unit/regression coverage for changed behavior
|
|
15
|
+
3. Report findings grouped by severity (**P0 Blocker**, **P1 Should Fix**, **P2 Minor**) with `file:line` references and concrete fixes, ending with `VERDICT: APPROVE` or `VERDICT: REQUEST CHANGES`.
|
|
16
|
+
4. Do NOT edit files during review unless the user asks you to fix findings.
|
package/commands/ship.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Pre-PR checklist: targeted tests, diff/secret check, docs-as-code check, and open PR"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Run the pre-PR shipping checklist:
|
|
6
|
+
|
|
7
|
+
1. Run `git status -sb && git diff --stat` to verify no stray debug files, secrets, `.env`, or `.claude/HANDOFF.md` are staged or tracked.
|
|
8
|
+
2. Run auto-detected **Quality Gates** (`references/quality-gates.md` in the `sdlc-workflow` skill: Formatter, Lint & Typecheck, Vulnerability Audit, Secret Scan) and targeted tests ONLY for affected packages with bounded output (e.g. `| tail -n 50`). Report `SKIPPED (not installed)` honestly if a tool is missing; stop and report if any check fails.
|
|
9
|
+
3. **Docs-as-Code check (3 conditions)**:
|
|
10
|
+
- API contract / DB schema / env var changed → verify the relevant doc is updated.
|
|
11
|
+
- New architectural decision → remind the user to run `/adr`.
|
|
12
|
+
- Routine internal bugfix or refactor → skip docs.
|
|
13
|
+
4. **Commit/PR hygiene**: clean commit messages without AI attribution trailers (unless project policy requires otherwise); offer sync/rebase/squash if needed.
|
|
14
|
+
5. Draft a concise PR/MR title & body (**What changed**, **How verified**, **Related issue**), and ask for user confirmation before pushing and opening it (`gh pr create` or `glab mr create`).
|
|
15
|
+
6. After shipping, remind the user to remove `.claude/HANDOFF.md` (if finished) and clear context (`/clear`) before starting the next task.
|
package/commands/spec.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Pressure-test scope and draft a concise feature spec plus issue breakdown for big features"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Use this command for **big or cross-service features** (3+ issues or multi-day work). For small 1-PR tasks or bugfixes, skip `/spec` and run `/start` directly.
|
|
6
|
+
|
|
7
|
+
1. Challenge scope and assumptions for `$ARGUMENTS` by asking 3–5 sharp questions first (user problem, explicit non-goals, edge cases, backward-compatible DB/API contract, and 5 UI states if frontend is involved).
|
|
8
|
+
2. Wait for answers, then write a concise spec (under 80 lines) to `docs/plans/<kebab-slug>.md` covering: **Goal**, **Non-Goals**, **Data & API Contract**, **UI 5-States** (if applicable), **Risks**, and **Rollout / Feature Flag**. For critical services/mutations or service boundaries, cross-check `references/architecture-checklist.md` in the `sdlc-workflow` skill and `monolith-and-microservices.md` (modular monolith vs extraction, idempotency, timeouts, failure modes).
|
|
9
|
+
3. If a major architectural trade-off was decided, remind the user to run `/adr`.
|
|
10
|
+
4. Propose a Milestone and ordered small issues (`1 Issue = 1 PR = 1 Session`: Data -> Backend -> Frontend behind Feature Flag -> E2E/Go-Live). Ask confirmation before creating issues via `gh` / `glab`.
|
|
11
|
+
5. Remind the user to run `/clear` before starting Issue 1 with `/start #<id>`.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Start a task or issue cleanly: inspect targeted context, propose a branch, and draft a concise plan"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Start the task cleanly (`$ARGUMENTS`) without scanning the whole repository:
|
|
6
|
+
|
|
7
|
+
1. Run `git status -sb && git branch --show-current` in one shell call.
|
|
8
|
+
- If `$ARGUMENTS` is an issue number/URL (e.g. `#123` or `123`), inspect it via `gh issue view <num>` (or `glab issue view <num>` if GitLab).
|
|
9
|
+
- If `$ARGUMENTS` mentions a milestone, list open issues (`gh issue list --milestone "<name>" --state open`).
|
|
10
|
+
2. Read ONLY targeted context: check `docs/INDEX.md` or relevant `docs/adr/` if present.
|
|
11
|
+
3. **Scope check**: If the task clearly spans multiple PRs/days, propose splitting into smaller issues (`1 Issue = 1 PR = 1 Session`) before coding.
|
|
12
|
+
4. **Branch**: Propose a branch name (e.g. `feat/<slug>` or `fix/<slug>`) synced from the latest base branch (ask before switching if the working tree is dirty).
|
|
13
|
+
5. Output a concise plan (<35 lines):
|
|
14
|
+
- **Goal**
|
|
15
|
+
- **Files to Touch**
|
|
16
|
+
- **Steps**
|
|
17
|
+
- **Verification Command**
|
|
18
|
+
- **Risks / Questions**
|
|
19
|
+
|
|
20
|
+
For complex tasks, switch to Plan Mode / your stronger reasoning model before approving execution on a faster model. Wait for user approval before editing code.
|
package/dist/bin/cli.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import fs from 'node:fs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { DEFAULT_PACKAGE_ROOT, parseArgs, runDoctor, runInstall } from '../lib/installer.js';
|
|
5
|
+
const HELP_TEXT = `agent-sdlc — SDLC skills, slash commands & multi-agent orchestrator protocol
|
|
6
|
+
|
|
7
|
+
Usage:
|
|
8
|
+
npx sdlc-kit [options]
|
|
9
|
+
npx github:sumitroajiprabowo/agent-sdlc [options]
|
|
10
|
+
|
|
11
|
+
Targets (auto-detected if omitted):
|
|
12
|
+
--claude Install skills & 9 slash commands to ~/.claude/
|
|
13
|
+
--codex Install skills to ~/.codex/skills/ and ~/.agents/skills/
|
|
14
|
+
--antigravity Install skills to ~/.agents/skills/
|
|
15
|
+
--cursor Install skills & commands to ~/.cursor/
|
|
16
|
+
--opencode Install skills & commands to ~/.config/opencode/ and ~/.agents/skills/
|
|
17
|
+
--local Install a compact prompt (<800 tokens) to ~/.agent-sdlc/LOCAL_PROMPT.md
|
|
18
|
+
--project Scaffold docs/, PR template, AGENTS.md, CLAUDE.md bridge & .gitignore
|
|
19
|
+
--all Install to claude, codex, antigravity, cursor, opencode, and local
|
|
20
|
+
|
|
21
|
+
Options:
|
|
22
|
+
--optimize (With --claude) Add opusplan, 200k cap, tool search & statusline to ~/.claude/settings.json (keeps your existing values)
|
|
23
|
+
--doctor Run a read-only health & token-efficiency audit
|
|
24
|
+
--no-orchestrator Skip installing the multi-agent sdlc-orchestrator skill
|
|
25
|
+
--dry-run Preview planned changes without writing files
|
|
26
|
+
--uninstall Remove agent-sdlc managed files from selected targets (skips files you edited)
|
|
27
|
+
--force Overwrite/remove files even if they were not installed by agent-sdlc
|
|
28
|
+
-h, --help Show help
|
|
29
|
+
-v, --version Show version
|
|
30
|
+
`;
|
|
31
|
+
function main() {
|
|
32
|
+
let parsed;
|
|
33
|
+
try {
|
|
34
|
+
parsed = parseArgs(process.argv.slice(2));
|
|
35
|
+
}
|
|
36
|
+
catch (err) {
|
|
37
|
+
console.error(`Error: ${err instanceof Error ? err.message : String(err)}`);
|
|
38
|
+
process.exit(1);
|
|
39
|
+
}
|
|
40
|
+
if (parsed.help) {
|
|
41
|
+
process.stdout.write(HELP_TEXT);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (parsed.version) {
|
|
45
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(DEFAULT_PACKAGE_ROOT, 'package.json'), 'utf8'));
|
|
46
|
+
console.log(pkg.version);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (parsed.doctor) {
|
|
50
|
+
const report = runDoctor();
|
|
51
|
+
console.log('agent-sdlc --doctor');
|
|
52
|
+
for (const c of report.checks) {
|
|
53
|
+
console.log(` [${c.level}] ${c.area}: ${c.message}`);
|
|
54
|
+
}
|
|
55
|
+
console.log(`Summary: ${report.okCount} ok, ${report.warnCount} warning(s)`);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const result = runInstall(parsed);
|
|
59
|
+
const mode = parsed.uninstall ? 'Uninstall' : 'Install';
|
|
60
|
+
console.log(`agent-sdlc (${mode}) targets: ${result.targets.join(', ')}`);
|
|
61
|
+
for (const action of result.actions) {
|
|
62
|
+
console.log(` - ${action}`);
|
|
63
|
+
}
|
|
64
|
+
for (const warn of result.warnings) {
|
|
65
|
+
console.log(` ! ${warn}`);
|
|
66
|
+
}
|
|
67
|
+
if (result.actions.length === 0) {
|
|
68
|
+
console.log(' (no changes)');
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
main();
|