Requirements#
What this project must do, the conditions it works under, and what it deliberately does not do. Each requirement says where it is verified, so a change that breaks one fails a test, not a user.
Purpose#
Give an organisation one command-line core for every repository, which each repository extends with its own commands, and distribute agent skills to every repository and every coding-agent harness from three origins: the organisation’s shared skills, allow-listed vendors, and the repository’s own. People, CI and AI agents use the same commands.
Functional requirements#
The launcher#
ID |
Requirement |
Verified by |
|---|---|---|
F1 |
|
|
F2 |
A root pinning |
|
F3 |
A broken |
|
F27 |
A root pinning a core older than the installed one, whose run rejects the command or an option, is told how to move the pin. |
|
F28 |
The installed |
|
Extensions and the command standard#
ID |
Requirement |
Verified by |
|---|---|---|
F4 |
A repository adds commands as an |
|
F5 |
Every command, core and extension, follows one mechanical standard (names, help texts, module per command, annotations, an example on every command an agent may run), checked by |
|
F6 |
|
|
Skills#
ID |
Requirement |
Verified by |
|---|---|---|
F7 |
Every skill lives in |
|
F8 |
Only skills a lock entry owns are written or deleted; a folder the lock does not own is the repository’s own and is never overwritten; a managed skill edited by hand is replaced only with |
|
F9 |
Vendor skills come only from the content release’s allow-list; bundled ones must match the commit and content hash the release reviewed, so a moved tag or changed content fails before anything is written. |
|
F10 |
|
|
F11 |
Editing the sources ( |
|
F12 |
In the content repository, |
|
Agents#
ID |
Requirement |
Verified by |
|---|---|---|
F13 |
|
|
F14 |
A command is |
|
F15 |
|
|
F30 |
The core commands declare examples, and |
|
The organisation#
ID |
Requirement |
Verified by |
|---|---|---|
F16 |
|
|
F17 |
|
|
F18 |
|
|
F19 |
|
|
F20 |
|
|
F29 |
|
|
F21 |
Opening a pull request ( |
|
F22 |
|
|
Settings#
ID |
Requirement |
Verified by |
|---|---|---|
F23 |
|
|
F24 |
|
|
F25 |
|
|
F26 |
Settings are read when a command needs them, by one loader for every layer: an invalid value fails that command once, naming the setting, its value and where it is set, and a file that does not read fails with its path; commands that need no settings still run, and |
|
Non-functional requirements#
ID |
Requirement |
Verified by |
|---|---|---|
N1 |
Works on macOS, Linux and Windows; Python 3.11 and newer. |
CI matrix (3 OSes × Python 3.11, 3.14) |
N2 |
The declared dependency lower bounds work, not just the locked versions. |
CI |
N3 |
Five runtime dependencies only: cli-interview-kit, packaging, pydantic, pyyaml and tomlkit. Another needs a strong case. |
Review ( |
N4 |
GitHub is reached only through the GitHub CLI; graftkit never reads, stores or prints a token. |
|
N5 |
The package builds, renders on PyPI and imports from a clean environment; it is typed ( |
CI |
N6 |
95% or more test coverage; warnings in tests are errors. |
CI |
N7 |
|
CI |
N8 |
The API reference is generated from the docstrings, builds without warnings, and lists every public name; the source, the scaffold templates and the tests follow the docstring and comment rules, and every pydantic field is described. |
CI |
Environment and constraints#
Tools: uv runs pinned versions and extensions;
gitand the GitHub CLI (gh auth login) are needed for skills from GitHub and for pull requests.graftkit doctorchecks all three.Harnesses: any harness that reads
.agents/skills, or one listed in the harness table, which links each skill where it reads. Agents need only a shell to use--describeanddescribe --json.Windows: skill links are symbolic links, so Windows needs
core.symlinks(developer mode).Repository rules (managed outside this repo): a code owner must approve every pull request, merges are squash-only,
ci-requiredmust pass, and tags matchingv*are protected. Releases are tags onmain, published to PyPI and as a GitHub Release (see CONTRIBUTING.md).
Out of scope#
Nested roots (one graftkit.toml per repository); skill hosts other than GitHub; extensions in
languages other than Python; user-level skill installs (~/.agents/skills); a harness plugin
marketplace. Each can be proposed in an issue.
Verification status#
Every requirement above is covered by the test suite and CI. GitHub is replaced by an in-memory
fake (graftkit.testing.FakeGitHub) in the tests; the real gh and git calls are tested
against a local repository, and skills review was also run against the real vendor
repositories.