/issues:user-configfrom issues
Interactively create or merge-update the repo-level `.issues/user-config.md` (this user, this repo, this machine) and add it to the repo's tracked `.gitignore`.
Ships in issues. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are running the /user-config skill. Your job is to create or
merge-update the repo-level user-config file at
<repo-root>/.issues/user-config.md by interviewing the user,
and to ensure that file is listed in the repo's tracked .gitignore
so no clone ever commits it.
This file records one user's own settings for one repo on one
machine — private, never committed, not shared with the team. It is
the per-repo-per-user counterpart to the team-shared, committed
.issues/repo-config.md. See skills/lib/user-config.md for
the schema, the read contract, and the two-scope model. The
user-global counterpart ($XDG_CONFIG_HOME/issues/user-config.md) is written
by the sibling skill /global-user-config.
/repo-config is a full-rewrite tool: it owns its whole file and
replaces it every run. /user-config is different. The
user-config file is multi-writer: the identity skill (#156) owns
identity-key; other skills own other keys; this skill owns the keys
it interviews for. So /user-config merges:
schema-version to the current version.A rewrite-from-scratch would clobber sibling keys. Never do that. If the file does not exist yet, "merge" degenerates to "create a new file with just this run's keys plus the version stamp".
Follow the steps below in order. Do not write the file until the user has explicitly approved the proposed content.
Verify you are inside a git working tree:
git rev-parse --show-toplevel
If the command fails (non-zero exit, or stderr indicates "not a git repository"), abort with:
/user-configmust be run from inside a git repository. The current directory is not a git working tree.
Treat the path printed by git rev-parse --show-toplevel as the
repo root for the rest of the skill — the skill writes
<repo-root>/.issues/user-config.md regardless of which
subdirectory the user invoked from. Do not string-compare the
printed path against cwd (symlinks like macOS /tmp →
/private/tmp would mis-flag a legitimate repo root).
Also determine whether the user owns this repo (for the .gitignore
note in Step 5). Run issues-discover viewer, which this plugin puts
on PATH; it prints { host, owner, repo, login }, where login is
the user gh is authenticated as on the repository's own host, and
compare owner against login. This is advisory only — used to
phrase the .gitignore consequence note, not to gate anything. If
the call exits non-zero, skip the comparison and follow Step 5's
ownership-unknown case.
Check whether <repo-root>/.issues/user-config.md exists.
/repo-config, you read it to merge, not just to display:
parse the front-matter YAML so you can preserve sibling keys and
pre-fill the interview with the user's current values as the
recommended defaults.
schema-version. If it is absent or stale (less than the
current version 1), note that the merge will also migrate the
stamp up. Do not abort — /user-config is the tool that fixes a
stale stamp.The current schema-version constant baked into this writer is:
SCHEMA_VERSION = 1
See skills/lib/user-config.md for the reader contract that consumes
it.
Use the AskUserQuestion tool. The repo-level user-config has no
required keys — at schema-version 1 every key is optional and the
file may legitimately contain only schema-version. The interview is
therefore an offer, not a gauntlet.
Ask the user which per-repo-per-user settings they want to record. Present the keys this skill knows about, each with a "leave unset" option, plus an "Other" branch for arbitrary keys:
identity-key — a machine-local binding from this repo to a
GitHub App private-key identity (the binding #156's identity
resolver reads). If the user wants to set it now, capture the
string value. Recommended: leave unset unless the user is
wiring up #156's identity flow — that flow normally writes this
key itself. Surface a one-line note: "Usually written by the
identity skill; set it here only if you know the key name."default-assignee — an optional per-user assignee identifier
in the form this repo's configured tracker accepts (a GitHub login
on GitHub; an Atlassian account identifier on Jira), used by the
example consumer documented in skills/lib/user-config.md
(self-assign issues without touching team-shared repo-config).
Recommended: leave unset.branch-prefix-initials — the initials an issue-branch name
carries in front of / when the repo-config's
issue-branch-naming-prefix is initials; this repo's value
overrides a user-global one. No / and no whitespace. Recommended:
leave unset unless that mode is configured.branch-prefix-name — the same, for
issue-branch-naming-prefix: name.key: value pair they want to
record as a personal per-repo setting. Capture key and value as
strings. Repeat until the user is done.For each key:
If the user picks "leave unset" for a key that already exists in the file, do not delete it — leaving a key unset in the interview means "do not change it", per merge semantics. To remove a key, the user edits the file by hand or you offer an explicit "remove this key" choice; default behavior never deletes a sibling.
If the user wants nothing recorded and the file does not yet exist,
confirm they still want a stub file (just schema-version: 1)
created so future skills have something to merge into. A stub is
valid and is the recommended outcome when the user is setting up the
repo ahead of #156.
Build the front-matter that will be written by merging:
schema-version: 1 (re-stamp; first key in the rendered
output).Render order: schema-version first, then the remaining keys. For
keys that pre-existed, preserve their relative order; append
newly-added keys after the pre-existing ones. Quote any value that
YAML would otherwise misparse (e.g. a value starting with #).
.gitignore updateThe repo-level user-config must never be committed. /user-config
ensures it is excluded via the repo's tracked .gitignore (not
.git/info/exclude): a committed .gitignore means every clone
and every teammate automatically ignores the file, so nobody
accidentally commits their own private copy.
Determine the entry to add. The path relative to repo root is:
.issues/user-config.md
Read the repo's existing <repo-root>/.gitignore (if any):
If the entry (or a pattern that already matches it) is present:
no .gitignore change is needed; note that in the Step 6 preview.
If a stale .claude/rules/user-config.md entry is present: plan
to delete that line (and a comment line that exists only to
introduce it). The user-config file no longer lives there, so the
entry protects nothing and tells the next reader the wrong place to
look. Removing it is part of this run's ignore-list change, not a
separate offer.
If absent: plan to append the entry. Match the existing file's
style — if the repo uses an allow-list / invert pattern (a leading
/* that ignores everything, then !-negations), adding a plain
ignore line still works because last-match-wins, but place it
after any broad un-ignore of .issues/ so it is not
re-included. The relevant negation depth is whichever !-line
un-ignores the directory that holds the file — in an allow-list
repo that re-includes .issues/ (e.g. !/.issues/), the new
ignore line must sit after that !/.issues/ negation. When in
doubt, append at the end of the file under a short comment:
# Per-repo-per-user config (private; never committed). Written by
# /user-config. The entry is public in this tracked .gitignore even
# though the file contents stay private.
.issues/user-config.md
Consequence on record (surface this to the user): the
.gitignore entry is public — it shows up in the repo's tracked
.gitignore and in any PR that adds it — even though the file
contents stay private and uncommitted. If the user does not
own this repo, note that adding the entry is a tracked edit that
must go through a PR to the repo's owners; the user may prefer to
use .git/info/exclude (per-clone, untracked) instead. Offer that
alternative when ownership detection in Step 1 suggests the user is
not the owner:
.gitignore
edit (the default)..gitignore
entry anyway (will need a PR) or (b) add the pattern to
.git/info/exclude instead (per-clone, no PR, but only protects
this clone). Record the user's choice..gitignore entry (needs a PR if the user does not own
the repo) and .git/info/exclude (per-clone, no PR, but only
protects this clone), recommending neither, and record the user's
choice.Render, for the user to approve:
schema-version: 1 first and all preserved +
changed keys) plus the canonical body template from Step 7. For an
existing file, also show a short diff summary: which keys this run
changes, which it preserves untouched..gitignore change (the exact line to be appended, the
stale .claude/rules/user-config.md line to be deleted if Step 5
found one, and to which file — tracked .gitignore or
.git/info/exclude per the Step 5 choice), or "no .gitignore
change needed" if already covered.Then ask explicitly:
Write
.issues/user-config.md(merged) and update the ignore list as shown? (y to proceed, or tell me what to change)
Wait for explicit approval (y, yes, go, do it, etc.). If the
user asks for changes, loop back to Step 3 or Step 5 as appropriate,
then re-render here.
On approval:
Write the user-config file with the Write tool, replacing
the whole file with the merged content from Step 4 + the body
template below. (You compute the full merged content in memory and
write it in one call; the content is a merge even though the
write replaces the file. Never use Edit to surgically rewrite
one key — recompute the whole merged front-matter and write it,
so the version stamp and key order stay consistent.)
In a brand-new repo .issues/ may not exist. The Write tool
creates missing parents automatically. If your tool path does not,
run mkdir -p .issues first.
Update the ignore list per the Step 5 choice:
.gitignore: use Edit to append the planned entry (and
its comment) to <repo-root>/.gitignore, or Write if the file
does not exist yet, and to delete the stale
.claude/rules/user-config.md line Step 5 planned. Do not
reorder or rewrite unrelated lines..git/info/exclude: append the pattern to
<repo-root>/.git/info/exclude. This is inside .git/, which
is outside the worktree's tracked tree but still under the repo
root — it is the deliberate per-clone alternative and is allowed
here.Compose the user-config file in this order:
schema-version: 1 first, then
preserved + changed keys).# User Config (repo-level).The canonical body template:
# User Config (repo-level)
Per-repo-per-user config: **this user, this repo, this machine.**
Private — never committed (the repo's `.gitignore` excludes it). Not
shared with the team. The team-shared, committed counterpart is
`.issues/repo-config.md`; the user-global counterpart is
`$XDG_CONFIG_HOME/issues/user-config.md`.
Read via the contract in `skills/lib/user-config.md`. Written and
merge-updated by `/user-config` (this scope) — the file is
**multi-writer**, so `/user-config` replaces only the keys it owns
and preserves keys written by other skills (e.g. `identity-key`,
written by #156's identity skill).
## Keys
- **schema-version**: integer naming the file's schema version.
Current version is `1`. Writers stamp it; readers (see
`skills/lib/user-config.md`) gate on it. Do not edit by hand.
- **identity-key** *(optional)*: machine-local binding from this repo
to a GitHub App private-key identity, read by #156's identity
resolver. Usually written by the identity skill, not by hand.
- **branch-prefix-initials** *(optional)*: the initials an
issue-branch name carries in front of `/` when the repo-config's
`issue-branch-naming-prefix` is `initials`; overrides a user-global
value. No `/` and no whitespace.
- **branch-prefix-name** *(optional)*: the same, for
`issue-branch-naming-prefix: name`.
- *(other keys)*: any per-user, per-repo value future skills record.
Unknown keys are preserved on merge and ignored by readers that do
not consume them.
There are **no required keys** beyond `schema-version`. A file
containing only the version stamp is valid — these files are
forward-looking and start mostly empty.
## Why this file is gitignored, not committed
A value here is one user's own setting on one machine. Committing it
would leak a private binding (or impose one user's preference on the
team). `/user-config` adds this path to the repo's tracked
`.gitignore` so every clone ignores it automatically. The
`.gitignore` *entry* is public; the file *contents* are not.
After the Write call, re-read the file and confirm the points
below. This re-read is content verification, not write
verification: Write already errors if the bytes did not land, so
the goal here is to confirm the merge produced the intended
content — schema-version stamped, owned keys updated, siblings
preserved — which a successful Write alone does not guarantee.
Keep this step even though it looks redundant with Write success.
schema-version: 1 first.Also confirm the ignore-list change landed (the entry is present in the chosen ignore file). If verification fails, surface the discrepancy and stop — do not attempt a corrective second write.
Report back:
schema-version..gitignore or .git/info/exclude), or "already covered" /
"no change"..gitignore, remind them the entry will need a PR.schema-version. A rewrite-from-scratch that drops a sibling key
is a bug.<repo-root>/.issues/user-config.md and the repo's
ignore list (<repo-root>/.gitignore or
<repo-root>/.git/info/exclude)..gitignore change
themselves (the user-config file itself is ignored and never
committed)..gitignore entry in a repo the user does not own without saying
so.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub thevoskamps/claude-plugins-marketplace --plugin issues26 skills in this plugin
/global-user-configInteractively create or merge-update the user-global `$XDG_CONFIG_HOME/issues/user-config.md` (machine-wide; all repos on this machine)./issue-addDeprecated alias for /issue-create. Kept for muscle memory./issue-branch-prefixResolve the literal prefix that goes in front of an issue-branch name, from the repo-config's issue-branch-naming-prefix mode and the user-config's branch-prefix-initials or branch-prefix-name value. Read-only.Other plugins' skills for the same job