Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SHADE Kit Core

Smart Harness for AI Driven Engineering — a gated, traceable workflow that guides AI coding agents through a feature or a bug fix.

License: Apache-2.0 .NET 10

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.

Overview

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 … --json and never edit state files directly.
  • No git side effects: the kit never commits, pushes, creates branches, or opens pull requests.

Workflow

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 --> [*]
Loading

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.

Getting started

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 build

Run 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 -- init

To 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 ./publish

shade-kit init

init 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.md

Tip

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.

shade-kit feature

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 new creates .shadekit/features/<feature-id>/ with request.md and feature.json, and makes the new feature the current one. It suggests the branch feature/<feature-id> but creates no branch.
  • --source is 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 CLI gh, which must be logged in to github.com (gh auth login). Any other URL is rejected, and so is a .md or .txt path that does not exist.
  • request.md holds 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, otherwise defaultProfile from config.json.
  • The feature ID is <yyyymmdd>-<hhmm>-<slug> (local time), or <prefix>-<number>-<slug> for an issue, where the prefix is trackers["github.com"] from config.json (gh by default). The slug is --slug, otherwise it is derived from the title: issue 142 titled "Login with SSO" becomes gh-142-login-with-sso.
  • The current feature is the feature named by the current branch (the part after the last /, so feature/gh-142-login-with-sso selects gh-142-login-with-sso), otherwise the one in the local, gitignored pointer .shadekit/features/current-feature.json, otherwise none. feature new and feature set <id> write the pointer.
  • feature list lists the features sorted by creation time. --phase new,spec keeps only the given phases (new, spec, implement, done), and --active keeps the features that are not done.
  • feature show shows the full feature.json and 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-csv

With --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).

shade-kit workflow commands

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 with feature set <id> or with its branch. Without a current feature, they fail with no-current-feature.
  • The current feature must have a valid state: profile is feature or bugfix, phase is new, spec, implement, or done, completedSteps holds only step IDs of the profile, planApproved is a boolean, and history is an array. Otherwise the command fails with feature-invalid and names the field.
  • step done <step> records a step of the current phase in the feature's profile, otherwise it fails with step-not-allowed. implement-dev-plan also 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: completedSteps keeps it once, at the position of its first completion, and every call adds a history entry.
  • step done create-dev-plan after the plan was approved or after implement-dev-plan was recorded resets the plan: planApproved becomes false, implement-dev-plan is removed from completedSteps, and the warning plan-approval-reset names what was reset. A new plan needs a new approval and a new implementation.
  • plan approve records the human's approval of the dev plan. It needs phase implement (wrong-phase), the step create-dev-plan (step-required), and a present plan.md (artifact-missing), checked in this order. An approved plan can be approved again, which adds another history entry.
  • phase enter <phase> moves the feature into the next phase: new → spec → implement → done. Any other phase, also the current one, fails with phase-transition-invalid; there is no way back. phase enter implement needs the step create-spec, and phase enter done needs implement-dev-plan (step-required). Entering implement or done is the human's approval of the transition and is recorded as approve; entering spec is recorded as enter.
  • 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 only phase, completedSteps, planApproved, and history in feature.json. All other fields, including unknown ones, keep their values and their order. Each call appends one or more history entries with the same time at and the git user by. When user.name or user.email is not set, by is null and the call adds the warning git-user-missing. A refused call changes nothing.
  • status changes 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.md

plan 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.

Repository layout

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

Development

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 on main, and builds from feature/* branches are prereleases.

Documentation

Roadmap

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages