[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C0WV8GH1M4RAHTP144552Z":3,"skill-same:01M7C0WV8GH1M4RAHTP144552Z":115},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7C0WV8GH1M4RAHTP144552Z","setup-agent-mode",null,"Set up Agent mode globally or in one repository: install its skills and shared files, interview model preferences, research current model docs and pricing, recommend the model and reasoning effort for each role, then write the delegation profile, the Claude Code worker agents, and the session hooks. Use for \u002Fsetup-agent-mode, configure agent mode, choosing models for agent roles, changing its execution profile, or turning automatic Agent mode routing on or off.","MateuszRomek\u002Fskills","MateuszRomek","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F46934668?v=4","01M7C0PY1M3ENSCMRTV5QZJQG4","Mateusz Romek","01M7C0PY2JNPFD2DP2HQ0YW7BV",0,"MIT","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: setup-agent-mode\ndescription: \"Set up Agent mode globally or in one repository: install its skills and shared files, interview model preferences, research current model docs and pricing, recommend the model and reasoning effort for each role, then write the delegation profile, the Claude Code worker agents, and the session hooks. Use for \u002Fsetup-agent-mode, configure agent mode, choosing models for agent roles, changing its execution profile, or turning automatic Agent mode routing on or off.\"\n---\n\n# Setup Agent mode\n\nSet up Agent mode for one **scope**, `global` or `repo`, and install every piece that scope needs. The scope decides every path in this skill. Read paths from the table below, never from memory.\n\n| Piece | `global` | `repo` |\n| --- | --- | --- |\n| Agent mode skills | `~\u002F.agents\u002Fskills`, via `npx skills add MateuszRomek\u002Fskills -g` | `.agents\u002Fskills`, via `npx skills add MateuszRomek\u002Fskills` |\n| Shared files (`\u003Cagent-mode-dir>`) | `~\u002F.agents\u002Fagent-mode` | `.agents\u002Fagent-mode` |\n| Profile | `~\u002F.agents\u002Fagent-mode\u002Fmodels.\u003Chost>.yaml` | `.agents\u002Fagent-mode\u002Fmodels.\u003Chost>.yaml` |\n| Claude Code workers | `$CLAUDE_CONFIG_DIR\u002Fagents` (default `~\u002F.claude\u002Fagents`) | `.claude\u002Fagents` |\n| Session hooks | `$CLAUDE_CONFIG_DIR\u002Fsettings.json`, `$CODEX_HOME\u002Fhooks.json` | `.claude\u002Fsettings.json`, `.codex\u002Fhooks.json` |\n| Verification skill | not offered | offered in step 14 |\n\nA `global` setup touches nothing in the current repository. A `repo` setup touches nothing in the home directory, and its files are meant to be committed. When both exist, the repository profile wins for that checkout. The selected profile is the only persistent source of delegation limits, worker counts, models, reasoning efforts, and inheritance choices. [`assets\u002Fagent-mode\u002FROUTING.md`](assets\u002Fagent-mode\u002FROUTING.md) defines only the stable role names and their work semantics; it contains no execution defaults.\n\n## Steps\n\n### 1. Choose the scope\n\nAsk the user which scope to set up, unless their request already names it. Explain the choice in one line each: `global` gives the same setup in every repository on this machine, and `repo` puts the setup in this repository so teammates and cloud environments get it from git. Recommend `global` for a personal setup. Detect what already exists in both scopes, using the table, and show it with the question.\n\nComplete this step when the user has named one scope. Use that scope for every later step.\n\n### 2. Install the Agent mode skills\n\nCheck the scope's skills directory for `agent-mode` and the skills its playbooks route to. When any is missing, show the scope's install command and run it after the user confirms. The installer asks which skills and which agents to install.\n\nComplete this step when `agent-mode` exists in the scope's skills directory.\n\n### 3. Install the shared Agent mode files\n\nRead [`assets\u002Fagent-mode\u002FHOST-COMPATIBILITY.md`](assets\u002Fagent-mode\u002FHOST-COMPATIBILITY.md). Copy the contents of `assets\u002Fagent-mode` from this skill directory to the scope's `\u003Cagent-mode-dir>`. Create the destination when it does not exist. Refresh the shared reference and agent definitions on every run, but preserve every existing `models.*.yaml` profile.\n\nFor the `repo` scope, keep `.agents\u002Fagent-mode\u002Fmodels.\u003Chost>.yaml` trackable by git. If an ignore rule covers it, narrow that rule or add a profile-specific exception. Do not change unrelated ignore rules.\n\nComplete this step when the destination's `HOST-COMPATIBILITY.md`, `ROUTING.md`, `session-start.md`, both files under `agents`, and both scripts under `hooks` match the packaged assets.\n\n### 4. Detect the host and available models\n\nResolve the host through the reference above. If the runtime does not identify itself, ask the user which host runs this session before writing a host-specific file.\n\nThe host decides which models exist for this profile. Some hosts route only their own vendor's models, such as Claude Code with Anthropic models and Codex with OpenAI models. Others front several providers, such as T3 Code. Build the host's model catalog from these sources, in order:\n\n1. The live delegation-tool schema or model catalog. It is authoritative.\n2. The host's own documentation, when the live schema lists no models. Research it with the host protocol in [`references\u002Fmodel-advisor.md`](references\u002Fmodel-advisor.md).\n3. The user, who confirms every identifier that came from documentation, because documentation can lag the installed version.\n\nThe catalog is done when you know which providers the host reaches, every assignable model identifier, the reasoning efforts per model, and whether a subagent can run a different model from its parent. If no source yields identifiers, the only eligible worker assignment to propose is `inherit-parent`, and the user must still confirm it. Never write an identifier that neither the live schema nor the user confirmed.\n\nRecord which controls the host exposes. These may include model, reasoning effort, concurrency, and a per-agent token budget. Do not promise a control the host cannot enforce. Account count is not a routing field unless the host exposes account selection directly.\n\n### 5. Interview the user about models\n\nAsk before researching or proposing. Use one compact structured question when the host supports it. Otherwise ask concise questions in chat. Skip anything the user already supplied.\n\nCover these decisions:\n\n- what to optimize for, such as strongest results, balanced quality and cost, lowest practical cost, lowest latency, or a custom split by role;\n- how the user pays: API tokens, a subscription plan with usage limits, or both;\n- the spend or usage budget and its unit, such as per top-level run, per delegated worker, or per day, when the user has a real limit;\n- which host-confirmed models the user prefers, wants for a specific job, or wants excluded, and the reason for each preference;\n- whether delegation is enabled at all.\n\nRecord each stated preference with its reason. A preference outranks a heuristic in the recommendation.\n\nThe interview is done when you know the optimization goal, the billing model, the eligible model set, and every stated preference. Leave limits and rosters to step 8, where you recommend them.\n\n### 6. Research the eligible models\n\nRead [`references\u002Fmodel-advisor.md`](references\u002Fmodel-advisor.md). Research every model in the host catalog that the user left eligible, with the model protocol it defines, then classify every role in `ROUTING.md` into its demand classes. The live host catalog still decides which identifiers are valid. Research decides which valid identifier fits each role.\n\n### 7. Load current state\n\nThe write target is the scope's profile. Load it when it exists. When it is absent, load the active profile selected by `HOST-COMPATIBILITY.md` as the starting proposal. This lets a profile from the other scope seed the first one in this scope without changing its assignments or deleting it.\n\nShow the write target and the active profile separately. If a higher-precedence profile exists while writing a lower one, name it and explain that this checkout will keep using it. For example, a repository profile masks the global profile.\n\nTreat a version 2 profile as the current proposal to review, not proof that its tradeoffs still match the user's goal. Compare its assignments with the research and flag each one the research no longer supports. Treat every earlier version as unconfigured: it may inform a proposal, but every limit and route must be reconfirmed before writing version 2. Until then, Agent mode starts no workers.\n\n### 8. Recommend and confirm\n\nPresent the recommendation in the format `references\u002Fmodel-advisor.md` defines: every role with its class, execution, model, effort, relative cost, and a one-clause reason, followed by a cheaper and a stronger alternative and the research sources. Keep it inside the eligible model set and budget. If the budget cannot support the requested quality, say so and offer the smallest useful adjustment.\n\nRecommend the delegation limits with it:\n\n- the maximum total number of subagent starts in one top-level task, including every nested workflow;\n- the maximum number of concurrently active subagents in that task;\n- the roster length of every `workers` route, and any host-supported per-worker budget controls.\n\nShow the write scope and path and mark stale identifiers. Ask the user to confirm or revise the complete profile. Recommendations are proposals, not defaults. Write no limit, roster, model, effort, inheritance, or coordinator route until the user confirms it. `inherit-parent` is valid only when the user explicitly selects it for that roster entry.\n\n### 9. Validate\n\nThe file's top-level `host` must equal the resolved host slug. Every explicit model and reasoning effort must be supported by the current host. An explicitly selected `inherit-parent` entry passes structural validation. Reject unavailable combinations before writing. Run `python3 \u003Cskill-dir>\u002Fscripts\u002Fvalidate-profile.py \u003Cprofile-path> \u003Cagent-mode-dir>\u002FROUTING.md`. Then run `python3 \u003Cskill-dir>\u002Fscripts\u002Faudit-routing.py \u003Cagent-mode-dir>`. Structural validation checks the version 2 contract; live host validation remains the authority for model identifiers and reasoning efforts.\n\n### 10. Write the rule\n\nWrite the confirmed profile to the scope's profile path so reruns stay idempotent. Preserve every other profile and every unrelated file. Use this shape:\n\n```yaml\nversion: 2\nhost: \u003Cresolved-host-slug>\nintent:\n  optimization: \u003Cconfirmed-routing-goal>\n  budget: \u003Cconfirmed-limit-with-unit-or-none>\ndelegation:\n  mode: enabled\n  max-workers-per-task: \u003Cconfirmed-positive-integer-or-unlimited>\n  max-concurrent-workers: \u003Cconfirmed-positive-integer-or-host-limit>\nroles:\n  feature:\n    execution: coordinator\n  how-explorer:\n    execution: workers\n    workers:\n      - model: \u003Cconfirmed-model-id>\n        reasoning: \u003Cconfirmed-reasoning-effort>\n  arena-runners:\n    execution: workers\n    workers:\n      - model: \u003Cconfirmed-model-id>\n        reasoning: \u003Cconfirmed-reasoning-effort>\n```\n\nThe angle-bracketed values describe the schema. Replace them with user-confirmed, host-validated values. Quote intent strings when YAML could interpret them as another type. Include every role listed in `ROUTING.md` when delegation is enabled. A `coordinator` route has no `workers`. A `workers` route has a non-empty roster, and that list is the complete configured capacity for one invocation of the role. To disable all delegation, keep `intent`, write only `mode: disabled` inside `delegation`, and omit `roles` and all limits. Do not maintain another role list here.\n\n### 11. Pin Claude Code workers\n\nSkip this step for every host other than `claude-code`. Claude Code's delegation tool selects a model but not a reasoning effort, so each `model` and `reasoning` pair in the profile needs its own subagent definition. Run `python3 \u003Cskill-dir>\u002Fscripts\u002Fclaude-agents.py \u003Cscope>` from the repository, with the same scope as the profile. It writes one `am-\u003Cmodel>-\u003Creasoning>.md` per pair to the scope's workers directory. It removes `am-*` definitions it wrote earlier that the profile no longer routes to, and keeps every other agent file. Report the agent names it prints.\n\n### 12. Route sessions into Agent mode\n\nAsk whether every new session should load the Agent mode routing instruction. The default is on. A `SessionStart` hook prints `session-start.md` from the shared files on startup, resume, clear, and compact, so the user does not invoke `agent-mode` on every prompt. The hook reads the file on each run, so a refreshed `session-start.md` takes effect without touching the hook.\n\nRun `python3 \u003Cskill-dir>\u002Fscripts\u002Fsession-hook.py \u003Chost> \u003Cscope> \u003Con|off>` from the repository, with the same scope as the profile. It merges one hook entry into the host's settings file and keeps every other hook. For `claude-code` it also installs two hooks from the shared `hooks` directory. A `PostToolUse` hook on `Skill` records that `agent-mode` ran in the session, and a `UserPromptSubmit` hook then reminds every later prompt to keep following the skill. `off` removes all three. Reruns replace the entries instead of adding more. The settings files are the scope's session hooks row.\n\nCodex runs a new or changed hook only after the user approves it in `\u002Fhooks`. Tell the user to open `\u002Fhooks` in Codex and approve the Agent mode entry. If a `repo` hook is missing from `\u002Fhooks`, the user marks the project trusted in Codex first. Codex keeps the approval while the hook command is unchanged, so editing `session-start.md` needs no new approval. For any other host, report that it has no supported hook and offer to add the contents of `session-start.md` to the host's standing instruction file instead.\n\n### 13. Confirm\n\nShow the host, delegation mode, optimization goal, budget or cost posture, total task worker limit, concurrency limit, file path, coordinator roles, explicit worker rosters, intentionally inherited entries, any unavailable combinations rejected during setup, and the Claude Code worker agents written in step 11, and the session hook state with the settings file it changed. Then list every row of the scope table with its path and state for the chosen scope. Run `python3 \u003Cskill-dir>\u002Fscripts\u002Fselect-profile.py \u003Chost>` from the repository and report the scope and path it prints. Say whether a higher-precedence profile masks the one just written. Re-running this skill updates only the selected scope for the current host. A project profile is ready for the user's commit and push; setup itself does not stage, commit, or push it. A global profile stays on this machine, so cloud environments do not receive it.\n\nComplete this step when every row is installed, or marked not applicable with its reason, such as the workers row on a host other than Claude Code.\n\n### 14. Offer a verification skill (optional)\n\nSkip this step for the `global` scope. Check whether the project has a way to drive the real app for proof (a `verify-*` skill, or an existing harness). If not, offer once: \"want a project-local verification skill, so agents can drive the app the way a user does and prove changes work? I can generate one with \u002Fcreate-verification-skill.\" On yes, invoke `\u002Fcreate-verification-skill` from its installed location. On no, move on without pushing.\n","# Setup Agent mode\n\nSet up Agent mode for one **scope**, `global` or `repo`, and install every piece that scope needs. The scope decides every path in this skill. Read paths from the table below, never from memory.\n\n| Piece | `global` | `repo` |\n| --- | --- | --- |\n| Agent mode skills | `~\u002F.agents\u002Fskills`, via `npx skills add MateuszRomek\u002Fskills -g` | `.agents\u002Fskills`, via `npx skills add MateuszRomek\u002Fskills` |\n| Shared files (`\u003Cagent-mode-dir>`) | `~\u002F.agents\u002Fagent-mode` | `.agents\u002Fagent-mode` |\n| Profile | `~\u002F.agents\u002Fagent-mode\u002Fmodels.\u003Chost>.yaml` | `.agents\u002Fagent-mode\u002Fmodels.\u003Chost>.yaml` |\n| Claude Code workers | `$CLAUDE_CONFIG_DIR\u002Fagents` (default `~\u002F.claude\u002Fagents`) | `.claude\u002Fagents` |\n| Session hooks | `$CLAUDE_CONFIG_DIR\u002Fsettings.json`, `$CODEX_HOME\u002Fhooks.json` | `.claude\u002Fsettings.json`, `.codex\u002Fhooks.json` |\n| Verification skill | not offered | offered in step 14 |\n\nA `global` setup touches nothing in the current repository. A `repo` setup touches nothing in the home directory, and its files are meant to be committed. When both exist, the repository profile wins for that checkout. The selected profile is the only persistent source of delegation limits, worker counts, models, reasoning efforts, and inheritance choices. [`assets\u002Fagent-mode\u002FROUTING.md`](assets\u002Fagent-mode\u002FROUTING.md) defines only the stable role names and their work semantics; it contains no execution defaults.\n\n## Steps\n\n### 1. Choose the scope\n\nAsk the user which scope to set up, unless their request already names it. Explain the choice in one line each: `global` gives the same setup in every repository on this machine, and `repo` puts the setup in this repository so teammates and cloud environments get it from git. Recommend `global` for a personal setup. Detect what already exists in both scopes, using the table, and show it with the question.\n\nComplete this step when the user has named one scope. Use that scope for every later step.\n\n### 2. Install the Agent mode skills\n\nCheck the scope's skills directory for `agent-mode` and the skills its playbooks route to. When any is missing, show the scope's install command and run it after the user confirms. The installer asks which skills and which agents to install.\n\nComplete this step when `agent-mode` exists in the scope's skills directory.\n\n### 3. Install the shared Agent mode files\n\nRead [`assets\u002Fagent-mode\u002FHOST-COMPATIBILITY.md`](assets\u002Fagent-mode\u002FHOST-COMPATIBILITY.md). Copy the contents of `assets\u002Fagent-mode` from this skill directory to the scope's `\u003Cagent-mode-dir>`. Create the destination when it does not exist. Refresh the shared reference and agent definitions on every run, but preserve every existing `models.*.yaml` profile.\n\nFor the `repo` scope, keep `.agents\u002Fagent-mode\u002Fmodels.\u003Chost>.yaml` trackable by git. If an ignore rule covers it, narrow that rule or add a profile-specific exception. Do not change unrelated ignore rules.\n\nComplete this step when the destination's `HOST-COMPATIBILITY.md`, `ROUTING.md`, `session-start.md`, both files under `agents`, and both scripts under `hooks` match the packaged assets.\n\n### 4. Detect the host and available models\n\nResolve the host through the reference above. If the runtime does not identify itself, ask the user which host runs this session before writing a host-specific file.\n\nThe host decides which models exist for this profile. Some hosts route only their own vendor's models, such as Claude Code with Anthropic models and Codex with OpenAI models. Others front several providers, such as T3 Code. Build the host's model catalog from these sources, in order:\n\n1. The live delegation-tool schema or model catalog. It is authoritative.\n2. The host's own documentation, when the live schema lists no models. Research it with the host protocol in [`references\u002Fmodel-advisor.md`](references\u002Fmodel-advisor.md).\n3. The user, who confirms every identifier that came from documentation, because documentation can lag the installed version.\n\nThe catalog is done when you know which providers the host reaches, every assignable model identifier, the reasoning efforts per model, and whether a subagent can run a different model from its parent. If no source yields identifiers, the only eligible worker assignment to propose is `inherit-parent`, and the user must still confirm it. Never write an identifier that neither the live schema nor the user confirmed.\n\nRecord which controls the host exposes. These may include model, reasoning effort, concurrency, and a per-agent token budget. Do not promise a control the host cannot enforce. Account count is not a routing field unless the host exposes account selection directly.\n\n### 5. Interview the user about models\n\nAsk before researching or proposing. Use one compact structured question when the host supports it. Otherwise ask concise questions in chat. Skip anything the user already supplied.\n\nCover these decisions:\n\n- what to optimize for, such as strongest results, balanced quality and cost, lowest practical cost, lowest latency, or a custom split by role;\n- how the user pays: API tokens, a subscription plan with usage limits, or both;\n- the spend or usage budget and its unit, such as per top-level run, per delegated worker, or per day, when the user has a real limit;\n- which host-confirmed models the user prefers, wants for a specific job, or wants excluded, and the reason for each preference;\n- whether delegation is enabled at all.\n\nRecord each stated preference with its reason. A preference outranks a heuristic in the recommendation.\n\nThe interview is done when you know the optimization goal, the billing model, the eligible model set, and every stated preference. Leave limits and rosters to step 8, where you recommend them.\n\n### 6. Research the eligible models\n\nRead [`references\u002Fmodel-advisor.md`](references\u002Fmodel-advisor.md). Research every model in the host catalog that the user left eligible, with the model protocol it defines, then classify every role in `ROUTING.md` into its demand classes. The live host catalog still decides which identifiers are valid. Research decides which valid identifier fits each role.\n\n### 7. Load current state\n\nThe write target is the scope's profile. Load it when it exists. When it is absent, load the active profile selected by `HOST-COMPATIBILITY.md` as the starting proposal. This lets a profile from the other scope seed the first one in this scope without changing its assignments or deleting it.\n\nShow the write target and the active profile separately. If a higher-precedence profile exists while writing a lower one, name it and explain that this checkout will keep using it. For example, a repository profile masks the global profile.\n\nTreat a version 2 profile as the current proposal to review, not proof that its tradeoffs still match the user's goal. Compare its assignments with the research and flag each one the research no longer supports. Treat every earlier version as unconfigured: it may inform a proposal, but every limit and route must be reconfirmed before writing version 2. Until then, Agent mode starts no workers.\n\n### 8. Recommend and confirm\n\nPresent the recommendation in the format `references\u002Fmodel-advisor.md` defines: every role with its class, execution, model, effort, relative cost, and a one-clause reason, followed by a cheaper and a stronger alternative and the research sources. Keep it inside the eligible model set and budget. If the budget cannot support the requested quality, say so and offer the smallest useful adjustment.\n\nRecommend the delegation limits with it:\n\n- the maximum total number of subagent starts in one top-level task, including every nested workflow;\n- the maximum number of concurrently active subagents in that task;\n- the roster length of every `workers` route, and any host-supported per-worker budget controls.\n\nShow the write scope and path and mark stale identifiers. Ask the user to confirm or revise the complete profile. Recommendations are proposals, not defaults. Write no limit, roster, model, effort, inheritance, or coordinator route until the user confirms it. `inherit-parent` is valid only when the user explicitly selects it for that roster entry.\n\n### 9. Validate\n\nThe file's top-level `host` must equal the resolved host slug. Every explicit model and reasoning effort must be supported by the current host. An explicitly selected `inherit-parent` entry passes structural validation. Reject unavailable combinations before writing. Run `python3 \u003Cskill-dir>\u002Fscripts\u002Fvalidate-profile.py \u003Cprofile-path> \u003Cagent-mode-dir>\u002FROUTING.md`. Then run `python3 \u003Cskill-dir>\u002Fscripts\u002Faudit-routing.py \u003Cagent-mode-dir>`. Structural validation checks the version 2 contract; live host validation remains the authority for model identifiers and reasoning efforts.\n\n### 10. Write the rule\n\nWrite the confirmed profile to the scope's profile path so reruns stay idempotent. Preserve every other profile and every unrelated file. Use this shape:\n\n```yaml\nversion: 2\nhost: \u003Cresolved-host-slug>\nintent:\n  optimization: \u003Cconfirmed-routing-goal>\n  budget: \u003Cconfirmed-limit-with-unit-or-none>\ndelegation:\n  mode: enabled\n  max-workers-per-task: \u003Cconfirmed-positive-integer-or-unlimited>\n  max-concurrent-workers: \u003Cconfirmed-positive-integer-or-host-limit>\nroles:\n  feature:\n    execution: coordinator\n  how-explorer:\n    execution: workers\n    workers:\n      - model: \u003Cconfirmed-model-id>\n        reasoning: \u003Cconfirmed-reasoning-effort>\n  arena-runners:\n    execution: workers\n    workers:\n      - model: \u003Cconfirmed-model-id>\n        reasoning: \u003Cconfirmed-reasoning-effort>\n```\n\nThe angle-bracketed values describe the schema. Replace them with user-confirmed, host-validated values. Quote intent strings when YAML could interpret them as another type. Include every role listed in `ROUTING.md` when delegation is enabled. A `coordinator` route has no `workers`. A `workers` route has a non-empty roster, and that list is the complete configured capacity for one invocation of the role. To disable all delegation, keep `intent`, write only `mode: disabled` inside `delegation`, and omit `roles` and all limits. Do not maintain another role list here.\n\n### 11. Pin Claude Code workers\n\nSkip this step for every host other than `claude-code`. Claude Code's delegation tool selects a model but not a reasoning effort, so each `model` and `reasoning` pair in the profile needs its own subagent definition. Run `python3 \u003Cskill-dir>\u002Fscripts\u002Fclaude-agents.py \u003Cscope>` from the repository, with the same scope as the profile. It writes one `am-\u003Cmodel>-\u003Creasoning>.md` per pair to the scope's workers directory. It removes `am-*` definitions it wrote earlier that the profile no longer routes to, and keeps every other agent file. Report the agent names it prints.\n\n### 12. Route sessions into Agent mode\n\nAsk whether every new session should load the Agent mode routing instruction. The default is on. A `SessionStart` hook prints `session-start.md` from the shared files on startup, resume, clear, and compact, so the user does not invoke `agent-mode` on every prompt. The hook reads the file on each run, so a refreshed `session-start.md` takes effect without touching the hook.\n\nRun `python3 \u003Cskill-dir>\u002Fscripts\u002Fsession-hook.py \u003Chost> \u003Cscope> \u003Con|off>` from the repository, with the same scope as the profile. It merges one hook entry into the host's settings file and keeps every other hook. For `claude-code` it also installs two hooks from the shared `hooks` directory. A `PostToolUse` hook on `Skill` records that `agent-mode` ran in the session, and a `UserPromptSubmit` hook then reminds every later prompt to keep following the skill. `off` removes all three. Reruns replace the entries instead of adding more. The settings files are the scope's session hooks row.\n\nCodex runs a new or changed hook only after the user approves it in `\u002Fhooks`. Tell the user to open `\u002Fhooks` in Codex and approve the Agent mode entry. If a `repo` hook is missing from `\u002Fhooks`, the user marks the project trusted in Codex first. Codex keeps the approval while the hook command is unchanged, so editing `session-start.md` needs no new approval. For any other host, report that it has no supported hook and offer to add the contents of `session-start.md` to the host's standing instruction file instead.\n\n### 13. Confirm\n\nShow the host, delegation mode, optimization goal, budget or cost posture, total task worker limit, concurrency limit, file path, coordinator roles, explicit worker rosters, intentionally inherited entries, any unavailable combinations rejected during setup, and the Claude Code worker agents written in step 11, and the session hook state with the settings file it changed. Then list every row of the scope table with its path and state for the chosen scope. Run `python3 \u003Cskill-dir>\u002Fscripts\u002Fselect-profile.py \u003Chost>` from the repository and report the scope and path it prints. Say whether a higher-precedence profile masks the one just written. Re-running this skill updates only the selected scope for the current host. A project profile is ready for the user's commit and push; setup itself does not stage, commit, or push it. A global profile stays on this machine, so cloud environments do not receive it.\n\nComplete this step when every row is installed, or marked not applicable with its reason, such as the workers row on a host other than Claude Code.\n\n### 14. Offer a verification skill (optional)\n\nSkip this step for the `global` scope. Check whether the project has a way to drive the real app for proof (a `verify-*` skill, or an existing harness). If not, offer once: \"want a project-local verification skill, so agents can drive the app the way a user does and prove changes work? I can generate one with \u002Fcreate-verification-skill.\" On yes, invoke `\u002Fcreate-verification-skill` from its installed location. On no, move on without pushing.\n",{"name":5,"description":7},"main","b604251d9d562521f58b39a240910968f6564a89",".agents\u002Fskills\u002Fsetup-agent-mode","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills","https:\u002F\u002Fgithub.com\u002FMateuszRomek","mateuszromek.com","2026-11-13 01:35:46",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add MateuszRomek\u002Fskills --skill setup-agent-mode",{"tool":37,"command":38},"bunx","bunx skills add MateuszRomek\u002Fskills --skill setup-agent-mode",{"tool":40,"command":41},"pnpm","pnpm dlx skills add MateuszRomek\u002Fskills --skill setup-agent-mode","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002FSKILL.md",true,[45,51,57,61,67,71,75,79,83,87,91,95,99,103,107,111],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",239,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fagents\u002Fopenai.yaml",{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"assets\u002Fagent-mode\u002Fagents\u002Fagent-mode-agent.md","ASSET","资产文件",809,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fassets\u002Fagent-mode\u002Fagents\u002Fagent-mode-agent.md",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"assets\u002Fagent-mode\u002Fagents\u002Fcomment-sicko.md",2230,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fassets\u002Fagent-mode\u002Fagents\u002Fcomment-sicko.md",{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"assets\u002Fagent-mode\u002Fhooks\u002Fagent-mode-mark.sh","SCRIPT","脚本",425,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fassets\u002Fagent-mode\u002Fhooks\u002Fagent-mode-mark.sh",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"assets\u002Fagent-mode\u002Fhooks\u002Fagent-mode-reminder.sh",1391,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fassets\u002Fagent-mode\u002Fhooks\u002Fagent-mode-reminder.sh",{"path":72,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":73,"sourceHtmlUrl":74},"assets\u002Fagent-mode\u002FHOST-COMPATIBILITY.md",8761,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fassets\u002Fagent-mode\u002FHOST-COMPATIBILITY.md",{"path":76,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":77,"sourceHtmlUrl":78},"assets\u002Fagent-mode\u002FROUTING.md",3643,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fassets\u002Fagent-mode\u002FROUTING.md",{"path":80,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":81,"sourceHtmlUrl":82},"assets\u002Fagent-mode\u002Fsession-start.md",741,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fassets\u002Fagent-mode\u002Fsession-start.md",{"path":84,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fmodel-advisor.md",5784,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Freferences\u002Fmodel-advisor.md",{"path":88,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Faudit-routing.py",3732,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fscripts\u002Faudit-routing.py",{"path":92,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":93,"sourceHtmlUrl":94},"scripts\u002Fclaude-agents.py",2983,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fscripts\u002Fclaude-agents.py",{"path":96,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":97,"sourceHtmlUrl":98},"scripts\u002Fselect-profile.py",2272,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fscripts\u002Fselect-profile.py",{"path":100,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":101,"sourceHtmlUrl":102},"scripts\u002Fsession-hook.py",3859,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fscripts\u002Fsession-hook.py",{"path":104,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":105,"sourceHtmlUrl":106},"scripts\u002Ftest_claude_agents.py",2269,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fscripts\u002Ftest_claude_agents.py",{"path":108,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":109,"sourceHtmlUrl":110},"scripts\u002Ftest_session_hook.py",5057,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fscripts\u002Ftest_session_hook.py",{"path":112,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":113,"sourceHtmlUrl":114},"scripts\u002Fvalidate-profile.py",8390,"https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsetup-agent-mode\u002Fscripts\u002Fvalidate-profile.py",[116,123,130,137,144,151],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":19},"01M7C0YZ4R20ZCCZVCSMETEX5S","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":19},"01M7C0YVJJ1SJD9A5Z9RVGZCHN","wizard","Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwizard\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":19},"01M7C0YR2G4WDJ6C0HE05G6MRD","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Searches available evidence sources and returns a cited account of decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":19},"01M7C0YND1NS2EFSS21JGC7EFX","wayfinder","Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[],{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":19},"01M7C0YH23EQCKD3R92V3BCS91","unslop","Cut AI tells from prose. Use before writing or revising any reply, doc, PR description, commit message, or skill text another reader will see, or for \u002Funslop.","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":19},"01M7C0YF7BZVR2VXKS425SFMY0","typescript-best-practices","TypeScript best practices. Use when reading or editing any .ts or .tsx file.","https:\u002F\u002Fgithub.com\u002FMateuszRomek\u002Fskills\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript-best-practices\u002FSKILL.md",[],[]]