Skip to main content

graftkit

CI PyPI Python Docs License: MIT

One CLI core for every repository, with each repository grafting on its own commands and agent skills. Works for people at a terminal, for CI, and for AI coding agents (Claude Code, Codex, Copilot, Cursor, opencode, pi, or your own harness).

  • Root-aware. graftkit finds the repository it runs in (the nearest graftkit.toml, as git finds .git) and runs the version that repository pins. Install it once; every repository stays reproducible.
  • Per-repository commands. A repository adds its own commands as an extension: an AWS repository gets AWS commands, a data repository gets data commands, all in the same shape.
  • Agent skills, distributed. Shared skills and bundles from your organisation's content repository, skills from an allow-list of vendors, and each repository's own skills: pinned, locked, hash-verified, and linked for every harness.
  • Agent-ready commands. Every command is a cli-interview-kit declaration, so it runs as an interview, from flags, or from an agent: --questions prints the interview as JSON, graftkit describe --json lists every command in the repository, and each command says whether an agent may run it itself or must hand it to the user. skills sync writes this into a generated graftkit skill, so agents know the repository's commands without being told.

Why

AI made building fast; review and consistency are the new bottleneck. When an agent can add a feature in minutes, the hard part is keeping every repository doing the routine things (CI checks, deploys, skills) the same, reviewed way. graftkit gives every repository one versioned core and one standard, and each repository grafts on only what is its own.

It is built for agents from the start. They learn a repository's commands from a generated skill, run the ones marked safe, and hand the rest to a person. Agent skills are distributed like code: reviewed once centrally, then pinned and hash-checked everywhere.

Status: alpha (0.x). The public API is listed in the API reference; a breaking change bumps the minor version.

Install

uv tool install graftkit
graftkit doctor

Requires uv (the launcher runs pinned versions with uvx) and, for skills from GitHub, the GitHub CLI logged in with gh auth login. graftkit never handles a token itself.

Start a repository

graftkit init     # writes graftkit.toml and a CI check; asks which harnesses to serve
# graftkit.toml
[cli]
core = "0.1.0"                       # the graftkit version this repository runs

[settings]
content_repository = "acme/agent-skills"   # your organisation's shared skills, if any

[skills]
harnesses = ["claude", "codex", "copilot", "pi"]

Skills

Every skill lives in .agents/skills/<name>/, which most harnesses read directly; Claude Code gets a relative link per skill in .claude/skills/. Commit both, with graftkit.lock. Next to your own and your sources' skills, skills sync keeps the generated graftkit skill: this repository's commands, for agents.

graftkit skills new                       # scaffold a skill of this repository's own
graftkit skills add shared --bundle common  # skills from your content repository
graftkit skills add databricks --all      # every skill of an allow-listed vendor
graftkit skills status                    # every skill, its origin and its state
graftkit skills update --pr               # move pins to the latest releases, as a pull request
graftkit skills sync --check              # for CI: offline, fails on any difference
[skills.sources.shared]          # the content repository: shared skills, bundles, allow-list
version = "v1.4.0"
bundles = ["common"]

[skills.sources.databricks]      # a vendor on the allow-list, pinned by this repository
version = "v0.2.56"
skills = ["*"]
exclude = ["databricks-serverless-migration"]

A skill folder the lock does not own is the repository's own and is never touched. Every managed skill is locked by commit and content hash. Vendor skills that come through a bundle are also checked against what the content release reviewed, so a moved tag or changed content fails before anything is written; a vendor a repository pins itself is that repository's review.

The content repository

Your organisation's shared skills live in one repository:

graftkit-content.toml   schema = 1, requires_core = ">=0.1,<1"
skills/<name>/SKILL.md  shared skills, to the Agent Skills specification
bundles.toml            named sets of shared and vendor skills
vendors.toml            the allow-list, with a reviewed version per bundled vendor
vendors.lock            commit and content hash of every bundled vendor skill

graftkit skills review there pins bundled vendor skills in vendors.lock and checks the release; tag it to release. Any repository proposes a skill to it with graftkit skills promote <skill>, as a pull request.

Your own commands

In a Python repository:

graftkit extension new     # scaffolds commands/, workflows/ and tests, registers the entry point
uv sync
graftkit hello             # the example command, run inside the repository's environment

See Writing an extension. Each command is held to one standard (graftkit extension check), so every repository's CLI reads the same.

Documentation

https://northbridge-capital.github.io/graftkit/:

Development

Requires uv and just. See CONTRIBUTING.md.

just sync   # install dependencies
just lint   # ruff, ruff format, mypy (strict)
just test   # pytest in parallel, with the coverage gate

License

MIT. graftkit is maintained by Northbridge Capital.

Metadata

Release files for graftkit 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for graftkit 0.2.0
File Size Uploaded Provenance Actions
graftkit-0.2.0.tar.gz 126.0 kB With provenance Details for graftkit-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for graftkit 0.2.0
File Interpreter ABI Platform Actions
graftkit-0.2.0-py3-none-any.whl Python 3 none any Details for graftkit-0.2.0-py3-none-any.whl

Total release size: 203.3 kB

Release files / graftkit-0.2.0.tar.gz

Download URL graftkit-0.2.0.tar.gz
Size 126.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c542d38254f7e60547ebbcc17b4cb7e80b7ac54e7e547de9af7f36b88048dd17
BLAKE2b-256 checksum
How to use checksums
87cab195d386f4ec90bae167f471121c546f7ca6caef24cc7fcecc4de64510ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / graftkit-0.2.0-py3-none-any.whl

Download URL graftkit-0.2.0-py3-none-any.whl
Size 77.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb6d456fa2827d14463bcc17380eaf4d8b9a9d13f1845c30eef49c65f0e43258
BLAKE2b-256 checksum
How to use checksums
2ee7ff125539a90db348acdaef306d1819f01afe3cc9567bc7f14350c00f0720
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for graftkit 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for graftkit-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page