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 and shade-kit feature 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).

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 Planned
step done / plan approve / phase advance Record steps and approvals, and move between phases Planned
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