Smart Harness for AI Driven Engineering — a gated, traceable workflow that guides AI coding agents through a feature or a bug fix.
Warning
SHADE Kit Core is in early development. The shade-kit init, shade-kit feature, and
workflow commands work today. The agent skills are still skeletons, and the other
commands are planned (see Roadmap). Names and formats may change.
SHADE Kit Core leads an AI coding agent through a fixed flow, New → Spec → Implement → Done. It has two parts:
the shade-kit CLI, which owns repository setup and workflow state, and a set of agent skills, one per step. All
three supported agents (Claude Code, GitHub Copilot CLI, and OpenAI Codex CLI) use one skill source.
- Human in charge: a step runs only when a human calls its skill. No skill starts another step.
- Two approvals: a human approves the spec before implementation starts and the result before it is done.
- Traceable: every requirement links to the test that proves it, and the evidence stays in the repository.
- State through the CLI only: skills change workflow state with
shade-kit … --jsonand never edit state files directly. - No git side effects: the kit never commits, pushes, creates branches, or opens pull requests.
stateDiagram-v2
direction LR
[*] --> New: feature new
New --> Spec: first Spec step
Spec --> Implement: Definition of Ready + approval
Implement --> Done: Definition of Done + manual verification + approval
Done --> [*]
Each feature has one of two profiles. The steps and the skills that run them:
| Phase | feature profile |
bugfix profile |
|---|---|---|
| New | /shade-kit-new |
/shade-kit-new |
| Spec | /shade-kit-research → /shade-kit-refine → /shade-kit-spec |
/shade-kit-diagnose-bug → /shade-kit-spec |
| Implement | /shade-kit-plan (plan approval) → /shade-kit-implement |
same; the regression test comes first |
| Done | /shade-kit-done |
/shade-kit-done |
The steps write their artifacts (spec.md, plan.md, review.md, verification.md, …) into the feature folder
under .shadekit/features/<feature-id>/. These files are committed together with the code.
Prerequisites: .NET SDK 10 and git.
Note
There is no packaged release yet, so the CLI has to be built from source.
git clone https://github.com/CreativeCodersTeam/shade-kit-core.git
cd shade-kit-core
dotnet buildRun init inside the git repository you want to set up:
cd /path/to/your/repo
dotnet run --project /path/to/shade-kit-core/src/CreativeCoders.ShadeKit.Cli -- initTo get a self-contained single-file binary named shade-kit, publish for your
runtime identifier:
dotnet publish src/CreativeCoders.ShadeKit.Cli -c Release -r osx-arm64 -o ./publishinit sets up the git repository of the current directory:
<repo-root>/
├── AGENTS.md # managed section between <!-- shade-kit:begin --> and <!-- shade-kit:end -->
├── CLAUDE.md # managed section, or only "@AGENTS.md" when init creates the file
└── .shadekit/
├── .gitignore # ignores the local current-feature pointer
├── config.json
├── templates/ # team-owned copies of the shipped artifact and checklist templates
├── features/
└── discussions/
You can run it again at any time. It adds only what is missing, never overwrites files the team owns, and refreshes
only its own managed section. It never runs git init and never changes git configuration.
$ shade-kit init
Repository root: /path/to/your/repo
created .shadekit/config.json
created .shadekit/.gitignore
created .shadekit/templates/spec.md
…
created AGENTS.md
created CLAUDE.mdTip
Agents should call shade-kit init --json. With --json, the command writes exactly one envelope to standard
output and nothing else.
{
"ok": true,
"data": {
"root": "/path/to/your/repo",
"entries": [
{ "path": ".shadekit/config.json", "result": "skipped" },
{ "path": "AGENTS.md", "result": "unchanged" }
]
},
"warnings": [],
"error": null
}Each entry's result is created, skipped, updated, or unchanged.
| Exit code | Meaning | Error codes |
|---|---|---|
0 |
Success, also with warnings | — |
1 |
Domain or IO error | not-a-git-repo, bare-repo, inside-git-dir, git-not-found, io-error |
2 |
Usage error, such as an unknown option | usage-error |
The only warning code is managed-section-malformed. It means the managed-section markers in AGENTS.md or
CLAUDE.md are broken.
The feature commands create features and choose the current one. They work in a repository that init has set
up:
shade-kit feature new --source <text|file|issue-url> [--title <t>] [--slug <s>] [--profile feature|bugfix] [--json]
shade-kit feature list [--phase <p>[,<p>…] | --active] [--json]
shade-kit feature current [--json]
shade-kit feature show [<id>] [--json]
shade-kit feature set <id> [--json]
feature newcreates.shadekit/features/<feature-id>/withrequest.mdandfeature.json, and makes the new feature the current one. It suggests the branchfeature/<feature-id>but creates no branch.--sourceis a GitHub issue URL (https://github.com/<owner>/<repo>/issues/<number>), an existing file (at most 1 MiB, UTF-8), or free text. An issue is read with the GitHub CLIgh, which must be logged in togithub.com(gh auth login). Any other URL is rejected, and so is a.mdor.txtpath that does not exist.request.mdholds the source content unchanged: the text, a byte copy of the file, or the issue with its comments.- The title is
--title, otherwise the issue title, the first#heading or first non-empty line of the file, or the first non-empty line of the text. The profile is--profile, otherwisedefaultProfilefromconfig.json. - The feature ID is
<yyyymmdd>-<hhmm>-<slug>(local time), or<prefix>-<number>-<slug>for an issue, where the prefix istrackers["github.com"]fromconfig.json(ghby default). The slug is--slug, otherwise it is derived from the title: issue 142 titled "Login with SSO" becomesgh-142-login-with-sso. - The current feature is the feature named by the current branch (the part after the last
/, sofeature/gh-142-login-with-ssoselectsgh-142-login-with-sso), otherwise the one in the local, gitignored pointer.shadekit/features/current-feature.json, otherwise none.feature newandfeature set <id>write the pointer. feature listlists the features sorted by creation time.--phase new,speckeeps only the given phases (new,spec,implement,done), and--activekeeps the features that are notdone.feature showshows the fullfeature.jsonand the files of a feature, or of the current feature when<id>is left out.
$ shade-kit feature new --source "Export customers as CSV"
ID: 20261129-1415-export-customers-as-csv
Title: Export customers as CSV
Profile: feature
Folder: .shadekit/features/20261129-1415-export-customers-as-csv
Suggested branch: feature/20261129-1415-export-customers-as-csvWith --json, every feature command writes exactly one envelope to standard output, like init. The exit codes
are the same as for init:
| Exit code | Meaning | Error codes |
|---|---|---|
0 |
Success, also with warnings | — |
1 |
Domain or IO error | not-a-git-repo, bare-repo, inside-git-dir, git-not-found, io-error, not-initialized, config-invalid, unsupported-source, source-file-not-found, source-invalid, gh-not-found, gh-auth-required, issue-read-failed, git-user-missing, feature-exists, feature-not-found, feature-invalid, no-current-feature |
2 |
Usage error, such as an unknown option, an invalid --slug, or an unknown phase |
usage-error |
The warning codes are feature-invalid (feature list skips a broken feature folder), pointer-invalid and
stale-pointer (the pointer is broken or names no valid feature), branch-overrides-pointer (the current branch
selects another feature than the pointer), and pointer-not-set (feature new created the feature but could not
write the pointer).
The workflow commands record the progress of the current feature through New → Spec → Implement → Done and show
where it stands. The step skills call them; a human can call them too. Like the feature commands, they work in a
repository that init has set up:
shade-kit step done <research|refine|diagnose-bug|create-spec|create-dev-plan|implement-dev-plan> [--json]
shade-kit plan approve [--json]
shade-kit phase enter <spec|implement|done> [--json]
shade-kit status [--json]
The steps of the two profiles, in profile order, with the skill that runs them and the artifact each one needs in the feature folder:
| Step | Phase | Profile | Skill | Artifact |
|---|---|---|---|---|
research |
spec |
feature |
shade-kit-research |
research.md |
refine |
spec |
feature |
shade-kit-refine |
— |
diagnose-bug |
spec |
bugfix |
shade-kit-diagnose-bug |
diagnosis.md |
create-spec |
spec |
feature, bugfix |
shade-kit-spec |
spec.md |
create-dev-plan |
implement |
feature, bugfix |
shade-kit-plan |
plan.md |
implement-dev-plan |
implement |
feature, bugfix |
shade-kit-implement |
verification.md |
- All four commands work on the current feature (see
shade-kit feature). There is no option to name another feature: choose it withfeature set <id>or with its branch. Without a current feature, they fail withno-current-feature. - The current feature must have a valid state:
profileisfeatureorbugfix,phaseisnew,spec,implement, ordone,completedStepsholds only step IDs of the profile,planApprovedis a boolean, andhistoryis an array. Otherwise the command fails withfeature-invalidand names the field. step done <step>records a step of the current phase in the feature's profile, otherwise it fails withstep-not-allowed.implement-dev-planalso needs an approved plan (plan-not-approved). The step's artifact must be present: a regular file larger than 0 bytes (artifact-missing). The checks run in this order. The CLI does not enforce the order of the steps inside a phase, and a step can be recorded again:completedStepskeeps it once, at the position of its first completion, and every call adds ahistoryentry.step done create-dev-planafter the plan was approved or afterimplement-dev-planwas recorded resets the plan:planApprovedbecomesfalse,implement-dev-planis removed fromcompletedSteps, and the warningplan-approval-resetnames what was reset. A new plan needs a new approval and a new implementation.plan approverecords the human's approval of the dev plan. It needs phaseimplement(wrong-phase), the stepcreate-dev-plan(step-required), and a presentplan.md(artifact-missing), checked in this order. An approved plan can be approved again, which adds anotherhistoryentry.phase enter <phase>moves the feature into the next phase:new→spec→implement→done. Any other phase, also the current one, fails withphase-transition-invalid; there is no way back.phase enter implementneeds the stepcreate-spec, andphase enter doneneedsimplement-dev-plan(step-required). Enteringimplementordoneis the human's approval of the transition and is recorded asapprove; enteringspecis recorded asenter.- An unknown step or phase, including
phase enter new, is a usage error. The argument is checked after the repository checks and before the current feature is resolved. - The writing commands (
step done,plan approve,phase enter) change onlyphase,completedSteps,planApproved, andhistoryinfeature.json. All other fields, including unknown ones, keep their values and their order. Each call appends one or morehistoryentries with the same timeatand the git userby. Whenuser.nameoruser.emailis not set,byisnulland the call adds the warninggit-user-missing. A refused call changes nothing. statuschanges nothing and needs no git user. It shows the feature and how it was resolved, the plan approval, every step of the profile with its phase, skill, and whether it is done, the skills to call next, and the files of the feature folder.
status lists the skills to call next by this rule. The rows are checked from top to bottom, and the first matching
row wins:
| State | Recommended | Alternatives |
|---|---|---|
new |
the first spec step (shade-kit-research or shade-kit-diagnose-bug) |
none |
spec, a step of spec not done |
the first such step | the done steps of spec |
spec, all steps of spec done |
shade-kit-plan (gate into Implement) |
the steps of spec |
implement, create-dev-plan not done |
shade-kit-plan (step create-dev-plan) |
none |
implement, plan not approved |
shade-kit-plan (plan approval) |
none |
implement, approved, implement-dev-plan not done |
shade-kit-implement |
shade-kit-plan |
implement, implement-dev-plan done |
shade-kit-done (gate into Done) |
shade-kit-plan, shade-kit-implement |
done |
none | none |
Each entry of next has skill, kind (step, gate, or plan-approval), step (the step ID for kind step,
otherwise null), and recommended. Exactly one entry is recommended, none in phase done. The alternatives have
kind step and are listed in profile order, and a skill appears at most once.
$ shade-kit step done research
Step research recorded for 20261129-1415-csv-export.
$ shade-kit status
ID: 20261129-1415-csv-export
Title: CSV export
Profile: feature
Phase: spec
Resolved by: pointer
Plan approved: no
┌───────────┬────────────────────┬──────┐
│ Phase │ Step │ Done │
├───────────┼────────────────────┼──────┤
│ spec │ research │ yes │
│ spec │ refine │ no │
│ spec │ create-spec │ no │
│ implement │ create-dev-plan │ no │
│ implement │ implement-dev-plan │ no │
└───────────┴────────────────────┴──────┘
Next skills:
/shade-kit-refine (recommended)
/shade-kit-research
Files:
.shadekit/features/20261129-1415-csv-export/feature.json
.shadekit/features/20261129-1415-csv-export/request.md
.shadekit/features/20261129-1415-csv-export/research.mdplan approve prints Plan approved for <id>., and phase enter prints Phase <phase> entered for <id>.. With
--json, the data of a writing command holds id, phase, completedSteps, planApproved, and the history
entries written by this call. The entries have these shapes; at is the local time with its offset, cut to whole
seconds, and removedSteps is empty when only the approval was reset:
{ "at": "2026-12-02T10:00:00+01:00", "by": { "name": "Jane Doe", "email": "jane@example.com" }, "action": "enter", "from": "new", "to": "spec" }
{ "at": "…", "by": { "…": "…" }, "action": "step", "step": "research" }
{ "at": "…", "by": { "…": "…" }, "action": "approve", "from": "spec", "to": "implement" }
{ "at": "…", "by": { "…": "…" }, "action": "approve-plan" }
{ "at": "…", "by": null, "action": "reset-plan-approval", "removedSteps": ["implement-dev-plan"] }With --json, every workflow command writes exactly one envelope to standard output, like init. The exit codes
are the same as for init:
| Exit code | Meaning | Error codes |
|---|---|---|
0 |
Success, also with warnings | — |
1 |
Domain or IO error | not-a-git-repo, bare-repo, inside-git-dir, git-not-found, io-error, not-initialized, no-current-feature, feature-invalid, step-not-allowed, plan-not-approved, artifact-missing, step-required, wrong-phase, phase-transition-invalid |
2 |
Usage error, such as an unknown option, step, or phase | usage-error |
The warning codes are pointer-invalid and stale-pointer (the pointer is broken or names no valid feature),
git-user-missing (a writing command recorded by as null), and plan-approval-reset (a new plan reset the
approval), in this order.
| Path | Contents |
|---|---|
src/CreativeCoders.ShadeKit.Cli |
The shade-kit command-line application |
src/CreativeCoders.ShadeKit.Core |
Workflow logic, git abstraction, JSON envelope, shipped templates |
skills/ |
Agent skills, one per step, plus helper skills (skeletons) |
tests/ |
xUnit v3 unit tests and CLI integration tests |
docs/ |
Concept, specifications, and implementation reports |
dotnet build
dotnet test- The build treats warnings as errors, including the .NET analyzers and SonarAnalyzer.
- Package versions are managed centrally in
Directory.Packages.props. - GitVersion computes versions from the git history. A release is a
v<SemVer>tag onmain, and builds fromfeature/*branches are prereleases.
- Concept: scope and workflow
- Specification:
shade-kit init - Implementation report:
shade-kit init - Specification:
shade-kit feature - Specification: workflow commands
| Command | Purpose | Status |
|---|---|---|
init |
Set up .shadekit/ and the agent instruction files |
Available |
install / update |
Install or update the skills for the detected agents | Planned |
feature new / list / current / show / set |
Create features and choose the current one (see shade-kit feature) |
Available |
status |
Show the phase and the skills to call next (see workflow commands) | Available |
step done / plan approve / phase enter |
Record steps and approvals, and move between phases (see workflow commands) | Available |
version |
Show the CLI version and the contract the skills check | Planned |
The step skills in skills/ are skeletons until the commands they depend on are in place.