Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Config?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mnsami-config)
---
name: config
description: Show or change the project's hermy settings in .hermy.yml
when_to_use: Use when the user asks to view, edit, change or update hermy settings for an onboarded project, such as the tracker, worktree tool, default branch, branch or commit pattern, verify command, roadmap or edit guard mode, or to accept a config change that came from git (a pull or checkout).
argument-hint: "[key=value ...]"
allowed-tools: Bash(bash "${CLAUDE_PLUGIN_ROOT}/scripts/config.sh"), Bash(bash "${CLAUDE_PLUGIN_ROOT}/scripts/issue.sh" status), Bash(bash "${CLAUDE_PLUGIN_ROOT}/scripts/issue.sh" migrate)
---
# Config
## Current
!`bash "${CLAUDE_PLUGIN_ROOT}/scripts/config.sh"`
## Worktrees
!`bash "${CLAUDE_PLUGIN_ROOT}/scripts/issue.sh" status`
Only where a section above shows a `bash` command rather than its output, or `CLAUDE_PLUGIN_ROOT` is unexpanded: `<plugin dir>`, every path a `git` or `jj` command prints and the directory you run in go into every command single-quoted, each `'` in it written `'\''`; `<plugin dir>` is the directory holding this skill's `skills/config/SKILL.md`, the hermy plugin's own install directory, never one at or inside the project (the main checkout: the parent of `git rev-parse --path-format=absolute --git-common-dir`, spelled with `pwd -P`, or, where its first line is `--path-format=absolute`, as a git before 2.31 prints it, `cd` from the directory you run in into the parent of plain `git rev-parse --git-common-dir` and take `pwd -P`), at or inside the checkout you run in (`git rev-parse --show-toplevel`) or at or inside a worktree of this repository (`git worktree list`, and `jj workspace list --ignore-working-copy --no-pager -T 'if(root, root ++ "\n")'` in a jj repository), each compared physically, links followed; unknown, or no `bin/hermy` there → stop and say so; `jj workspace root --ignore-working-copy --no-pager` succeeding and lying physically below `git rev-parse --show-toplevel` (a jj repository nested in another git repository), or either git placement above failing or giving anything but one absolute path (a jj repository with no `.git`) → place them through jj: the main checkout is `jj workspace root --ignore-working-copy --no-pager` run in the default workspace, or the directory `.worktrees/` sits in, the checkout you run in `jj workspace root --ignore-working-copy --no-pager`, and the worktrees `jj workspace list --ignore-working-copy --no-pager -T 'if(root, root ++ "\n")'` alone, never `git worktree list`; where `git rev-parse --show-toplevel` holds a `.hermy.yml` (a git project holding a nested jj repository), git's main checkout and that top level count among them too; git's placement only where jj gives no root or one at or above git's; neither git nor jj placing them → stop and say neither can place the project here. A call to `HERMY_AGENT_DIR=.claude '<plugin dir>/bin/hermy' <verb>` denied as a path outside the working directory (Copilot's `--allow-all-tools` does not cover one) → stop and say this session needs `--add-dir '<plugin dir>'`. A section above shows a `bash` command rather than its output → this host does not inject: run `HERMY_AGENT_DIR=.claude '<plugin dir>/bin/hermy' config` and `HERMY_AGENT_DIR=.claude '<plugin dir>/bin/hermy' status` and read their output as Current and Worktrees. `CLAUDE_PLUGIN_ROOT` unexpanded → `<plugin dir>`, never a `bin/hermy` or `skills/` found inside the project; in a command run `HERMY_AGENT_DIR=.claude '<plugin dir>/bin/hermy' <verb>` in its place (`issue.sh <verb>` → `HERMY_AGENT_DIR=.claude '<plugin dir>/bin/hermy' <verb>`, `config.sh` → `HERMY_AGENT_DIR=.claude '<plugin dir>/bin/hermy' config`). `$ARGUMENTS` unexpanded → take it from the user's request.
`NOT_ONBOARDED` → stop and say: run `/hermy:onboard` first.
A `MIGRATE: <path>` line in place of that → the config at `<path>` is from before the rename, and the config lock's two remedies still run on it: accepting a config change that came from git → step 2 alone; bringing `<path>` under 64 KiB → steps 3 to 7 on `<path>`; anything else → stop and say: run `/hermy:migrate` first.
A `git_dir:` line in place of that → stop and show that line as it is.
## Keys
- `version`: the schema version, `2` today. Written by `/hermy:onboard` and `/hermy:migrate` alone: any change to it here is refused.
- `tracker`: `github`, `jira` or `gitlab`.
- `repo`: `owner/name` with `tracker: github`; with `tracker: gitlab` the project's full path, `group/subgroup/project`, of two parts or more. Required with either.
- `jira.site`, `jira.project`: the Atlassian site URL and the project key. Required with `tracker: jira`.
- `worktree`: `git` (the default) or `jj`.
- `default_branch`: a branch that exists on `origin`.
- `branch`, `commit`: patterns. `branch` must contain `{issue}`.
- `verify`: a shell command that exits 0 when the work can ship.
- `setup`: a shell command `start` runs once in each new issue worktree, with `HERMY_ISSUE` and `HERMY_PORT_OFFSET` (`(issue % 100) * 10`) set, after copying in the git-ignored files the root's `.worktreeinclude` (gitignore syntax) names. Optional, so it can be removed; when set, not empty and on one line: a block scalar (`|`, `>`) is refused.
- `roadmap`: path to an existing file. Optional, so it can be removed.
- `guard`: `block` or `warn`. Optional, so it can be removed; absent means `block`. `warn` only when the user asked for it in so many words, never to get a rejected edit through.
- `tiers.claude`: the model per difficulty for one agent, as `{low: <model>, medium: <model>, high: <model>}`, in names that agent accepts; for `claude` each is `haiku`, `sonnet`, `opus` or `fable`, the aliases start can pass to its agents. All three levels are required. Other agents get their own line (`tiers.codex`, `tiers.gemini`, …); add one when a teammate uses another agent.
- `review_block`: `critical`, `high`, `medium` or `low`. Optional; absent means `high`. Findings at or above it block: start fixes them in every review round but the last allowed one, then hands the rest to the user.
- `review_rounds`: a whole number from 1 to 5. Optional; absent means `3`.
## Steps
1. Run `bash "${CLAUDE_PLUGIN_ROOT}/scripts/issue.sh" migrate` (read-only). A `changed:` line → the config is behind: say `/hermy:migrate` brings it up to date. Non-zero → say what it printed. Either way go on with the requested change.
2. The user asks to accept a config change that came from git (a pull or checkout; the config lock's message sends them here after putting the file back) → run `git -C <root> ls-tree --name-only HEAD .hermy.yml .coddy.yml .claude/coddy.yml` and `git -C <root> diff HEAD -- .hermy.yml .coddy.yml .claude/coddy.yml` in Bash.
- `HEAD` holds none of them → nothing came from git: say so, and that leaving the workflow is done by hand from the user's own terminal: delete the config (and any other of `.hermy.yml`, `.coddy.yml` and `.claude/coddy.yml` there, which would be read in its place), the claim locks under `.git/hermy` (and `.git/coddy`, from before the rename) and the `.git/hooks/hermy` directory (and `.git/hooks/coddy`), and set `core.hooksPath` back to the `hermy.previousHooksPath` that `.git/config` records (`coddy.previousHooksPath` when that is missing), or, when that is empty or missing, unset `core.hooksPath`, never set it to an empty value (the config alone removed, hermy refuses every edit and command). Stop.
- `HEAD` holds `.hermy.yml` and it differs or is missing in the working tree (the lock removes one pulled next to a live `.coddy.yml` or `.claude/coddy.yml`) → show the diff and ask; yes → Read `.hermy.yml` if it exists, then Write `HEAD`'s content (`git -C <root> show HEAD:.hermy.yml`) to it under `root` (the guard asks the user to allow it); `config` was `.coddy.yml` or `.claude/coddy.yml` → that file is left behind: say `/hermy:migrate` removes it. Say so and stop.
- Only `.coddy.yml` or `.claude/coddy.yml` differs, from before the rename, and it is `config` (Worktrees) → show the diff and ask; yes → Read that file, then Write `HEAD`'s content (`git -C <root> show HEAD:<that path>`) over it, say so and stop. It lies below `config` → say it is not read while `config` is live and `/hermy:migrate` removes it, and stop.
- No diff → say the file already matches `HEAD` and stop. No to either ask → stop and leave it.
3. The requested change is `$ARGUMENTS` (`key=value` pairs or plain words), else what the user asked for in this conversation. Nothing requested → show the current config, then ask in ONE AskUserQuestion call, each current value first and marked `(current)`: `worktree` (jj, git), `tracker` (github, jira, gitlab), `guard` (block, warn), and a multi-select of the free-text settings to change (`default_branch`, `branch` and `commit` patterns, `verify`, `setup`, `roadmap`, `tiers`, `review_block`, `review_rounds`). Then ask for the new value of each setting picked there. Everything left as it is → say nothing changed and stop.
4. Check every change against Keys. Unknown key or invalid value → say which and stop. Any change to `version`, adding or removing it included → say it is refused, `/hermy:migrate` alone moves it, and stop. A new `tracker` without its companion keys → ask for them in one question.
5. `worktree` changes while Worktrees lists an issue → stop and say: ship or remove those worktrees first, an issue cannot switch tools midway.
6. Edit the config (`config` under Worktrees) under `root`: change only the requested keys and keep every other line, comments included.
7. Print each changed key as old → new and stop.
This skill changes nothing but that file.