Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "creativecoders-shade-kit",
"owner": {
"name": "CreativeCodersTeam"
},
"metadata": {
"description": "SHADE kit (Smart Harness for AI Driven Engineering): skills that run AI agents through the software lifecycle in a guided, gated workflow."
},
"plugins": [
{
"name": "shade-kit",
"source": "./",
"description": "SHADE kit skills: a gated workflow (feature, bugfix, and quick profiles) that takes a requirement through refine, map, plan, implement, verify, and finish, with quality gates and traceability driven by the shade-kit CLI.",
"author": {
"name": "CreativeCodersTeam",
"url": "https://github.com/CreativeCodersTeam"
},
"homepage": "https://github.com/CreativeCodersTeam/shade-kit",
"repository": "https://github.com/CreativeCodersTeam/shade-kit",
"license": "Apache-2.0"
}
]
}
21 changes: 21 additions & 0 deletions .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "shade-kit",
"description": "SHADE kit skills: a gated workflow (feature, bugfix, and quick profiles) that takes a requirement through refine, map, plan, implement, verify, and finish, with quality gates and traceability driven by the shade-kit CLI.",
"author": {
"name": "CreativeCodersTeam",
"url": "https://github.com/CreativeCodersTeam"
},
"homepage": "https://github.com/CreativeCodersTeam/shade-kit",
"repository": "https://github.com/CreativeCodersTeam/shade-kit",
"license": "Apache-2.0",
"keywords": [
"workflow",
"quality-gates",
"traceability",
"specification",
"planning",
"implementation",
"verification",
"bugfix"
]
}
18 changes: 11 additions & 7 deletions CLAUDE.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

SHADE kit runs AI coding agents through a gated feature workflow: from a raw requirement to a clarified spec, a plan, the implementation, and a verified result with a report. It is built for small teams of 2–5 developers who work on features in parallel, each on its own branch, with Claude Code, GitHub Copilot, or OpenAI Codex CLI.

> **Status:** in development. Most commands described here are planned; today the CLI provides `shade-kit version`, `shade-kit init`, the feature commands `shade-kit feature new`, `list`, `current`, `set`, `show`, and `drop`, and the phase commands `shade-kit phase start`, `approve`, `reject`, `complete`, `skills`, and `next`.
> **Status:** in development. Most commands described here are planned; today the CLI provides `shade-kit version`, `shade-kit init`, the feature commands `shade-kit feature new`, `list`, `current`, `set`, `show`, and `drop`, the phase commands `shade-kit phase start`, `approve`, `reject`, `complete`, `skills`, and `next`, `shade-kit gate info`, and `shade-kit integrations install` and `update` for Claude Code.

## How it works

SHADE kit has two parts. The skills are the prompts the agent follows; the `shade-kit` CLI is the memory and the referee.

- **Skills** (`skills/`): one skill per phase plus shared skills for interviews, gate checks, research, and reviews. They are installed once per machine for each agent (`shade-kit integrations install`), never into a repository.
- **Skills** (`skills/`): one skill per phase plus shared skills for interviews, gate checks, research, and reviews. They are installed once per machine for each agent (`shade-kit integrations install`), never into a repository. For Claude Code this repository is the plugin marketplace: the command installs the plugin `shade-kit` from the release tag of the installed engine, and `shade-kit integrations update` moves it to the tag of a newer engine.
- **Engine** (`shade-kit`): a .NET CLI that keeps the feature state in `.shadekit/` inside the repository, committed and merged with the code. Agents call it with `--json`.
- **Phases:** `new` → `refine` → `map` → `plan` → `implement` → `verify` → `finish` in the `feature` profile. The `bugfix` profile replaces `refine` and `map` with `diagnose`; the `quick` profile runs `new` → `quick` → `finish` for small changes.
- **Gates:** the human approves every phase transition. The Definition of Ready guards `plan`, the Definition of Done guards `finish`; each gate can be switched off per repository.
Expand Down
16 changes: 10 additions & 6 deletions docs/feature-packages/01-store-foundation-and-format-versioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

