# 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 | `$GRAFTKIT_CONFIG`, else `$XDG_CONFIG_HOME/graftkit/config.toml`, else `~/.config/graftkit/config.toml` | your own machine | | 3. Root | `[settings]` in `graftkit.toml` | the repository: committed, so CI and teammates get it | | 4. Environment | `GRAFTKIT_`, e.g. `GRAFTKIT_CONTENT_REPOSITORY` | CI overrides | | Setting | Means | Needed by | |---|---|---| | `content_repository` | the content repository (shared skills, bundles, allow-list), `owner/name` | `[skills.sources.shared]` | | `organisation` | the GitHub organisation, e.g. `my-org` | the `org` commands | | `git_name`, `git_email` | the git identity `org clone` sets on each new clone; unset, a clone keeps git's own | `org clone` (optional) | ```toml # graftkit.toml [settings] content_repository = "my-org/agent-skills" ``` `organisation` usually belongs in the user config, since the `org` commands run outside any repository: ```toml # ~/.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 ```bash 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.