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.

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.1.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.1.0
File Size Uploaded Provenance Actions
graftkit-0.1.0.tar.gz 125.2 kB With provenance Details for graftkit-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 202.2 kB

Release files / graftkit-0.1.0.tar.gz

Download URL graftkit-0.1.0.tar.gz
Size 125.2 kB
Tags Source
SHA-256 checksum
How to use checksums
983ce868beebef4afd8d03b8312ea33a03e2f170317e53c5b24f275e4d3ed0c8
BLAKE2b-256 checksum
How to use checksums
ec76581fb5ec2c233592b238339f48a9357a35cb0503af3d93273a9622eade49
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.1.0-py3-none-any.whl

Download URL graftkit-0.1.0-py3-none-any.whl
Size 77.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bee87bc826c17e1d4473046a6d4db34b3afa1444b94543941b82afe22c853e8a
BLAKE2b-256 checksum
How to use checksums
1b228a73cae1f2656270e8bf11a7d294f078c43754bef53737a9593fdc0215d3
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.1.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.1.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