[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77KF3J6H41WZK4DRJX2VS91":3,"skill-same:01M77KF3J6H41WZK4DRJX2VS91":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M77KF3J6H41WZK4DRJX2VS91","repo-config",null,"Interactively create or fully rewrite `.issues\u002Frepo-config.md` by interviewing the user about VCS, issue tracker, and (for GitHub repos) the associated Project V2 board.","TheVoskamps\u002Fclaude-plugins-marketplace","TheVoskamps","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235012489?v=4","01M77K5ZCP12QCJPQ85WVJSHTS","Irene and Edwin Voskamp","01M77K5ZDS7DB0PA1W8FM7G2QD",0,"GPL-3.0","https:\u002F\u002Fgithub.com\u002FTheVoskamps\u002Fclaude-plugins-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fissues\u002Fskills\u002Frepo-config\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: repo-config\ndescription: Interactively create or fully rewrite `.issues\u002Frepo-config.md` by interviewing the user about VCS, issue tracker, and (for GitHub repos) the associated Project V2 board.\n---\n\nYou are running the `\u002Frepo-config` skill. Your job is to create the\n**target repo's** `.issues\u002Frepo-config.md` from scratch, or to\nfully rewrite it when it already exists, by interviewing the user.\nEvery `\u002Fissue-*` skill reads this file, as does any other skill or\nagent that needs the repo's VCS, tracker, branch, or project-board\nvalues, so it must be present and well formed before those flows will\nwork.\n\n`\u002Frepo-config` does **not** merge with the existing file or rewrite\nparts of it in place. When the file already exists, the user confirms\nan overwrite up front in Step 2.5; the final write in Step 5 replaces\nthe entire file with content built from the user's answers in the\ncurrent run. However, the existing file is **not** discarded before\nthe interview: its current values are parsed in Step 2 and become the\nrecommended default for each interview question, so an\naccept-everything run reproduces the prior file (plus any fields the\nschema has added since). When the file does not exist, the recommended\noption for every interview question is the built-in default baked into\nthis skill. If the user wants the prior file's contents preserved\nverbatim, they decline the Step 2.5 overwrite prompt and the file is\nleft untouched.\n\nFollow the steps below in order. Do not write the file until the\nuser has explicitly approved the proposed content.\n\n---\n\n## Step 1: Pre-flight\n\nVerify you are inside a git working tree by running:\n\n```bash\ngit rev-parse --show-toplevel\n```\n\nIf the command fails (non-zero exit, or stderr indicates \"not a git\nrepository\"), abort with a clear message:\n\n> `\u002Frepo-config` must be run from inside a git repository. The current\n> directory is not a git working tree.\n\nDo not continue past this step on failure.\n\nTreat the path printed by `git rev-parse --show-toplevel` as the\n**repo root** for the rest of the skill — the skill writes\n`\u003Crepo-root>\u002F.issues\u002Frepo-config.md` regardless of which\nsubdirectory of the worktree the user invoked the command from. Do\n**not** string-compare the printed path against the user's current\nworking directory: `git rev-parse --show-toplevel` returns a real\npath, while the user's cwd may traverse symlinks (for example, on\nmacOS `\u002Ftmp` resolves to `\u002Fprivate\u002Ftmp`, and project trees frequently\nsit under symlinked workspace directories). A naive equality check\nwould mis-flag a legitimate repo as \"not a repo root\".\n\n## Step 2: Detect existing config\n\nCheck whether `.issues\u002Frepo-config.md` already exists in the\ntarget repo (relative to the repo root from Step 1).\n\n`\u002Frepo-config` is a **full-rewrite** tool: the final write in Step 5\nreplaces the entire file with content assembled from the user's\nanswers in this run, and it does not preserve the existing body\nverbatim. But the existing file is treated as a **source of\nrecommended defaults** for the interview — its current values are\ncarried over so an accept-everything run reproduces them.\n\n- **If it exists**: read the file's full contents into memory. Use\n  the bytes for two purposes:\n  1. Display to the user in Step 2.5 before they decide whether to\n     overwrite.\n  2. Parse for carry-over defaults. Parse the YAML front-matter into\n     per-field values, and parse whichever **tracker-metadata block**\n     the existing file carries (or note a skip marker) for the\n     downstream per-slot recommendations: the `github-project:` block\n     when present, feeding the Step 3b per-slot recommendations, and\n     the `jira:` block when present, feeding the Step 3c per-slot\n     recommendations. The two are mutually exclusive (selected by the\n     `issues:` value), so at most one is present; parse the one that\n     is. Each recognized field's parsed value becomes the recommended\n     (first, `(Recommended)`-suffixed) option for its interview\n     question in Step 3 (and Step 3b or Step 3c). A field present in\n     the file but unrecognized by the current schema is ignored,\n     not surfaced. A field absent or unparseable falls back to the\n     built-in default. Do **not** validate parsed values against the\n     live project — carry-over is convenience, not authority (see\n     Step 3b).\n- **If it does not exist**: nothing to read; the recommended option\n  for every interview question is the **built-in default** baked into\n  this skill. Proceed straight to Step 3.\n\nA file whose `schema-version` is **below** the current version is\nstill parsed for carry-over: the version check is a *reader* concern,\nand `\u002Frepo-config` is the *writer* — it treats any existing file as a\nsource of defaults regardless of its declared version.\n\nThe built-in front-matter defaults (used when the file is absent, or\nper-field when a field is missing or unparseable) are:\n\n- `source-control`: `GitHub`\n- `issues`: `GitHub`\n- `issue-link-prefix`: `#`\n- `default-issue-source-branch`: `main`\n- `default-pr-target-branch`: `main`\n- `issue-branch-naming-prefix`: `none`\n\n`schema-version` is **not** in this list — it is a write-time\nconstant (currently `7`) baked into this skill, not an interview\nquestion, and it is never carried over from the existing file. See\n`skills\u002Flib\u002Frepo-config.md` for the reader contract that consumes it.\n\nAlso, before Step 3, gather the local branch list with\n`git branch --format='%(refname:short)'` so you can offer real\nbranches as options for the two branch fields.\n\n## Step 2.5: Confirm overwrite (existing file only)\n\nThis step runs **only if the file existed** in Step 2. If the file\ndid not exist, skip directly to Step 3.\n\n`\u002Frepo-config` rewrites the entire file from the user's answers in\nthis run. Before running the interview — which is wasted effort if\nthe user actually wanted to inspect, not overwrite — confirm intent\nwith a single overwrite prompt.\n\n1. Display the **full current contents** of\n   `.issues\u002Frepo-config.md` to the user — front-matter and\n   body, byte-for-byte as read from disk. Do not paraphrase or\n   summarize; the user is deciding whether to discard the real file.\n2. Ask via `AskUserQuestion`: \"This will replace\n   `.issues\u002Frepo-config.md` with a fresh file built from your\n   answers — continue?\" with options `Yes` and `No`.\n3. **On `No`**: end the skill cleanly. Report that the file was\n   left unchanged at `\u003Crepo-root>\u002F.issues\u002Frepo-config.md`.\n   Do **not** enter the interview. Do **not** write or edit\n   anything. Skip Steps 3 through 6.\n4. **On `Yes`**: continue into Step 3. Each interview question\n   recommends the value carried over from the existing file (parsed\n   in Step 2) when one is present and parseable, falling back to the\n   **built-in default** otherwise.\n\n## Step 3: Interview\n\nUse the `AskUserQuestion` tool to interview the user. Ask the six\nfields **in the order below**. Group them into multiple\n`AskUserQuestion` calls as feels natural — the tool allows 1–4\nquestions per call, and exact grouping is left to your judgment.\n\nFor every question:\n\n- The **first option** must be the recommended value, with its label\n  suffixed `(Recommended)`. The recommendation is the value carried\n  over from the existing file (parsed in Step 2) when one is present\n  and parseable for this field; otherwise it is the built-in default\n  for the field as listed below.\n- Always include an \"Other\" option so the user can type a custom\n  value.\n- Keep option labels short; put any explanation in the question\n  text.\n\nFor each field below, \"carry-over value\" means the value parsed from\nthe existing file in Step 2 for that field, if present and parseable.\nWhen a carry-over value exists, recommend it; otherwise recommend the\nbuilt-in default named in the field's description.\n\nThe six fields, in order:\n\n1. **`source-control`** — choose `GitHub` or `CodeCommit`. Recommend\n   the carry-over value; built-in default `GitHub`.\n2. **`issues`** — choose `GitHub` or `Jira`. Recommend the carry-over\n   value; built-in default `GitHub`.\n3. **`issue-link-prefix`** — the literal string concatenated with\n   the issue number in commit messages and PR bodies. Recommend the\n   carry-over value if present and parseable. Otherwise the\n   recommended value depends on the **just-chosen** value of `issues`\n   (field 2):\n   - If the user picked `GitHub` for `issues`, recommend `#`\n     (`#123` is the only sensible GitHub form).\n   - If the user picked `Jira` for `issues`, do not pre-recommend a\n     value — prompt the user to enter the Jira project key plus a\n     trailing dash via \"Other\" (e.g. `SET-`, `PROJ-`).\n4. **`default-issue-source-branch`** — branch that new issue work\n   branches FROM. Offer the local branches you gathered in Step 2\n   as options, plus \"Other\" for any branch name. Recommend the\n   carry-over value if present in the local branch list; else\n   recommend `main` if it is present; otherwise present the gathered\n   branches without a recommendation and require the user to pick.\n   (If the carry-over branch is no longer a local branch, still offer\n   it via \"Other\" — do not validate it against the remote.)\n5. **`default-pr-target-branch`** — branch that issue PRs target.\n   Same option set as field 4. Recommend the carry-over value if\n   present; else recommend whatever the user just chose for\n   `default-issue-source-branch` (often the same).\n6. **`issue-branch-naming-prefix`** — branch naming style.\n   Choose one of `none`, `initials`, `name`. Recommend the carry-over\n   value; built-in default `none`.\n\nDo not validate that the chosen branches actually exist on the\nremote; that is out of scope for this skill.\n\n## Step 3b: GitHub Project interview (conditional)\n\nThis step runs **only when the just-chosen `issues` value is `GitHub`**.\nIf `issues` is `Jira`, skip this step entirely and run **Step 3c**\n(the Jira interview) instead. If `issues` is anything other than\n`GitHub` or `Jira`, skip both Step 3b and Step 3c and proceed to\nStep 4. The `github-project:` block is a GitHub-only concept; the\nJira repo gets the parallel `jira:` block built in Step 3c.\n\nThe purpose of this step is to populate (or intentionally omit) the\n`github-project:` body block defined in `skills\u002Flib\u002Fissue.md`. The\nblock carries project node IDs, status option IDs, and issue type\nIDs so the `\u002Fissue-*` commands can translate human-readable names\ninto the GraphQL IDs the GitHub API requires.\n\nBecause `\u002Frepo-config` is a full-rewrite tool (see Step 2), this\nstep re-runs auto-discovery against the live project rather than\ncopying the prior block wholesale. But where the existing file\nalready recorded a choice — which slot a field maps to, which option\nis the default — that prior choice is offered as the recommended\nanswer (parsed in Step 2), so an accept-everything run reproduces the\nblock. The carry-over is **not** live-validated: if the user renamed\na slot or removed an option in the project since the file was last\nwritten, recommending the now-stale value is fine — the user knows\nwhat they are doing and will pick the right answer.\n\n### 3b.1 — Decide whether to populate\n\nUse `AskUserQuestion` to ask the user how to handle the\n`github-project:` block. Offer two options:\n\n- **Populate** — run auto-discovery (Steps 3b.2 – 3b.5) and build the\n  block, using the existing file's parsed values as per-slot\n  recommendations.\n- **Skip** — do not add a block. Write a skip marker instead with a\n  short reason captured via \"Other\". Skip the rest of Step 3b\n  except 3b.6 (which writes the marker).\n\nMark the recommended option per the carry-over from Step 2:\n\n- If the existing file had a `github-project:` block, recommend\n  **Populate**.\n- If the existing file had a skip marker, recommend **Skip**, and\n  pre-fill the marker's prior reason as the recommended free-text\n  reason (the user can re-enter it verbatim or change it).\n- If the file did not exist (or had neither), recommend **Populate**.\n\nThere is no `Keep` \u002F `Update` option in this skill: the block is\nalways rebuilt from this run's answers (seeded by carry-over\nrecommendations), not copied verbatim. If the user wants the previous\nblock back byte-for-byte without re-confirming each slot, they should\nanswer `No` at the Step 2.5 overwrite prompt and the file stays\nuntouched.\n\n### 3b.2 — Pick the owner and project\n\nEvery live lookup in Step 3b goes through `issues-discover`, which this\nplugin puts on `PATH`. It resolves the repository's host, owner and\nname from the checkout itself and sends each query to that host, so a\ncheckout whose `origin` is on a GitHub Enterprise host is queried\nthere. Run it from inside the repo's working tree; on a non-zero exit\nit prints gh's error, or the missing scope and the host whose token\nlacks it, on stderr.\n\nList the projects of the repository's owner, an organization or a\nuser alike:\n\n```bash\nissues-discover projects\n```\n\nIt prints a JSON array of `{ number, title, id }`. Each project's `id`\nis the ProjectV2 node ID (`PVT_...`), which is the literal value that\ngoes into `project-id`.\n\nShow the user the discovered projects with their numbers and titles,\nplus options:\n\n- One option per discovered project (label: `\u003Cnumber>: \u003Ctitle>`).\n- `Other` to type a number of one of the owner's projects by hand.\n- `Skip` to abandon the github-project block. On `Skip`, jump to\n  3b.6 to record the skip marker.\n\nCommon failure modes to handle gracefully:\n\n- `issues-discover projects` exits non-zero or prints an empty array.\n  Surface the error\u002Fempty result and offer `Other` (manual entry) or\n  `Skip`.\n- The user picks `Other` and enters a project number. Resolve it with\n  `issues-discover project \u003Cnumber>`, which prints that board's\n  `{ number, title, id }`; read `.id` (and `.title` for the summary).\n\nIf the project node ID does not start with `PVT_`, treat the response\nas invalid and let the user retry or skip.\n\nRecord:\n\n- `project-id` — the `PVT_...` node ID.\n- The numeric project number and title (for the summary in Step 6;\n  these are not written to the file).\n\n### 3b.3 — Discover fields (per-slot interview)\n\nThis step runs the same generic interview once per conceptually-standard\nslot. The slot list is hardcoded: `status`, `priority`, `size`. Making\nthe slot list user-configurable is out of scope — a repo that wants a\ndifferent slot (e.g. `effort`) has no supported path to add one today.\n\n#### 3b.3.a — Enumerate project fields once\n\nBefore asking about any slot, enumerate the project's fields a single\ntime and keep the result in memory for the per-slot loop below.\n\n```bash\nissues-discover fields \u003Cproject-number>\n```\n\nIt prints a JSON array of the fields a slot can be backed by, each\n`{ id, name, dataType }` with `options` added on a single-select one.\nFrom it, build two lists for the per-slot loop:\n\n- **Number fields**: every entry with `dataType == \"NUMBER\"`. Capture\n  `id` (`PVTF_...`) and `name`. No options.\n- **Single-select fields**: every entry with `dataType == \"SINGLE_SELECT\"`.\n  Capture `id` (`PVTSSF_...`), `name`, and the full `options` list\n  (each `{ id, name }`). The option IDs are short hex strings, not\n  `PVT_*`-prefixed node IDs — that is correct for single-select option\n  IDs in ProjectV2.\n\n##### Enumerate native Issue Fields (for the `issue-field` kind)\n\nSeparately from the project fields above, enumerate the repo's\n**native GitHub Issue Fields** — the preview feature that attaches\nProjectV2-style fields directly to issues, independent of any project\nboard. These back the `kind: issue-field` slot (see \"Field kinds\n(`fields.\u003Cslot>.kind`)\" in `skills\u002Flib\u002Fissue.md`). These belong to the\nrepository, not the project:\n\n```bash\nissues-discover issue-fields\n```\n\nIt prints a JSON array of the native fields a `kind: issue-field`\nslot can be backed by, each `{ id, name, options }`, with an\n`IFSS_...` field `id` and each option an `{ id, name }` carrying an\n`IFSSO_...` ID. GitHub ships two such native fields today —\n`Priority` (options `Urgent` \u002F `High` \u002F `Medium` \u002F `Low`), the\n`priority`-slot backing, and `Effort` (options `High` \u002F `Medium` \u002F\n`Low`), the `size`-slot backing — so both are offered to the matching\nslot in the per-slot loop.\n\nAn empty array means there are no `issue-field` options to offer in\nthe per-slot loop — skip that option. When the script prints one, it\nexplains why in a note on stderr; pass that note on to the user. Any other\nnon-zero exit is also non-fatal: proceed without the `issue-field`\noption and note the error to the user.\n\n#### 3b.3.b — Per-slot interview\n\n**Carry-over takes precedence over the discovery chains below.** When\nthe existing file (parsed in Step 2) recorded this slot, recommend the\nkind it used (`number`, `single-select`, `issue-field`, `label`, or\n`skip`) by matching it to the corresponding enumerated option — e.g. a\nslot the file recorded as `single-select` with field id `X` recommends\nthe enumerated single-select field whose id is `X` (fall back to\nmatching by field name if the id is no longer enumerated; if neither\nmatches, fall through to the discovery chain). Do **not** live-validate\nthe carried-over kind against the project — recommending a stale choice\nis acceptable per Step 3b's intro. Only when the file recorded nothing\nfor this slot (or the file did not exist) do the discovery chains\nbelow choose the recommendation.\n\nRun the **same** four-step procedure once per slot, in this order:\n\n1. **`status`** — strongly recommended. Discovery-recommendation chain\n   for which kind to pick (used when there is no carry-over): a\n   single-select field named `Status` (case-insensitive) if exactly\n   one such field is enumerated.\n2. **`priority`** — optional. Discovery-recommendation chain for\n   which kind to pick (used when there is no carry-over), in this\n   order:\n   1. A **native Issue Field** named `Priority` (case-insensitive)\n      from the native-field enumeration above — the `kind:\n      issue-field` backing. If exactly one such single-select native\n      field exists, recommend it. It is preferred over the project\n      fields below because native fields are not tied to a project\n      board (the issue's stated selling point of this kind).\n   2. Otherwise a **number** field named `Priority` or `Importance`\n      (case-insensitive — `Priority` matches GitHub's native field\n      name; `Importance` is kept so boards that still use the older\n      name resolve). If exactly one such field exists, recommend it.\n   3. Otherwise a **single-select** project field with the same name.\n      If exactly one such field exists, recommend it.\n   4. Otherwise no auto-recommendation — present the full option set\n      and let the user pick.\n\n   If multiple fields match at the same tier (e.g. both a `Priority`\n   and an `Importance` number field), present all of them as\n   options and let the user pick; do not silently prefer one.\n3. **`size`** — optional. Discovery-recommendation chain for which\n   kind to pick (used when there is no carry-over), in this order:\n   1. A **native Issue Field** named `Effort` or `Size`\n      (case-insensitive) from the native-field enumeration above — the\n      `kind: issue-field` backing. `Effort` is GitHub's native\n      size-analogue field (`dataType: SINGLE_SELECT`, options `High` \u002F\n      `Medium` \u002F `Low`), the size-slot counterpart of the native\n      `Priority` field. If exactly one such single-select native field\n      exists, recommend it; it is preferred over the project fields\n      below because native fields are not tied to a project board.\n   2. Otherwise a **single-select** project field named `Size` or\n      `T-Shirt` (case-insensitive). If exactly one such field exists,\n      recommend it.\n   3. Otherwise a **number** field with the same name. If exactly one\n      such field exists, recommend it.\n   4. Otherwise recommend `kind: label` with namespace `size:` (the\n      built-in fallback for repos with no project field for size).\n\n   If multiple fields match at the same tier (e.g. both `Size` and\n   `T-Shirt`), present them as options and let the user pick — no\n   auto-recommendation.\n\n   Note the slot keeps its name (`size`) even when backed by the\n   native `Effort` field — \"size\" is the clearer term in this tooling,\n   so only a new backing kind is added, not a rename. When `size` is\n   backed by `Effort`, the slot's effective options become the native\n   field's own (`High` \u002F `Medium` \u002F `Low`), captured verbatim in\n   Step 3 below — **not** the t-shirt set.\n\nFor every slot, the procedure is:\n\n##### Step 1 — Show every option the user could pick\n\nPresent, in one `AskUserQuestion` call, the full set of choices for\nthis slot:\n\n- One option per enumerated **number field** from 3b.3.a (label:\n  `\u003Cname> (number field)`).\n- One option per enumerated **single-select field**, with its option\n  list shown inline so the user can see what they would be choosing\n  (label: `\u003Cname> (single-select: opt1, opt2, opt3, ...)`). If the\n  inline list would overflow the question UI, truncate with `, ...`\n  after the first few — the user is selecting the field, not the\n  option, so a partial list is enough to disambiguate.\n- One option per enumerated **native Issue Field** (from the\n  native-field enumeration in 3b.3.a), with its option list shown\n  inline (label: `\u003Cname> (issue field: opt1, opt2, ...)`). This kind\n  corresponds to `kind: issue-field` in the rendered block. Offered\n  only when at least one single-select native field was enumerated;\n  most relevant for the `priority` slot (GitHub's native `Priority`\n  field), but presented for any slot so a repo can back e.g. `size`\n  with a native field too.\n- One option for **labels**: `As labels (with namespace prefix)` —\n  independent of project fields. This kind corresponds to\n  `kind: label` in the rendered block.\n- One option for **skip**: `None \u002F skip` — slot stays unconfigured\n  and is rendered as `kind: skip`. Per `skills\u002Flib\u002Fissue.md`'s \"Field\n  kinds (`fields.\u003Cslot>.kind`)\" section, an emitted `kind: skip` and\n  a slot-absent entry are intentionally equivalent in verb behavior;\n  the wizard always emits `kind: skip` for visibility. The\n  slot-absent path only occurs when the user never reached the\n  per-slot interview at all (e.g. they chose `Skip` at the block\n  level in Step 3b.1).\n\nMark the recommended choice with `(Recommended)` in its label — the\ncarried-over kind if the file recorded one for this slot, else per the\ndiscovery chain above. For `status`, when there is no carry-over and\nno `Status`-named single-select field exists, fall back to\nrecommending the first single-select field, then `None \u002F skip` as a\nlast resort — status is strongly recommended but not enforced.\n\n##### Step 2 — Ask the user which to use\n\nUse the option set from Step 1 directly. There is no slot-specific\noverride; the user picks one of the enumerated kinds.\n\n##### Step 3 — Follow up based on the user's pick\n\nDispatch on the chosen kind:\n\nIn every case below, when the existing file (parsed in Step 2)\nrecorded this slot with the **same kind** the user just picked,\nrecommend that slot's carried-over values for the follow-up prompts\n(`default`, `min`, `max`, namespace, option list). Carry-over is not\nlive-validated. When there is no carry-over for the slot, or the user\npicked a different kind than the file recorded, use the per-kind\nrecommendation noted below.\n\n- **Number field** (`kind: number`):\n  - Capture the field `id` (`PVTF_...`) from the enumeration.\n  - Ask for `min` (an integer). Recommend the carried-over `min` if\n    present; otherwise no built-in recommendation — the user owns the\n    range.\n  - Ask for `max` (an integer, at least `min`). Recommend the\n    carried-over `max` if present; otherwise no built-in\n    recommendation — the user owns the range.\n  - Ask for `default` (an integer within `min`\u002F`max`). Recommend the\n    carried-over `default` if present; otherwise no built-in\n    recommendation — the user owns the value.\n\n- **Single-select field** (`kind: single-select`):\n  - Capture the field `id` (`PVTSSF_...`) and the full option\n    name→id map from the enumeration.\n  - Ask which option should be the **default** for new issues.\n    Recommend the carried-over `default` option if present in the\n    enumerated option list; otherwise use the slot-aware chain\n    (see \"Default-option recommendation (single-select, issue-field,\n    label)\" below).\n  - Always include an `Other` choice to free-type one of the\n    enumerated option names.\n\n- **Native Issue Field** (`kind: issue-field`):\n  - Capture the native field's node `id` (`IFSS_...`) under\n    `field-id:`, its `name` under `field-name:`, `data-type:\n    single-select`, and the full option name→id map (option `IFSSO_...`\n    IDs) from the native-field enumeration in 3b.3.a.\n  - Ask which option should be the **default** for new issues.\n    Recommend the carried-over `default` option if present in the\n    enumerated option list; otherwise use the slot-aware chain\n    (see \"Default-option recommendation (single-select, issue-field,\n    label)\" below). For GitHub's native `Priority` field the options\n    are `Urgent`, `High`, `Medium`, `Low`; for the native `Effort`\n    field — the `size`-slot backing — they are `High`, `Medium`,\n    `Low`. Always include an `Other` choice to free-type one of the\n    enumerated option names.\n  - This kind is single-select-only for now; the other native\n    data-types (date, number, text, multi-select) are out of scope.\n\n- **Labels** (`kind: label`):\n  - Ask for the **namespace prefix**. Recommend the carried-over\n    `namespace` if present; otherwise `\u003Cslot>:` (e.g. `size:` for the\n    `size` slot). Free-text via `Other` for any other value; trailing\n    colon is conventional but not enforced by the wizard.\n  - Ask for the **option list** as a comma-separated string (e.g.\n    `XS, S, M, L, XL`). Recommend the carried-over option list if\n    present; otherwise no built-in recommendation — the user owns the\n    list. Split on commas, trim whitespace from each entry; reject\n    empty entries.\n  - Ask for the **default** option (must be one of the entered\n    options, case-insensitive match against the list). Recommend the\n    carried-over `default` if present in the entered list; otherwise\n    use the slot-aware chain (see \"Default-option recommendation\n    (single-select, issue-field, label)\" below).\n  - No field `id` is captured — labels are not project fields and\n    the label name is its own identifier.\n\n- **Skip** (`kind: skip`):\n  - Nothing to capture beyond `kind: skip`. The slot is explicitly\n    declared as unused.\n  - For the `status` slot specifically, `Skip` is allowed but\n    discouraged — surface a brief note to the user that\n    `\u002Fissue-set-status` and the `--status` flag will warn-and-skip,\n    then accept the user's choice without re-prompting.\n\n##### Default-option recommendation (single-select, issue-field, label)\n\nWhen no carried-over `default` is available, the wizard recommends a\ndefault by this slot-aware chain. This is only the *recommended*\nprompt value — the user owns the final choice — but the recommendation\nshould be sensible rather than blindly the first YAML option, because\nan option set whose YAML order runs most-work-first (e.g. the native\n`Effort` field's `High`, `Medium`, `Low`) would otherwise default a\n`size` slot to its **most-work** option.\n\n- **`status` slot**: `Backlog` if present (case-insensitive),\n  otherwise the first option in the list. (Status options have no\n  magnitude; first-in-list is the natural \"new issue\" state.)\n- **`size` slot**: the **least-work option** along the slot's\n  *magnitude order* (least-work → most-work), not the first YAML\n  option. Establish the magnitude order from the option semantics\n  exactly as the size heuristic does (see \"The option set is the\n  slot's own, not a fixed t-shirt set\" in\n  `skills\u002Fissue-create\u002FSKILL.md`): for the t-shirt set `XS, S, M, L,\n  XL` the YAML order already runs least-work-first, so\n  the least-work option is `XS` (the first entry); for the native\n  `Effort` field `High, Medium, Low` the magnitude order is the\n  **reverse**, so the least-work option is `Low` (the last entry), not\n  `High`. Recommending the middle option (`M` \u002F `Medium`) is an\n  acceptable alternative when a least-work default would skew new\n  issues too small — what must be avoided is defaulting `size` to the\n  most-work option.\n- **Any other slot** (e.g. `priority`): the first option in the list.\n  Priority option sets are conventionally authored most-important-first\n  (`P0`, `P1`, …; `Urgent`, `High`, …) and the first entry is the\n  intended high-salience default, so this preserves the existing\n  priority-slot behavior.\n\n##### Step 4 — Defer rendering to 3b.5\n\nHold the captured per-slot state in memory. Step 3b.5 assembles all\nslots into the final YAML block once the loop finishes; do not write\nor edit the file from inside this loop.\n\n### 3b.4 — Discover issue types\n\nGitHub Issue Types are an org-level (and now repo-scoped) enum:\n\n```bash\nissues-discover issue-types\n```\n\nIt prints a JSON array of the repository's enabled issue types, each\n`{ id, name }`. Each one contributes `\u003CName>: \u003Cid>` to the\n`issue-types:` map (preserve the capitalization GitHub returns).\n\nIf it prints an empty array (older repos without issue types enabled),\nask the user whether to:\n\n- `Skip issue-types` — omit the `issue-types:` sub-block entirely.\n- `Other` — manually enter `Name: IT_...` pairs.\n\nA non-zero exit is non-fatal too: note its stderr to the user, then\noffer the same two choices as for an empty array.\n\nAsk the user which type should be the **default**. Recommend the\ncarried-over `issue-types.default` (parsed in Step 2) if present in\nthe enumerated list; otherwise, in order: `Feature` (if present,\ncase-insensitive), then the first type in the list. Include `Other`\nfor free-type.\n\n### 3b.5 — Assemble the proposed block\n\nFrom the captured per-slot state in 3b.3.b and the issue-types map in\n3b.4, render the YAML block that will be written to the file. Use the\nexact indentation and key order shown below (matching the schema in\n`skills\u002Flib\u002Fissue.md`). Every populated slot under `fields:` carries\nits `kind:` discriminator (`number`, `single-select`, `issue-field`,\n`label`, or `skip`) — there is no implicit default and no\nbackwards-compat shim for the old `type:` shape.\n\nThe renderer is purely a function of the captured state — it never\ninvents defaults or substitutes built-in fallbacks for kind-specific\nkeys. Every key in the rendered block traces back to a value the user\neither supplied directly (via \"Other\") or selected from an enumerated\noption in 3b.3.b or 3b.4.\n\n#### Per-kind render shapes\n\nFor each populated slot, emit one of the following shapes based on the\nslot's captured `kind`:\n\n- **`kind: number`** — emit `kind`, `id`, `default`, `min`, `max`:\n\n  ```yaml\n  \u003Cslot-name>:\n    kind: number\n    id: \u003Cfield-id>\n    default: \u003Cnumber>\n    min: \u003Cnumber>\n    max: \u003Cnumber>\n  ```\n\n- **`kind: single-select`** — emit `kind`, `id`, `default`, and the\n  option name→id map:\n\n  ```yaml\n  \u003Cslot-name>:\n    kind: single-select\n    id: \u003Cfield-id>\n    default: \u003Coption-name>\n    options:\n      \u003COption Name>: \u003Coption-id>\n      ...\n  ```\n\n- **`kind: issue-field`** — emit `kind`, `data-type`, `field-id`,\n  `field-name`, `default`, and the option name→id map. The IDs are\n  native-field IDs (`IFSS_...` for the field, `IFSSO_...` for each\n  option), not project field\u002Foption IDs:\n\n  ```yaml\n  \u003Cslot-name>:\n    kind: issue-field\n    data-type: single-select\n    field-id: \u003CIFSS_...>\n    field-name: \u003CField Name>\n    default: \u003Coption-name>\n    options:\n      \u003COption Name>: \u003CIFSSO_...>\n      ...\n  ```\n\n- **`kind: label`** — emit `kind`, `namespace`, `default`, and the\n  flat option list. No `id` (labels are not project fields). The\n  `namespace` value is double-quoted because trailing-colon strings\n  like `size:` would otherwise be interpreted as a YAML mapping key:\n\n  ```yaml\n  \u003Cslot-name>:\n    kind: label\n    namespace: \"\u003Cnamespace>\"\n    default: \u003Coption-name>\n    options: [\u003Copt1>, \u003Copt2>, ...]\n  ```\n\n- **`kind: skip`** — emit `kind: skip` and nothing else:\n\n  ```yaml\n  \u003Cslot-name>:\n    kind: skip\n  ```\n\n#### Full-block shape\n\nThe assembled block looks like:\n\n```yaml\ngithub-project:\n  project-id: \u003Cproject-id>\n  fields:\n    status:\n      \u003Cper-kind shape from above>\n    priority:\n      \u003Cper-kind shape from above>\n    size:\n      \u003Cper-kind shape from above>\n  issue-types:\n    default: \u003CType Name>\n    \u003CType Name>: \u003Ctype-id>\n    ...\n```\n\nSlot order under `fields:` is fixed: `status`, then `priority`,\nthen `size`. Because `\u002Frepo-config` is a full-rewrite tool, a run\nalways emits exactly what that run's auto-discovery produced — the\nfile is never edited outside a `\u002Frepo-config` run, so it never\ncarries a slot (e.g. `effort`) the wizard didn't itself write.\n\n#### Conditional rendering rules\n\n- A populated slot with `kind: skip` is still emitted under `fields:`\n  — it is the user's explicit declaration that the slot is unused,\n  which `\u002Fissue-*` verbs treat as equivalent to slot-absent but more\n  visible. Only omit a slot entirely if the user never reached the\n  per-slot interview (e.g. the user aborted out of Step 3b before the\n  loop covered that slot).\n- If **all** slots are emitted as `kind: skip` or were never reached,\n  omit the `fields:` key entirely — the block is still valid without\n  it.\n- Omit `issue-types` entirely if issue types were skipped or the repo\n  has none enabled.\n- Preserve the case-sensitive option and type names from the GitHub\n  API verbatim — they are the canonical keys the `\u002Fissue-*` commands\n  match against.\n- If any option or type name contains consecutive spaces, or starts\n  with a YAML-special character — any of these:\n\n  ```text\n  ? : - & * ! [ { , > | % @ ` \" '\n  ```\n\n  — quote the key with double quotes to keep the YAML well-formed.\n  The common case (single-word or space-separated names like `In\n  Progress`) is fine unquoted, matching the example in\n  `skills\u002Flib\u002Fissue.md`. The same quoting rule applies to label\n  options inside the `kind: label` flat-list shape: if any option\n  contains a YAML-special character or consecutive spaces, quote\n  that individual entry with double quotes inside the `[...]` list.\n\n### 3b.6 — Skip marker (when the user chose to skip)\n\nWhen the user chose `Skip` in 3b.1, do not write a `github-project:`\nblock. Instead, plan to write a single-line HTML comment of the\nexact form:\n\n```text\n\u003C!-- github-project: intentionally omitted; \u003Creason>. -->\n```\n\nPlace the comment where the block would have gone (see Step 5's\ncompose order). Use the reason captured from the user (free-text\ntrimmed to a single line, period appended if missing). When the\nexisting file (parsed in Step 2) already had a skip marker, its prior\nreason is the recommended default for this free-text prompt per 3b.1,\nso an accept-everything run reproduces the marker.\n\nThe skip marker documents the deliberate omission so anyone reading\nthe file later knows it was a choice, not an oversight.\n\n## Step 3c: Jira interview (conditional)\n\nThis step runs **only when the just-chosen `issues` value is `Jira`**.\nIf `issues` is `GitHub`, Step 3b ran instead and this step is skipped.\nIf `issues` is anything else, both are skipped.\n\nThe purpose of this step is to populate (or intentionally omit) the\n`jira:` body block defined in `skills\u002Flib\u002Frepo-config.md` (\"`jira:`\nblock\") and the `\u002Fissues-jira:jira-lib` skill. The block carries the Jira project\nkey plus the status \u002F priority \u002F size slot maps and issue-type map\nso the `\u002Fissue-*` commands (delivered in #9) can translate\nhuman-readable names into the identifiers `acli` consumes. It is the\nJira analogue of the Step 3b `github-project:` interview, run through\n`acli` instead of `gh`.\n\nAll discovery here uses the `acli` command templates in\nthe `\u002Fissues-jira:jira-lib` skill — read that file's \"Discovery\nprimitives (for `\u002Frepo-config`)\" section for the exact command shapes\nand their version caveat. Do not invent `acli` flags inline;\nreference the library.\n\n### 3c.0 — Preflight: `acli` and auth\n\n1. **Detect `acli`.** Run `command -v acli`. If it is not on `PATH`,\n   do **not** install it (host modification — forbidden). Surface a\n   message that `acli` is required for the Jira interview and point\n   the user at Atlassian's install docs, then offer to **Skip** the\n   `jira:` block (jump to 3c.5 to record a skip marker) so the rest of\n   the file can still be written.\n2. **Check auth.** Run `acli jira auth status`. If unauthenticated or\n   the session is expired, run `acli jira auth login --web` and wait\n   for the user to complete the browser\u002FSSO flow (a\n   credential-prompting command, allowed per\n   `~\u002F.claude\u002Frules\u002Fcredential-surfaces.md`). On an auth failure that\n   `--web` login does not resolve, **stop and report** — never\n   introspect the user's Atlassian credential state. See\n   the `\u002Fissues-jira:jira-lib` skill \"Auth expectation and failure surface\".\n\n### 3c.1 — Decide whether to populate\n\nUse `AskUserQuestion` to ask how to handle the `jira:` block. Offer:\n\n- **Populate** — run discovery (3c.2 – 3c.4) and build the block,\n  using the existing file's parsed `jira:` values (if any) as per-slot\n  recommendations.\n- **Skip** — write a skip marker instead, with a short reason captured\n  via \"Other\". Skip the rest of Step 3c except 3c.5.\n\nRecommend **Populate** when the existing file had a `jira:` block (or\nno metadata block at all); recommend **Skip** when the existing file\nhad a `jira:` skip marker, pre-filling its prior reason. The carry-over\nis not live-validated — recommending a stale value is fine.\n\n### 3c.2 — Pick the project\n\nList the projects visible to the authenticated user:\n\n```bash\nacli jira project list --json\n```\n\nShow the user the discovered projects (key + name), plus `Other` to\ntype a project key by hand and `Skip` (jump to 3c.5). Record the\nchosen project **key** (e.g. `SET`) as `project-key`. Confirm the key\nmatches the `issue-link-prefix` chosen in Step 3 (e.g. key `SET` ↔\nprefix `SET-`); if they disagree, note the mismatch to the user but do\nnot auto-correct — the front-matter answer stands.\n\n### 3c.3 — Per-slot interview (status, priority, size)\n\nRun the same generic interview once per conceptually-standard slot, in\nthis order: `status`, `priority`, `size`. The slot list is hardcoded\n(matching Step 3b) — making it user-configurable is out of scope, so\na repo wanting a different slot has no supported path to add one\ntoday.\n\n**Carry-over takes precedence over discovery.** When the existing file\nrecorded a slot, recommend the kind and values it used. Otherwise use\nthe discovery + per-slot defaults below. Carry-over is not\nlive-validated.\n\nDiscover the project's metadata once, up front, via the\nthe `\u002Fissues-jira:jira-lib` skill \"Discovery primitives (for\n`\u002Frepo-config`)\" templates:\n\n- **Issue types** — from `acli jira project view --key \u003CKEY> --json`,\n  falling back to `acli jira workitem create --project \u003CKEY>\n  --generate-json` (which enumerates valid types and fields).\n- **Statuses** — from a representative work item\n  (`acli jira workitem search --jql \"project = \u003CKEY>\" --json`, then\n  `acli jira workitem view \u003CKEY-N> --json` — the key is positional;\n  `workitem view` has no `--key` flag); confirm\u002Fextend the\n  status names with the user.\n- **Custom fields** — from the `--generate-json` create template,\n  which lists fields keyed by `customfield_NNNNN` with display names.\n\nFor each slot, present (via `AskUserQuestion`) the kinds the slot can\ntake, mark the recommended one, and follow up on the pick:\n\n1. **`status`** — recommend `kind: status`. Capture the status\n   `options:` as a name→name map from the discovered status names; ask\n   which is the **default** (recommend `Backlog` if present, else the\n   first). `Skip` is allowed but discouraged (warn that\n   `\u002Fissue-set-status` will warn-and-skip).\n2. **`priority`** — offer `kind: custom-field` (recommend when a\n   custom field named `Priority`\u002F`Importance`\u002F`Severity` is discovered,\n   capturing its `field-id:` and its allowed-value names as a name→name\n   `options:` map), `kind: label`, or `kind: skip`. Ask for the\n   **default** option.\n3. **`size`** — offer `kind: custom-field` (when a `Size`\u002F`T-Shirt`\n   field is discovered), `kind: label` (recommend, with namespace\n   `size:` and a user-entered option list, matching the GitHub size\n   fallback), or `kind: skip`. Ask for the **default** option.\n\nHold each slot's captured state in memory for 3c.4's render. For\n`kind: label`, ask for the namespace (recommend `\u003Cslot>:`) and a\ncomma-separated option list exactly as Step 3b.3 does.\n\n### 3c.4 — Issue types and assemble the block\n\nFrom the discovered (and user-confirmed) issue types, build the\n`issue-types:` name→name map and ask which is the **default**\n(recommend `Task` if present, else the first). If the project exposes\nno enumerable types, offer to skip the `issue-types:` sub-block or let\nthe user enter names via `Other`.\n\nAssemble the `jira:` block from the captured per-slot state and the\nissue-types map, using the exact shapes in the\n`skills\u002Flib\u002Frepo-config.md` \"`jira:` block\" schema:\n\n```yaml\njira:\n  project-key: \u003CKEY>\n  fields:\n    status:\n      kind: status\n      default: \u003Cname>\n      options:\n        \u003CName>: \u003CName>\n        ...\n    priority:\n      \u003Cper-kind shape: custom-field | label | skip>\n    size:\n      \u003Cper-kind shape: custom-field | label | skip>\n  issue-types:\n    default: \u003CType Name>\n    \u003CType Name>: \u003CType Name>\n    ...\n```\n\nPer-kind render shapes:\n\n- **`kind: status`** — emit `kind`, `default`, and the name→name\n  `options:` map.\n- **`kind: custom-field`** — emit `kind`, `field-id:`\n  (`customfield_NNNNN`), `default`, and the name→name `options:` map.\n- **`kind: label`** — emit `kind`, `namespace` (double-quoted),\n  `default`, and the flat `options:` list — identical to Step 3b's\n  label shape.\n- **`kind: skip`** — emit `kind: skip` and nothing else.\n\nThe same conditional-rendering, YAML-quoting, and slot-order rules\nfrom Step 3b.5 apply: slot order is fixed (`status`, `priority`,\n`size`); a slot the user skipped is emitted as `kind: skip`; quote any\noption\u002Ftype key that contains consecutive spaces or a YAML-special\ncharacter. The renderer is purely a function of the captured state —\nit never invents identifiers.\n\n### 3c.5 — Skip marker (when the user chose to skip)\n\nWhen the user chose `Skip` in 3c.1 (or `acli` was unavailable in\n3c.0), do not write a `jira:` block. Instead, plan to write a\nsingle-line HTML comment of the exact form:\n\n```text\n\u003C!-- jira: intentionally omitted; \u003Creason>. -->\n```\n\nPlace the comment where the block would have gone (Step 5 compose\norder). Use the reason captured from the user. When the existing file\nalready had a `jira:` skip marker, its prior reason is the recommended\nfree-text default per 3c.1, so an accept-everything run reproduces the\nmarker.\n\n## Step 4: Show the proposed file and wait for approval\n\nRender the **full file** that will be written, exactly as it will\nappear on disk. This applies equally to the new-file case and the\noverwrite case — there is no diff path, because Step 5 always\nperforms a full-file write rather than an in-place region edit. (The\nexisting file's values may have been carried over as recommended\ndefaults during the interview, but the write itself replaces the file\nin full.)\n\nCompose the preview in the same order Step 5 will write it:\n\n1. The resolved YAML front-matter (the canonical seven-key block):\n\n   ```yaml\n   ---\n   schema-version: 7\n   source-control: \u003Cvalue>\n   issues: \u003Cvalue>\n   issue-link-prefix: \"\u003Cvalue>\"\n   default-issue-source-branch: \u003Cvalue>\n   default-pr-target-branch: \u003Cvalue>\n   issue-branch-naming-prefix: \u003Cvalue>\n   ---\n   ```\n\n   Notes:\n\n   - `schema-version` is **always the first key** and **always\n     `7`** in files this skill writes. It is a constant baked\n     into the writer, not an interview question — see\n     `skills\u002Flib\u002Frepo-config.md` for how readers consume it.\n     When the schema bumps, update this skill's constant and the\n     library's `SCHEMA_VERSION`. Readers pin a **minimum**\n     required version and accept any file at that version or\n     newer (bumps are additive by construction), so a reader's\n     pin is bumped only when that reader needs to consume a\n     newly-added field — there is no lockstep requirement.\n   - `issue-link-prefix` is always quoted because values like\n     `#` are otherwise interpreted as a YAML comment.\n\n2. A blank line.\n\n3. The tracker-metadata block, selected by `issues`:\n   - **GitHub** — **if Step 3b produced a `github-project:` block**\n     (user chose `Populate`): the rendered block from 3b.5, followed\n     by a blank line. **If Step 3b produced a skip marker** (user\n     chose `Skip`): the single-line HTML comment from 3b.6, followed\n     by a blank line.\n   - **Jira** — **if Step 3c produced a `jira:` block** (user chose\n     `Populate`): the rendered block from 3c.4, followed by a blank\n     line. **If Step 3c produced a skip marker** (user chose `Skip`,\n     or `acli` was unavailable): the single-line HTML comment from\n     3c.5, followed by a blank line.\n   - **Neither ran** (some other `issues` value): no extra content\n     here.\n\n4. The canonical body template (the same `# Repo Config` ... body\n   used in Step 5).\n\nThen ask explicitly for approval, e.g.:\n\n> Write `.issues\u002Frepo-config.md` with the content above? (y\n> to proceed, or tell me what to change)\n\nWait for explicit approval (`y`, `yes`, `go`, `do it`, etc.) before\nmoving to Step 5. If the user asks for changes, loop back to Step\n3, Step 3b, or Step 3c as appropriate, then re-render the full file\nin this step.\n\n## Step 5: Write the file\n\nThe `repo-config-write` script, which this plugin puts on `PATH`,\nwrites the file; you never write `.issues\u002Frepo-config.md` yourself.\nWrite the approved content from Step 4 to a draft file under\n`.claude\u002Ftmp\u002F`, then run the script with the Bash tool from inside the\nrepo's working tree:\n\n```bash\nrepo-config-write \u003Cdraft-path>\n```\n\nThe script applies the validity checks the issue verbs apply when\nthey read the file — among them that a `kind: number` slot's `min`, `max` and\n`default` are integers with `min` at most `max`, and that every slot's\n`default` is a value the slot accepts — and refuses a draft that fails\none, leaving any existing file untouched. Otherwise it replaces\n`\u003Crepo-root>\u002F.issues\u002Frepo-config.md` whole with the draft's bytes,\ncreating `.issues\u002F` when it is missing. On a non-zero exit, relay its\nstderr verbatim, loop back to the interview step that owns the value\nit names, and show the corrected file in Step 4 again before retrying.\n\nThis applies whether the file existed before or not — `\u002Frepo-config`\nis a full-rewrite tool, and the user already saw the full proposed\ncontents in Step 4 before approving.\n\nDo not use `Edit` for in-place region rewrites. Do not copy any bytes\nverbatim from the previous file. The new file's content is determined\nentirely by the user's answers in this run plus the canonical body\ntemplate below — even though those answers may have been seeded by\nvalues carried over from the previous file as recommended defaults\n(Step 2). The carry-over influences the interview, not the write\nmechanism: the write always emits a fresh full file.\n\nCompose the draft in this order:\n\n1. The resolved YAML front-matter (the canonical seven-key block\n   from Step 4 — `schema-version: 7` followed by the six\n   user-resolved fields, in that exact order).\n2. A blank line.\n3. The tracker-metadata block, selected by `issues`:\n   - **GitHub** — **if Step 3b produced a resolved `github-project:`\n     block**: that block exactly as rendered in 3b.5, followed by a\n     blank line. **If Step 3b produced a skip marker**: the\n     single-line HTML comment from 3b.6, followed by a blank line.\n   - **Jira** — **if Step 3c produced a resolved `jira:` block**:\n     that block exactly as rendered in 3c.4, followed by a blank\n     line. **If Step 3c produced a skip marker**: the single-line\n     HTML comment from 3c.5, followed by a blank line.\n   - **Neither ran** (some other `issues` value): no extra content\n     here.\n4. The canonical body template (below), starting with `# Repo Config`.\n\nThe canonical body template (body only — front-matter and any\ntracker-metadata content are composed in steps 1-3 above):\n\n````markdown\n# Repo Config\n\nNever hand-edit this file — re-run `\u002Frepo-config`.\n````\n\n### Verification\n\nAfter the script exits zero, re-read the file with `Read` and\nconfirm:\n\n- The front-matter parses as YAML and contains exactly the seven\n  canonical keys: `schema-version: 7` (first) followed by the six\n  fields with the values the user approved in Step 4.\n- If Step 3b produced a `github-project:` block (GitHub) or Step 3c\n  produced a `jira:` block (Jira), the block appears at column 0 and\n  parses as YAML; it terminates at a column-0 non-blank line (heading\n  or next top-level key) as `skills\u002Flib\u002Fissue.md` \u002F\n  `skills\u002Flib\u002Frepo-config.md` expect.\n- The canonical body template is present below the front-matter\n  (and below the tracker-metadata block, if any).\n\nIf verification fails, surface the discrepancy to the user and stop\n— do not attempt a corrective second write. The user should re-run\n`\u002Frepo-config` after manually resolving the inconsistency.\n\n## Step 6: Summarize\n\nAfter the file is written, report back:\n\n- The absolute path written.\n- The final resolved values for all six front-matter fields.\n- The tracker-metadata outcome — for the block matching `issues`\n  (`github-project:` on GitHub, `jira:` on Jira), one of:\n  - `populated` (GitHub: project title\u002Fnumber, count of status\n    options, count of issue types; Jira: project key, count of status\n    options, count of issue types).\n  - `skipped` (no block present; skip marker written with reason).\n  - `not applicable` (`issues` is neither `GitHub` nor `Jira`, so no\n    tracker-metadata block applies).\n- Whether the prior file (if any) was replaced. If the user\n  declined the Step 2.5 overwrite prompt, this step is not reached\n  — the skill exits in Step 2.5 with a \"left unchanged\" message.\n- Next step: the flows that read this file can now run in this repo.\n\n---\n\n## Hard constraints\n\n- **Never write the file without explicit approval** in Step 4.\n- **Never overwrite an existing file without the Step 2.5\n  confirmation.** If the user declines, exit cleanly and leave the\n  file untouched.\n- **Carry values forward as recommended defaults, not as authority.**\n  When the file exists, each interview question recommends the value\n  parsed from the prior file (Step 2), falling back to the built-in\n  default when a field is absent or unparseable. The user can always\n  override. Never live-validate a carried-over value against the\n  project (Step 3b), and never copy the prior file's bytes verbatim\n  into the new file — the carry-over feeds the interview, the write is\n  always a fresh full file built from this run's answers.\n- **Never edit anything outside the target repo.** The skill writes\n  one draft under `.claude\u002Ftmp\u002F`, and through `repo-config-write` one\n  file: `\u003Crepo-root>\u002F.issues\u002Frepo-config.md`.\n- **Never run destructive git commands.** This skill does not\n  commit, push, branch, reset, or otherwise change git state. The\n  user commits the new file themselves.\n- **Always go through `repo-config-write`**, never `Write` or `Edit`\n  on `.issues\u002Frepo-config.md`: the script is what refuses a file the\n  issue verbs would reject, and it replaces the file in full.\n- **Do not validate remote branch existence** — out of scope.\n- **Run the tracker-matching interview, never both.** Step 3b\n  (`github-project:`) runs only under `issues: GitHub`; Step 3c\n  (`jira:`) runs only under `issues: Jira`. The two blocks are\n  mutually exclusive — never prompt for or emit a `github-project:`\n  block on a Jira repo, or a `jira:` block on a GitHub repo. Under any\n  other `issues` value, skip both.\n- **Never invent project IDs, field IDs, option IDs, issue type IDs,\n  Jira project keys, custom-field ids, status names, or type names.**\n  All identifiers written to the `github-project:` block must come\n  from a live `issues-discover` lookup in Step 3b, and all identifiers written to\n  the `jira:` block must come from a live `acli` query in Step 3c (or,\n  in either case, with explicit user override via `Other`, from values\n  the user typed in). Do not copy identifiers from the schema examples\n  in this file, `skills\u002Flib\u002Fissue.md`, or the `\u002Fissues-jira:jira-lib` skill — those\n  are illustrative placeholders.\n- **Never install `acli` or introspect Jira credential state.** If\n  `acli` is missing in Step 3c, report and offer to skip — do not\n  install it (host modification). On an `acli` auth failure, run\n  `acli jira auth login --web` once and wait; never read or manipulate\n  the user's Atlassian token cache. See the `\u002Fissues-jira:jira-lib` skill \"Auth\n  expectation and failure surface\".\n","You are running the `\u002Frepo-config` skill. Your job is to create the\n**target repo's** `.issues\u002Frepo-config.md` from scratch, or to\nfully rewrite it when it already exists, by interviewing the user.\nEvery `\u002Fissue-*` skill reads this file, as does any other skill or\nagent that needs the repo's VCS, tracker, branch, or project-board\nvalues, so it must be present and well formed before those flows will\nwork.\n\n`\u002Frepo-config` does **not** merge with the existing file or rewrite\nparts of it in place. When the file already exists, the user confirms\nan overwrite up front in Step 2.5; the final write in Step 5 replaces\nthe entire file with content built from the user's answers in the\ncurrent run. However, the existing file is **not** discarded before\nthe interview: its current values are parsed in Step 2 and become the\nrecommended default for each interview question, so an\naccept-everything run reproduces the prior file (plus any fields the\nschema has added since). When the file does not exist, the recommended\noption for every interview question is the built-in default baked into\nthis skill. If the user wants the prior file's contents preserved\nverbatim, they decline the Step 2.5 overwrite prompt and the file is\nleft untouched.\n\nFollow the steps below in order. Do not write the file until the\nuser has explicitly approved the proposed content.\n\n---\n\n## Step 1: Pre-flight\n\nVerify you are inside a git working tree by running:\n\n```bash\ngit rev-parse --show-toplevel\n```\n\nIf the command fails (non-zero exit, or stderr indicates \"not a git\nrepository\"), abort with a clear message:\n\n> `\u002Frepo-config` must be run from inside a git repository. The current\n> directory is not a git working tree.\n\nDo not continue past this step on failure.\n\nTreat the path printed by `git rev-parse --show-toplevel` as the\n**repo root** for the rest of the skill — the skill writes\n`\u003Crepo-root>\u002F.issues\u002Frepo-config.md` regardless of which\nsubdirectory of the worktree the user invoked the command from. Do\n**not** string-compare the printed path against the user's current\nworking directory: `git rev-parse --show-toplevel` returns a real\npath, while the user's cwd may traverse symlinks (for example, on\nmacOS `\u002Ftmp` resolves to `\u002Fprivate\u002Ftmp`, and project trees frequently\nsit under symlinked workspace directories). A naive equality check\nwould mis-flag a legitimate repo as \"not a repo root\".\n\n## Step 2: Detect existing config\n\nCheck whether `.issues\u002Frepo-config.md` already exists in the\ntarget repo (relative to the repo root from Step 1).\n\n`\u002Frepo-config` is a **full-rewrite** tool: the final write in Step 5\nreplaces the entire file with content assembled from the user's\nanswers in this run, and it does not preserve the existing body\nverbatim. But the existing file is treated as a **source of\nrecommended defaults** for the interview — its current values are\ncarried over so an accept-everything run reproduces them.\n\n- **If it exists**: read the file's full contents into memory. Use\n  the bytes for two purposes:\n  1. Display to the user in Step 2.5 before they decide whether to\n     overwrite.\n  2. Parse for carry-over defaults. Parse the YAML front-matter into\n     per-field values, and parse whichever **tracker-metadata block**\n     the existing file carries (or note a skip marker) for the\n     downstream per-slot recommendations: the `github-project:` block\n     when present, feeding the Step 3b per-slot recommendations, and\n     the `jira:` block when present, feeding the Step 3c per-slot\n     recommendations. The two are mutually exclusive (selected by the\n     `issues:` value), so at most one is present; parse the one that\n     is. Each recognized field's parsed value becomes the recommended\n     (first, `(Recommended)`-suffixed) option for its interview\n     question in Step 3 (and Step 3b or Step 3c). A field present in\n     the file but unrecognized by the current schema is ignored,\n     not surfaced. A field absent or unparseable falls back to the\n     built-in default. Do **not** validate parsed values against the\n     live project — carry-over is convenience, not authority (see\n     Step 3b).\n- **If it does not exist**: nothing to read; the recommended option\n  for every interview question is the **built-in default** baked into\n  this skill. Proceed straight to Step 3.\n\nA file whose `schema-version` is **below** the current version is\nstill parsed for carry-over: the version check is a *reader* concern,\nand `\u002Frepo-config` is the *writer* — it treats any existing file as a\nsource of defaults regardless of its declared version.\n\nThe built-in front-matter defaults (used when the file is absent, or\nper-field when a field is missing or unparseable) are:\n\n- `source-control`: `GitHub`\n- `issues`: `GitHub`\n- `issue-link-prefix`: `#`\n- `default-issue-source-branch`: `main`\n- `default-pr-target-branch`: `main`\n- `issue-branch-naming-prefix`: `none`\n\n`schema-version` is **not** in this list — it is a write-time\nconstant (currently `7`) baked into this skill, not an interview\nquestion, and it is never carried over from the existing file. See\n`skills\u002Flib\u002Frepo-config.md` for the reader contract that consumes it.\n\nAlso, before Step 3, gather the local branch list with\n`git branch --format='%(refname:short)'` so you can offer real\nbranches as options for the two branch fields.\n\n## Step 2.5: Confirm overwrite (existing file only)\n\nThis step runs **only if the file existed** in Step 2. If the file\ndid not exist, skip directly to Step 3.\n\n`\u002Frepo-config` rewrites the entire file from the user's answers in\nthis run. Before running the interview — which is wasted effort if\nthe user actually wanted to inspect, not overwrite — confirm intent\nwith a single overwrite prompt.\n\n1. Display the **full current contents** of\n   `.issues\u002Frepo-config.md` to the user — front-matter and\n   body, byte-for-byte as read from disk. Do not paraphrase or\n   summarize; the user is deciding whether to discard the real file.\n2. Ask via `AskUserQuestion`: \"This will replace\n   `.issues\u002Frepo-config.md` with a fresh file built from your\n   answers — continue?\" with options `Yes` and `No`.\n3. **On `No`**: end the skill cleanly. Report that the file was\n   left unchanged at `\u003Crepo-root>\u002F.issues\u002Frepo-config.md`.\n   Do **not** enter the interview. Do **not** write or edit\n   anything. Skip Steps 3 through 6.\n4. **On `Yes`**: continue into Step 3. Each interview question\n   recommends the value carried over from the existing file (parsed\n   in Step 2) when one is present and parseable, falling back to the\n   **built-in default** otherwise.\n\n## Step 3: Interview\n\nUse the `AskUserQuestion` tool to interview the user. Ask the six\nfields **in the order below**. Group them into multiple\n`AskUserQuestion` calls as feels natural — the tool allows 1–4\nquestions per call, and exact grouping is left to your judgment.\n\nFor every question:\n\n- The **first option** must be the recommended value, with its label\n  suffixed `(Recommended)`. The recommendation is the value carried\n  over from the existing file (parsed in Step 2) when one is present\n  and parseable for this field; otherwise it is the built-in default\n  for the field as listed below.\n- Always include an \"Other\" option so the user can type a custom\n  value.\n- Keep option labels short; put any explanation in the question\n  text.\n\nFor each field below, \"carry-over value\" means the value parsed from\nthe existing file in Step 2 for that field, if present and parseable.\nWhen a carry-over value exists, recommend it; otherwise recommend the\nbuilt-in default named in the field's description.\n\nThe six fields, in order:\n\n1. **`source-control`** — choose `GitHub` or `CodeCommit`. Recommend\n   the carry-over value; built-in default `GitHub`.\n2. **`issues`** — choose `GitHub` or `Jira`. Recommend the carry-over\n   value; built-in default `GitHub`.\n3. **`issue-link-prefix`** — the literal string concatenated with\n   the issue number in commit messages and PR bodies. Recommend the\n   carry-over value if present and parseable. Otherwise the\n   recommended value depends on the **just-chosen** value of `issues`\n   (field 2):\n   - If the user picked `GitHub` for `issues`, recommend `#`\n     (`#123` is the only sensible GitHub form).\n   - If the user picked `Jira` for `issues`, do not pre-recommend a\n     value — prompt the user to enter the Jira project key plus a\n     trailing dash via \"Other\" (e.g. `SET-`, `PROJ-`).\n4. **`default-issue-source-branch`** — branch that new issue work\n   branches FROM. Offer the local branches you gathered in Step 2\n   as options, plus \"Other\" for any branch name. Recommend the\n   carry-over value if present in the local branch list; else\n   recommend `main` if it is present; otherwise present the gathered\n   branches without a recommendation and require the user to pick.\n   (If the carry-over branch is no longer a local branch, still offer\n   it via \"Other\" — do not validate it against the remote.)\n5. **`default-pr-target-branch`** — branch that issue PRs target.\n   Same option set as field 4. Recommend the carry-over value if\n   present; else recommend whatever the user just chose for\n   `default-issue-source-branch` (often the same).\n6. **`issue-branch-naming-prefix`** — branch naming style.\n   Choose one of `none`, `initials`, `name`. Recommend the carry-over\n   value; built-in default `none`.\n\nDo not validate that the chosen branches actually exist on the\nremote; that is out of scope for this skill.\n\n## Step 3b: GitHub Project interview (conditional)\n\nThis step runs **only when the just-chosen `issues` value is `GitHub`**.\nIf `issues` is `Jira`, skip this step entirely and run **Step 3c**\n(the Jira interview) instead. If `issues` is anything other than\n`GitHub` or `Jira`, skip both Step 3b and Step 3c and proceed to\nStep 4. The `github-project:` block is a GitHub-only concept; the\nJira repo gets the parallel `jira:` block built in Step 3c.\n\nThe purpose of this step is to populate (or intentionally omit) the\n`github-project:` body block defined in `skills\u002Flib\u002Fissue.md`. The\nblock carries project node IDs, status option IDs, and issue type\nIDs so the `\u002Fissue-*` commands can translate human-readable names\ninto the GraphQL IDs the GitHub API requires.\n\nBecause `\u002Frepo-config` is a full-rewrite tool (see Step 2), this\nstep re-runs auto-discovery against the live project rather than\ncopying the prior block wholesale. But where the existing file\nalready recorded a choice — which slot a field maps to, which option\nis the default — that prior choice is offered as the recommended\nanswer (parsed in Step 2), so an accept-everything run reproduces the\nblock. The carry-over is **not** live-validated: if the user renamed\na slot or removed an option in the project since the file was last\nwritten, recommending the now-stale value is fine — the user knows\nwhat they are doing and will pick the right answer.\n\n### 3b.1 — Decide whether to populate\n\nUse `AskUserQuestion` to ask the user how to handle the\n`github-project:` block. Offer two options:\n\n- **Populate** — run auto-discovery (Steps 3b.2 – 3b.5) and build the\n  block, using the existing file's parsed values as per-slot\n  recommendations.\n- **Skip** — do not add a block. Write a skip marker instead with a\n  short reason captured via \"Other\". Skip the rest of Step 3b\n  except 3b.6 (which writes the marker).\n\nMark the recommended option per the carry-over from Step 2:\n\n- If the existing file had a `github-project:` block, recommend\n  **Populate**.\n- If the existing file had a skip marker, recommend **Skip**, and\n  pre-fill the marker's prior reason as the recommended free-text\n  reason (the user can re-enter it verbatim or change it).\n- If the file did not exist (or had neither), recommend **Populate**.\n\nThere is no `Keep` \u002F `Update` option in this skill: the block is\nalways rebuilt from this run's answers (seeded by carry-over\nrecommendations), not copied verbatim. If the user wants the previous\nblock back byte-for-byte without re-confirming each slot, they should\nanswer `No` at the Step 2.5 overwrite prompt and the file stays\nuntouched.\n\n### 3b.2 — Pick the owner and project\n\nEvery live lookup in Step 3b goes through `issues-discover`, which this\nplugin puts on `PATH`. It resolves the repository's host, owner and\nname from the checkout itself and sends each query to that host, so a\ncheckout whose `origin` is on a GitHub Enterprise host is queried\nthere. Run it from inside the repo's working tree; on a non-zero exit\nit prints gh's error, or the missing scope and the host whose token\nlacks it, on stderr.\n\nList the projects of the repository's owner, an organization or a\nuser alike:\n\n```bash\nissues-discover projects\n```\n\nIt prints a JSON array of `{ number, title, id }`. Each project's `id`\nis the ProjectV2 node ID (`PVT_...`), which is the literal value that\ngoes into `project-id`.\n\nShow the user the discovered projects with their numbers and titles,\nplus options:\n\n- One option per discovered project (label: `\u003Cnumber>: \u003Ctitle>`).\n- `Other` to type a number of one of the owner's projects by hand.\n- `Skip` to abandon the github-project block. On `Skip`, jump to\n  3b.6 to record the skip marker.\n\nCommon failure modes to handle gracefully:\n\n- `issues-discover projects` exits non-zero or prints an empty array.\n  Surface the error\u002Fempty result and offer `Other` (manual entry) or\n  `Skip`.\n- The user picks `Other` and enters a project number. Resolve it with\n  `issues-discover project \u003Cnumber>`, which prints that board's\n  `{ number, title, id }`; read `.id` (and `.title` for the summary).\n\nIf the project node ID does not start with `PVT_`, treat the response\nas invalid and let the user retry or skip.\n\nRecord:\n\n- `project-id` — the `PVT_...` node ID.\n- The numeric project number and title (for the summary in Step 6;\n  these are not written to the file).\n\n### 3b.3 — Discover fields (per-slot interview)\n\nThis step runs the same generic interview once per conceptually-standard\nslot. The slot list is hardcoded: `status`, `priority`, `size`. Making\nthe slot list user-configurable is out of scope — a repo that wants a\ndifferent slot (e.g. `effort`) has no supported path to add one today.\n\n#### 3b.3.a — Enumerate project fields once\n\nBefore asking about any slot, enumerate the project's fields a single\ntime and keep the result in memory for the per-slot loop below.\n\n```bash\nissues-discover fields \u003Cproject-number>\n```\n\nIt prints a JSON array of the fields a slot can be backed by, each\n`{ id, name, dataType }` with `options` added on a single-select one.\nFrom it, build two lists for the per-slot loop:\n\n- **Number fields**: every entry with `dataType == \"NUMBER\"`. Capture\n  `id` (`PVTF_...`) and `name`. No options.\n- **Single-select fields**: every entry with `dataType == \"SINGLE_SELECT\"`.\n  Capture `id` (`PVTSSF_...`), `name`, and the full `options` list\n  (each `{ id, name }`). The option IDs are short hex strings, not\n  `PVT_*`-prefixed node IDs — that is correct for single-select option\n  IDs in ProjectV2.\n\n##### Enumerate native Issue Fields (for the `issue-field` kind)\n\nSeparately from the project fields above, enumerate the repo's\n**native GitHub Issue Fields** — the preview feature that attaches\nProjectV2-style fields directly to issues, independent of any project\nboard. These back the `kind: issue-field` slot (see \"Field kinds\n(`fields.\u003Cslot>.kind`)\" in `skills\u002Flib\u002Fissue.md`). These belong to the\nrepository, not the project:\n\n```bash\nissues-discover issue-fields\n```\n\nIt prints a JSON array of the native fields a `kind: issue-field`\nslot can be backed by, each `{ id, name, options }`, with an\n`IFSS_...` field `id` and each option an `{ id, name }` carrying an\n`IFSSO_...` ID. GitHub ships two such native fields today —\n`Priority` (options `Urgent` \u002F `High` \u002F `Medium` \u002F `Low`), the\n`priority`-slot backing, and `Effort` (options `High` \u002F `Medium` \u002F\n`Low`), the `size`-slot backing — so both are offered to the matching\nslot in the per-slot loop.\n\nAn empty array means there are no `issue-field` options to offer in\nthe per-slot loop — skip that option. When the script prints one, it\nexplains why in a note on stderr; pass that note on to the user. Any other\nnon-zero exit is also non-fatal: proceed without the `issue-field`\noption and note the error to the user.\n\n#### 3b.3.b — Per-slot interview\n\n**Carry-over takes precedence over the discovery chains below.** When\nthe existing file (parsed in Step 2) recorded this slot, recommend the\nkind it used (`number`, `single-select`, `issue-field`, `label`, or\n`skip`) by matching it to the corresponding enumerated option — e.g. a\nslot the file recorded as `single-select` with field id `X` recommends\nthe enumerated single-select field whose id is `X` (fall back to\nmatching by field name if the id is no longer enumerated; if neither\nmatches, fall through to the discovery chain). Do **not** live-validate\nthe carried-over kind against the project — recommending a stale choice\nis acceptable per Step 3b's intro. Only when the file recorded nothing\nfor this slot (or the file did not exist) do the discovery chains\nbelow choose the recommendation.\n\nRun the **same** four-step procedure once per slot, in this order:\n\n1. **`status`** — strongly recommended. Discovery-recommendation chain\n   for which kind to pick (used when there is no carry-over): a\n   single-select field named `Status` (case-insensitive) if exactly\n   one such field is enumerated.\n2. **`priority`** — optional. Discovery-recommendation chain for\n   which kind to pick (used when there is no carry-over), in this\n   order:\n   1. A **native Issue Field** named `Priority` (case-insensitive)\n      from the native-field enumeration above — the `kind:\n      issue-field` backing. If exactly one such single-select native\n      field exists, recommend it. It is preferred over the project\n      fields below because native fields are not tied to a project\n      board (the issue's stated selling point of this kind).\n   2. Otherwise a **number** field named `Priority` or `Importance`\n      (case-insensitive — `Priority` matches GitHub's native field\n      name; `Importance` is kept so boards that still use the older\n      name resolve). If exactly one such field exists, recommend it.\n   3. Otherwise a **single-select** project field with the same name.\n      If exactly one such field exists, recommend it.\n   4. Otherwise no auto-recommendation — present the full option set\n      and let the user pick.\n\n   If multiple fields match at the same tier (e.g. both a `Priority`\n   and an `Importance` number field), present all of them as\n   options and let the user pick; do not silently prefer one.\n3. **`size`** — optional. Discovery-recommendation chain for which\n   kind to pick (used when there is no carry-over), in this order:\n   1. A **native Issue Field** named `Effort` or `Size`\n      (case-insensitive) from the native-field enumeration above — the\n      `kind: issue-field` backing. `Effort` is GitHub's native\n      size-analogue field (`dataType: SINGLE_SELECT`, options `High` \u002F\n      `Medium` \u002F `Low`), the size-slot counterpart of the native\n      `Priority` field. If exactly one such single-select native field\n      exists, recommend it; it is preferred over the project fields\n      below because native fields are not tied to a project board.\n   2. Otherwise a **single-select** project field named `Size` or\n      `T-Shirt` (case-insensitive). If exactly one such field exists,\n      recommend it.\n   3. Otherwise a **number** field with the same name. If exactly one\n      such field exists, recommend it.\n   4. Otherwise recommend `kind: label` with namespace `size:` (the\n      built-in fallback for repos with no project field for size).\n\n   If multiple fields match at the same tier (e.g. both `Size` and\n   `T-Shirt`), present them as options and let the user pick — no\n   auto-recommendation.\n\n   Note the slot keeps its name (`size`) even when backed by the\n   native `Effort` field — \"size\" is the clearer term in this tooling,\n   so only a new backing kind is added, not a rename. When `size` is\n   backed by `Effort`, the slot's effective options become the native\n   field's own (`High` \u002F `Medium` \u002F `Low`), captured verbatim in\n   Step 3 below — **not** the t-shirt set.\n\nFor every slot, the procedure is:\n\n##### Step 1 — Show every option the user could pick\n\nPresent, in one `AskUserQuestion` call, the full set of choices for\nthis slot:\n\n- One option per enumerated **number field** from 3b.3.a (label:\n  `\u003Cname> (number field)`).\n- One option per enumerated **single-select field**, with its option\n  list shown inline so the user can see what they would be choosing\n  (label: `\u003Cname> (single-select: opt1, opt2, opt3, ...)`). If the\n  inline list would overflow the question UI, truncate with `, ...`\n  after the first few — the user is selecting the field, not the\n  option, so a partial list is enough to disambiguate.\n- One option per enumerated **native Issue Field** (from the\n  native-field enumeration in 3b.3.a), with its option list shown\n  inline (label: `\u003Cname> (issue field: opt1, opt2, ...)`). This kind\n  corresponds to `kind: issue-field` in the rendered block. Offered\n  only when at least one single-select native field was enumerated;\n  most relevant for the `priority` slot (GitHub's native `Priority`\n  field), but presented for any slot so a repo can back e.g. `size`\n  with a native field too.\n- One option for **labels**: `As labels (with namespace prefix)` —\n  independent of project fields. This kind corresponds to\n  `kind: label` in the rendered block.\n- One option for **skip**: `None \u002F skip` — slot stays unconfigured\n  and is rendered as `kind: skip`. Per `skills\u002Flib\u002Fissue.md`'s \"Field\n  kinds (`fields.\u003Cslot>.kind`)\" section, an emitted `kind: skip` and\n  a slot-absent entry are intentionally equivalent in verb behavior;\n  the wizard always emits `kind: skip` for visibility. The\n  slot-absent path only occurs when the user never reached the\n  per-slot interview at all (e.g. they chose `Skip` at the block\n  level in Step 3b.1).\n\nMark the recommended choice with `(Recommended)` in its label — the\ncarried-over kind if the file recorded one for this slot, else per the\ndiscovery chain above. For `status`, when there is no carry-over and\nno `Status`-named single-select field exists, fall back to\nrecommending the first single-select field, then `None \u002F skip` as a\nlast resort — status is strongly recommended but not enforced.\n\n##### Step 2 — Ask the user which to use\n\nUse the option set from Step 1 directly. There is no slot-specific\noverride; the user picks one of the enumerated kinds.\n\n##### Step 3 — Follow up based on the user's pick\n\nDispatch on the chosen kind:\n\nIn every case below, when the existing file (parsed in Step 2)\nrecorded this slot with the **same kind** the user just picked,\nrecommend that slot's carried-over values for the follow-up prompts\n(`default`, `min`, `max`, namespace, option list). Carry-over is not\nlive-validated. When there is no carry-over for the slot, or the user\npicked a different kind than the file recorded, use the per-kind\nrecommendation noted below.\n\n- **Number field** (`kind: number`):\n  - Capture the field `id` (`PVTF_...`) from the enumeration.\n  - Ask for `min` (an integer). Recommend the carried-over `min` if\n    present; otherwise no built-in recommendation — the user owns the\n    range.\n  - Ask for `max` (an integer, at least `min`). Recommend the\n    carried-over `max` if present; otherwise no built-in\n    recommendation — the user owns the range.\n  - Ask for `default` (an integer within `min`\u002F`max`). Recommend the\n    carried-over `default` if present; otherwise no built-in\n    recommendation — the user owns the value.\n\n- **Single-select field** (`kind: single-select`):\n  - Capture the field `id` (`PVTSSF_...`) and the full option\n    name→id map from the enumeration.\n  - Ask which option should be the **default** for new issues.\n    Recommend the carried-over `default` option if present in the\n    enumerated option list; otherwise use the slot-aware chain\n    (see \"Default-option recommendation (single-select, issue-field,\n    label)\" below).\n  - Always include an `Other` choice to free-type one of the\n    enumerated option names.\n\n- **Native Issue Field** (`kind: issue-field`):\n  - Capture the native field's node `id` (`IFSS_...`) under\n    `field-id:`, its `name` under `field-name:`, `data-type:\n    single-select`, and the full option name→id map (option `IFSSO_...`\n    IDs) from the native-field enumeration in 3b.3.a.\n  - Ask which option should be the **default** for new issues.\n    Recommend the carried-over `default` option if present in the\n    enumerated option list; otherwise use the slot-aware chain\n    (see \"Default-option recommendation (single-select, issue-field,\n    label)\" below). For GitHub's native `Priority` field the options\n    are `Urgent`, `High`, `Medium`, `Low`; for the native `Effort`\n    field — the `size`-slot backing — they are `High`, `Medium`,\n    `Low`. Always include an `Other` choice to free-type one of the\n    enumerated option names.\n  - This kind is single-select-only for now; the other native\n    data-types (date, number, text, multi-select) are out of scope.\n\n- **Labels** (`kind: label`):\n  - Ask for the **namespace prefix**. Recommend the carried-over\n    `namespace` if present; otherwise `\u003Cslot>:` (e.g. `size:` for the\n    `size` slot). Free-text via `Other` for any other value; trailing\n    colon is conventional but not enforced by the wizard.\n  - Ask for the **option list** as a comma-separated string (e.g.\n    `XS, S, M, L, XL`). Recommend the carried-over option list if\n    present; otherwise no built-in recommendation — the user owns the\n    list. Split on commas, trim whitespace from each entry; reject\n    empty entries.\n  - Ask for the **default** option (must be one of the entered\n    options, case-insensitive match against the list). Recommend the\n    carried-over `default` if present in the entered list; otherwise\n    use the slot-aware chain (see \"Default-option recommendation\n    (single-select, issue-field, label)\" below).\n  - No field `id` is captured — labels are not project fields and\n    the label name is its own identifier.\n\n- **Skip** (`kind: skip`):\n  - Nothing to capture beyond `kind: skip`. The slot is explicitly\n    declared as unused.\n  - For the `status` slot specifically, `Skip` is allowed but\n    discouraged — surface a brief note to the user that\n    `\u002Fissue-set-status` and the `--status` flag will warn-and-skip,\n    then accept the user's choice without re-prompting.\n\n##### Default-option recommendation (single-select, issue-field, label)\n\nWhen no carried-over `default` is available, the wizard recommends a\ndefault by this slot-aware chain. This is only the *recommended*\nprompt value — the user owns the final choice — but the recommendation\nshould be sensible rather than blindly the first YAML option, because\nan option set whose YAML order runs most-work-first (e.g. the native\n`Effort` field's `High`, `Medium`, `Low`) would otherwise default a\n`size` slot to its **most-work** option.\n\n- **`status` slot**: `Backlog` if present (case-insensitive),\n  otherwise the first option in the list. (Status options have no\n  magnitude; first-in-list is the natural \"new issue\" state.)\n- **`size` slot**: the **least-work option** along the slot's\n  *magnitude order* (least-work → most-work), not the first YAML\n  option. Establish the magnitude order from the option semantics\n  exactly as the size heuristic does (see \"The option set is the\n  slot's own, not a fixed t-shirt set\" in\n  `skills\u002Fissue-create\u002FSKILL.md`): for the t-shirt set `XS, S, M, L,\n  XL` the YAML order already runs least-work-first, so\n  the least-work option is `XS` (the first entry); for the native\n  `Effort` field `High, Medium, Low` the magnitude order is the\n  **reverse**, so the least-work option is `Low` (the last entry), not\n  `High`. Recommending the middle option (`M` \u002F `Medium`) is an\n  acceptable alternative when a least-work default would skew new\n  issues too small — what must be avoided is defaulting `size` to the\n  most-work option.\n- **Any other slot** (e.g. `priority`): the first option in the list.\n  Priority option sets are conventionally authored most-important-first\n  (`P0`, `P1`, …; `Urgent`, `High`, …) and the first entry is the\n  intended high-salience default, so this preserves the existing\n  priority-slot behavior.\n\n##### Step 4 — Defer rendering to 3b.5\n\nHold the captured per-slot state in memory. Step 3b.5 assembles all\nslots into the final YAML block once the loop finishes; do not write\nor edit the file from inside this loop.\n\n### 3b.4 — Discover issue types\n\nGitHub Issue Types are an org-level (and now repo-scoped) enum:\n\n```bash\nissues-discover issue-types\n```\n\nIt prints a JSON array of the repository's enabled issue types, each\n`{ id, name }`. Each one contributes `\u003CName>: \u003Cid>` to the\n`issue-types:` map (preserve the capitalization GitHub returns).\n\nIf it prints an empty array (older repos without issue types enabled),\nask the user whether to:\n\n- `Skip issue-types` — omit the `issue-types:` sub-block entirely.\n- `Other` — manually enter `Name: IT_...` pairs.\n\nA non-zero exit is non-fatal too: note its stderr to the user, then\noffer the same two choices as for an empty array.\n\nAsk the user which type should be the **default**. Recommend the\ncarried-over `issue-types.default` (parsed in Step 2) if present in\nthe enumerated list; otherwise, in order: `Feature` (if present,\ncase-insensitive), then the first type in the list. Include `Other`\nfor free-type.\n\n### 3b.5 — Assemble the proposed block\n\nFrom the captured per-slot state in 3b.3.b and the issue-types map in\n3b.4, render the YAML block that will be written to the file. Use the\nexact indentation and key order shown below (matching the schema in\n`skills\u002Flib\u002Fissue.md`). Every populated slot under `fields:` carries\nits `kind:` discriminator (`number`, `single-select`, `issue-field`,\n`label`, or `skip`) — there is no implicit default and no\nbackwards-compat shim for the old `type:` shape.\n\nThe renderer is purely a function of the captured state — it never\ninvents defaults or substitutes built-in fallbacks for kind-specific\nkeys. Every key in the rendered block traces back to a value the user\neither supplied directly (via \"Other\") or selected from an enumerated\noption in 3b.3.b or 3b.4.\n\n#### Per-kind render shapes\n\nFor each populated slot, emit one of the following shapes based on the\nslot's captured `kind`:\n\n- **`kind: number`** — emit `kind`, `id`, `default`, `min`, `max`:\n\n  ```yaml\n  \u003Cslot-name>:\n    kind: number\n    id: \u003Cfield-id>\n    default: \u003Cnumber>\n    min: \u003Cnumber>\n    max: \u003Cnumber>\n  ```\n\n- **`kind: single-select`** — emit `kind`, `id`, `default`, and the\n  option name→id map:\n\n  ```yaml\n  \u003Cslot-name>:\n    kind: single-select\n    id: \u003Cfield-id>\n    default: \u003Coption-name>\n    options:\n      \u003COption Name>: \u003Coption-id>\n      ...\n  ```\n\n- **`kind: issue-field`** — emit `kind`, `data-type`, `field-id`,\n  `field-name`, `default`, and the option name→id map. The IDs are\n  native-field IDs (`IFSS_...` for the field, `IFSSO_...` for each\n  option), not project field\u002Foption IDs:\n\n  ```yaml\n  \u003Cslot-name>:\n    kind: issue-field\n    data-type: single-select\n    field-id: \u003CIFSS_...>\n    field-name: \u003CField Name>\n    default: \u003Coption-name>\n    options:\n      \u003COption Name>: \u003CIFSSO_...>\n      ...\n  ```\n\n- **`kind: label`** — emit `kind`, `namespace`, `default`, and the\n  flat option list. No `id` (labels are not project fields). The\n  `namespace` value is double-quoted because trailing-colon strings\n  like `size:` would otherwise be interpreted as a YAML mapping key:\n\n  ```yaml\n  \u003Cslot-name>:\n    kind: label\n    namespace: \"\u003Cnamespace>\"\n    default: \u003Coption-name>\n    options: [\u003Copt1>, \u003Copt2>, ...]\n  ```\n\n- **`kind: skip`** — emit `kind: skip` and nothing else:\n\n  ```yaml\n  \u003Cslot-name>:\n    kind: skip\n  ```\n\n#### Full-block shape\n\nThe assembled block looks like:\n\n```yaml\ngithub-project:\n  project-id: \u003Cproject-id>\n  fields:\n    status:\n      \u003Cper-kind shape from above>\n    priority:\n      \u003Cper-kind shape from above>\n    size:\n      \u003Cper-kind shape from above>\n  issue-types:\n    default: \u003CType Name>\n    \u003CType Name>: \u003Ctype-id>\n    ...\n```\n\nSlot order under `fields:` is fixed: `status`, then `priority`,\nthen `size`. Because `\u002Frepo-config` is a full-rewrite tool, a run\nalways emits exactly what that run's auto-discovery produced — the\nfile is never edited outside a `\u002Frepo-config` run, so it never\ncarries a slot (e.g. `effort`) the wizard didn't itself write.\n\n#### Conditional rendering rules\n\n- A populated slot with `kind: skip` is still emitted under `fields:`\n  — it is the user's explicit declaration that the slot is unused,\n  which `\u002Fissue-*` verbs treat as equivalent to slot-absent but more\n  visible. Only omit a slot entirely if the user never reached the\n  per-slot interview (e.g. the user aborted out of Step 3b before the\n  loop covered that slot).\n- If **all** slots are emitted as `kind: skip` or were never reached,\n  omit the `fields:` key entirely — the block is still valid without\n  it.\n- Omit `issue-types` entirely if issue types were skipped or the repo\n  has none enabled.\n- Preserve the case-sensitive option and type names from the GitHub\n  API verbatim — they are the canonical keys the `\u002Fissue-*` commands\n  match against.\n- If any option or type name contains consecutive spaces, or starts\n  with a YAML-special character — any of these:\n\n  ```text\n  ? : - & * ! [ { , > | % @ ` \" '\n  ```\n\n  — quote the key with double quotes to keep the YAML well-formed.\n  The common case (single-word or space-separated names like `In\n  Progress`) is fine unquoted, matching the example in\n  `skills\u002Flib\u002Fissue.md`. The same quoting rule applies to label\n  options inside the `kind: label` flat-list shape: if any option\n  contains a YAML-special character or consecutive spaces, quote\n  that individual entry with double quotes inside the `[...]` list.\n\n### 3b.6 — Skip marker (when the user chose to skip)\n\nWhen the user chose `Skip` in 3b.1, do not write a `github-project:`\nblock. Instead, plan to write a single-line HTML comment of the\nexact form:\n\n```text\n\u003C!-- github-project: intentionally omitted; \u003Creason>. -->\n```\n\nPlace the comment where the block would have gone (see Step 5's\ncompose order). Use the reason captured from the user (free-text\ntrimmed to a single line, period appended if missing). When the\nexisting file (parsed in Step 2) already had a skip marker, its prior\nreason is the recommended default for this free-text prompt per 3b.1,\nso an accept-everything run reproduces the marker.\n\nThe skip marker documents the deliberate omission so anyone reading\nthe file later knows it was a choice, not an oversight.\n\n## Step 3c: Jira interview (conditional)\n\nThis step runs **only when the just-chosen `issues` value is `Jira`**.\nIf `issues` is `GitHub`, Step 3b ran instead and this step is skipped.\nIf `issues` is anything else, both are skipped.\n\nThe purpose of this step is to populate (or intentionally omit) the\n`jira:` body block defined in `skills\u002Flib\u002Frepo-config.md` (\"`jira:`\nblock\") and the `\u002Fissues-jira:jira-lib` skill. The block carries the Jira project\nkey plus the status \u002F priority \u002F size slot maps and issue-type map\nso the `\u002Fissue-*` commands (delivered in #9) can translate\nhuman-readable names into the identifiers `acli` consumes. It is the\nJira analogue of the Step 3b `github-project:` interview, run through\n`acli` instead of `gh`.\n\nAll discovery here uses the `acli` command templates in\nthe `\u002Fissues-jira:jira-lib` skill — read that file's \"Discovery\nprimitives (for `\u002Frepo-config`)\" section for the exact command shapes\nand their version caveat. Do not invent `acli` flags inline;\nreference the library.\n\n### 3c.0 — Preflight: `acli` and auth\n\n1. **Detect `acli`.** Run `command -v acli`. If it is not on `PATH`,\n   do **not** install it (host modification — forbidden). Surface a\n   message that `acli` is required for the Jira interview and point\n   the user at Atlassian's install docs, then offer to **Skip** the\n   `jira:` block (jump to 3c.5 to record a skip marker) so the rest of\n   the file can still be written.\n2. **Check auth.** Run `acli jira auth status`. If unauthenticated or\n   the session is expired, run `acli jira auth login --web` and wait\n   for the user to complete the browser\u002FSSO flow (a\n   credential-prompting command, allowed per\n   `~\u002F.claude\u002Frules\u002Fcredential-surfaces.md`). On an auth failure that\n   `--web` login does not resolve, **stop and report** — never\n   introspect the user's Atlassian credential state. See\n   the `\u002Fissues-jira:jira-lib` skill \"Auth expectation and failure surface\".\n\n### 3c.1 — Decide whether to populate\n\nUse `AskUserQuestion` to ask how to handle the `jira:` block. Offer:\n\n- **Populate** — run discovery (3c.2 – 3c.4) and build the block,\n  using the existing file's parsed `jira:` values (if any) as per-slot\n  recommendations.\n- **Skip** — write a skip marker instead, with a short reason captured\n  via \"Other\". Skip the rest of Step 3c except 3c.5.\n\nRecommend **Populate** when the existing file had a `jira:` block (or\nno metadata block at all); recommend **Skip** when the existing file\nhad a `jira:` skip marker, pre-filling its prior reason. The carry-over\nis not live-validated — recommending a stale value is fine.\n\n### 3c.2 — Pick the project\n\nList the projects visible to the authenticated user:\n\n```bash\nacli jira project list --json\n```\n\nShow the user the discovered projects (key + name), plus `Other` to\ntype a project key by hand and `Skip` (jump to 3c.5). Record the\nchosen project **key** (e.g. `SET`) as `project-key`. Confirm the key\nmatches the `issue-link-prefix` chosen in Step 3 (e.g. key `SET` ↔\nprefix `SET-`); if they disagree, note the mismatch to the user but do\nnot auto-correct — the front-matter answer stands.\n\n### 3c.3 — Per-slot interview (status, priority, size)\n\nRun the same generic interview once per conceptually-standard slot, in\nthis order: `status`, `priority`, `size`. The slot list is hardcoded\n(matching Step 3b) — making it user-configurable is out of scope, so\na repo wanting a different slot has no supported path to add one\ntoday.\n\n**Carry-over takes precedence over discovery.** When the existing file\nrecorded a slot, recommend the kind and values it used. Otherwise use\nthe discovery + per-slot defaults below. Carry-over is not\nlive-validated.\n\nDiscover the project's metadata once, up front, via the\nthe `\u002Fissues-jira:jira-lib` skill \"Discovery primitives (for\n`\u002Frepo-config`)\" templates:\n\n- **Issue types** — from `acli jira project view --key \u003CKEY> --json`,\n  falling back to `acli jira workitem create --project \u003CKEY>\n  --generate-json` (which enumerates valid types and fields).\n- **Statuses** — from a representative work item\n  (`acli jira workitem search --jql \"project = \u003CKEY>\" --json`, then\n  `acli jira workitem view \u003CKEY-N> --json` — the key is positional;\n  `workitem view` has no `--key` flag); confirm\u002Fextend the\n  status names with the user.\n- **Custom fields** — from the `--generate-json` create template,\n  which lists fields keyed by `customfield_NNNNN` with display names.\n\nFor each slot, present (via `AskUserQuestion`) the kinds the slot can\ntake, mark the recommended one, and follow up on the pick:\n\n1. **`status`** — recommend `kind: status`. Capture the status\n   `options:` as a name→name map from the discovered status names; ask\n   which is the **default** (recommend `Backlog` if present, else the\n   first). `Skip` is allowed but discouraged (warn that\n   `\u002Fissue-set-status` will warn-and-skip).\n2. **`priority`** — offer `kind: custom-field` (recommend when a\n   custom field named `Priority`\u002F`Importance`\u002F`Severity` is discovered,\n   capturing its `field-id:` and its allowed-value names as a name→name\n   `options:` map), `kind: label`, or `kind: skip`. Ask for the\n   **default** option.\n3. **`size`** — offer `kind: custom-field` (when a `Size`\u002F`T-Shirt`\n   field is discovered), `kind: label` (recommend, with namespace\n   `size:` and a user-entered option list, matching the GitHub size\n   fallback), or `kind: skip`. Ask for the **default** option.\n\nHold each slot's captured state in memory for 3c.4's render. For\n`kind: label`, ask for the namespace (recommend `\u003Cslot>:`) and a\ncomma-separated option list exactly as Step 3b.3 does.\n\n### 3c.4 — Issue types and assemble the block\n\nFrom the discovered (and user-confirmed) issue types, build the\n`issue-types:` name→name map and ask which is the **default**\n(recommend `Task` if present, else the first). If the project exposes\nno enumerable types, offer to skip the `issue-types:` sub-block or let\nthe user enter names via `Other`.\n\nAssemble the `jira:` block from the captured per-slot state and the\nissue-types map, using the exact shapes in the\n`skills\u002Flib\u002Frepo-config.md` \"`jira:` block\" schema:\n\n```yaml\njira:\n  project-key: \u003CKEY>\n  fields:\n    status:\n      kind: status\n      default: \u003Cname>\n      options:\n        \u003CName>: \u003CName>\n        ...\n    priority:\n      \u003Cper-kind shape: custom-field | label | skip>\n    size:\n      \u003Cper-kind shape: custom-field | label | skip>\n  issue-types:\n    default: \u003CType Name>\n    \u003CType Name>: \u003CType Name>\n    ...\n```\n\nPer-kind render shapes:\n\n- **`kind: status`** — emit `kind`, `default`, and the name→name\n  `options:` map.\n- **`kind: custom-field`** — emit `kind`, `field-id:`\n  (`customfield_NNNNN`), `default`, and the name→name `options:` map.\n- **`kind: label`** — emit `kind`, `namespace` (double-quoted),\n  `default`, and the flat `options:` list — identical to Step 3b's\n  label shape.\n- **`kind: skip`** — emit `kind: skip` and nothing else.\n\nThe same conditional-rendering, YAML-quoting, and slot-order rules\nfrom Step 3b.5 apply: slot order is fixed (`status`, `priority`,\n`size`); a slot the user skipped is emitted as `kind: skip`; quote any\noption\u002Ftype key that contains consecutive spaces or a YAML-special\ncharacter. The renderer is purely a function of the captured state —\nit never invents identifiers.\n\n### 3c.5 — Skip marker (when the user chose to skip)\n\nWhen the user chose `Skip` in 3c.1 (or `acli` was unavailable in\n3c.0), do not write a `jira:` block. Instead, plan to write a\nsingle-line HTML comment of the exact form:\n\n```text\n\u003C!-- jira: intentionally omitted; \u003Creason>. -->\n```\n\nPlace the comment where the block would have gone (Step 5 compose\norder). Use the reason captured from the user. When the existing file\nalready had a `jira:` skip marker, its prior reason is the recommended\nfree-text default per 3c.1, so an accept-everything run reproduces the\nmarker.\n\n## Step 4: Show the proposed file and wait for approval\n\nRender the **full file** that will be written, exactly as it will\nappear on disk. This applies equally to the new-file case and the\noverwrite case — there is no diff path, because Step 5 always\nperforms a full-file write rather than an in-place region edit. (The\nexisting file's values may have been carried over as recommended\ndefaults during the interview, but the write itself replaces the file\nin full.)\n\nCompose the preview in the same order Step 5 will write it:\n\n1. The resolved YAML front-matter (the canonical seven-key block):\n\n   ```yaml\n   ---\n   schema-version: 7\n   source-control: \u003Cvalue>\n   issues: \u003Cvalue>\n   issue-link-prefix: \"\u003Cvalue>\"\n   default-issue-source-branch: \u003Cvalue>\n   default-pr-target-branch: \u003Cvalue>\n   issue-branch-naming-prefix: \u003Cvalue>\n   ---\n   ```\n\n   Notes:\n\n   - `schema-version` is **always the first key** and **always\n     `7`** in files this skill writes. It is a constant baked\n     into the writer, not an interview question — see\n     `skills\u002Flib\u002Frepo-config.md` for how readers consume it.\n     When the schema bumps, update this skill's constant and the\n     library's `SCHEMA_VERSION`. Readers pin a **minimum**\n     required version and accept any file at that version or\n     newer (bumps are additive by construction), so a reader's\n     pin is bumped only when that reader needs to consume a\n     newly-added field — there is no lockstep requirement.\n   - `issue-link-prefix` is always quoted because values like\n     `#` are otherwise interpreted as a YAML comment.\n\n2. A blank line.\n\n3. The tracker-metadata block, selected by `issues`:\n   - **GitHub** — **if Step 3b produced a `github-project:` block**\n     (user chose `Populate`): the rendered block from 3b.5, followed\n     by a blank line. **If Step 3b produced a skip marker** (user\n     chose `Skip`): the single-line HTML comment from 3b.6, followed\n     by a blank line.\n   - **Jira** — **if Step 3c produced a `jira:` block** (user chose\n     `Populate`): the rendered block from 3c.4, followed by a blank\n     line. **If Step 3c produced a skip marker** (user chose `Skip`,\n     or `acli` was unavailable): the single-line HTML comment from\n     3c.5, followed by a blank line.\n   - **Neither ran** (some other `issues` value): no extra content\n     here.\n\n4. The canonical body template (the same `# Repo Config` ... body\n   used in Step 5).\n\nThen ask explicitly for approval, e.g.:\n\n> Write `.issues\u002Frepo-config.md` with the content above? (y\n> to proceed, or tell me what to change)\n\nWait for explicit approval (`y`, `yes`, `go`, `do it`, etc.) before\nmoving to Step 5. If the user asks for changes, loop back to Step\n3, Step 3b, or Step 3c as appropriate, then re-render the full file\nin this step.\n\n## Step 5: Write the file\n\nThe `repo-config-write` script, which this plugin puts on `PATH`,\nwrites the file; you never write `.issues\u002Frepo-config.md` yourself.\nWrite the approved content from Step 4 to a draft file under\n`.claude\u002Ftmp\u002F`, then run the script with the Bash tool from inside the\nrepo's working tree:\n\n```bash\nrepo-config-write \u003Cdraft-path>\n```\n\nThe script applies the validity checks the issue verbs apply when\nthey read the file — among them that a `kind: number` slot's `min`, `max` and\n`default` are integers with `min` at most `max`, and that every slot's\n`default` is a value the slot accepts — and refuses a draft that fails\none, leaving any existing file untouched. Otherwise it replaces\n`\u003Crepo-root>\u002F.issues\u002Frepo-config.md` whole with the draft's bytes,\ncreating `.issues\u002F` when it is missing. On a non-zero exit, relay its\nstderr verbatim, loop back to the interview step that owns the value\nit names, and show the corrected file in Step 4 again before retrying.\n\nThis applies whether the file existed before or not — `\u002Frepo-config`\nis a full-rewrite tool, and the user already saw the full proposed\ncontents in Step 4 before approving.\n\nDo not use `Edit` for in-place region rewrites. Do not copy any bytes\nverbatim from the previous file. The new file's content is determined\nentirely by the user's answers in this run plus the canonical body\ntemplate below — even though those answers may have been seeded by\nvalues carried over from the previous file as recommended defaults\n(Step 2). The carry-over influences the interview, not the write\nmechanism: the write always emits a fresh full file.\n\nCompose the draft in this order:\n\n1. The resolved YAML front-matter (the canonical seven-key block\n   from Step 4 — `schema-version: 7` followed by the six\n   user-resolved fields, in that exact order).\n2. A blank line.\n3. The tracker-metadata block, selected by `issues`:\n   - **GitHub** — **if Step 3b produced a resolved `github-project:`\n     block**: that block exactly as rendered in 3b.5, followed by a\n     blank line. **If Step 3b produced a skip marker**: the\n     single-line HTML comment from 3b.6, followed by a blank line.\n   - **Jira** — **if Step 3c produced a resolved `jira:` block**:\n     that block exactly as rendered in 3c.4, followed by a blank\n     line. **If Step 3c produced a skip marker**: the single-line\n     HTML comment from 3c.5, followed by a blank line.\n   - **Neither ran** (some other `issues` value): no extra content\n     here.\n4. The canonical body template (below), starting with `# Repo Config`.\n\nThe canonical body template (body only — front-matter and any\ntracker-metadata content are composed in steps 1-3 above):\n\n````markdown\n# Repo Config\n\nNever hand-edit this file — re-run `\u002Frepo-config`.\n````\n\n### Verification\n\nAfter the script exits zero, re-read the file with `Read` and\nconfirm:\n\n- The front-matter parses as YAML and contains exactly the seven\n  canonical keys: `schema-version: 7` (first) followed by the six\n  fields with the values the user approved in Step 4.\n- If Step 3b produced a `github-project:` block (GitHub) or Step 3c\n  produced a `jira:` block (Jira), the block appears at column 0 and\n  parses as YAML; it terminates at a column-0 non-blank line (heading\n  or next top-level key) as `skills\u002Flib\u002Fissue.md` \u002F\n  `skills\u002Flib\u002Frepo-config.md` expect.\n- The canonical body template is present below the front-matter\n  (and below the tracker-metadata block, if any).\n\nIf verification fails, surface the discrepancy to the user and stop\n— do not attempt a corrective second write. The user should re-run\n`\u002Frepo-config` after manually resolving the inconsistency.\n\n## Step 6: Summarize\n\nAfter the file is written, report back:\n\n- The absolute path written.\n- The final resolved values for all six front-matter fields.\n- The tracker-metadata outcome — for the block matching `issues`\n  (`github-project:` on GitHub, `jira:` on Jira), one of:\n  - `populated` (GitHub: project title\u002Fnumber, count of status\n    options, count of issue types; Jira: project key, count of status\n    options, count of issue types).\n  - `skipped` (no block present; skip marker written with reason).\n  - `not applicable` (`issues` is neither `GitHub` nor `Jira`, so no\n    tracker-metadata block applies).\n- Whether the prior file (if any) was replaced. If the user\n  declined the Step 2.5 overwrite prompt, this step is not reached\n  — the skill exits in Step 2.5 with a \"left unchanged\" message.\n- Next step: the flows that read this file can now run in this repo.\n\n---\n\n## Hard constraints\n\n- **Never write the file without explicit approval** in Step 4.\n- **Never overwrite an existing file without the Step 2.5\n  confirmation.** If the user declines, exit cleanly and leave the\n  file untouched.\n- **Carry values forward as recommended defaults, not as authority.**\n  When the file exists, each interview question recommends the value\n  parsed from the prior file (Step 2), falling back to the built-in\n  default when a field is absent or unparseable. The user can always\n  override. Never live-validate a carried-over value against the\n  project (Step 3b), and never copy the prior file's bytes verbatim\n  into the new file — the carry-over feeds the interview, the write is\n  always a fresh full file built from this run's answers.\n- **Never edit anything outside the target repo.** The skill writes\n  one draft under `.claude\u002Ftmp\u002F`, and through `repo-config-write` one\n  file: `\u003Crepo-root>\u002F.issues\u002Frepo-config.md`.\n- **Never run destructive git commands.** This skill does not\n  commit, push, branch, reset, or otherwise change git state. The\n  user commits the new file themselves.\n- **Always go through `repo-config-write`**, never `Write` or `Edit`\n  on `.issues\u002Frepo-config.md`: the script is what refuses a file the\n  issue verbs would reject, and it replaces the file in full.\n- **Do not validate remote branch existence** — out of scope.\n- **Run the tracker-matching interview, never both.** Step 3b\n  (`github-project:`) runs only under `issues: GitHub`; Step 3c\n  (`jira:`) runs only under `issues: Jira`. The two blocks are\n  mutually exclusive — never prompt for or emit a `github-project:`\n  block on a Jira repo, or a `jira:` block on a GitHub repo. Under any\n  other `issues` value, skip both.\n- **Never invent project IDs, field IDs, option IDs, issue type IDs,\n  Jira project keys, custom-field ids, status names, or type names.**\n  All identifiers written to the `github-project:` block must come\n  from a live `issues-discover` lookup in Step 3b, and all identifiers written to\n  the `jira:` block must come from a live `acli` query in Step 3c (or,\n  in either case, with explicit user override via `Other`, from values\n  the user typed in). Do not copy identifiers from the schema examples\n  in this file, `skills\u002Flib\u002Fissue.md`, or the `\u002Fissues-jira:jira-lib` skill — those\n  are illustrative placeholders.\n- **Never install `acli` or introspect Jira credential state.** If\n  `acli` is missing in Step 3c, report and offer to skip — do not\n  install it (host modification). On an `acli` auth failure, run\n  `acli jira auth login --web` once and wait; never read or manipulate\n  the user's Atlassian token cache. See the `\u002Fissues-jira:jira-lib` skill \"Auth\n  expectation and failure surface\".\n",{"name":5,"description":7},"main","4b187366f06afb374243166f6a0f5fc1514fa579","plugins\u002Fissues\u002Fskills\u002Frepo-config","https:\u002F\u002Fgithub.com\u002FTheVoskamps\u002Fclaude-plugins-marketplace","https:\u002F\u002Fgithub.com\u002FTheVoskamps","2026-11-14 13:16:57",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add TheVoskamps\u002Fclaude-plugins-marketplace --skill repo-config",{"tool":36,"command":37},"bunx","bunx skills add TheVoskamps\u002Fclaude-plugins-marketplace --skill repo-config",{"tool":39,"command":40},"pnpm","pnpm dlx skills add TheVoskamps\u002Fclaude-plugins-marketplace --skill repo-config","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTheVoskamps\u002Fclaude-plugins-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fissues\u002Fskills\u002Frepo-config\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M77KH3GAXPPXNQS96KDEEZBS","mask-inappropriate-language","Replace inappropriate language (profanity, slurs, strong insults) in provided text or a file with asterisks, character-for-character, preserving everything else.","https:\u002F\u002Fgithub.com\u002FTheVoskamps\u002Fclaude-plugins-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fwriting-tools\u002Fskills\u002Fmask-inappropriate-language\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M77KGY5TZDQT8QR23Y0R8P7A","theorem-agents-interface","The interface between the sdlc reviewer and the theorem agents it spawns — what each double-dash brief parameter means, and what each consequence class means. Preloaded into every theorem agent (sdlc:theorem-generator, the disprover, and the verifier) via its skills frontmatter, and read by name by the sdlc:theorem-based-pr-reviewer agent for what its briefs' parameters mean; not invoked from the user's slash menu.","https:\u002F\u002Fgithub.com\u002FTheVoskamps\u002Fclaude-plugins-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Ftheorem-agents-interface\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M77KGT5HW0XAE500WSSM0PZY","sdlc-config-user","Interactively create or merge-update the repo user sdlc config, `\u003Crepo-root>\u002F.sdlc\u002Fuser-config.yml` (tier 3 — this user, this repo, never committed), and add it to the repo's tracked `.gitignore`.","https:\u002F\u002Fgithub.com\u002FTheVoskamps\u002Fclaude-plugins-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fsdlc-config-user\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M77KGQGQVB0NYZX0WJRJPDEK","sdlc-config-repo","Interactively create or merge-update the shared repo sdlc config, `\u003Crepo-root>\u002F.sdlc\u002Frepo-config.yml` (tier 2 — tracked, every user of this repo).","https:\u002F\u002Fgithub.com\u002FTheVoskamps\u002Fclaude-plugins-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fsdlc-config-repo\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M77KGKPEN7C5RCEDSEP3Z1XB","sdlc-config-global","Interactively create or merge-update the global user sdlc config, `$XDG_CONFIG_HOME\u002Fsdlc\u002Fuser-config.yml` (tier 1 — this user, every repo on this machine).","https:\u002F\u002Fgithub.com\u002FTheVoskamps\u002Fclaude-plugins-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fsdlc-config-global\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M77KGFX95J2XEQBBD49QHTXK","pr-read-cli-interface","The contract for sdlc's PR-read CLIs — sdlc-pr-round, sdlc-pr-adjustments, sdlc-fixer-brief and sdlc-records-chain — their arguments, exit codes and output grammar. Preloaded into sdlc:theorem-based-pr-reviewer, sdlc:issue-fixer, sdlc:docs-writer and sdlc:pr-finalizer via their skills frontmatter; not invoked from the user's slash menu.","https:\u002F\u002Fgithub.com\u002FTheVoskamps\u002Fclaude-plugins-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fpr-read-cli-interface\u002FSKILL.md",[],[]]