Settings#
The core names no organisation’s repositories. The values that tie it to an organisation are settings, read from these layers, each overriding the one before:
Layer |
Where |
Use it for |
|---|---|---|
1. Built-in default |
none for every setting so far |
|
2. User config |
|
your own machine |
3. Root |
|
the repository: committed, so CI and teammates get it |
4. Environment |
|
CI overrides |
Setting |
Means |
Needed by |
|---|---|---|
|
the content repository (shared skills, bundles, allow-list), |
|
|
the GitHub organisation, e.g. |
the |
|
the git identity |
|
# graftkit.toml
[settings]
content_repository = "my-org/agent-skills"
organisation usually belongs in the user config, since the org commands run outside any
repository:
# ~/.config/graftkit/config.toml
organisation = "my-org"
git_name = "Ada Lovelace"
git_email = "ada@my-org.example"
A command that needs a setting nobody gave fails and says how to set it.
Setting them#
graftkit config # asks for every setting; writes your user config
graftkit config --organisation my-org # the same from flags, for scripts and agents
graftkit config --in-root # writes this root's [settings] instead
graftkit config show # every setting, its value, and the layer it comes from
graftkit config show --json # the same, for agents
graftkit config unset git_email # removes it from your user config (--in-root: from the root)
Each question is derived from the setting itself (its description and format), and defaults to
the value already in the layer being written, so pressing enter keeps it. Writing keeps the file’s
comments and layout. When a later layer still overrides a value just written (the root’s
[settings], or a GRAFTKIT_* variable), config says so. Nothing asks for settings at install
or on first run.