[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DXPQGNQAYSVQ5SBMCJXGVT":3,"skill-same:01M6DXPQGNQAYSVQ5SBMCJXGVT":66},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":65},"01M6DXPQGNQAYSVQ5SBMCJXGVT","configure",null,"View, create, or edit Accelerator plugin configuration. Manage document templates.","atomicinnovation\u002Faccelerator","atomicinnovation","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F65866524?v=4","01M6DXP513JV585FN2QPNR6079","Atomic","01M6DXP55MPK99YVZ2HGMEN991",34,"MIT","https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Fconfig\u002Fconfigure\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"config","plugin","create","help","templates","Bash","read","write","edit","view","manage","document","configuration","true","2026-11-10 10:12:30",false,"---\nname: configure\ndescription: \"View, create, or edit Accelerator plugin configuration. Manage document templates.\"\nargument-hint: \"[view | create | help | templates ...]\"\ndisable-model-invocation: true\nallowed-tools:\n  - Bash(accelerator config *)\n  - Read\n  - Write\n  - Edit\n---\n\n# Configure Accelerator\n\nYou help users manage their Accelerator plugin configuration.\n\n## Configuration Files\n\nAccelerator reads configuration from two files in the project's `.claude\u002F`\ndirectory:\n\n| File                              | Scope       | Git        | Purpose                             |\n|-----------------------------------|-------------|------------|-------------------------------------|\n| `.accelerator\u002Fconfig.md`          | Team-shared | Committed  | Shared project context and settings |\n| `.accelerator\u002Fconfig.local.md`    | Personal    | Gitignored | Personal overrides and preferences  |\n\nBoth files use YAML frontmatter for structured settings and a markdown body for\nfree-form project context. Local settings override team settings for the same\nkey, except for the [consent keys](#consent-keys), which are never read from\nthe team file.\n\n## Consent Keys\n\nA consent key holds a value only you may supply, because the repository must\nnot choose what runs on your machine or where your credentials go. There are\nsix:\n\n| Key                    | Kind            | Environment override               |\n|------------------------|-----------------|------------------------------------|\n| `jira.allowed_sites`   | hostname list   | `ACCELERATOR_JIRA_ALLOWED_SITES`   |\n| `jira.token_cmd`       | command         | `ACCELERATOR_JIRA_TOKEN_CMD`       |\n| `linear.token_cmd`     | command         | `ACCELERATOR_LINEAR_TOKEN_CMD`     |\n| `openalex.api_key_cmd` | command         | `ACCELERATOR_OPENALEX_API_KEY_CMD` |\n| `github.token_cmd`     | command         | (none)                             |\n| `design.browser_path`  | executable path | `ACCELERATOR_DESIGN_BROWSER_PATH`  |\n\nEvery consent key follows one rule. The environment override is tried first,\nthen `config.local.md`, and the first source that passes every check wins. A\nvalue in the team-shared `config.md` is always refused, so for these keys, and\nonly these, a team value never stands in for a missing personal one. A\npersonal value is admitted only from a `config.local.md` that is readable and\nnot tracked by version control. Commands run through the\n[command runner](#command-runner), and an executable path must be absolute and\noutside the repository.\n\nEvery refusal met on the way is printed as a `warning:` when a usable value\nremains, whether a later source or the key's built-in fallback. With nothing\nusable, the refusal from the highest-precedence source tried is fatal and the\nrest are still printed as warnings. Taking a consent key from the environment\nprints a `notice:` naming the variable. The `SessionStart` hook reports\nteam-level and tracked-file refusals at the start of each session.\n\n| Code                                  | Meaning                                                                  | Remedy                                                                                     |\n|---------------------------------------|--------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|\n| `E_CONSENT_KEY_TEAM_LEVEL`            | A consent key in the team-shared `config.md`                             | Move it to `config.local.md`, or set its environment override                             |\n| `E_CONSENT_KEY_TRACKED`               | A consent key in a `config.local.md` tracked by version control          | Untrack the file (`git rm --cached`, or `jj file untrack`)                                 |\n| `E_CONSENT_KEY_TRACKING_UNKNOWN`      | A consent key in a `config.local.md` whose tracking status is unknown    | Use the key's environment override; the message names it                                   |\n| `E_TOKEN_FROM_TRACKED_FILE`           | A plaintext credential in a tracked or tracking-unknown `config.local.md` | Untrack the file, or use `ACCELERATOR_JIRA_TOKEN`, `ACCELERATOR_LINEAR_TOKEN`, `ACCELERATOR_OPENALEX_API_KEY` or `GH_TOKEN` |\n| `E_TOKEN_MALFORMED`                   | A credential carrying a control character, from any source               | Fix the helper or value so it prints the credential alone                                  |\n| `E_LOCAL_PERMS_INSECURE`              | A `config.local.md` looser than `0600`, or a symlink; none of it is read | `chmod 600` it and replace a symlink with the file itself                                  |\n| `E_TOKEN_CMD_FAILED`                  | A command that could not start or exited non-zero                        | Run the command yourself under the runner's environment and fix it                         |\n| `E_COMMAND_TIMED_OUT`                 | A command that outlasted its deadline                                    | Use a helper that answers without prompting, such as a password manager's agent            |\n| `E_COMMAND_OUTPUT_EXCEEDED`           | A command that printed more than 65,536 bytes across stdout and stderr   | Silence the helper's tracing, such as `set -x`                                             |\n| `E_EXECUTABLE_PATH_RELATIVE`          | A relative executable path                                               | Use an absolute path outside the repository                                                |\n| `E_EXECUTABLE_PATH_INSIDE_REPOSITORY` | An executable path inside, or not shown to be outside, the repository    | Use an absolute path outside the repository and its main checkout                          |\n\nA `config.local.md` looser than `0600`, or a symlink, is not read at all:\nits values are not used, team values and the `ACCELERATOR_*` overrides still\nresolve, and a command fails with `E_LOCAL_PERMS_INSECURE` only when nothing\nusable remains. Commands that write refuse outright. On a filesystem that\ncannot honour file modes, keep team values in `config.md` and personal values\nin the `ACCELERATOR_*` overrides, and move `config.local.md` aside to run a\ncommand that writes. No override unlocks an insecure file, so the old\ninsecure-local marker file does nothing and can be deleted.\n\n### Command Runner\n\nEvery command-valued key (`jira.token_cmd`, `linear.token_cmd`,\n`openalex.api_key_cmd`, `github.token_cmd`, and the `ACCELERATOR_*_CMD`\noverrides) runs through one runner:\n\n- **Working directory**: a fresh temporary directory outside the repository,\n  removed afterwards. A command never runs in the repository or in `$HOME`;\n  when no temporary directory lies outside the repository, it is refused with\n  `E_TOKEN_CMD_FAILED`.\n- **Environment**: only `PATH`, `HOME`, `TERM`, `XDG_CONFIG_HOME`,\n  `XDG_RUNTIME_DIR` and `DBUS_SESSION_BUS_ADDRESS`, plus what a key admits:\n  `github.token_cmd` admits `GH_HOST` and `GH_CONFIG_DIR`. Every other\n  variable, secrets included, is dropped.\n- **`PATH`**: an entry that is empty, relative, missing or inside the\n  repository is dropped, and so is an `XDG_CONFIG_HOME`, `XDG_RUNTIME_DIR` or\n  `GH_CONFIG_DIR` that points inside the repository. `bash` itself is found on\n  the filtered `PATH`, so call a helper by an absolute path outside the\n  repository.\n- **stdin** is empty.\n- **Timeout**: 30 s for Jira and Linear, and whatever remains of the 100 s\n  fetch deadline for OpenAlex. A command that outlasts it is refused with\n  `E_COMMAND_TIMED_OUT`.\n- **Output cap**: 65,536 bytes across stdout and stderr combined. More is\n  refused with `E_COMMAND_OUTPUT_EXCEEDED`, never truncated. stderr counts\n  towards the cap but is never shown.\n- **Result**: stdout, with surrounding whitespace trimmed. A command that\n  cannot start or exits non-zero is refused with `E_TOKEN_CMD_FAILED`.\n- **Interactive helpers** are unsupported. The command has no controlling\n  terminal in the foreground, so a helper that prompts on `\u002Fdev\u002Ftty` fails or\n  times out. Use a password manager's agent or desktop integration instead.\n- **Process group**: the command runs in its own process group. Once it exits,\n  anything it left in the group, such as a caching agent, receives `SIGTERM`,\n  then `SIGKILL` after a grace period of up to a second, so an agent can\n  finish its writes. A process that calls `setsid` leaves the group and is not\n  stopped.\n- **Interrupts**: Ctrl-C, `SIGTERM` or `SIGHUP` to the CLI during a run sends\n  the command's group `SIGTERM`, then `SIGKILL` after the grace period, and\n  the CLI then ends as the signal would have ended it. The group never\n  receives `SIGINT` itself, so a helper that cleans up in a trap should trap\n  `TERM`.\n\n`github.token_cmd` climbs the same chain as the tracker keys: `GH_TOKEN`,\nthen `GITHUB_TOKEN`, then the personal `github.token`, then the personal\n`github.token_cmd`, then the team `github.token` only when `config.local.md`\ndoes not exist. It is refused from the same sources and with the same codes,\nwith `GH_TOKEN` as the variable that still works.\n\n## Available Actions\n\nWhen invoked:\n\n1. **Check current configuration state**:\n  - Check if `.accelerator\u002Fconfig.md` exists\n  - Check if `.accelerator\u002Fconfig.local.md` exists\n  - If either exists, read and display current settings\n  - **If a config file already exists, always show its current contents and ask\n    the user to confirm before overwriting. Never silently replace an existing\n    config file.**\n\n2. **Based on the argument or user intent**:\n\n### `view` (or no argument with existing config)\n\nDisplay the current configuration:\n\n```\n## Current Accelerator Configuration\n\n### Team Config (.accelerator\u002Fconfig.md)\n[Display frontmatter settings as a formatted table]\n[Display markdown body if present]\n\n### Personal Config (.accelerator\u002Fconfig.local.md)\n[Display frontmatter settings as a formatted table]\n[Display markdown body if present]\n\n### Effective Settings\n[Show merged settings with source attribution]\n\n### Per-Skill Customisations\n[For each directory under .accelerator\u002Fskills\u002F that contains\nnon-empty context.md or instructions.md, list:]\n\n- `\u003Cskill-name>`:\n  - context.md: [present \u002F not found]\n  - instructions.md: [present \u002F not found]\n\n[If no per-skill customisation directories exist:]\n\nNo per-skill customisations found. See `\u002Faccelerator:configure help`\nfor details on per-skill context and instructions.\n```\n\n### `create` (or no argument with no existing config)\n\nHelp the user create a configuration file. Focus on gathering project context\nfor the markdown body — this is the highest-value feature.\n\n1. Ask whether they want to create a team config (shared) or personal config\n   (local), or both\n2. If creating a personal config, check whether `.accelerator\u002Fconfig.local.md`\n   is in `.gitignore` (or `.accelerator\u002F.gitignore`). If not, offer to add it\n   to the repo root `.gitignore`.\n3. Ask about their project context — frame questions around \"What should\n   Accelerator skills know about your project?\":\n  - What tech stack do they use? (languages, frameworks, build system)\n  - Any specific conventions or standards?\n  - Any domain-specific context that should inform skills?\n  - Build and test commands?\n4. Optionally ask about agent overrides: \"Would you also like to configure\n   custom agent overrides? (This is an advanced feature — most users can skip\n   this.)\" If yes, explain the available agents and their roles, then gather\n   override mappings.\n5. Mention that additional customisation is available: \"You can also\n   customise review behaviour (lens selection, verdict thresholds, inline\n   comment limits), output paths (where skills write documents), document\n   templates (plan, ADR, codebase-research, validation formats), and per-skill\n   context and instructions (`.accelerator\u002Fskills\u002F\u003Cskill-name>\u002F`).\n   Run `\u002Faccelerator:configure help` for the full key reference.\"\n6. Write the config file with a markdown body containing the gathered context\n   and YAML frontmatter containing any agent overrides (or empty frontmatter\n   if none).\n\n### `help`\n\nDisplay the configuration reference, then the [Consent Keys](#consent-keys)\nsection and its command runner:\n\n```\n## Accelerator Configuration Reference\n\n### File Format\n\nBoth config files use YAML frontmatter with a markdown body:\n\n\\```yaml\n---\nagents:\n  reviewer: my-custom-reviewer\n---\n\n# Free-form project context (markdown)\nAdditional context that skills will consider when making decisions.\n\\```\n\n### agents\n\nOverride which agents are used when skills spawn sub-agents. Config keys\nuse the same hyphenated names as the agents themselves:\n\nAvailable agents and their roles:\n\n| Config Key                | Default Role                                               |\n|---------------------------|------------------------------------------------------------|\n| `reviewer`                | Reviews plans, PRs, and work items using configured lenses |\n| `browser-analyser`        | Analyses screen state and behaviour in a running web app   |\n| `browser-locator`         | Finds routes, screens, and components in a running web app |\n| `codebase-locator`        | Finds relevant source files for a given task               |\n| `codebase-analyser`       | Analyses implementation details of components              |\n| `codebase-pattern-finder` | Finds similar implementations and usage examples           |\n| `documents-locator`       | Discovers relevant documents in meta\u002F directory            |\n| `documents-analyser`      | Deep-dives on research topics in documents                 |\n| `web-search-researcher`   | Researches topics via web search                           |\n| `researcher`              | Researches one `research-topic` focus area through a profile |\n| `composer`                | Composes a `research-topic` finding from its level notes   |\n\n\\```yaml\n---\nagents:\n  reviewer: my-custom-reviewer\n  codebase-locator: my-locator\n  codebase-analyser: my-analyser\n  codebase-pattern-finder: my-pattern-finder\n  documents-locator: my-doc-locator\n  documents-analyser: my-doc-analyser\n  web-search-researcher: my-web-researcher\n---\n\\```\n\nOnly list agents you want to override. Unlisted agents use their defaults.\nUnrecognised keys produce a warning to stderr and are ignored. Override\nvalues can be any agent name — the plugin does not validate values since\nthe override may reference a user-defined agent outside the plugin.\n\n**Warning — `researcher` and `composer` are confined.** A `PreToolUse` hook\nconfines every subagent of the configured `researcher` or `composer` type,\nwherever it is spawned. The researcher may only run `accelerator research\nfetch` and write finding and level-note files under the research topics\ndirectory; the composer may only write finding files there, and may run no\ncommand at all. Point each at a dedicated agent, never at one used for other\nwork, or that work will be blocked, and never at the same agent, which is\nthen confined as the researcher. The researcher needs `Bash` for the academic\nprofiles. An `agents.composer` override must grant only `Read` and `Write`:\nthe hook confines neither WebFetch nor WebSearch, so the composer's lack of\nnetwork access rests on its tool list alone. It must also read the injected\nfinding outputter and the citing-once rule, and cite every source once by\nthat rule.\n\n### review\n\nCustomise review behaviour for `\u002Faccelerator:review-pr`,\n`\u002Faccelerator:review-plan`, and `\u002Faccelerator:review-work-item`. Config keys use\nunderscores (e.g., `max_inline_comments`). Lens names within array values use\ntheir original hyphenated form (e.g., `code-quality`, `test-coverage`):\n\nShared settings (apply to `review-pr`, `review-plan`, and `review-work-item`):\n\n| Key               | Default                                                    | Description                   |\n|-------------------|------------------------------------------------------------|-------------------------------|\n| `min_lenses`      | `4` (3 for work item)                                      | Minimum lenses to run         |\n| `max_lenses`      | `8`                                                        | Maximum lenses to run         |\n| `core_lenses`     | `[architecture, code-quality, test-coverage, correctness]` | Lenses considered \"core four\" |\n| `disabled_lenses` | `[]`                                                       | Lenses to never use           |\n\nPR review only (`review-pr`):\n\n| Key                           | Default    | Description                                                       |\n|-------------------------------|------------|-------------------------------------------------------------------|\n| `max_inline_comments`         | `10`       | Max inline comments                                               |\n| `dedup_proximity`             | `3`        | Line proximity for merging findings                               |\n| `pr_request_changes_severity` | `critical` | Min severity for REQUEST_CHANGES (`critical`, `major`, or `none`) |\n\nPlan review only (`review-plan`):\n\n| Key                       | Default    | Description                                              |\n|---------------------------|------------|----------------------------------------------------------|\n| `plan_revise_severity`    | `critical` | Min severity for REVISE (`critical`, `major`, or `none`) |\n| `plan_revise_major_count` | `3`        | Major findings count to trigger REVISE                   |\n\nWork item review only (`review-work-item`):\n\n| Key                            | Default    | Description                                              |\n|--------------------------------|------------|----------------------------------------------------------|\n| `work_item_revise_severity`    | `critical` | Min severity for REVISE (`critical`, `major`, or `none`) |\n| `work_item_revise_major_count` | `2`        | Major findings count to trigger REVISE                   |\n\nWork items are smaller artifacts than plans, so `work_item_revise_major_count`\ndefaults to `2` (not `3`): a lower threshold produces equivalent signal density.\n\nExample configuration:\n\n\\```yaml\n---\nreview:\n  min_lenses: 3\n  max_lenses: 10\n  core_lenses: [architecture, security, test-coverage, correctness]\n  disabled_lenses: [portability, compatibility]\n  max_inline_comments: 15\n  dedup_proximity: 5\n  pr_request_changes_severity: major\n  plan_revise_severity: critical\n  plan_revise_major_count: 2\n  work_item_revise_severity: major\n  work_item_revise_major_count: 3\n---\n\\```\n\nNote: YAML comments (`#`) are not supported by the config parser. Do not\nadd inline comments to config values.\n\n#### Per-Review-Type Lenses\n\nBuilt-in lenses are partitioned by review type: the 13 code-review lenses\n(`architecture`, `code-quality`, etc.) are used by `review-pr` and\n`review-plan`; work-item-specific lenses (`completeness`, `testability`,\n`clarity`) are used by `review-work-item`. Each command sees only its own lenses\nin the Lens Catalogue.\n\n`core_lenses` and `disabled_lenses` entries are cross-mode: they are validated\nagainst the union of all built-in and custom lens names, so naming a PR lens in\n`core_lenses` does not produce a warning when running `review-work-item`. Entries\nnot applicable to the active mode are silently filtered out, with an\ninformational note in the `## Review Configuration` block so you have an audit\ntrail. Entries that are not valid in any mode still produce an \"unrecognised\nlens\" warning.\n\n#### Custom Lenses\n\nCreate custom review lenses in `.accelerator\u002Flenses\u002F`:\n\n\\```\n.accelerator\u002Flenses\u002F\n  compliance-lens\u002F\n    SKILL.md           # Follow the same structure as built-in lenses\n  accessibility-lens\u002F\n    SKILL.md\n\\```\n\nCustom lenses are auto-discovered and added to the available lens catalogue.\nThey must have YAML frontmatter with a `name` field and follow the same\nSKILL.md structure as built-in lenses. Custom lenses that provide an\n`auto_detect` field participate in auto-detect selection like built-in\nlenses. Those without `auto_detect` are always included. Minimal template:\n\n\\```markdown\n---\nname: compliance\ndescription: Evaluates regulatory and policy compliance\nauto_detect: Relevant when changes touch regulatory, compliance, or policy-related code\n---\n\n# Compliance Lens\n\n## Core Responsibilities\n- [What this lens evaluates]\n\n## Key Questions\n1. [Questions the reviewer should ask through this lens]\n\n## Boundary\n- [What is NOT in scope for this lens]\n\\```\n\nSee any lens in the plugin's `skills\u002Freview\u002Flenses\u002F` directory for full\nexamples of the expected structure.\n\n**Optional fields** — by default a custom lens appears in all review modes\n(`pr`, `plan`, and `work-item`). To restrict it to specific modes, add an\n`applies_to` field:\n\n\\```markdown\n---\nname: compliance\ndescription: Evaluates regulatory and policy compliance\nauto_detect: Relevant when changes touch regulatory, compliance, or policy-related code\n# no applies_to — applies to all modes: pr, plan, and work-item\n---\n\\```\n\n\\```markdown\n---\nname: work-item-style\ndescription: Evaluates work-item-specific style conventions\napplies_to: [work-item]   # work item reviews only\n---\n\\```\n\nAccepted values: `pr`, `plan`, `work-item`. The field accepts a YAML flow array\n(`[pr, plan]`) or a bare scalar (`pr`). Omitting it is equivalent to all modes.\nThe `applies_to` field is only for custom lenses — built-in lenses are\npartitioned via script arrays, not frontmatter.\n\n### research\n\nTune how wide and deep `\u002Faccelerator:research-topic` goes. Config keys live under\nthe `research.topic` namespace; all three are positive integers. (These behavioural knobs\nare distinct from the `paths.research_*` output-directory keys under `### paths`.)\n\n| Key           | Default | Description                             |\n|---------------|---------|-----------------------------------------|\n| `breadth`     | `8`     | Focus-area ceiling per `outline` round  |\n| `depth`       | `1`     | Recursion limit within a finding (1–10) |\n| `concurrency` | `20`    | Most agents `conduct` spawns at once    |\n\nResolution order for each knob is **flag > personal (`config.local.md`) > team\n(`config.md`) > built-in default**: an `outline SLUG --breadth N`, `conduct\nSLUG --depth N` or `conduct SLUG --concurrency N` flag on the invocation\noverrides config, which overrides the built-in default. A resolved value that is\nnot an integer of 1 or more is clamped to 1 with a warning naming the invalid\nvalue. An empty value is refused rather than clamped. Depth above 10 is clamped\nto 10 with a warning. Breadth has no upper bound — it is the per-round cost\nguard.\n\n**Concurrency and the subagent cap.** A `concurrency` above the subagent cap is\nclamped to the cap: the cap is `ACCELERATOR_SUBAGENT_CAP`, else\n`CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS`, each when set to a value Claude Code\nwould accept, otherwise 20, Claude Code's own limit. A flag or configured value\nabove the cap warns; the built-in default clamps silently.\n\n- Set either variable in the shell that launches Claude Code, or under `env`\n  in a Claude Code settings file. `conduct` reads it through Claude Code's\n  Bash tool, so it must reach that tool's environment.\n- Each variable accepts surrounding whitespace and a leading `+`, as Claude\n  Code does; `concurrency` accepts only plain digits.\n- Set `ACCELERATOR_SUBAGENT_CAP` to pin a cap no higher than Claude Code's;\n  above it, Claude Code refuses the extra spawns.\n- To spawn more than 20 at once, raise both\n  `CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS` and `concurrency`.\n- The clamp applies on every Claude Code version and mode, including those that\n  enforce no cap: Claude Code below v2.1.217, and ultracode sessions. There,\n  set `ACCELERATOR_SUBAGENT_CAP` to the concurrency you want.\n\n**Web searches and the search cap.** `conduct` gives each web researcher a\n`WebSearch` budget sized from the search cap, which is\n`CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION` when set to a value Claude Code\nwould accept, otherwise 200, Claude Code's session limit as of v2.1.301.\n\n- It keeps back a twentieth of the cap, rounded up, for the main\n  conversation, `outline` and searches made earlier in the session.\n- When even one search per node exceeds what is left, every budget is 1 and\n  `conduct` warns: expect a halt, then run `\u002Fclear`, then re-run `conduct`;\n  for later runs, raise `CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION` and restart\n  Claude Code, or lower the depth (`--depth` or `research.topic.depth`).\n- Set the variable where both Claude Code and its Bash tool see it. A value\n  Claude Code would not accept is ignored with a warning.\n\nAt `depth` 1, `conduct` spawns one researcher per (focus area, profile). At\n`depth` above 1, it researches each pair as a tree: every node writes a level\nnote recording up to 4 follow-up questions at level 1, then 2, then 1 per\nnode, and each follow-up becomes a node at the next level, down to `depth`.\nThe `composer` then writes the pair's one finding from the notes. Cost grows\nwith depth: up to 5×, 13× or 21× the researchers per pair at depths 2, 3 and\n4, plus one composer.\n\nExample configuration:\n\n\\```yaml\n---\nresearch:\n  topic:\n    breadth: 6\n    depth: 1\n    concurrency: 12\n---\n\\```\n\nNote: YAML comments (`#`) are not supported by the config parser. Do not\nadd inline comments to config values.\n\n### Per-Skill Customisation\n\nProvide context or additional instructions for specific skills by placing\nfiles in `.accelerator\u002Fskills\u002F\u003Cskill-name>\u002F`:\n\n\\```\n.accelerator\u002Fskills\u002F\n  create-plan\u002F\n    context.md          # Context specific to plan creation\n    instructions.md     # Additional instructions for plan creation\n  review-pr\u002F\n    context.md          # Context specific to PR review\n    instructions.md     # Additional instructions for PR review\n  review-work-item\u002F\n    context.md          # Context specific to work item review\n    instructions.md     # Additional instructions for work item review\n  commit\u002F\n    instructions.md     # Additional instructions for commits\n\\```\n\n**`context.md`** — Skill-specific context injected after global project\ncontext. Use this for information that is only relevant to a particular\nskill. For example, review-pr might need to know about specific review\ncriteria, while create-plan might need architecture context.\n\n**`instructions.md`** — Additional instructions appended to the skill's\nprompt. Use this to customise skill behaviour: add extra steps, enforce\nconventions, or modify output format.\n\nBoth files are optional. If neither exists for a skill, it behaves as\nbefore. Files are read at skill invocation time. Do not add YAML\nfrontmatter to these files — their entire content is injected as-is.\n\n**When to use which**: Use **global context** (`.accelerator\u002Fconfig.md`)\nfor information all skills should know. Use **skill context**\n(`context.md`) for information only one skill needs. Use **skill\ninstructions** (`instructions.md`) to change how a skill behaves — add\nsteps, enforce formats, or modify output. Per-skill context and\ninstructions supplement global context (both are visible to the skill);\nper-skill instructions appear at the end of the prompt and will typically\ntake precedence if they conflict with earlier instructions.\n\n**Shared vs personal**: Per-skill files are typically committed to the\nrepository as team-shared customisations. For personal per-skill\npreferences, add the relevant directories to `.gitignore`.\n\n**Troubleshooting**: Directory names must match a known skill name exactly.\nThe directory name matches the skill name after `\u002Faccelerator:` — for\nexample, `\u002Faccelerator:review-pr` uses `review-pr\u002F`,\n`\u002Faccelerator:create-plan` uses `create-plan\u002F`. Run\n`\u002Faccelerator:configure view` to see all available skill names and any\nactive per-skill customisations. The SessionStart hook output also lists\ndetected per-skill customisations and warns about unrecognised directory\nnames. To temporarily disable a customisation, rename the file (e.g.,\n`context.md.disabled`).\n\nNote: The `configure` skill is not customisable via this mechanism as it\nmanages configuration itself.\n\nExample `context.md` for review-pr:\n\n\\```markdown\n## Review Focus Areas\n\nOur team particularly cares about:\n- API backward compatibility (we have external consumers)\n- Database migration safety (zero-downtime deploys required)\n- Test coverage for error paths (we've had incidents from untested error handling)\n\\```\n\nExample `instructions.md` for create-plan:\n\n\\```markdown\n- Always include a \"Security Considerations\" section in plans\n- Reference our threat model at docs\u002Fsecurity\u002Fthreat-model.md\n- Plans touching the payments service require a rollback strategy\n\\```\n\n### paths\n\nOverride where skills write output documents. Paths are relative to the\nproject root (absolute paths are also supported). A `work` or `integrations`\npath outside the repository, absolute or `..`-relative, syncs only when set in\nan untracked `.accelerator\u002Fconfig.local.md`; set in the team config or a\ntracked personal file, `work sync` refuses with exit 74 until it moves there:\n\n| Key                           | Default                            | Description                                                                      |\n|-------------------------------|------------------------------------|----------------------------------------------------------------------------------|\n| `plans`                       | `meta\u002Fplans`                       | Implementation plans                                                             |\n| `research_codebase`           | `meta\u002Fresearch\u002Fcodebase`           | Codebase research documents                                                      |\n| `research_issues`             | `meta\u002Fresearch\u002Fissues`             | Issue \u002F RCA research documents                                                   |\n| `research_design_inventories` | `meta\u002Fresearch\u002Fdesign-inventories` | Design-inventory artifacts (one directory per snapshot, with screenshots\u002F)       |\n| `research_design_gaps`        | `meta\u002Fresearch\u002Fdesign-gaps`        | Design-gap analysis artifacts                                                    |\n| `decisions`                   | `meta\u002Fdecisions`                   | Architecture decision records                                                    |\n| `prs`                         | `meta\u002Fprs`                         | PR descriptions                                                                  |\n| `validations`                 | `meta\u002Fvalidations`                 | Plan validation reports                                                          |\n| `review_plans`                | `meta\u002Freviews\u002Fplans`               | Plan review artifacts                                                            |\n| `review_prs`                  | `meta\u002Freviews\u002Fprs`                 | PR review working directories                                                    |\n| `review_work`                 | `meta\u002Freviews\u002Fwork`                | Work item review artifacts                                                       |\n| `templates`                   | `.accelerator\u002Ftemplates`           | User-provided templates (e.g., PR description)                                   |\n| `work`                        | `meta\u002Fwork`                        | Work item files referenced by create-plan                                        |\n| `notes`                       | `meta\u002Fnotes`                       | Notes directory                                                                  |\n| `tmp`                         | `.accelerator\u002Ftmp`                 | Ephemeral working data (gitignored)                                              |\n| `integrations`                | `.accelerator\u002Fstate\u002Fintegrations`  | Per-integration cached state (Jira fields\u002Fprojects, future Linear\u002FTrello caches) |\n\nExample configuration:\n\n\\```yaml\n---\npaths:\n  plans: docs\u002Fplans\n  research_codebase: docs\u002Fresearch\u002Fcodebase\n  research_issues: docs\u002Fresearch\u002Fissues\n  research_design_inventories: docs\u002Fresearch\u002Fdesign-inventories\n  research_design_gaps: docs\u002Fresearch\u002Fdesign-gaps\n  decisions: docs\u002Fadrs\n  prs: docs\u002Fprs\n  validations: docs\u002Fvalidations\n  review_plans: docs\u002Freviews\u002Fplans\n  review_prs: docs\u002Freviews\u002Fprs\n  review_work: docs\u002Freviews\u002Fwork\n  templates: docs\u002Ftemplates\n  work: docs\u002Fwork\n  notes: docs\u002Fnotes\n  tmp: docs\u002Ftmp\n  integrations: docs\u002Fintegrations\n---\n\\```\n\nNote: YAML comments (`#`) are not supported by the config parser. Do not\nadd inline comments to config values.\n\n### work\n\nConfigure work-item identifiers and the active remote tracker. Four keys are recognised:\n\n| Key                          | Default          | Description                                |\n|------------------------------|------------------|--------------------------------------------|\n| `integration`                | (empty)          | Active remote tracker. Allowed values: `jira`, `linear`, `trello`, `github-issues`. When set, integration skills auto-scope to the tracker scope key (`jira.project_key` \u002F `linear.team_key`). Team→local override precedence applies; use `\u002Faccelerator:configure view` to confirm which source is active. |\n| `id_pattern`                 | `{number:04d}`   | DSL controlling work-item ID shape         |\n| `key`                        | (empty)          | Local ID prefix substituted into `{key}`. Required when `id_pattern` references `{key}`; unused under `{tracker}`. Work-owned and fully independent of the tracker scope key — it never derives from it. |\n| `default_project_code`       | (empty)          | **Deprecated** (removed in 1.25.0). A read-time alias resolving into `work.key` (tracker-less) or the tracker scope key (tracker-backed). Run `\u002Faccelerator:migrate` to materialise the replacement keys. |\n\nExample configuration for a project tracking issues with prefixed\nIDs (matching Jira\u002FLinear conventions):\n\n\\```yaml\n---\nwork:\n  integration: jira\n  id_pattern: \"{key}-{number:04d}\"\n  key: \"PROJ\"\njira:\n  project_key: \"PROJ\"\n---\n\\```\n\nThis produces work-item filenames such as `meta\u002Fwork\u002FPROJ-0042-add-foo.md`,\nH1 headings like `# PROJ-0042: add foo`, and an `id: \"PROJ-0042\"`\nfrontmatter field.\n\n`work.key` (the local ID prefix) and the tracker scope key\n(`jira.project_key` \u002F `linear.team_key`) are independent values with\nseparate owners. They may match — a deliberate choice to mirror the tracker\nprefix — or diverge:\n\n\\```yaml\n---\nwork:\n  integration: jira\n  id_pattern: \"{key}-{number:04d}\"\n  key: \"PP\"\njira:\n  project_key: \"PROJ\"\n---\n\\```\n\nHere local IDs carry the `PP-` prefix while creation and discovery scope to\nthe `PROJ` Jira project. A divergent `work.key` is a supported configuration,\nnot a smell — no warning is raised.\n\n#### Local-first storage\n\nWork items are always written to `meta\u002Fwork\u002F` as local files, regardless\nof whether `work.integration` is configured. The remote integration is an\nadditional layer on top of local storage, not a replacement. A skill that\npushes a work item to a remote tracker must still write the work item\nto `meta\u002Fwork\u002F` first.\n\nThis invariant applies to every skill under `skills\u002Fwork\u002F`\n(`create-work-item`, `update-work-item`, `list-work-items`,\n`extract-work-items`, `refine-work-item`, `review-work-item`,\n`stress-test-work-item`, `rekey-work-items`). Integration skills under `skills\u002Fintegrations\u002F`\nadd remote behaviour on top — they read from and write to the same\nlocal store. When `work.integration` is unset, every work-management\nskill operates purely against `meta\u002Fwork\u002F` with no external API calls.\n\n#### Pattern DSL Reference\n\nThe `id_pattern` value is a small DSL with two tokens:\n\n- `{number[:format]}` — required, exactly one occurrence. The `format`\n  is a printf width spec of the form `0Nd` (e.g. `04d`, `05d`). If\n  omitted, defaults to `04d`. The width is enforced when generating\n  new IDs; scanning is width-agnostic, so legacy 4-digit files remain\n  visible after a width change.\n- `{key}` — optional, at most one occurrence. The local ID prefix,\n  substituted at use time from `work.key` (or a `--project` flag). When a\n  pattern references `{key}`, `work.key` is required — it never silently falls\n  back to the tracker scope key.\n- `{project}` — **deprecated** synonym for `{key}`, removed in 1.25.0.\n  Existing `{project}` patterns keep working through the deprecation window and\n  are rewritten to `{key}` by `\u002Faccelerator:migrate`.\n- `{{` and `}}` — escaped literals for a literal `{` or `}`.\n\n`{tracker}` is a pattern on its own rather than a token beside others: the\ntracker owns every item's `id`. An item pushed at creation takes its Jira\nor Linear key as `id`; any other new item is a **draft** in\n`meta\u002Fwork\u002Fdrafts\u002F` under a provisional `draft-xxxxxx` ID until `work\nsync` or `work promote` promotes it onto its key, keeping the draft ID in\nits `aliases`. Two rules apply: `{tracker}` must be the only token in\n`work.id_pattern`, and `work.integration` must be `jira` or `linear`.\n`work.key` and `--project` are unused under it, and items created earlier\nkeep their IDs. It needs Accelerator 1.24.0 or later; upgrade every\nteammate before switching a shared config, since an older version cannot\nread the pattern.\n\n**Validation rules** for `{number}` patterns (enforced when the pattern is\nconsumed):\n\n1. Pattern must contain at least one `{number}` token.\n2. No filesystem-hostile chars (`\u002F`, `\\`, `:`, `*`, `?`, `\u003C`, `>`,\n   `|`, `\"`) outside token format specs.\n3. Adjacent dynamic tokens must have at least one literal char between\n   them (`{key}{number}` is rejected; `{key}-{number}` is accepted).\n4. The `{number}` format spec must be `0Nd`. Non-padded specs (`%d`)\n   are rejected so the overflow guard cap is well-defined.\n5. Key values must match `[A-Za-z][A-Za-z0-9]*`. This covers\n   Jira\u002FLinear-style alphanumeric keys (`PROJ`, `ENG`, `ENG2`).\n   Keys with internal hyphens or underscores (`PROJ-FE`,\n   `proj_alpha`) are rejected — this is a known limitation of the\n   initial scope.\n\n#### `id` and `external_id`: local own-identity vs remote identifier\n\nA work item carries two distinct identity fields:\n\n- **`id`** — the **local own-identity**, allocated locally by\n  `accelerator work create` (via `accelerator work next-number`) under\n  the configured `id_pattern`. It is **always a quoted YAML string**,\n  regardless of the pattern: new work items write `id: \"0001\"` under\n  the default pattern and `id: \"PROJ-0001\"` under\n  `{key}-{number:04d}`. Consumers must treat it as a string; do not\n  coerce to integer. (Legacy work items carry the same own-identity\n  value under `work_item_id:`; `accelerator work show` bridges the two\n  names transparently, so a consumer asking for `id` against a legacy file\n  still gets the value.)\n- **`external_id`** — the **remote tracker's identifier** (e.g. a Jira or\n  Linear key), written when the item is pushed to the configured\n  `work.integration`. It is the per-item local→remote mapping, so no\n  separate mapping store is needed. Its **presence is the synced signal**:\n  an item with a non-empty `external_id` is *synced* (exists remotely), an\n  item without one is *unsynced* (never pushed) — see `\u002Flist-work-items`.\n\n`id` and `external_id` **may coincide** when the local and remote ID schemes\nalign (Jira\u002FLinear, under `{key}-{number:04d}` with `work.key` mirroring the\nscope key) or be **independent** when they do not (Trello, whose card IDs are\nopaque). `external_id` is always\nwritten on a successful push, even when it equals `id`, because presence —\nnot value — is what marks an item synced.\n\n#### Choosing between default and project-coded patterns\n\nPick `{tracker}` when every new item should be named by its Jira or Linear\nkey. Pick the default `{number:04d}` if your project tracks work items\ninternally and does not link out to an external tracker. Pick\n`{key}-{number:04d}` (with an explicit `work.key`) when:\n\n- You mirror tickets from Jira, Linear, or another external tracker\n  and want filenames to align with the tracker's IDs.\n- Multiple projects share one repo and you want a clear visual\n  separation between project workstreams.\n\n#### Width changes vs structural changes\n\nChanging the width spec (`{number:04d}` → `{number:05d}`) is\n**absorbed transparently**: legacy files remain visible because the\nscan regex is width-agnostic. New files are generated at the new\nwidth.\n\nChanging the structural shape (default → `{project}-{number:04d}`,\nor vice versa) leaves legacy files coexisting with their original IDs.\nUse `\u002Faccelerator:migrate` to apply migration `0002-rename-work-items-with-project-prefix`,\nwhich renames legacy `NNNN-*.md` files to the configured pattern with\nyour `default_project_code`. The migration stays pending until both\nthe pattern includes `{project}` and `default_project_code` is set; if\nneither applies, you can opt out via `accelerator migrate --skip\n0002-rename-work-items-with-project-prefix`.\n\n#### Recognised keys\n\nOnly `work.integration`, `work.id_pattern`, `work.key`, and the deprecated\n`work.default_project_code` are recognised. Other `work.*` keys are not\nconsumed by any plugin script.\n\n### visualiser\n\nConfigure the visualiser plugin.\n\n| Key               | Default                                                         | Description                                                                  |\n|-------------------|-----------------------------------------------------------------|------------------------------------------------------------------------------|\n| `kanban_columns`  | `[draft, ready, in-progress, review, done, blocked, abandoned]` | Ordered list of kanban column keys                                           |\n| `idle_timeout`    | `8h`                                                            | Idle auto-shutdown window (humantime duration; `never`\u002F`0` to disable)       |\n| `editor`          | (empty)                                                         | Editor deep-link command; absent disables the \"open in editor\" button        |\n| `editor_project`  | (empty)                                                         | Companion project argument passed alongside `editor`                         |\n| `binary`          | (bundled)                                                       | Override visualiser binary path (absolute or project-relative; must be executable) |\n\nExample configuration for a project using a reduced column set:\n\n\\```yaml\n---\nvisualiser:\n  kanban_columns: [ready, in-progress, review, done]\n---\n\\```\n\nEach key becomes a kanban column; the display label is the key\ntitle-cased with hyphens replaced by spaces (`in-progress` → `In progress`).\n\n#### Boot-time validation\n\n| Condition                         | Behaviour                              |\n|-----------------------------------|----------------------------------------|\n| Key absent                        | Falls back to the seven defaults above |\n| Key present, non-empty list       | Accepted; each entry becomes a column  |\n| Key present, empty list (`[]`)    | Rejected at boot with a clear error    |\n| Malformed inline-array syntax     | Rejected at boot                       |\n\nThe column set is read once at boot. Changing `visualiser.kanban_columns`\nrequires a server restart; the browser will pick up the new columns on the\nnext page-load (TanStack Query re-fetches `\u002Fapi\u002Fkanban\u002Fconfig` each time).\n\n#### Idle auto-shutdown\n\nThe visualiser server auto-exits after a period with no incoming HTTP\nrequests. `visualiser.idle_timeout` sets that window as a humantime\nduration string (`\"8h\"`, `\"30m\"`, `\"1h30m\"`); it defaults to `8h` when\nabsent.\n\nSetting it to `never` (case-insensitive), `0`, or any zero-length\nduration (`0s`, `0ms`) **disables** idle auto-shutdown — the idle timer\nnever fires, which is **not** the same as \"shut down immediately\". The\nserver still terminates when the process that launched it exits and on\n`\u002Faccelerator:visualise stop`.\n\nAn unparseable value (e.g. `soon`) is rejected at launch with a clear\nerror naming the bad value, rather than silently defaulting.\n\nThe `ACCELERATOR_VISUALISER_IDLE_TIMEOUT` environment variable overrides\nthe config key for one-shot, shell-scoped use. Precedence is\n**env var > `visualiser.idle_timeout` > 8h default**.\n\nThe window is read once at boot and honoured to within one ~60s polling\ntick — shutdown lands on the next tick after the window elapses, so\nsub-minute values are effectively rounded up to the next tick. Changing it\nrequires a server restart.\n\n#### Kanban write-back contract\n\n`PATCH \u002Fapi\u002Fdocs\u002F{path}\u002Ffrontmatter` validates the incoming `status` value\nagainst the configured column keys. A value outside the configured set —\nincluding values currently in the \"Other\" swimlane — is rejected with\n`400 unknown_kanban_status`. Recovery from an accidental drag is a direct\nfile edit followed by VCS revert.\n\nSee ADR-0024 for full rationale.\n\n#### Editor deep-link and binary override\n\n`visualiser.editor` and `visualiser.editor_project` are free-form passthrough\nstrings that drive the doc \"open in editor\" deep-link; when both are absent the\nbutton is disabled. Precedence is **env var\n(`ACCELERATOR_VISUALISER_EDITOR` \u002F `_EDITOR_PROJECT`) > config key > omitted**;\na whitespace-only value collapses to absent. `visualiser.editor` is not a\n[consent key](#consent-keys), so a team value applies: the browser follows the\nlink it builds, and nothing in Accelerator spawns it.\n\n`visualiser.binary` points the launcher at an alternative server binary instead\nof the bundled\u002Fdownloaded one — useful for local development. The path may be\nabsolute or project-relative and **must be executable** (a non-executable path\nfails the launch loudly). Precedence is **`ACCELERATOR_VISUALISER_BIN` env var >\n`visualiser.binary` > bundled binary**.\n\n#### Recognised keys\n\nOnly `visualiser.kanban_columns`, `visualiser.idle_timeout`,\n`visualiser.editor`, `visualiser.editor_project`, and `visualiser.binary` are\nrecognised. Other `visualiser.*` keys are not consumed by any plugin script.\n\n### jira\n\nConfigure access to a Jira Cloud tenant. One key belongs in team-shared\n`config.md`:\n\n| Key              | Default | Description                                            |\n|------------------|---------|--------------------------------------------------------|\n| `site`           | (empty) | Cloud subdomain (e.g. `atomic-innovation`)             |\n\nExample shared configuration in `config.md`:\n\n\\```yaml\n---\njira:\n  site: atomic-innovation\n---\n\\```\n\n#### Personal settings (do not commit)\n\nFour keys are personal and **must live exclusively in\n`config.local.md`**, which is gitignored:\n\n| Key             | Default | Description                                            |\n|-----------------|---------|--------------------------------------------------------|\n| `email`         | (empty) | Your Atlassian account email                           |\n| `token`         | (empty) | Plaintext API token (discouraged — prefer `token_cmd`) |\n| `token_cmd`     | (empty) | Shell command whose stdout is the token                |\n| `allowed_sites` | (empty) | Extra exact hostnames the Rust client may send the token to, beyond `*.atlassian.net` |\n\n`token_cmd` is a **consent key**, like `allowed_sites`: a committed\n`token_cmd` is a supply-chain command-injection sink (a single PR could land\narbitrary shell that runs on every contributor's machine), so it follows the\n[consent-key rule](#consent-keys): a value in the team-shared `config.md` is\nrefused, as a `warning:` when another credential resolves and fatally only\nwhen none does.\n\n`allowed_sites` exists for self-hosted and non-`atlassian.net` tenants. The\nRust client refuses to send credentials to any host outside `*.atlassian.net`\nunless it is listed here as an exact hostname — no wildcard expansion, matched\nat a label boundary, so neither `atlassian.net.example.com` nor\n`evil-atlassian.net` is admitted. The repository may propose `jira.site`, but\nonly you may widen where the token is sent, so `allowed_sites` is a **consent\nkey**: it is read only from an untracked `config.local.md` or from the\n`ACCELERATOR_JIRA_ALLOWED_SITES` environment variable, whose entries are split\non commas and whitespace:\n\n\\```bash\nACCELERATOR_JIRA_ALLOWED_SITES=\"jira.example.com, jira.example.org\"\n\\```\n\nA value found anywhere else is refused with one of the\n[consent-key codes](#consent-keys).\n\nA refused allowlist only warns when the site is an `*.atlassian.net` host,\nwhich the default rule admits anyway; for any other site it is fatal (exit\n24). Taking the allowlist from the environment prints a `notice:` line naming\nthe variable and its value, so you can see which setting decided it.\n\nTrusting a repository's `mise.toml` or `.envrc` extends your consent to any\n`ACCELERATOR_JIRA_ALLOWED_SITES` it sets. mise trusts a file by its path unless\nparanoid mode is on, so later edits to a trusted file are not re-prompted.\n\n`token` plaintext is supported but discouraged — prefer `token_cmd` with a\npassword manager. A `config.local.md` that is a symlink or looser than `0600`\nis not read, as the [consent keys](#consent-keys) section describes.\n\nExample `config.local.md` (preferred form, using a password manager):\n\n\\```yaml\n---\njira:\n  email: toby@go-atomic.io\n  token_cmd: \"op read op:\u002F\u002FWork\u002FAtlassian\u002Fcredential\"\n---\n\\```\n\nAuthentication resolves through this chain. The first rung that yields a\nusable value wins; a failed command or refused value is reported as a\n`warning:` and the chain continues:\n\n1. `ACCELERATOR_JIRA_TOKEN` env var.\n2. `ACCELERATOR_JIRA_TOKEN_CMD` env var (run by the [command runner](#command-runner)).\n3. `config.local.md` `jira.token`.\n4. `config.local.md` `jira.token_cmd` (run by the [command runner](#command-runner)).\n5. `config.md` `jira.token` *(only when `config.local.md` does not\n   exist; emits a runtime warning)*.\n\n`jira.token_cmd` runs only from the environment or an untracked\n`config.local.md`, and a `jira.token` in a tracked `config.local.md` is\nrefused too. The [consent keys](#consent-keys) table lists every code. Each\nrefusal is a `warning:` when a later rung resolves, and fatal (exit 24) only\nwhen none does. A command that fails, times out or prints too much falls\nthrough in the same way. Rationale: a committed `token_cmd` is a supply-chain\ncommand-injection sink — a single PR could land\n`jira.token_cmd: \"\u003Carbitrary shell>\"` and that command would execute on every\ncontributor's machine the next time any Jira helper or `\u002Finit-jira` ran.\nRestricting the executable indirection to the user's own sources keeps the\nblast radius bounded to the user's own machine.\n\nTaking the command from `ACCELERATOR_JIRA_TOKEN_CMD` prints a `notice:` line\nnaming the variable. It never prints the command, which may carry a secret\ninline. When the tracking status cannot be determined, the refusal names the\nvariable that still works, such as `ACCELERATOR_JIRA_TOKEN`.\n\n`token_cmd` is the supported integration point for password managers and\nkeychains. 1Password CLI (`op read ...`) with its desktop-app integration,\n`pass`, macOS Keychain (`security find-generic-password ...`) and Freedesktop\nSecret Service (`secret-tool ...`) work as they are. A helper that needs a\nvariable the [command runner](#command-runner) does not pass on, such as\n`AWS_PROFILE` for AWS Secrets Manager, has three workarounds:\n\n- set a static value inline: `env AWS_PROFILE=work aws secretsmanager ...`;\n- wrap the helper in a script, at an absolute path outside the repository,\n  that sets what it needs;\n- for a value that exists only in your session (`SSH_AUTH_SOCK`,\n  `OP_SESSION_*`, `OP_SERVICE_ACCOUNT_TOKEN`, temporary STS credentials),\n  resolve the credential yourself and export it as `ACCELERATOR_JIRA_TOKEN`,\n  `ACCELERATOR_LINEAR_TOKEN`, `ACCELERATOR_OPENALEX_API_KEY` or `GH_TOKEN`.\n\nThe Jira scope key is **`jira.project_key`** — the integration-owned project\nkey that resolves the creation-home project and discovery scope. It is\nindependent of `work.key` (the local ID prefix) and needs no `work.*` present.\nThe deprecated `work.default_project_code` still resolves into it through the\n1.25.0 removal window when `work.integration: jira`.\n\n#### Skill registration order\n\nThe `skills` array in `.claude-plugin\u002Fplugin.json` is **workflow-ordered**, not\nalphabetical. Its sequence groups categories by lifecycle:\n\n```\nvcs → external trackers (github, integrations\u002Fjira) → planning → execution (work) → review → meta (config)\n```\n\nFuture integrations (Linear, Trello) land in the `integrations\u002F` group,\nimmediately after `.\u002Fskills\u002Fintegrations\u002Fjira\u002F`. Do not sort the array\nalphabetically.\n\n#### Recognised keys\n\nOnly `jira.site`, `jira.allowed_sites`, `jira.email`, `jira.token`,\n`jira.token_cmd`, and `jira.project_key` are recognised. Other `jira.*` keys\nare not consumed by any plugin script. `jira.allowed_sites` has no bash\nconsumer — it is read by the Rust client only.\n\n### linear\n\nConfigure access to Linear. Linear is single-tenant SaaS, so there is no\nsite\u002Fsubdomain key — authentication is a personal API token only.\n\nTwo keys belong in team-shared `config.md`:\n\n| Key        | Default | Description                                              |\n|------------|---------|----------------------------------------------------------|\n| `team_id`  | (empty) | The Linear team UUID the client creates and searches issues in |\n| `team_key` | (empty) | The Linear scope key (the `ENG` in `ENG-42`) that resolves the creation-home team and discovery scope, independent of `work.key`. |\n\n`team_id` has no bash consumer: the shell path reads `.team.id` from the\n`catalogue.json` that `\u002Finit-linear` writes, and the Rust client falls back to\nthat same file when the key is unset, so an already-onboarded repository needs\nno new configuration.\n\n`team_key` resolves in the order `linear.team_key` → the deprecated\n`work.default_project_code` (gated on `work.integration: linear`, through the\n1.25.0 removal window) → the catalogue `\u002Fteam\u002Fkey`, so an already-onboarded\nrepository resolves its scope from the catalogue with no configuration.\n\n#### Pull filters\n\n`linear.pull.filters` narrows discovery by `state`, `label`, `assignee` and\n`project`, each a list of values (values OR'd, keys AND'd). `project` is\nLinear-only: a Jira `pull` block accepts `state`, `label` and `assignee`, and\nrefuses `project` at validation. Every value resolves to a Linear id through\n`catalogue.json` before anything is paged:\n\n- **Per team in scope.** A `state` or team `label` matches in each team the\n  pull covers and contributes that team's id; a workspace label matches\n  whichever teams are in scope. Within a team, an active record wins over\n  archived ones of the same name, and two active ones refuse as ambiguous.\n- **Assignees are members.** An `assignee` must be a member of a team in\n  scope, matched on their email, then their full name, then their display\n  name; the first tier with a match decides. A former member, or someone who\n  assigns work without being a member, refuses — use a current member, or\n  widen the scope.\n- **Projects are the scoped teams' projects.** A `project` matches by name\n  among the projects linked to a team in scope. An active project wins over\n  archived ones of the same name; two active projects of one name refuse as\n  ambiguous, listing the candidates — rename one in Linear.\n- **Refusals are loud.** A value no team in scope carries refuses the sync\n  with exit 74, under `pull filters could not be resolved:`, even when its\n  key's other values resolve. It is never silently dropped from the filter.\n\nThe catalogue holds complete entries only for **synced teams** — the base\nteam and each team that owns a tracked work item. A team in scope whose entry\nlacks what the filters need is fetched from Linear on each pull, for those\nsections only. An apply-mode sync then records complete entries for the\nsynced teams it fetched, so commit `catalogue.json` with the pulled items;\nteams that are in scope but not synced are never written, and are fetched\nagain on every filtered pull. A filtered pull that fetches every section live\ncosts about 26,000 complexity points at 50 teams and 49,000 at 200 — under 7%\nof Linear's hourly allowance at one pull every 15 minutes.\n\nA complete entry is not refreshed by sync. States, labels, members or\nprojects added in Linear to a synced team reach the catalogue only through a\nrefresh: run `\u002Faccelerator:init-linear` (it refreshes every synced team) and\ncommit the result.\n\n#### Personal settings (do not commit)\n\nBoth token keys are personal and **must live exclusively in\n`config.local.md`**, which is gitignored:\n\n| Key         | Default | Description                                            |\n|-------------|---------|--------------------------------------------------------|\n| `token`     | (empty) | Plaintext API token (discouraged — prefer `token_cmd`) |\n| `token_cmd` | (empty) | Shell command whose stdout is the token                |\n\nAuthentication resolves through this chain. The first rung that yields a\nusable value wins; a failed command or refused value is reported as a\n`warning:` and the chain continues:\n\n1. `ACCELERATOR_LINEAR_TOKEN` env var.\n2. `ACCELERATOR_LINEAR_TOKEN_CMD` env var (run by the [command runner](#command-runner)).\n3. `config.local.md` `linear.token`.\n4. `config.local.md` `linear.token_cmd` (run by the [command runner](#command-runner)).\n5. `config.md` `linear.token` *(only when `config.local.md` does not exist)*.\n\n`linear.token_cmd` is a [consent key](#consent-keys), refused from the same\nsources as `jira.token_cmd`: a committed `token_cmd` is a supply-chain\ncommand-injection sink. With nothing usable left, the exit code names the fatal\nrefusal: 24 for a provenance refusal, 25 for a command that failed, timed\nout or printed too much, 27 for a malformed token, and 29 for an insecure\n`config.local.md`.\n\nExample `config.local.md` (preferred form, using a password manager):\n\n\\```yaml\n---\nlinear:\n  token_cmd: \"op read op:\u002F\u002FWork\u002FLinear\u002Ftoken\"\n---\n\\```\n\n`token_cmd` is the supported integration point for password managers and\nkeychains (1Password CLI, `pass`, macOS Keychain, Secret Service), exactly as\nfor Jira.\n\n#### Recognised keys\n\nOnly `linear.team_id`, `linear.team_key`, `linear.token` and\n`linear.token_cmd` are recognised.\nOther `linear.*` keys are not consumed by any plugin script.\n\n### openalex\n\nConfigure access to OpenAlex, the scholarly source behind\n`\u002Faccelerator:research-topic`'s `openalex` profile. A key is optional: without\none, `accelerator research fetch openalex` runs on OpenAlex's keyless daily\nallowance, which a research round can spend quickly, and `conduct` reports the\nspent pairs with a configure-a-key next step. There are no team-shared keys.\n\n#### Personal settings (do not commit)\n\nBoth key settings are personal and **must live exclusively in\n`config.local.md`**, which is gitignored:\n\n| Key           | Default | Description                                               |\n|---------------|---------|-----------------------------------------------------------|\n| `api_key`     | (empty) | Plaintext API key (discouraged — prefer `api_key_cmd`)    |\n| `api_key_cmd` | (empty) | Shell command whose stdout is the key                     |\n\nThe key resolves through this chain. The first rung that yields a usable\nvalue wins; a failed command or refused value is reported as a `warning:` and\nthe chain continues:\n\n1. `ACCELERATOR_OPENALEX_API_KEY` env var.\n2. `ACCELERATOR_OPENALEX_API_KEY_CMD` env var (run by the [command runner](#command-runner)).\n3. `config.local.md` `openalex.api_key`.\n4. `config.local.md` `openalex.api_key_cmd` (run by the [command runner](#command-runner)).\n5. `config.md` `openalex.api_key` *(only when `config.local.md` does not\n   exist)*.\n\n`openalex.api_key_cmd` is a [consent key](#consent-keys), like\n`jira.token_cmd`: a committed command is a supply-chain command-injection\nsink, so a value in the team-shared `config.md` is refused. The refusal is a\n`warning:` when another rung supplies a key. When none does, the fetch fails\nrather than going keyless, even beside a `config.local.md` that sets no key.\nA tracked `config.local.md` is refused when it supplies either setting, and\none supplying neither leaves the fetch keyless.\n\nThe key command runs under whatever remains of the fetch's 100 s deadline. The key is sent as an\n`Authorization: Bearer` header, never in a URL, and `accelerator config dump`\nhides both settings.\n\nExample `config.local.md` (preferred form, using a password manager):\n\n\\```yaml\n---\nopenalex:\n  api_key_cmd: \"op read op:\u002F\u002FWork\u002FOpenAlex\u002Fapi-key\"\n---\n\\```\n\n#### Recognised keys\n\nOnly `openalex.api_key` and `openalex.api_key_cmd` are recognised. Other\n`openalex.*` keys are not consumed by any plugin script.\n\n### templates\n\nOverride document templates by placing custom template files in the\ntemplates directory (`paths.templates`, defaults to `.accelerator\u002Ftemplates\u002F`):\n\n\\```\n.accelerator\u002Ftemplates\u002F\n  plan.md                # Custom plan template\n  codebase-research.md   # Custom codebase-research template\n  adr.md                 # Custom ADR template\n  validation.md          # Custom validation template\n  pr-description.md      # PR description template (used by describe-pr)\n  work-item.md           # Custom work-item template\n\\```\n\nAll templates — both skill structure templates (plan, ADR, codebase-research,\nvalidation) and user content templates (PR description) — live in the same\ndirectory. Override `paths.templates` to move them all:\n\n\\```yaml\n---\npaths:\n  templates: docs\u002Ftemplates\n---\n\\```\n\nFor advanced use cases, you can also point individual templates to specific\nfile paths using the `templates` config section:\n\n\\```yaml\n---\ntemplates:\n  plan: docs\u002Ftemplates\u002Four-plan-format.md\n  adr: docs\u002Ftemplates\u002Four-adr-format.md\n  pr-description: docs\u002Ftemplates\u002Four-pr-template.md\n---\n\\```\n\nResolution order: `templates.\u003Cname>` config path (if set) → templates\ndirectory (`paths.templates`) → plugin default. `research-topic`'s level notes\nhave no `templates.*` key, but a `topic-research-level-note.md` in the\ntemplates directory overrides them like any other template. Use the plugin's\n`templates\u002F` directory as a starting point for customisation.\n\n**Note on cross-references**: Default templates contain hardcoded references\nto other skills' output paths (e.g., the plan template references\n`meta\u002Fresearch\u002Fcodebase\u002F` in its References section). If you override output paths\n(e.g., `paths.research_codebase: docs\u002Fresearch\u002Fcodebase`), you should also provide custom\ntemplates with updated cross-references.\n\n#### Template Management Commands\n\nUse `\u002Faccelerator:configure templates \u003Caction>` to manage templates:\n\n| Command                 | Description |\n|-------------------------|--------------------------------------------------------|\n| `templates list`        | List all templates with resolution source and path     |\n| `templates show \u003Ckey>`  | Display the effective template content                 |\n| `templates eject \u003Ckey>` | Copy plugin default to your templates directory        |\n| `templates eject --all` | Eject all templates at once                            |\n| `templates diff \u003Ckey>`  | Show differences between your template and the default |\n| `templates reset \u003Ckey>` | Remove your customisation, revert to plugin default    |\n\nAvailable template keys: `plan`, `codebase-research`, `adr`, `validation`, `pr-description`, `work-item`.\n\n### Project Context\n\nThe markdown body is injected into skills as project-specific guidance:\n\n\\```markdown\n---\nagents:\n  reviewer: my-custom-reviewer\n---\n\n# Project Context\n\n## Tech Stack\n- Language: TypeScript with strict mode\n- Framework: Next.js 14 with App Router\n- Database: PostgreSQL via Prisma ORM\n- Testing: Vitest for unit tests, Playwright for E2E\n\n## Conventions\n- All API routes use GraphQL (no REST endpoints)\n- Database migrations must be backward-compatible\n- Feature flags managed via LaunchDarkly\n\n## Build & Test\n- Build: `npm run build`\n- Test: `npm run test`\n- Lint: `npm run lint`\n- Full check: `npm run check`\n\\```\n\nUse the project context for:\n- Tech stack description\n- Coding conventions\n- Domain-specific terminology\n- Build and test commands\n- Architecture notes\n\n### Parser Constraints\n\nThe configuration parser supports simple scalar YAML values. The following\nare not currently supported in frontmatter values:\n- Multi-line YAML values (block scalars `|` \u002F `>`)\n- YAML comments (the `#` character in values is included as-is)\n- Nesting deeper than 2 levels\n```\n\n### `templates`\n\nWhen the user's argument starts with `templates`, dispatch based on the\naction that follows. The `CLAUDE_PLUGIN_ROOT` environment variable points\nto the plugin installation directory where scripts are located.\n\n#### `templates list`\n\nRun the list script and display its output. Run the bare path **directly** as an\nexecutable; never prefix it with `bash`\u002F`sh`\u002F`env` (a wrapper prefix escapes the\nskill's `allowed-tools` permission and forces an unnecessary prompt):\n\n```bash\naccelerator config templates list\n```\n\nPresent the table output to the user.\n\n#### `templates show \u003Ckey>`\n\nRun the show script with the template key. Run the bare path **directly** as an\nexecutable; never prefix it with `bash`\u002F`sh`\u002F`env` (a wrapper prefix escapes the\nskill's `allowed-tools` permission and forces an unnecessary prompt):\n\n```bash\naccelerator config templates show \u003Ckey>\n```\n\nPresent the source metadata and template content to the user. If the user\ndoesn't specify a key, ask which template they'd like to see, or suggest\nrunning `templates list` first.\n\n#### `templates eject \u003Ckey>` or `templates eject --all`\n\n**Before ejecting**, run with `--dry-run` to preview what will happen. Run the bare\npath **directly** as an executable; never prefix it with `bash`\u002F`sh`\u002F`env` (a wrapper\nprefix escapes the skill's `allowed-tools` permission and forces an unnecessary\nprompt) — this applies to every `config-eject-template.sh` invocation in this\nsubsection:\n\n```bash\naccelerator config templates eject --dry-run \u003Ckey|--all>\n```\n\nPresent the dry-run output to the user. If any templates already exist\n(exit code 2), ask whether they want to overwrite. If the user confirms\noverwriting, run a second dry-run with `--force` to show the full preview\n(including which files will be overwritten):\n\n```bash\naccelerator config templates eject --dry-run --force \u003Ckey|--all>\n```\n\nPresent this preview, then run the actual eject with `--force`:\n\n```bash\naccelerator config templates eject --force \u003Ckey|--all>\n```\n\nIf no templates already exist (exit code 0 from the initial dry-run),\nproceed directly with the eject (no `--force` needed):\n\n```bash\naccelerator config templates eject \u003Ckey|--all>\n```\n\nIf the user says `eject --all` or `eject all`, pass `--all` to the script.\n\nAfter successful ejection, inform the user:\n- Which file(s) were created and where\n- That they can now edit the template(s) at the ejected path\n- That the customised template will be used by the relevant skill on next\n  invocation\n\n#### `templates diff \u003Ckey>`\n\nRun the diff script. Run the bare path **directly** as an executable;\nnever prefix it with `bash`\u002F`sh`\u002F`env` (a wrapper prefix escapes the skill's\n`allowed-tools` permission and forces an unnecessary prompt):\n\n```bash\naccelerator config templates diff \u003Ckey>\n```\n\nPresent the diff output to the user. If exit code is 2, no customisation\nexists — relay the \"using plugin default\" message.\n\n#### `templates reset \u003Ckey>`\n\nThis action removes a user's customised template to revert to the plugin\ndefault. Reset operates on a **single template at a time** — if the user\nrequests resetting all templates, process them one-by-one with individual\nconfirmations. Run the bare path **directly** as an executable;\nnever prefix it with `bash`\u002F`sh`\u002F`env` (a wrapper prefix escapes the skill's\n`allowed-tools` permission and forces an unnecessary prompt) — this applies to\nboth `config-reset-template.sh` invocations below.\n\n1. Determine the template key. If not provided, ask the user.\n2. Run the reset script without `--confirm` to check for an override:\n   ```bash\n   accelerator config templates reset \u003Ckey>\n   ```\n3. If exit code 2: tell the user \"No customised template found for '\u003Ckey>'\n   — already using plugin default.\"\n4. If exit code 0: present the override information to the user and ask for\n   confirmation. Show the file path and note about config entry if present.\n   If the output includes \"Warning: This file is outside the project\n   directory\", explicitly highlight this to the user and ask them to\n   confirm they want to delete a file outside the project root.\n5. On confirmation, run with `--confirm`:\n   ```bash\n   accelerator config templates reset --confirm \u003Ckey>\n   ```\n6. Inform the user that the template was reset. If the script output\n   includes a note about removing a config entry (i.e., the override was\n   a config path \u002F Tier 1), also remove the `templates.\u003Ckey>` entry from\n   the config using the Edit tool. Check both `.accelerator\u002Fconfig.md`\n   (team) and `.accelerator\u002Fconfig.local.md` (local) for the entry:\n   - If the entry exists in **local only**: remove it from local.\n   - If the entry exists in **team only**: remove it from team.\n   - If the entry exists in **both with the same value**: remove from both.\n   - If the entry exists in **both with different values**: remove from\n     local only (team config may affect other team members). Inform the\n     user that the team config still has a `templates.\u003Ckey>` entry and\n     they should coordinate with their team if it should also be removed.\n\n## Important Notes\n\n- Config changes take effect on the next skill invocation (no restart needed\n  for skills using the `!` preprocessor)\n- The SessionStart hook summary requires a session restart to update\n- `.local.md` files should be gitignored — the `create` action will help\n  with this\n- Team config should contain only project-relevant context, not personal\n  preferences\n\n## Related Skills\n\n- `\u002Faccelerator:init` — bootstrap a fresh repository with all directories\n- `\u002Faccelerator:migrate` — apply pending schema migrations after a plugin upgrade\n  (renames `meta\u002F` directories and config keys to match the latest conventions)\n","# Configure Accelerator\n\nYou help users manage their Accelerator plugin configuration.\n\n## Configuration Files\n\nAccelerator reads configuration from two files in the project's `.claude\u002F`\ndirectory:\n\n| File                              | Scope       | Git        | Purpose                             |\n|-----------------------------------|-------------|------------|-------------------------------------|\n| `.accelerator\u002Fconfig.md`          | Team-shared | Committed  | Shared project context and settings |\n| `.accelerator\u002Fconfig.local.md`    | Personal    | Gitignored | Personal overrides and preferences  |\n\nBoth files use YAML frontmatter for structured settings and a markdown body for\nfree-form project context. Local settings override team settings for the same\nkey, except for the [consent keys](#consent-keys), which are never read from\nthe team file.\n\n## Consent Keys\n\nA consent key holds a value only you may supply, because the repository must\nnot choose what runs on your machine or where your credentials go. There are\nsix:\n\n| Key                    | Kind            | Environment override               |\n|------------------------|-----------------|------------------------------------|\n| `jira.allowed_sites`   | hostname list   | `ACCELERATOR_JIRA_ALLOWED_SITES`   |\n| `jira.token_cmd`       | command         | `ACCELERATOR_JIRA_TOKEN_CMD`       |\n| `linear.token_cmd`     | command         | `ACCELERATOR_LINEAR_TOKEN_CMD`     |\n| `openalex.api_key_cmd` | command         | `ACCELERATOR_OPENALEX_API_KEY_CMD` |\n| `github.token_cmd`     | command         | (none)                             |\n| `design.browser_path`  | executable path | `ACCELERATOR_DESIGN_BROWSER_PATH`  |\n\nEvery consent key follows one rule. The environment override is tried first,\nthen `config.local.md`, and the first source that passes every check wins. A\nvalue in the team-shared `config.md` is always refused, so for these keys, and\nonly these, a team value never stands in for a missing personal one. A\npersonal value is admitted only from a `config.local.md` that is readable and\nnot tracked by version control. Commands run through the\n[command runner](#command-runner), and an executable path must be absolute and\noutside the repository.\n\nEvery refusal met on the way is printed as a `warning:` when a usable value\nremains, whether a later source or the key's built-in fallback. With nothing\nusable, the refusal from the highest-precedence source tried is fatal and the\nrest are still printed as warnings. Taking a consent key from the environment\nprints a `notice:` naming the variable. The `SessionStart` hook reports\nteam-level and tracked-file refusals at the start of each session.\n\n| Code                                  | Meaning                                                                  | Remedy                                                                                     |\n|---------------------------------------|--------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|\n| `E_CONSENT_KEY_TEAM_LEVEL`            | A consent key in the team-shared `config.md`                             | Move it to `config.local.md`, or set its environment override                             |\n| `E_CONSENT_KEY_TRACKED`               | A consent key in a `config.local.md` tracked by version control          | Untrack the file (`git rm --cached`, or `jj file untrack`)                                 |\n| `E_CONSENT_KEY_TRACKING_UNKNOWN`      | A consent key in a `config.local.md` whose tracking status is unknown    | Use the key's environment override; the message names it                                   |\n| `E_TOKEN_FROM_TRACKED_FILE`           | A plaintext credential in a tracked or tracking-unknown `config.local.md` | Untrack the file, or use `ACCELERATOR_JIRA_TOKEN`, `ACCELERATOR_LINEAR_TOKEN`, `ACCELERATOR_OPENALEX_API_KEY` or `GH_TOKEN` |\n| `E_TOKEN_MALFORMED`                   | A credential carrying a control character, from any source               | Fix the helper or value so it prints the credential alone                                  |\n| `E_LOCAL_PERMS_INSECURE`              | A `config.local.md` looser than `0600`, or a symlink; none of it is read | `chmod 600` it and replace a symlink with the file itself                                  |\n| `E_TOKEN_CMD_FAILED`                  | A command that could not start or exited non-zero                        | Run the command yourself under the runner's environment and fix it                         |\n| `E_COMMAND_TIMED_OUT`                 | A command that outlasted its deadline                                    | Use a helper that answers without prompting, such as a password manager's agent            |\n| `E_COMMAND_OUTPUT_EXCEEDED`           | A command that printed more than 65,536 bytes across stdout and stderr   | Silence the helper's tracing, such as `set -x`                                             |\n| `E_EXECUTABLE_PATH_RELATIVE`          | A relative executable path                                               | Use an absolute path outside the repository                                                |\n| `E_EXECUTABLE_PATH_INSIDE_REPOSITORY` | An executable path inside, or not shown to be outside, the repository    | Use an absolute path outside the repository and its main checkout                          |\n\nA `config.local.md` looser than `0600`, or a symlink, is not read at all:\nits values are not used, team values and the `ACCELERATOR_*` overrides still\nresolve, and a command fails with `E_LOCAL_PERMS_INSECURE` only when nothing\nusable remains. Commands that write refuse outright. On a filesystem that\ncannot honour file modes, keep team values in `config.md` and personal values\nin the `ACCELERATOR_*` overrides, and move `config.local.md` aside to run a\ncommand that writes. No override unlocks an insecure file, so the old\ninsecure-local marker file does nothing and can be deleted.\n\n### Command Runner\n\nEvery command-valued key (`jira.token_cmd`, `linear.token_cmd`,\n`openalex.api_key_cmd`, `github.token_cmd`, and the `ACCELERATOR_*_CMD`\noverrides) runs through one runner:\n\n- **Working directory**: a fresh temporary directory outside the repository,\n  removed afterwards. A command never runs in the repository or in `$HOME`;\n  when no temporary directory lies outside the repository, it is refused with\n  `E_TOKEN_CMD_FAILED`.\n- **Environment**: only `PATH`, `HOME`, `TERM`, `XDG_CONFIG_HOME`,\n  `XDG_RUNTIME_DIR` and `DBUS_SESSION_BUS_ADDRESS`, plus what a key admits:\n  `github.token_cmd` admits `GH_HOST` and `GH_CONFIG_DIR`. Every other\n  variable, secrets included, is dropped.\n- **`PATH`**: an entry that is empty, relative, missing or inside the\n  repository is dropped, and so is an `XDG_CONFIG_HOME`, `XDG_RUNTIME_DIR` or\n  `GH_CONFIG_DIR` that points inside the repository. `bash` itself is found on\n  the filtered `PATH`, so call a helper by an absolute path outside the\n  repository.\n- **stdin** is empty.\n- **Timeout**: 30 s for Jira and Linear, and whatever remains of the 100 s\n  fetch deadline for OpenAlex. A command that outlasts it is refused with\n  `E_COMMAND_TIMED_OUT`.\n- **Output cap**: 65,536 bytes across stdout and stderr combined. More is\n  refused with `E_COMMAND_OUTPUT_EXCEEDED`, never truncated. stderr counts\n  towards the cap but is never shown.\n- **Result**: stdout, with surrounding whitespace trimmed. A command that\n  cannot start or exits non-zero is refused with `E_TOKEN_CMD_FAILED`.\n- **Interactive helpers** are unsupported. The command has no controlling\n  terminal in the foreground, so a helper that prompts on `\u002Fdev\u002Ftty` fails or\n  times out. Use a password manager's agent or desktop integration instead.\n- **Process group**: the command runs in its own process group. Once it exits,\n  anything it left in the group, such as a caching agent, receives `SIGTERM`,\n  then `SIGKILL` after a grace period of up to a second, so an agent can\n  finish its writes. A process that calls `setsid` leaves the group and is not\n  stopped.\n- **Interrupts**: Ctrl-C, `SIGTERM` or `SIGHUP` to the CLI during a run sends\n  the command's group `SIGTERM`, then `SIGKILL` after the grace period, and\n  the CLI then ends as the signal would have ended it. The group never\n  receives `SIGINT` itself, so a helper that cleans up in a trap should trap\n  `TERM`.\n\n`github.token_cmd` climbs the same chain as the tracker keys: `GH_TOKEN`,\nthen `GITHUB_TOKEN`, then the personal `github.token`, then the personal\n`github.token_cmd`, then the team `github.token` only when `config.local.md`\ndoes not exist. It is refused from the same sources and with the same codes,\nwith `GH_TOKEN` as the variable that still works.\n\n## Available Actions\n\nWhen invoked:\n\n1. **Check current configuration state**:\n  - Check if `.accelerator\u002Fconfig.md` exists\n  - Check if `.accelerator\u002Fconfig.local.md` exists\n  - If either exists, read and display current settings\n  - **If a config file already exists, always show its current contents and ask\n    the user to confirm before overwriting. Never silently replace an existing\n    config file.**\n\n2. **Based on the argument or user intent**:\n\n### `view` (or no argument with existing config)\n\nDisplay the current configuration:\n\n```\n## Current Accelerator Configuration\n\n### Team Config (.accelerator\u002Fconfig.md)\n[Display frontmatter settings as a formatted table]\n[Display markdown body if present]\n\n### Personal Config (.accelerator\u002Fconfig.local.md)\n[Display frontmatter settings as a formatted table]\n[Display markdown body if present]\n\n### Effective Settings\n[Show merged settings with source attribution]\n\n### Per-Skill Customisations\n[For each directory under .accelerator\u002Fskills\u002F that contains\nnon-empty context.md or instructions.md, list:]\n\n- `\u003Cskill-name>`:\n  - context.md: [present \u002F not found]\n  - instructions.md: [present \u002F not found]\n\n[If no per-skill customisation directories exist:]\n\nNo per-skill customisations found. See `\u002Faccelerator:configure help`\nfor details on per-skill context and instructions.\n```\n\n### `create` (or no argument with no existing config)\n\nHelp the user create a configuration file. Focus on gathering project context\nfor the markdown body — this is the highest-value feature.\n\n1. Ask whether they want to create a team config (shared) or personal config\n   (local), or both\n2. If creating a personal config, check whether `.accelerator\u002Fconfig.local.md`\n   is in `.gitignore` (or `.accelerator\u002F.gitignore`). If not, offer to add it\n   to the repo root `.gitignore`.\n3. Ask about their project context — frame questions around \"What should\n   Accelerator skills know about your project?\":\n  - What tech stack do they use? (languages, frameworks, build system)\n  - Any specific conventions or standards?\n  - Any domain-specific context that should inform skills?\n  - Build and test commands?\n4. Optionally ask about agent overrides: \"Would you also like to configure\n   custom agent overrides? (This is an advanced feature — most users can skip\n   this.)\" If yes, explain the available agents and their roles, then gather\n   override mappings.\n5. Mention that additional customisation is available: \"You can also\n   customise review behaviour (lens selection, verdict thresholds, inline\n   comment limits), output paths (where skills write documents), document\n   templates (plan, ADR, codebase-research, validation formats), and per-skill\n   context and instructions (`.accelerator\u002Fskills\u002F\u003Cskill-name>\u002F`).\n   Run `\u002Faccelerator:configure help` for the full key reference.\"\n6. Write the config file with a markdown body containing the gathered context\n   and YAML frontmatter containing any agent overrides (or empty frontmatter\n   if none).\n\n### `help`\n\nDisplay the configuration reference, then the [Consent Keys](#consent-keys)\nsection and its command runner:\n\n```\n## Accelerator Configuration Reference\n\n### File Format\n\nBoth config files use YAML frontmatter with a markdown body:\n\n\\```yaml\n---\nagents:\n  reviewer: my-custom-reviewer\n---\n\n# Free-form project context (markdown)\nAdditional context that skills will consider when making decisions.\n\\```\n\n### agents\n\nOverride which agents are used when skills spawn sub-agents. Config keys\nuse the same hyphenated names as the agents themselves:\n\nAvailable agents and their roles:\n\n| Config Key                | Default Role                                               |\n|---------------------------|------------------------------------------------------------|\n| `reviewer`                | Reviews plans, PRs, and work items using configured lenses |\n| `browser-analyser`        | Analyses screen state and behaviour in a running web app   |\n| `browser-locator`         | Finds routes, screens, and components in a running web app |\n| `codebase-locator`        | Finds relevant source files for a given task               |\n| `codebase-analyser`       | Analyses implementation details of components              |\n| `codebase-pattern-finder` | Finds similar implementations and usage examples           |\n| `documents-locator`       | Discovers relevant documents in meta\u002F directory            |\n| `documents-analyser`      | Deep-dives on research topics in documents                 |\n| `web-search-researcher`   | Researches topics via web search                           |\n| `researcher`              | Researches one `research-topic` focus area through a profile |\n| `composer`                | Composes a `research-topic` finding from its level notes   |\n\n\\```yaml\n---\nagents:\n  reviewer: my-custom-reviewer\n  codebase-locator: my-locator\n  codebase-analyser: my-analyser\n  codebase-pattern-finder: my-pattern-finder\n  documents-locator: my-doc-locator\n  documents-analyser: my-doc-analyser\n  web-search-researcher: my-web-researcher\n---\n\\```\n\nOnly list agents you want to override. Unlisted agents use their defaults.\nUnrecognised keys produce a warning to stderr and are ignored. Override\nvalues can be any agent name — the plugin does not validate values since\nthe override may reference a user-defined agent outside the plugin.\n\n**Warning — `researcher` and `composer` are confined.** A `PreToolUse` hook\nconfines every subagent of the configured `researcher` or `composer` type,\nwherever it is spawned. The researcher may only run `accelerator research\nfetch` and write finding and level-note files under the research topics\ndirectory; the composer may only write finding files there, and may run no\ncommand at all. Point each at a dedicated agent, never at one used for other\nwork, or that work will be blocked, and never at the same agent, which is\nthen confined as the researcher. The researcher needs `Bash` for the academic\nprofiles. An `agents.composer` override must grant only `Read` and `Write`:\nthe hook confines neither WebFetch nor WebSearch, so the composer's lack of\nnetwork access rests on its tool list alone. It must also read the injected\nfinding outputter and the citing-once rule, and cite every source once by\nthat rule.\n\n### review\n\nCustomise review behaviour for `\u002Faccelerator:review-pr`,\n`\u002Faccelerator:review-plan`, and `\u002Faccelerator:review-work-item`. Config keys use\nunderscores (e.g., `max_inline_comments`). Lens names within array values use\ntheir original hyphenated form (e.g., `code-quality`, `test-coverage`):\n\nShared settings (apply to `review-pr`, `review-plan`, and `review-work-item`):\n\n| Key               | Default                                                    | Description                   |\n|-------------------|------------------------------------------------------------|-------------------------------|\n| `min_lenses`      | `4` (3 for work item)                                      | Minimum lenses to run         |\n| `max_lenses`      | `8`                                                        | Maximum lenses to run         |\n| `core_lenses`     | `[architecture, code-quality, test-coverage, correctness]` | Lenses considered \"core four\" |\n| `disabled_lenses` | `[]`                                                       | Lenses to never use           |\n\nPR review only (`review-pr`):\n\n| Key                           | Default    | Description                                                       |\n|-------------------------------|------------|-------------------------------------------------------------------|\n| `max_inline_comments`         | `10`       | Max inline comments                                               |\n| `dedup_proximity`             | `3`        | Line proximity for merging findings                               |\n| `pr_request_changes_severity` | `critical` | Min severity for REQUEST_CHANGES (`critical`, `major`, or `none`) |\n\nPlan review only (`review-plan`):\n\n| Key                       | Default    | Description                                              |\n|---------------------------|------------|----------------------------------------------------------|\n| `plan_revise_severity`    | `critical` | Min severity for REVISE (`critical`, `major`, or `none`) |\n| `plan_revise_major_count` | `3`        | Major findings count to trigger REVISE                   |\n\nWork item review only (`review-work-item`):\n\n| Key                            | Default    | Description                                              |\n|--------------------------------|------------|----------------------------------------------------------|\n| `work_item_revise_severity`    | `critical` | Min severity for REVISE (`critical`, `major`, or `none`) |\n| `work_item_revise_major_count` | `2`        | Major findings count to trigger REVISE                   |\n\nWork items are smaller artifacts than plans, so `work_item_revise_major_count`\ndefaults to `2` (not `3`): a lower threshold produces equivalent signal density.\n\nExample configuration:\n\n\\```yaml\n---\nreview:\n  min_lenses: 3\n  max_lenses: 10\n  core_lenses: [architecture, security, test-coverage, correctness]\n  disabled_lenses: [portability, compatibility]\n  max_inline_comments: 15\n  dedup_proximity: 5\n  pr_request_changes_severity: major\n  plan_revise_severity: critical\n  plan_revise_major_count: 2\n  work_item_revise_severity: major\n  work_item_revise_major_count: 3\n---\n\\```\n\nNote: YAML comments (`#`) are not supported by the config parser. Do not\nadd inline comments to config values.\n\n#### Per-Review-Type Lenses\n\nBuilt-in lenses are partitioned by review type: the 13 code-review lenses\n(`architecture`, `code-quality`, etc.) are used by `review-pr` and\n`review-plan`; work-item-specific lenses (`completeness`, `testability`,\n`clarity`) are used by `review-work-item`. Each command sees only its own lenses\nin the Lens Catalogue.\n\n`core_lenses` and `disabled_lenses` entries are cross-mode: they are validated\nagainst the union of all built-in and custom lens names, so naming a PR lens in\n`core_lenses` does not produce a warning when running `review-work-item`. Entries\nnot applicable to the active mode are silently filtered out, with an\ninformational note in the `## Review Configuration` block so you have an audit\ntrail. Entries that are not valid in any mode still produce an \"unrecognised\nlens\" warning.\n\n#### Custom Lenses\n\nCreate custom review lenses in `.accelerator\u002Flenses\u002F`:\n\n\\```\n.accelerator\u002Flenses\u002F\n  compliance-lens\u002F\n    SKILL.md           # Follow the same structure as built-in lenses\n  accessibility-lens\u002F\n    SKILL.md\n\\```\n\nCustom lenses are auto-discovered and added to the available lens catalogue.\nThey must have YAML frontmatter with a `name` field and follow the same\nSKILL.md structure as built-in lenses. Custom lenses that provide an\n`auto_detect` field participate in auto-detect selection like built-in\nlenses. Those without `auto_detect` are always included. Minimal template:\n\n\\```markdown\n---\nname: compliance\ndescription: Evaluates regulatory and policy compliance\nauto_detect: Relevant when changes touch regulatory, compliance, or policy-related code\n---\n\n# Compliance Lens\n\n## Core Responsibilities\n- [What this lens evaluates]\n\n## Key Questions\n1. [Questions the reviewer should ask through this lens]\n\n## Boundary\n- [What is NOT in scope for this lens]\n\\```\n\nSee any lens in the plugin's `skills\u002Freview\u002Flenses\u002F` directory for full\nexamples of the expected structure.\n\n**Optional fields** — by default a custom lens appears in all review modes\n(`pr`, `plan`, and `work-item`). To restrict it to specific modes, add an\n`applies_to` field:\n\n\\```markdown\n---\nname: compliance\ndescription: Evaluates regulatory and policy compliance\nauto_detect: Relevant when changes touch regulatory, compliance, or policy-related code\n# no applies_to — applies to all modes: pr, plan, and work-item\n---\n\\```\n\n\\```markdown\n---\nname: work-item-style\ndescription: Evaluates work-item-specific style conventions\napplies_to: [work-item]   # work item reviews only\n---\n\\```\n\nAccepted values: `pr`, `plan`, `work-item`. The field accepts a YAML flow array\n(`[pr, plan]`) or a bare scalar (`pr`). Omitting it is equivalent to all modes.\nThe `applies_to` field is only for custom lenses — built-in lenses are\npartitioned via script arrays, not frontmatter.\n\n### research\n\nTune how wide and deep `\u002Faccelerator:research-topic` goes. Config keys live under\nthe `research.topic` namespace; all three are positive integers. (These behavioural knobs\nare distinct from the `paths.research_*` output-directory keys under `### paths`.)\n\n| Key           | Default | Description                             |\n|---------------|---------|-----------------------------------------|\n| `breadth`     | `8`     | Focus-area ceiling per `outline` round  |\n| `depth`       | `1`     | Recursion limit within a finding (1–10) |\n| `concurrency` | `20`    | Most agents `conduct` spawns at once    |\n\nResolution order for each knob is **flag > personal (`config.local.md`) > team\n(`config.md`) > built-in default**: an `outline SLUG --breadth N`, `conduct\nSLUG --depth N` or `conduct SLUG --concurrency N` flag on the invocation\noverrides config, which overrides the built-in default. A resolved value that is\nnot an integer of 1 or more is clamped to 1 with a warning naming the invalid\nvalue. An empty value is refused rather than clamped. Depth above 10 is clamped\nto 10 with a warning. Breadth has no upper bound — it is the per-round cost\nguard.\n\n**Concurrency and the subagent cap.** A `concurrency` above the subagent cap is\nclamped to the cap: the cap is `ACCELERATOR_SUBAGENT_CAP`, else\n`CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS`, each when set to a value Claude Code\nwould accept, otherwise 20, Claude Code's own limit. A flag or configured value\nabove the cap warns; the built-in default clamps silently.\n\n- Set either variable in the shell that launches Claude Code, or under `env`\n  in a Claude Code settings file. `conduct` reads it through Claude Code's\n  Bash tool, so it must reach that tool's environment.\n- Each variable accepts surrounding whitespace and a leading `+`, as Claude\n  Code does; `concurrency` accepts only plain digits.\n- Set `ACCELERATOR_SUBAGENT_CAP` to pin a cap no higher than Claude Code's;\n  above it, Claude Code refuses the extra spawns.\n- To spawn more than 20 at once, raise both\n  `CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS` and `concurrency`.\n- The clamp applies on every Claude Code version and mode, including those that\n  enforce no cap: Claude Code below v2.1.217, and ultracode sessions. There,\n  set `ACCELERATOR_SUBAGENT_CAP` to the concurrency you want.\n\n**Web searches and the search cap.** `conduct` gives each web researcher a\n`WebSearch` budget sized from the search cap, which is\n`CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION` when set to a value Claude Code\nwould accept, otherwise 200, Claude Code's session limit as of v2.1.301.\n\n- It keeps back a twentieth of the cap, rounded up, for the main\n  conversation, `outline` and searches made earlier in the session.\n- When even one search per node exceeds what is left, every budget is 1 and\n  `conduct` warns: expect a halt, then run `\u002Fclear`, then re-run `conduct`;\n  for later runs, raise `CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION` and restart\n  Claude Code, or lower the depth (`--depth` or `research.topic.depth`).\n- Set the variable where both Claude Code and its Bash tool see it. A value\n  Claude Code would not accept is ignored with a warning.\n\nAt `depth` 1, `conduct` spawns one researcher per (focus area, profile). At\n`depth` above 1, it researches each pair as a tree: every node writes a level\nnote recording up to 4 follow-up questions at level 1, then 2, then 1 per\nnode, and each follow-up becomes a node at the next level, down to `depth`.\nThe `composer` then writes the pair's one finding from the notes. Cost grows\nwith depth: up to 5×, 13× or 21× the researchers per pair at depths 2, 3 and\n4, plus one composer.\n\nExample configuration:\n\n\\```yaml\n---\nresearch:\n  topic:\n    breadth: 6\n    depth: 1\n    concurrency: 12\n---\n\\```\n\nNote: YAML comments (`#`) are not supported by the config parser. Do not\nadd inline comments to config values.\n\n### Per-Skill Customisation\n\nProvide context or additional instructions for specific skills by placing\nfiles in `.accelerator\u002Fskills\u002F\u003Cskill-name>\u002F`:\n\n\\```\n.accelerator\u002Fskills\u002F\n  create-plan\u002F\n    context.md          # Context specific to plan creation\n    instructions.md     # Additional instructions for plan creation\n  review-pr\u002F\n    context.md          # Context specific to PR review\n    instructions.md     # Additional instructions for PR review\n  review-work-item\u002F\n    context.md          # Context specific to work item review\n    instructions.md     # Additional instructions for work item review\n  commit\u002F\n    instructions.md     # Additional instructions for commits\n\\```\n\n**`context.md`** — Skill-specific context injected after global project\ncontext. Use this for information that is only relevant to a particular\nskill. For example, review-pr might need to know about specific review\ncriteria, while create-plan might need architecture context.\n\n**`instructions.md`** — Additional instructions appended to the skill's\nprompt. Use this to customise skill behaviour: add extra steps, enforce\nconventions, or modify output format.\n\nBoth files are optional. If neither exists for a skill, it behaves as\nbefore. Files are read at skill invocation time. Do not add YAML\nfrontmatter to these files — their entire content is injected as-is.\n\n**When to use which**: Use **global context** (`.accelerator\u002Fconfig.md`)\nfor information all skills should know. Use **skill context**\n(`context.md`) for information only one skill needs. Use **skill\ninstructions** (`instructions.md`) to change how a skill behaves — add\nsteps, enforce formats, or modify output. Per-skill context and\ninstructions supplement global context (both are visible to the skill);\nper-skill instructions appear at the end of the prompt and will typically\ntake precedence if they conflict with earlier instructions.\n\n**Shared vs personal**: Per-skill files are typically committed to the\nrepository as team-shared customisations. For personal per-skill\npreferences, add the relevant directories to `.gitignore`.\n\n**Troubleshooting**: Directory names must match a known skill name exactly.\nThe directory name matches the skill name after `\u002Faccelerator:` — for\nexample, `\u002Faccelerator:review-pr` uses `review-pr\u002F`,\n`\u002Faccelerator:create-plan` uses `create-plan\u002F`. Run\n`\u002Faccelerator:configure view` to see all available skill names and any\nactive per-skill customisations. The SessionStart hook output also lists\ndetected per-skill customisations and warns about unrecognised directory\nnames. To temporarily disable a customisation, rename the file (e.g.,\n`context.md.disabled`).\n\nNote: The `configure` skill is not customisable via this mechanism as it\nmanages configuration itself.\n\nExample `context.md` for review-pr:\n\n\\```markdown\n## Review Focus Areas\n\nOur team particularly cares about:\n- API backward compatibility (we have external consumers)\n- Database migration safety (zero-downtime deploys required)\n- Test coverage for error paths (we've had incidents from untested error handling)\n\\```\n\nExample `instructions.md` for create-plan:\n\n\\```markdown\n- Always include a \"Security Considerations\" section in plans\n- Reference our threat model at docs\u002Fsecurity\u002Fthreat-model.md\n- Plans touching the payments service require a rollback strategy\n\\```\n\n### paths\n\nOverride where skills write output documents. Paths are relative to the\nproject root (absolute paths are also supported). A `work` or `integrations`\npath outside the repository, absolute or `..`-relative, syncs only when set in\nan untracked `.accelerator\u002Fconfig.local.md`; set in the team config or a\ntracked personal file, `work sync` refuses with exit 74 until it moves there:\n\n| Key                           | Default                            | Description                                                                      |\n|-------------------------------|------------------------------------|----------------------------------------------------------------------------------|\n| `plans`                       | `meta\u002Fplans`                       | Implementation plans                                                             |\n| `research_codebase`           | `meta\u002Fresearch\u002Fcodebase`           | Codebase research documents                                                      |\n| `research_issues`             | `meta\u002Fresearch\u002Fissues`             | Issue \u002F RCA research documents                                                   |\n| `research_design_inventories` | `meta\u002Fresearch\u002Fdesign-inventories` | Design-inventory artifacts (one directory per snapshot, with screenshots\u002F)       |\n| `research_design_gaps`        | `meta\u002Fresearch\u002Fdesign-gaps`        | Design-gap analysis artifacts                                                    |\n| `decisions`                   | `meta\u002Fdecisions`                   | Architecture decision records                                                    |\n| `prs`                         | `meta\u002Fprs`                         | PR descriptions                                                                  |\n| `validations`                 | `meta\u002Fvalidations`                 | Plan validation reports                                                          |\n| `review_plans`                | `meta\u002Freviews\u002Fplans`               | Plan review artifacts                                                            |\n| `review_prs`                  | `meta\u002Freviews\u002Fprs`                 | PR review working directories                                                    |\n| `review_work`                 | `meta\u002Freviews\u002Fwork`                | Work item review artifacts                                                       |\n| `templates`                   | `.accelerator\u002Ftemplates`           | User-provided templates (e.g., PR description)                                   |\n| `work`                        | `meta\u002Fwork`                        | Work item files referenced by create-plan                                        |\n| `notes`                       | `meta\u002Fnotes`                       | Notes directory                                                                  |\n| `tmp`                         | `.accelerator\u002Ftmp`                 | Ephemeral working data (gitignored)                                              |\n| `integrations`                | `.accelerator\u002Fstate\u002Fintegrations`  | Per-integration cached state (Jira fields\u002Fprojects, future Linear\u002FTrello caches) |\n\nExample configuration:\n\n\\```yaml\n---\npaths:\n  plans: docs\u002Fplans\n  research_codebase: docs\u002Fresearch\u002Fcodebase\n  research_issues: docs\u002Fresearch\u002Fissues\n  research_design_inventories: docs\u002Fresearch\u002Fdesign-inventories\n  research_design_gaps: docs\u002Fresearch\u002Fdesign-gaps\n  decisions: docs\u002Fadrs\n  prs: docs\u002Fprs\n  validations: docs\u002Fvalidations\n  review_plans: docs\u002Freviews\u002Fplans\n  review_prs: docs\u002Freviews\u002Fprs\n  review_work: docs\u002Freviews\u002Fwork\n  templates: docs\u002Ftemplates\n  work: docs\u002Fwork\n  notes: docs\u002Fnotes\n  tmp: docs\u002Ftmp\n  integrations: docs\u002Fintegrations\n---\n\\```\n\nNote: YAML comments (`#`) are not supported by the config parser. Do not\nadd inline comments to config values.\n\n### work\n\nConfigure work-item identifiers and the active remote tracker. Four keys are recognised:\n\n| Key                          | Default          | Description                                |\n|------------------------------|------------------|--------------------------------------------|\n| `integration`                | (empty)          | Active remote tracker. Allowed values: `jira`, `linear`, `trello`, `github-issues`. When set, integration skills auto-scope to the tracker scope key (`jira.project_key` \u002F `linear.team_key`). Team→local override precedence applies; use `\u002Faccelerator:configure view` to confirm which source is active. |\n| `id_pattern`                 | `{number:04d}`   | DSL controlling work-item ID shape         |\n| `key`                        | (empty)          | Local ID prefix substituted into `{key}`. Required when `id_pattern` references `{key}`; unused under `{tracker}`. Work-owned and fully independent of the tracker scope key — it never derives from it. |\n| `default_project_code`       | (empty)          | **Deprecated** (removed in 1.25.0). A read-time alias resolving into `work.key` (tracker-less) or the tracker scope key (tracker-backed). Run `\u002Faccelerator:migrate` to materialise the replacement keys. |\n\nExample configuration for a project tracking issues with prefixed\nIDs (matching Jira\u002FLinear conventions):\n\n\\```yaml\n---\nwork:\n  integration: jira\n  id_pattern: \"{key}-{number:04d}\"\n  key: \"PROJ\"\njira:\n  project_key: \"PROJ\"\n---\n\\```\n\nThis produces work-item filenames such as `meta\u002Fwork\u002FPROJ-0042-add-foo.md`,\nH1 headings like `# PROJ-0042: add foo`, and an `id: \"PROJ-0042\"`\nfrontmatter field.\n\n`work.key` (the local ID prefix) and the tracker scope key\n(`jira.project_key` \u002F `linear.team_key`) are independent values with\nseparate owners. They may match — a deliberate choice to mirror the tracker\nprefix — or diverge:\n\n\\```yaml\n---\nwork:\n  integration: jira\n  id_pattern: \"{key}-{number:04d}\"\n  key: \"PP\"\njira:\n  project_key: \"PROJ\"\n---\n\\```\n\nHere local IDs carry the `PP-` prefix while creation and discovery scope to\nthe `PROJ` Jira project. A divergent `work.key` is a supported configuration,\nnot a smell — no warning is raised.\n\n#### Local-first storage\n\nWork items are always written to `meta\u002Fwork\u002F` as local files, regardless\nof whether `work.integration` is configured. The remote integration is an\nadditional layer on top of local storage, not a replacement. A skill that\npushes a work item to a remote tracker must still write the work item\nto `meta\u002Fwork\u002F` first.\n\nThis invariant applies to every skill under `skills\u002Fwork\u002F`\n(`create-work-item`, `update-work-item`, `list-work-items`,\n`extract-work-items`, `refine-work-item`, `review-work-item`,\n`stress-test-work-item`, `rekey-work-items`). Integration skills under `skills\u002Fintegrations\u002F`\nadd remote behaviour on top — they read from and write to the same\nlocal store. When `work.integration` is unset, every work-management\nskill operates purely against `meta\u002Fwork\u002F` with no external API calls.\n\n#### Pattern DSL Reference\n\nThe `id_pattern` value is a small DSL with two tokens:\n\n- `{number[:format]}` — required, exactly one occurrence. The `format`\n  is a printf width spec of the form `0Nd` (e.g. `04d`, `05d`). If\n  omitted, defaults to `04d`. The width is enforced when generating\n  new IDs; scanning is width-agnostic, so legacy 4-digit files remain\n  visible after a width change.\n- `{key}` — optional, at most one occurrence. The local ID prefix,\n  substituted at use time from `work.key` (or a `--project` flag). When a\n  pattern references `{key}`, `work.key` is required — it never silently falls\n  back to the tracker scope key.\n- `{project}` — **deprecated** synonym for `{key}`, removed in 1.25.0.\n  Existing `{project}` patterns keep working through the deprecation window and\n  are rewritten to `{key}` by `\u002Faccelerator:migrate`.\n- `{{` and `}}` — escaped literals for a literal `{` or `}`.\n\n`{tracker}` is a pattern on its own rather than a token beside others: the\ntracker owns every item's `id`. An item pushed at creation takes its Jira\nor Linear key as `id`; any other new item is a **draft** in\n`meta\u002Fwork\u002Fdrafts\u002F` under a provisional `draft-xxxxxx` ID until `work\nsync` or `work promote` promotes it onto its key, keeping the draft ID in\nits `aliases`. Two rules apply: `{tracker}` must be the only token in\n`work.id_pattern`, and `work.integration` must be `jira` or `linear`.\n`work.key` and `--project` are unused under it, and items created earlier\nkeep their IDs. It needs Accelerator 1.24.0 or later; upgrade every\nteammate before switching a shared config, since an older version cannot\nread the pattern.\n\n**Validation rules** for `{number}` patterns (enforced when the pattern is\nconsumed):\n\n1. Pattern must contain at least one `{number}` token.\n2. No filesystem-hostile chars (`\u002F`, `\\`, `:`, `*`, `?`, `\u003C`, `>`,\n   `|`, `\"`) outside token format specs.\n3. Adjacent dynamic tokens must have at least one literal char between\n   them (`{key}{number}` is rejected; `{key}-{number}` is accepted).\n4. The `{number}` format spec must be `0Nd`. Non-padded specs (`%d`)\n   are rejected so the overflow guard cap is well-defined.\n5. Key values must match `[A-Za-z][A-Za-z0-9]*`. This covers\n   Jira\u002FLinear-style alphanumeric keys (`PROJ`, `ENG`, `ENG2`).\n   Keys with internal hyphens or underscores (`PROJ-FE`,\n   `proj_alpha`) are rejected — this is a known limitation of the\n   initial scope.\n\n#### `id` and `external_id`: local own-identity vs remote identifier\n\nA work item carries two distinct identity fields:\n\n- **`id`** — the **local own-identity**, allocated locally by\n  `accelerator work create` (via `accelerator work next-number`) under\n  the configured `id_pattern`. It is **always a quoted YAML string**,\n  regardless of the pattern: new work items write `id: \"0001\"` under\n  the default pattern and `id: \"PROJ-0001\"` under\n  `{key}-{number:04d}`. Consumers must treat it as a string; do not\n  coerce to integer. (Legacy work items carry the same own-identity\n  value under `work_item_id:`; `accelerator work show` bridges the two\n  names transparently, so a consumer asking for `id` against a legacy file\n  still gets the value.)\n- **`external_id`** — the **remote tracker's identifier** (e.g. a Jira or\n  Linear key), written when the item is pushed to the configured\n  `work.integration`. It is the per-item local→remote mapping, so no\n  separate mapping store is needed. Its **presence is the synced signal**:\n  an item with a non-empty `external_id` is *synced* (exists remotely), an\n  item without one is *unsynced* (never pushed) — see `\u002Flist-work-items`.\n\n`id` and `external_id` **may coincide** when the local and remote ID schemes\nalign (Jira\u002FLinear, under `{key}-{number:04d}` with `work.key` mirroring the\nscope key) or be **independent** when they do not (Trello, whose card IDs are\nopaque). `external_id` is always\nwritten on a successful push, even when it equals `id`, because presence —\nnot value — is what marks an item synced.\n\n#### Choosing between default and project-coded patterns\n\nPick `{tracker}` when every new item should be named by its Jira or Linear\nkey. Pick the default `{number:04d}` if your project tracks work items\ninternally and does not link out to an external tracker. Pick\n`{key}-{number:04d}` (with an explicit `work.key`) when:\n\n- You mirror tickets from Jira, Linear, or another external tracker\n  and want filenames to align with the tracker's IDs.\n- Multiple projects share one repo and you want a clear visual\n  separation between project workstreams.\n\n#### Width changes vs structural changes\n\nChanging the width spec (`{number:04d}` → `{number:05d}`) is\n**absorbed transparently**: legacy files remain visible because the\nscan regex is width-agnostic. New files are generated at the new\nwidth.\n\nChanging the structural shape (default → `{project}-{number:04d}`,\nor vice versa) leaves legacy files coexisting with their original IDs.\nUse `\u002Faccelerator:migrate` to apply migration `0002-rename-work-items-with-project-prefix`,\nwhich renames legacy `NNNN-*.md` files to the configured pattern with\nyour `default_project_code`. The migration stays pending until both\nthe pattern includes `{project}` and `default_project_code` is set; if\nneither applies, you can opt out via `accelerator migrate --skip\n0002-rename-work-items-with-project-prefix`.\n\n#### Recognised keys\n\nOnly `work.integration`, `work.id_pattern`, `work.key`, and the deprecated\n`work.default_project_code` are recognised. Other `work.*` keys are not\nconsumed by any plugin script.\n\n### visualiser\n\nConfigure the visualiser plugin.\n\n| Key               | Default                                                         | Description                                                                  |\n|-------------------|-----------------------------------------------------------------|------------------------------------------------------------------------------|\n| `kanban_columns`  | `[draft, ready, in-progress, review, done, blocked, abandoned]` | Ordered list of kanban column keys                                           |\n| `idle_timeout`    | `8h`                                                            | Idle auto-shutdown window (humantime duration; `never`\u002F`0` to disable)       |\n| `editor`          | (empty)                                                         | Editor deep-link command; absent disables the \"open in editor\" button        |\n| `editor_project`  | (empty)                                                         | Companion project argument passed alongside `editor`                         |\n| `binary`          | (bundled)                                                       | Override visualiser binary path (absolute or project-relative; must be executable) |\n\nExample configuration for a project using a reduced column set:\n\n\\```yaml\n---\nvisualiser:\n  kanban_columns: [ready, in-progress, review, done]\n---\n\\```\n\nEach key becomes a kanban column; the display label is the key\ntitle-cased with hyphens replaced by spaces (`in-progress` → `In progress`).\n\n#### Boot-time validation\n\n| Condition                         | Behaviour                              |\n|-----------------------------------|----------------------------------------|\n| Key absent                        | Falls back to the seven defaults above |\n| Key present, non-empty list       | Accepted; each entry becomes a column  |\n| Key present, empty list (`[]`)    | Rejected at boot with a clear error    |\n| Malformed inline-array syntax     | Rejected at boot                       |\n\nThe column set is read once at boot. Changing `visualiser.kanban_columns`\nrequires a server restart; the browser will pick up the new columns on the\nnext page-load (TanStack Query re-fetches `\u002Fapi\u002Fkanban\u002Fconfig` each time).\n\n#### Idle auto-shutdown\n\nThe visualiser server auto-exits after a period with no incoming HTTP\nrequests. `visualiser.idle_timeout` sets that window as a humantime\nduration string (`\"8h\"`, `\"30m\"`, `\"1h30m\"`); it defaults to `8h` when\nabsent.\n\nSetting it to `never` (case-insensitive), `0`, or any zero-length\nduration (`0s`, `0ms`) **disables** idle auto-shutdown — the idle timer\nnever fires, which is **not** the same as \"shut down immediately\". The\nserver still terminates when the process that launched it exits and on\n`\u002Faccelerator:visualise stop`.\n\nAn unparseable value (e.g. `soon`) is rejected at launch with a clear\nerror naming the bad value, rather than silently defaulting.\n\nThe `ACCELERATOR_VISUALISER_IDLE_TIMEOUT` environment variable overrides\nthe config key for one-shot, shell-scoped use. Precedence is\n**env var > `visualiser.idle_timeout` > 8h default**.\n\nThe window is read once at boot and honoured to within one ~60s polling\ntick — shutdown lands on the next tick after the window elapses, so\nsub-minute values are effectively rounded up to the next tick. Changing it\nrequires a server restart.\n\n#### Kanban write-back contract\n\n`PATCH \u002Fapi\u002Fdocs\u002F{path}\u002Ffrontmatter` validates the incoming `status` value\nagainst the configured column keys. A value outside the configured set —\nincluding values currently in the \"Other\" swimlane — is rejected with\n`400 unknown_kanban_status`. Recovery from an accidental drag is a direct\nfile edit followed by VCS revert.\n\nSee ADR-0024 for full rationale.\n\n#### Editor deep-link and binary override\n\n`visualiser.editor` and `visualiser.editor_project` are free-form passthrough\nstrings that drive the doc \"open in editor\" deep-link; when both are absent the\nbutton is disabled. Precedence is **env var\n(`ACCELERATOR_VISUALISER_EDITOR` \u002F `_EDITOR_PROJECT`) > config key > omitted**;\na whitespace-only value collapses to absent. `visualiser.editor` is not a\n[consent key](#consent-keys), so a team value applies: the browser follows the\nlink it builds, and nothing in Accelerator spawns it.\n\n`visualiser.binary` points the launcher at an alternative server binary instead\nof the bundled\u002Fdownloaded one — useful for local development. The path may be\nabsolute or project-relative and **must be executable** (a non-executable path\nfails the launch loudly). Precedence is **`ACCELERATOR_VISUALISER_BIN` env var >\n`visualiser.binary` > bundled binary**.\n\n#### Recognised keys\n\nOnly `visualiser.kanban_columns`, `visualiser.idle_timeout`,\n`visualiser.editor`, `visualiser.editor_project`, and `visualiser.binary` are\nrecognised. Other `visualiser.*` keys are not consumed by any plugin script.\n\n### jira\n\nConfigure access to a Jira Cloud tenant. One key belongs in team-shared\n`config.md`:\n\n| Key              | Default | Description                                            |\n|------------------|---------|--------------------------------------------------------|\n| `site`           | (empty) | Cloud subdomain (e.g. `atomic-innovation`)             |\n\nExample shared configuration in `config.md`:\n\n\\```yaml\n---\njira:\n  site: atomic-innovation\n---\n\\```\n\n#### Personal settings (do not commit)\n\nFour keys are personal and **must live exclusively in\n`config.local.md`**, which is gitignored:\n\n| Key             | Default | Description                                            |\n|-----------------|---------|--------------------------------------------------------|\n| `email`         | (empty) | Your Atlassian account email                           |\n| `token`         | (empty) | Plaintext API token (discouraged — prefer `token_cmd`) |\n| `token_cmd`     | (empty) | Shell command whose stdout is the token                |\n| `allowed_sites` | (empty) | Extra exact hostnames the Rust client may send the token to, beyond `*.atlassian.net` |\n\n`token_cmd` is a **consent key**, like `allowed_sites`: a committed\n`token_cmd` is a supply-chain command-injection sink (a single PR could land\narbitrary shell that runs on every contributor's machine), so it follows the\n[consent-key rule](#consent-keys): a value in the team-shared `config.md` is\nrefused, as a `warning:` when another credential resolves and fatally only\nwhen none does.\n\n`allowed_sites` exists for self-hosted and non-`atlassian.net` tenants. The\nRust client refuses to send credentials to any host outside `*.atlassian.net`\nunless it is listed here as an exact hostname — no wildcard expansion, matched\nat a label boundary, so neither `atlassian.net.example.com` nor\n`evil-atlassian.net` is admitted. The repository may propose `jira.site`, but\nonly you may widen where the token is sent, so `allowed_sites` is a **consent\nkey**: it is read only from an untracked `config.local.md` or from the\n`ACCELERATOR_JIRA_ALLOWED_SITES` environment variable, whose entries are split\non commas and whitespace:\n\n\\```bash\nACCELERATOR_JIRA_ALLOWED_SITES=\"jira.example.com, jira.example.org\"\n\\```\n\nA value found anywhere else is refused with one of the\n[consent-key codes](#consent-keys).\n\nA refused allowlist only warns when the site is an `*.atlassian.net` host,\nwhich the default rule admits anyway; for any other site it is fatal (exit\n24). Taking the allowlist from the environment prints a `notice:` line naming\nthe variable and its value, so you can see which setting decided it.\n\nTrusting a repository's `mise.toml` or `.envrc` extends your consent to any\n`ACCELERATOR_JIRA_ALLOWED_SITES` it sets. mise trusts a file by its path unless\nparanoid mode is on, so later edits to a trusted file are not re-prompted.\n\n`token` plaintext is supported but discouraged — prefer `token_cmd` with a\npassword manager. A `config.local.md` that is a symlink or looser than `0600`\nis not read, as the [consent keys](#consent-keys) section describes.\n\nExample `config.local.md` (preferred form, using a password manager):\n\n\\```yaml\n---\njira:\n  email: toby@go-atomic.io\n  token_cmd: \"op read op:\u002F\u002FWork\u002FAtlassian\u002Fcredential\"\n---\n\\```\n\nAuthentication resolves through this chain. The first rung that yields a\nusable value wins; a failed command or refused value is reported as a\n`warning:` and the chain continues:\n\n1. `ACCELERATOR_JIRA_TOKEN` env var.\n2. `ACCELERATOR_JIRA_TOKEN_CMD` env var (run by the [command runner](#command-runner)).\n3. `config.local.md` `jira.token`.\n4. `config.local.md` `jira.token_cmd` (run by the [command runner](#command-runner)).\n5. `config.md` `jira.token` *(only when `config.local.md` does not\n   exist; emits a runtime warning)*.\n\n`jira.token_cmd` runs only from the environment or an untracked\n`config.local.md`, and a `jira.token` in a tracked `config.local.md` is\nrefused too. The [consent keys](#consent-keys) table lists every code. Each\nrefusal is a `warning:` when a later rung resolves, and fatal (exit 24) only\nwhen none does. A command that fails, times out or prints too much falls\nthrough in the same way. Rationale: a committed `token_cmd` is a supply-chain\ncommand-injection sink — a single PR could land\n`jira.token_cmd: \"\u003Carbitrary shell>\"` and that command would execute on every\ncontributor's machine the next time any Jira helper or `\u002Finit-jira` ran.\nRestricting the executable indirection to the user's own sources keeps the\nblast radius bounded to the user's own machine.\n\nTaking the command from `ACCELERATOR_JIRA_TOKEN_CMD` prints a `notice:` line\nnaming the variable. It never prints the command, which may carry a secret\ninline. When the tracking status cannot be determined, the refusal names the\nvariable that still works, such as `ACCELERATOR_JIRA_TOKEN`.\n\n`token_cmd` is the supported integration point for password managers and\nkeychains. 1Password CLI (`op read ...`) with its desktop-app integration,\n`pass`, macOS Keychain (`security find-generic-password ...`) and Freedesktop\nSecret Service (`secret-tool ...`) work as they are. A helper that needs a\nvariable the [command runner](#command-runner) does not pass on, such as\n`AWS_PROFILE` for AWS Secrets Manager, has three workarounds:\n\n- set a static value inline: `env AWS_PROFILE=work aws secretsmanager ...`;\n- wrap the helper in a script, at an absolute path outside the repository,\n  that sets what it needs;\n- for a value that exists only in your session (`SSH_AUTH_SOCK`,\n  `OP_SESSION_*`, `OP_SERVICE_ACCOUNT_TOKEN`, temporary STS credentials),\n  resolve the credential yourself and export it as `ACCELERATOR_JIRA_TOKEN`,\n  `ACCELERATOR_LINEAR_TOKEN`, `ACCELERATOR_OPENALEX_API_KEY` or `GH_TOKEN`.\n\nThe Jira scope key is **`jira.project_key`** — the integration-owned project\nkey that resolves the creation-home project and discovery scope. It is\nindependent of `work.key` (the local ID prefix) and needs no `work.*` present.\nThe deprecated `work.default_project_code` still resolves into it through the\n1.25.0 removal window when `work.integration: jira`.\n\n#### Skill registration order\n\nThe `skills` array in `.claude-plugin\u002Fplugin.json` is **workflow-ordered**, not\nalphabetical. Its sequence groups categories by lifecycle:\n\n```\nvcs → external trackers (github, integrations\u002Fjira) → planning → execution (work) → review → meta (config)\n```\n\nFuture integrations (Linear, Trello) land in the `integrations\u002F` group,\nimmediately after `.\u002Fskills\u002Fintegrations\u002Fjira\u002F`. Do not sort the array\nalphabetically.\n\n#### Recognised keys\n\nOnly `jira.site`, `jira.allowed_sites`, `jira.email`, `jira.token`,\n`jira.token_cmd`, and `jira.project_key` are recognised. Other `jira.*` keys\nare not consumed by any plugin script. `jira.allowed_sites` has no bash\nconsumer — it is read by the Rust client only.\n\n### linear\n\nConfigure access to Linear. Linear is single-tenant SaaS, so there is no\nsite\u002Fsubdomain key — authentication is a personal API token only.\n\nTwo keys belong in team-shared `config.md`:\n\n| Key        | Default | Description                                              |\n|------------|---------|----------------------------------------------------------|\n| `team_id`  | (empty) | The Linear team UUID the client creates and searches issues in |\n| `team_key` | (empty) | The Linear scope key (the `ENG` in `ENG-42`) that resolves the creation-home team and discovery scope, independent of `work.key`. |\n\n`team_id` has no bash consumer: the shell path reads `.team.id` from the\n`catalogue.json` that `\u002Finit-linear` writes, and the Rust client falls back to\nthat same file when the key is unset, so an already-onboarded repository needs\nno new configuration.\n\n`team_key` resolves in the order `linear.team_key` → the deprecated\n`work.default_project_code` (gated on `work.integration: linear`, through the\n1.25.0 removal window) → the catalogue `\u002Fteam\u002Fkey`, so an already-onboarded\nrepository resolves its scope from the catalogue with no configuration.\n\n#### Pull filters\n\n`linear.pull.filters` narrows discovery by `state`, `label`, `assignee` and\n`project`, each a list of values (values OR'd, keys AND'd). `project` is\nLinear-only: a Jira `pull` block accepts `state`, `label` and `assignee`, and\nrefuses `project` at validation. Every value resolves to a Linear id through\n`catalogue.json` before anything is paged:\n\n- **Per team in scope.** A `state` or team `label` matches in each team the\n  pull covers and contributes that team's id; a workspace label matches\n  whichever teams are in scope. Within a team, an active record wins over\n  archived ones of the same name, and two active ones refuse as ambiguous.\n- **Assignees are members.** An `assignee` must be a member of a team in\n  scope, matched on their email, then their full name, then their display\n  name; the first tier with a match decides. A former member, or someone who\n  assigns work without being a member, refuses — use a current member, or\n  widen the scope.\n- **Projects are the scoped teams' projects.** A `project` matches by name\n  among the projects linked to a team in scope. An active project wins over\n  archived ones of the same name; two active projects of one name refuse as\n  ambiguous, listing the candidates — rename one in Linear.\n- **Refusals are loud.** A value no team in scope carries refuses the sync\n  with exit 74, under `pull filters could not be resolved:`, even when its\n  key's other values resolve. It is never silently dropped from the filter.\n\nThe catalogue holds complete entries only for **synced teams** — the base\nteam and each team that owns a tracked work item. A team in scope whose entry\nlacks what the filters need is fetched from Linear on each pull, for those\nsections only. An apply-mode sync then records complete entries for the\nsynced teams it fetched, so commit `catalogue.json` with the pulled items;\nteams that are in scope but not synced are never written, and are fetched\nagain on every filtered pull. A filtered pull that fetches every section live\ncosts about 26,000 complexity points at 50 teams and 49,000 at 200 — under 7%\nof Linear's hourly allowance at one pull every 15 minutes.\n\nA complete entry is not refreshed by sync. States, labels, members or\nprojects added in Linear to a synced team reach the catalogue only through a\nrefresh: run `\u002Faccelerator:init-linear` (it refreshes every synced team) and\ncommit the result.\n\n#### Personal settings (do not commit)\n\nBoth token keys are personal and **must live exclusively in\n`config.local.md`**, which is gitignored:\n\n| Key         | Default | Description                                            |\n|-------------|---------|--------------------------------------------------------|\n| `token`     | (empty) | Plaintext API token (discouraged — prefer `token_cmd`) |\n| `token_cmd` | (empty) | Shell command whose stdout is the token                |\n\nAuthentication resolves through this chain. The first rung that yields a\nusable value wins; a failed command or refused value is reported as a\n`warning:` and the chain continues:\n\n1. `ACCELERATOR_LINEAR_TOKEN` env var.\n2. `ACCELERATOR_LINEAR_TOKEN_CMD` env var (run by the [command runner](#command-runner)).\n3. `config.local.md` `linear.token`.\n4. `config.local.md` `linear.token_cmd` (run by the [command runner](#command-runner)).\n5. `config.md` `linear.token` *(only when `config.local.md` does not exist)*.\n\n`linear.token_cmd` is a [consent key](#consent-keys), refused from the same\nsources as `jira.token_cmd`: a committed `token_cmd` is a supply-chain\ncommand-injection sink. With nothing usable left, the exit code names the fatal\nrefusal: 24 for a provenance refusal, 25 for a command that failed, timed\nout or printed too much, 27 for a malformed token, and 29 for an insecure\n`config.local.md`.\n\nExample `config.local.md` (preferred form, using a password manager):\n\n\\```yaml\n---\nlinear:\n  token_cmd: \"op read op:\u002F\u002FWork\u002FLinear\u002Ftoken\"\n---\n\\```\n\n`token_cmd` is the supported integration point for password managers and\nkeychains (1Password CLI, `pass`, macOS Keychain, Secret Service), exactly as\nfor Jira.\n\n#### Recognised keys\n\nOnly `linear.team_id`, `linear.team_key`, `linear.token` and\n`linear.token_cmd` are recognised.\nOther `linear.*` keys are not consumed by any plugin script.\n\n### openalex\n\nConfigure access to OpenAlex, the scholarly source behind\n`\u002Faccelerator:research-topic`'s `openalex` profile. A key is optional: without\none, `accelerator research fetch openalex` runs on OpenAlex's keyless daily\nallowance, which a research round can spend quickly, and `conduct` reports the\nspent pairs with a configure-a-key next step. There are no team-shared keys.\n\n#### Personal settings (do not commit)\n\nBoth key settings are personal and **must live exclusively in\n`config.local.md`**, which is gitignored:\n\n| Key           | Default | Description                                               |\n|---------------|---------|-----------------------------------------------------------|\n| `api_key`     | (empty) | Plaintext API key (discouraged — prefer `api_key_cmd`)    |\n| `api_key_cmd` | (empty) | Shell command whose stdout is the key                     |\n\nThe key resolves through this chain. The first rung that yields a usable\nvalue wins; a failed command or refused value is reported as a `warning:` and\nthe chain continues:\n\n1. `ACCELERATOR_OPENALEX_API_KEY` env var.\n2. `ACCELERATOR_OPENALEX_API_KEY_CMD` env var (run by the [command runner](#command-runner)).\n3. `config.local.md` `openalex.api_key`.\n4. `config.local.md` `openalex.api_key_cmd` (run by the [command runner](#command-runner)).\n5. `config.md` `openalex.api_key` *(only when `config.local.md` does not\n   exist)*.\n\n`openalex.api_key_cmd` is a [consent key](#consent-keys), like\n`jira.token_cmd`: a committed command is a supply-chain command-injection\nsink, so a value in the team-shared `config.md` is refused. The refusal is a\n`warning:` when another rung supplies a key. When none does, the fetch fails\nrather than going keyless, even beside a `config.local.md` that sets no key.\nA tracked `config.local.md` is refused when it supplies either setting, and\none supplying neither leaves the fetch keyless.\n\nThe key command runs under whatever remains of the fetch's 100 s deadline. The key is sent as an\n`Authorization: Bearer` header, never in a URL, and `accelerator config dump`\nhides both settings.\n\nExample `config.local.md` (preferred form, using a password manager):\n\n\\```yaml\n---\nopenalex:\n  api_key_cmd: \"op read op:\u002F\u002FWork\u002FOpenAlex\u002Fapi-key\"\n---\n\\```\n\n#### Recognised keys\n\nOnly `openalex.api_key` and `openalex.api_key_cmd` are recognised. Other\n`openalex.*` keys are not consumed by any plugin script.\n\n### templates\n\nOverride document templates by placing custom template files in the\ntemplates directory (`paths.templates`, defaults to `.accelerator\u002Ftemplates\u002F`):\n\n\\```\n.accelerator\u002Ftemplates\u002F\n  plan.md                # Custom plan template\n  codebase-research.md   # Custom codebase-research template\n  adr.md                 # Custom ADR template\n  validation.md          # Custom validation template\n  pr-description.md      # PR description template (used by describe-pr)\n  work-item.md           # Custom work-item template\n\\```\n\nAll templates — both skill structure templates (plan, ADR, codebase-research,\nvalidation) and user content templates (PR description) — live in the same\ndirectory. Override `paths.templates` to move them all:\n\n\\```yaml\n---\npaths:\n  templates: docs\u002Ftemplates\n---\n\\```\n\nFor advanced use cases, you can also point individual templates to specific\nfile paths using the `templates` config section:\n\n\\```yaml\n---\ntemplates:\n  plan: docs\u002Ftemplates\u002Four-plan-format.md\n  adr: docs\u002Ftemplates\u002Four-adr-format.md\n  pr-description: docs\u002Ftemplates\u002Four-pr-template.md\n---\n\\```\n\nResolution order: `templates.\u003Cname>` config path (if set) → templates\ndirectory (`paths.templates`) → plugin default. `research-topic`'s level notes\nhave no `templates.*` key, but a `topic-research-level-note.md` in the\ntemplates directory overrides them like any other template. Use the plugin's\n`templates\u002F` directory as a starting point for customisation.\n\n**Note on cross-references**: Default templates contain hardcoded references\nto other skills' output paths (e.g., the plan template references\n`meta\u002Fresearch\u002Fcodebase\u002F` in its References section). If you override output paths\n(e.g., `paths.research_codebase: docs\u002Fresearch\u002Fcodebase`), you should also provide custom\ntemplates with updated cross-references.\n\n#### Template Management Commands\n\nUse `\u002Faccelerator:configure templates \u003Caction>` to manage templates:\n\n| Command                 | Description |\n|-------------------------|--------------------------------------------------------|\n| `templates list`        | List all templates with resolution source and path     |\n| `templates show \u003Ckey>`  | Display the effective template content                 |\n| `templates eject \u003Ckey>` | Copy plugin default to your templates directory        |\n| `templates eject --all` | Eject all templates at once                            |\n| `templates diff \u003Ckey>`  | Show differences between your template and the default |\n| `templates reset \u003Ckey>` | Remove your customisation, revert to plugin default    |\n\nAvailable template keys: `plan`, `codebase-research`, `adr`, `validation`, `pr-description`, `work-item`.\n\n### Project Context\n\nThe markdown body is injected into skills as project-specific guidance:\n\n\\```markdown\n---\nagents:\n  reviewer: my-custom-reviewer\n---\n\n# Project Context\n\n## Tech Stack\n- Language: TypeScript with strict mode\n- Framework: Next.js 14 with App Router\n- Database: PostgreSQL via Prisma ORM\n- Testing: Vitest for unit tests, Playwright for E2E\n\n## Conventions\n- All API routes use GraphQL (no REST endpoints)\n- Database migrations must be backward-compatible\n- Feature flags managed via LaunchDarkly\n\n## Build & Test\n- Build: `npm run build`\n- Test: `npm run test`\n- Lint: `npm run lint`\n- Full check: `npm run check`\n\\```\n\nUse the project context for:\n- Tech stack description\n- Coding conventions\n- Domain-specific terminology\n- Build and test commands\n- Architecture notes\n\n### Parser Constraints\n\nThe configuration parser supports simple scalar YAML values. The following\nare not currently supported in frontmatter values:\n- Multi-line YAML values (block scalars `|` \u002F `>`)\n- YAML comments (the `#` character in values is included as-is)\n- Nesting deeper than 2 levels\n```\n\n### `templates`\n\nWhen the user's argument starts with `templates`, dispatch based on the\naction that follows. The `CLAUDE_PLUGIN_ROOT` environment variable points\nto the plugin installation directory where scripts are located.\n\n#### `templates list`\n\nRun the list script and display its output. Run the bare path **directly** as an\nexecutable; never prefix it with `bash`\u002F`sh`\u002F`env` (a wrapper prefix escapes the\nskill's `allowed-tools` permission and forces an unnecessary prompt):\n\n```bash\naccelerator config templates list\n```\n\nPresent the table output to the user.\n\n#### `templates show \u003Ckey>`\n\nRun the show script with the template key. Run the bare path **directly** as an\nexecutable; never prefix it with `bash`\u002F`sh`\u002F`env` (a wrapper prefix escapes the\nskill's `allowed-tools` permission and forces an unnecessary prompt):\n\n```bash\naccelerator config templates show \u003Ckey>\n```\n\nPresent the source metadata and template content to the user. If the user\ndoesn't specify a key, ask which template they'd like to see, or suggest\nrunning `templates list` first.\n\n#### `templates eject \u003Ckey>` or `templates eject --all`\n\n**Before ejecting**, run with `--dry-run` to preview what will happen. Run the bare\npath **directly** as an executable; never prefix it with `bash`\u002F`sh`\u002F`env` (a wrapper\nprefix escapes the skill's `allowed-tools` permission and forces an unnecessary\nprompt) — this applies to every `config-eject-template.sh` invocation in this\nsubsection:\n\n```bash\naccelerator config templates eject --dry-run \u003Ckey|--all>\n```\n\nPresent the dry-run output to the user. If any templates already exist\n(exit code 2), ask whether they want to overwrite. If the user confirms\noverwriting, run a second dry-run with `--force` to show the full preview\n(including which files will be overwritten):\n\n```bash\naccelerator config templates eject --dry-run --force \u003Ckey|--all>\n```\n\nPresent this preview, then run the actual eject with `--force`:\n\n```bash\naccelerator config templates eject --force \u003Ckey|--all>\n```\n\nIf no templates already exist (exit code 0 from the initial dry-run),\nproceed directly with the eject (no `--force` needed):\n\n```bash\naccelerator config templates eject \u003Ckey|--all>\n```\n\nIf the user says `eject --all` or `eject all`, pass `--all` to the script.\n\nAfter successful ejection, inform the user:\n- Which file(s) were created and where\n- That they can now edit the template(s) at the ejected path\n- That the customised template will be used by the relevant skill on next\n  invocation\n\n#### `templates diff \u003Ckey>`\n\nRun the diff script. Run the bare path **directly** as an executable;\nnever prefix it with `bash`\u002F`sh`\u002F`env` (a wrapper prefix escapes the skill's\n`allowed-tools` permission and forces an unnecessary prompt):\n\n```bash\naccelerator config templates diff \u003Ckey>\n```\n\nPresent the diff output to the user. If exit code is 2, no customisation\nexists — relay the \"using plugin default\" message.\n\n#### `templates reset \u003Ckey>`\n\nThis action removes a user's customised template to revert to the plugin\ndefault. Reset operates on a **single template at a time** — if the user\nrequests resetting all templates, process them one-by-one with individual\nconfirmations. Run the bare path **directly** as an executable;\nnever prefix it with `bash`\u002F`sh`\u002F`env` (a wrapper prefix escapes the skill's\n`allowed-tools` permission and forces an unnecessary prompt) — this applies to\nboth `config-reset-template.sh` invocations below.\n\n1. Determine the template key. If not provided, ask the user.\n2. Run the reset script without `--confirm` to check for an override:\n   ```bash\n   accelerator config templates reset \u003Ckey>\n   ```\n3. If exit code 2: tell the user \"No customised template found for '\u003Ckey>'\n   — already using plugin default.\"\n4. If exit code 0: present the override information to the user and ask for\n   confirmation. Show the file path and note about config entry if present.\n   If the output includes \"Warning: This file is outside the project\n   directory\", explicitly highlight this to the user and ask them to\n   confirm they want to delete a file outside the project root.\n5. On confirmation, run with `--confirm`:\n   ```bash\n   accelerator config templates reset --confirm \u003Ckey>\n   ```\n6. Inform the user that the template was reset. If the script output\n   includes a note about removing a config entry (i.e., the override was\n   a config path \u002F Tier 1), also remove the `templates.\u003Ckey>` entry from\n   the config using the Edit tool. Check both `.accelerator\u002Fconfig.md`\n   (team) and `.accelerator\u002Fconfig.local.md` (local) for the entry:\n   - If the entry exists in **local only**: remove it from local.\n   - If the entry exists in **team only**: remove it from team.\n   - If the entry exists in **both with the same value**: remove from both.\n   - If the entry exists in **both with different values**: remove from\n     local only (team config may affect other team members). Inform the\n     user that the team config still has a `templates.\u003Ckey>` entry and\n     they should coordinate with their team if it should also be removed.\n\n## Important Notes\n\n- Config changes take effect on the next skill invocation (no restart needed\n  for skills using the `!` preprocessor)\n- The SessionStart hook summary requires a session restart to update\n- `.local.md` files should be gitignored — the `create` action will help\n  with this\n- Team config should contain only project-relevant context, not personal\n  preferences\n\n## Related Skills\n\n- `\u002Faccelerator:init` — bootstrap a fresh repository with all directories\n- `\u002Faccelerator:migrate` — apply pending schema migrations after a plugin upgrade\n  (renames `meta\u002F` directories and config keys to match the latest conventions)\n",{"name":5,"description":7,"allowed-tools":38,"argument-hint":43,"disable-model-invocation":44},[39,40,41,42],"Bash(accelerator config *)","Read","Write","Edit","[view | create | help | templates ...]",true,"main","9a3f77a1c7a3b3d1db560d7848c8cb49ca6f19f2","skills\u002Fconfig\u002Fconfigure",3,"https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator","https:\u002F\u002Fgo-atomic.io","https:\u002F\u002Fgithub.com\u002Fatomicinnovation","2026-11-15 03:43:02",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":44},[55,58,61],{"tool":56,"command":57},"npx","npx skills add atomicinnovation\u002Faccelerator --skill configure",{"tool":59,"command":60},"bunx","bunx skills add atomicinnovation\u002Faccelerator --skill configure",{"tool":62,"command":63},"pnpm","pnpm dlx skills add atomicinnovation\u002Faccelerator --skill configure","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Fconfig\u002Fconfigure\u002FSKILL.md",[],[67,93,115,136,152,174],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":33},"01M70S7PFGVATJREBFEGPJB718","explore-pr","Build an interactive, design-first and picture-first exploration page for a pull request — its architecture, abstractions and design decisions drawn as diagrams, a guided tour in reading order with code as the evidence, an attention map of where the risk sits, a ledger of its riskiest operations, prior review findings re-checked against the code, and simulations specific to the PR — with the reviewer's verdicts and notes saved. Use when the user wants to explore, understand or review a large pull request or its design, asks for a review page, walkthrough or visual explanation of a PR, or is struggling to review a big change.","https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexplore-pr\u002FSKILL.md",[],[74,75,76,77,78,79,80,81,82,83,84,85,86,24,87,88,89,90,91,92],"explore pr","explore","pr","diagrams","exploration","re","review findings","walkthrough","design","map","when","number","URL","code","architecture","reviewer","review","notes","change",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":33},"01M6DY04WBTMFV96JMBP5ZXVFX","update-work-item","Update fields (status, priority, tags, parent, etc.) of an existing work item. Use to transition status, change priority, manage tags, or edit any frontmatter field. No transition enforcement — arbitrary changes are allowed.","https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Fwork\u002Fupdate-work-item\u002FSKILL.md",[],[100,101,102,103,104,29,105,24,92,19,27,106,107,108,109,110,111,112,113,114],"work","update","update work item","work item","enforcement","use","validate","status","transition","frontmatter","Existing","tags","changes","fields","op",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":33},"01M6DY0106CF15CYEJHZM14GBZ","sync-work-items","Reconcile local work items in meta\u002Fwork\u002F with the active remote tracker named by work.integration. Use when the user wants to sync, push, or pull work items to or from Jira or Linear, preview what a sync would change, or reconcile divergent local and remote state.","https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Fwork\u002Fsync-work-items\u002FSKILL.md",[],[100,122,123,124,125,126,127,24,128,92,129,130,131,132,133,21,134,19,135,109,84],"sync","sync work items","promote","Meta","local","only","preview","active","tracker","max","jira","remote","adopt","reconcile",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":33},"01M6HNF86984S4XK21Q26VZA21","sync-work-items-recovery","Recovery procedures for work sync failures that need a person — terminal rows, refused pending pushes and refused orders. Read by sync-work-items — not invoked directly.","https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Fwork\u002Fsync-work-items-recovery\u002FSKILL.md",[],[143,100,144,122,123,145,146,147,25,148,32,149,150,151],"sync work items recovery","recovery","work-items","for","terminal","person","false","orders","pending",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":33},"01M6DXZWH7PR72VCEXSSD4XNK4","stress-test-work-item","Interactively stress-test a work item by grilling the user on scope, assumptions, acceptance criteria, edge cases, and dependencies to surface issues, gaps, and flawed assumptions before implementation is planned.","https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Fwork\u002Fstress-test-work-item\u002FSKILL.md",[],[159,160,100,161,103,162,163,164,165,166,167,24,168,169,19,106,170,171,172,85,173,109],"stress test","test","stress test work item","stress","scope","issues","edge","stress-test","acceptance","acceptance criteria","dependencies","implementation","grilling","user","gaps",{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":33},"01M6DXZRQWHTWV1G9PTTHCGGYA","review-work-item","Review a work item through multiple quality lenses and collaboratively iterate based on findings. Use when the user wants to evaluate a work item before implementation or escalation.","https:\u002F\u002Fgithub.com\u002Fatomicinnovation\u002Faccelerator\u002Fblob\u002Fmain\u002Fskills\u002Fwork\u002Freview-work-item\u002FSKILL.md",[],[90,100,181,103,182,183,105,24,184,185,19,106,170,172,186,84,187,188,109,189],"review work item","review work","escalation","file","quality","metadata","iterate","evaluate","path"]