| | |
|---|---|
| Status | Draft, 2026-10-14, updated 2026-10-18 (implementation state; package 02 implementation: missing `features/` is valid, exit codes 11, 13, 23; code review rework: exit codes 14, 24), 2026-10-21 (package 03 implementation: exit codes 15, 16, 30–34, 36, 40, warning codes, store file operations; code review rework: exit codes 2 and 130, warning codes `feature-folder-invalid`, `feature-id-mismatch`, `current-feature-invalid`, `MoveDirectory`; second code review: exit code 35), 2026-10-26 (package 04 implementation: exit codes 37, 41–46; 40 owned by 04), 2026-11-01 (package 05 implementation: exit code 47, warning codes `gates-defaults-used` and `gate-entry-ignored`), 2026-11-04 (package 05 reviews: exit code 17, since the /simplify review of feature/feature-05 for every write of the store), and 2026-11-06 (package 06-1 implementation: range 50–59, exit code 50, warning code `engine-prerelease-version-mismatch`, `version --expect`). Implemented except the integration versions in `version --json` (package 07). |
| Status | Draft, 2026-10-14, updated 2026-10-18 (implementation state; package 02 implementation: missing `features/` is valid, exit codes 11, 13, 23; code review rework: exit codes 14, 24), 2026-10-21 (package 03 implementation: exit codes 15, 16, 30–34, 36, 40, warning codes, store file operations; code review rework: exit codes 2 and 130, warning codes `feature-folder-invalid`, `feature-id-mismatch`, `current-feature-invalid`, `MoveDirectory`; second code review: exit code 35), 2026-10-26 (package 04 implementation: exit codes 37, 41–46; 40 owned by 04), 2026-11-01 (package 05 implementation: exit code 47, warning codes `gates-defaults-used` and `gate-entry-ignored`), 2026-11-04 (package 05 reviews: exit code 17, since the /simplify review of feature/feature-05 for every write of the store), 2026-11-06 (package 06-1 implementation: range 50–59, exit code 50, warning code `engine-prerelease-version-mismatch`, `version --expect`), 2026-11-13 (package 07 implementation: format id `integrations` removed, `integrations` in `version --json`, exit codes 51–53, warning codes `integration-prerelease-ref`, `integration-release-tag-missing`, and `agent-unavailable`), and 2026-11-14 (package 07 review rework: a command-specific message for 130). Implemented. |
| Source | Concept §3.1, §3.2, §4.1, [§9](../../research/shade-kit-concept.md#9-version-drift) |
| Depends on | — |
| Enables | Every later package |
Expand Down Expand Up @@ -52,7 +52,8 @@ Every file the kit writes into a repository is safe across branch merges and kit
| `feature` | `.shadekit/features/<id>/feature.json` |
| `current-feature` | `.shadekit/features/current-feature.json` |
| `templates-lock` | `.shadekit/templates.lock.json` |
| `integrations` | User-level integration record (package 07) |

The format id `integrations` for a user-level integration record was removed on 2026-11-13 (package 07 implementation): the engine keeps no record of its own and reads the installed integrations from the agent. **Decided** on 2026-11-13 (package 07 implementation). **Implemented** (`FormatIds`, `FormatRegistry.CreateDefault()`, `FormatRegistryTests`).

- Fields the engine does not know are kept unchanged when the file is written back. Adding a field never raises the format version. **Decided** (concept §9.4). **Implemented** (`[JsonExtensionData]` in `VersionedDocument`).
- A file without `schemaVersion` is treated as invalid, not as version 1, and every command that touches it stops (`invalid-file`). **Decided** (concept §9.1), because a missing version most likely means a hand-edited or foreign file. **Implemented** (`InvalidKitFileException`).
Expand All @@ -69,8 +70,8 @@ Every file the kit writes into a repository is safe across branch merges and kit

### `shade-kit version`

- Plain output: the engine version. **Decided** (implemented in code). **Implemented** (`VersionCommand`).
- `--json` output: engine version and the current format version per file type, keyed by format id (`"formats": { "config": 1, … }`). This is the engine's capability, not the state of a repository. **Decided** (implemented in code). **Implemented** (`VersionCommandData`). Skills use it for the version handshake (package 06): with `--expect <version>` it checks the engine against the skill's version (package 06-1, **Implemented**), and package 07 adds the installed integration versions to it.
- Plain output: the engine version, since package 07 followed by one line per installed integration. **Decided** (implemented in code). **Implemented** (`VersionCommand`).
- `--json` output: engine version and the current format version per file type, keyed by format id (`"formats": { "config": 1, … }`). This is the engine's capability, not the state of a repository. **Decided** (implemented in code). **Implemented** (`VersionCommandData`). Skills use it for the version handshake (package 06): with `--expect <version>` it checks the engine against the skill's version (package 06-1, **Implemented**). Since package 07 it also has the always-present field `integrations` with the installed integrations (`agent`, `pluginId`, `kitVersion`, `ref`, `enabled`), read from the agents whose CLI is detected; an agent CLI that is missing gives no warning, one that is detected but fails gives the warning `agent-unavailable`, and neither fails the command (**Implemented** on 2026-11-13, `VersionCommandData.Integrations`).

### Agent contract (applies to every agent-facing command)

Expand All @@ -88,8 +89,8 @@ Every file the kit writes into a repository is safe across branch merges and kit
```

On failure, `ok` is `false`, `data` is `null`, and `error` is `{ "code": "…", "message": "…" }`. **Implemented** (`CliJsonEnvelope`, `ICliJsonWriter`, `CliErrorMapper`).
- Every failure has a stable exit code from `ShadeKitCliExitCodes` and, in JSON mode, a stable error code string, so skills can branch on it without parsing messages. **Decided** (implemented in code). Error and warning codes are kebab-case. **Decided** (implemented in code). Codes that only appear as warnings are in `ShadeKitCliWarningCodes`: `current-feature-mismatch`, `current-feature-missing`, `current-feature-invalid`, `feature-file-missing`, `feature-folder-invalid`, and `feature-id-mismatch`, all from package 03; `gates-defaults-used` and `gate-entry-ignored` from package 05 (since 2026-11-01); `engine-prerelease-version-mismatch` from package 06-1 (since 2026-11-06); `upgrade-needed` is both an error code and a warning code. **Implemented** (`ShadeKitCliWarningCodes`, since 2026-10-21).
- Exit codes are grouped in ranges per area: 10–19 store and kit root, 20–29 file format and format version, 30–39 features, 40–49 phases and gates, 50–59 versions and integrations (since 2026-11-06, package 06-1), 255 host errors. **Decided** (implemented in code). Two codes are outside the area ranges, because they apply to every command: 2 (`invalid-arguments`) is the usage code for arguments the option parser rejects, for example a missing required argument; the message names the problem and points to `shade-kit <command> --help`, and there is no stack trace. **Decided** on 2026-10-21 (package 03 code review rework). 130 (`canceled`, 128 + SIGINT) ends a run canceled with Ctrl+C. **Decided** on 2026-10-21 (package 03 code review rework). Both are **Implemented** (`CliErrorMapper.MapArgumentError`, `CliErrorMapper.MapCancellation`, `Program`); in JSON mode each writes one failure envelope. An option class the parser cannot create is a defect of the CLI and stays 255 (`host-error`). Codes owned by packages 01 to 06-1, all **Implemented** (`ShadeKitCliExitCodes`, `ShadeKitCliErrorCodes`, `CliErrorMapper`). Exit code 11 is free since 2026-10-18 (see [Kit root](#kit-root)). Exit code 35 (`feature-io-failed`) was added on 2026-10-21 after the second code review of package 03. Exit code 37 (`no-current-feature`) was added on 2026-10-26 with package 04, in the features range because it is about features. Exit code 40 is owned by package 04 since 2026-10-26, because profiles belong to it; package 04 added 41–46 (package 04, [Errors](04-phase-engine-and-workflow-profiles.md#errors)). Exit code 47 (`checklist-template-not-found`) was added on 2026-11-01 with package 05, and exit code 17 (`kit-file-write-failed`, a file of the store cannot be written, in the store range) on 2026-11-04 after the code review of package 05 (package 05, [Errors](05-gates-and-checklists.md#errors)); since the /simplify review of the same day it applies to every write of the store ([Kit root](#kit-root)). Exit code 50 (`version-mismatch`) was added on 2026-11-06 with package 06-1 (package 06-1, [Exit and warning codes](06-1-engine-version-check.md#exit-and-warning-codes)):
- Every failure has a stable exit code from `ShadeKitCliExitCodes` and, in JSON mode, a stable error code string, so skills can branch on it without parsing messages. **Decided** (implemented in code). Error and warning codes are kebab-case. **Decided** (implemented in code). Codes that only appear as warnings are in `ShadeKitCliWarningCodes`: `current-feature-mismatch`, `current-feature-missing`, `current-feature-invalid`, `feature-file-missing`, `feature-folder-invalid`, and `feature-id-mismatch`, all from package 03; `gates-defaults-used` and `gate-entry-ignored` from package 05 (since 2026-11-01); `engine-prerelease-version-mismatch` from package 06-1 (since 2026-11-06); `integration-prerelease-ref`, `integration-release-tag-missing`, and `agent-unavailable` from package 07 (since 2026-11-13); `upgrade-needed` is both an error code and a warning code. **Implemented** (`ShadeKitCliWarningCodes`, since 2026-10-21).
- Exit codes are grouped in ranges per area: 10–19 store and kit root, 20–29 file format and format version, 30–39 features, 40–49 phases and gates, 50–59 versions and integrations (since 2026-11-06, package 06-1), 255 host errors. **Decided** (implemented in code). Two codes are outside the area ranges, because they apply to every command: 2 (`invalid-arguments`) is the usage code for arguments the option parser rejects, for example a missing required argument; the message names the problem and points to `shade-kit <command> --help`, and there is no stack trace. **Decided** on 2026-10-21 (package 03 code review rework). 130 (`canceled`, 128 + SIGINT) ends a run canceled with Ctrl+C. **Decided** on 2026-10-21 (package 03 code review rework). A command may give its own message for 130: a cancellation during the marketplace switch of `integrations install` or `update` names the repair (`IntegrationSwitchCanceledException`, mapped in `CliErrorMapper.Map`; **Decided** on 2026-11-14, package 07 review rework). Both are **Implemented** (`CliErrorMapper.MapArgumentError`, `CliErrorMapper.MapCancellation`, `Program`); in JSON mode each writes one failure envelope. An option class the parser cannot create is a defect of the CLI and stays 255 (`host-error`). Codes owned by packages 01 to 06-1, all **Implemented** (`ShadeKitCliExitCodes`, `ShadeKitCliErrorCodes`, `CliErrorMapper`). Exit code 11 is free since 2026-10-18 (see [Kit root](#kit-root)). Exit code 35 (`feature-io-failed`) was added on 2026-10-21 after the second code review of package 03. Exit code 37 (`no-current-feature`) was added on 2026-10-26 with package 04, in the features range because it is about features. Exit code 40 is owned by package 04 since 2026-10-26, because profiles belong to it; package 04 added 41–46 (package 04, [Errors](04-phase-engine-and-workflow-profiles.md#errors)). Exit code 47 (`checklist-template-not-found`) was added on 2026-11-01 with package 05, and exit code 17 (`kit-file-write-failed`, a file of the store cannot be written, in the store range) on 2026-11-04 after the code review of package 05 (package 05, [Errors](05-gates-and-checklists.md#errors)); since the /simplify review of the same day it applies to every write of the store ([Kit root](#kit-root)). Exit code 50 (`version-mismatch`) was added on 2026-11-06 with package 06-1 (package 06-1, [Exit and warning codes](06-1-engine-version-check.md#exit-and-warning-codes)):

| Exit code | Error code | Owner |
|---|---|---|
Expand Down Expand Up @@ -123,6 +124,9 @@ Every file the kit writes into a repository is safe across branch merges and kit
| 46 | `phase-state-invalid` | 04 |
| 47 | `checklist-template-not-found` | 05 |
| 50 | `version-mismatch` | 06-1 |
| 51 | `agent-not-found` | 07 |
| 52 | `agent-command-failed` | 07 |
| 53 | `integration-conflict` | 07 |
| 130 | `canceled` | 03 (every command) |
| 255 | `host-error` | 01 |

Expand Down
Loading
Loading