[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ASPAKFY045KHR92Y4QFTWV":3,"skill-same:01M7ASPAKFY045KHR92Y4QFTWV":54},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M7ASPAKFY045KHR92Y4QFTWV","start-session",null,"Open a Claude Code working session in a fresh, isolated git worktree, so the user can start a task with a single \u002Fstart-session \u003Cname>. Use at the START of a session when the user says \"start session\", \"start a worktree\", \"spin up a worktree for ABC-123\", \"begin work on \u003Cticket>\", or passes a name\u002Fticket to work under. Creates and ENTERS a worktree via the EnterWorktree tool (never `git worktree add`) under .claude\u002Fworktrees\u002F, named exactly after the argument, on a local branch `worktree-\u003Cargument>`. Reports what the worktree inherited (`.worktreeinclude` copies, symlinked node_modules) and whether its `.env` still points at the main checkout's stack. If the argument is a JIRA key (e.g. ABC-123, PROJ-1505), also loads that story with the Atlassian CLI (`acli`) when available and summarizes the implementation ask. Also renames the session to the argument (the same effect as `\u002Frename \u003CNAME>`) so it's easy to find in `\u002Fresume`. Then stops and waits — it sets up the workspace and context, it does not implement.","ozzycodes2\u002Fclaudellum","ozzycodes2","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F21285094?v=4","01M7ASJ57KTP519F96S4QGM7C5","Osniel Quintana","01M7ASJ589JS8S075AA92Y08S4",1,"MIT","https:\u002F\u002Fgithub.com\u002Fozzycodes2\u002Fclaudellum\u002Fblob\u002Fmain\u002Fsession-mgmt\u002Fskills\u002Fstart-session\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: start-session\ndescription: >-\n  Open a Claude Code working session in a fresh, isolated git worktree, so the\n  user can start a task with a single \u002Fstart-session \u003Cname>. Use at the START of a\n  session when the user says \"start session\", \"start a worktree\", \"spin up a\n  worktree for ABC-123\", \"begin work on \u003Cticket>\", or passes a name\u002Fticket to work\n  under. Creates and ENTERS a worktree via the EnterWorktree tool (never `git\n  worktree add`) under .claude\u002Fworktrees\u002F, named exactly after the argument, on a\n  local branch `worktree-\u003Cargument>`. Reports what the worktree inherited\n  (`.worktreeinclude` copies, symlinked node_modules) and whether its `.env` still\n  points at the main checkout's stack. If the argument is a JIRA key (e.g.\n  ABC-123, PROJ-1505), also loads that story with the Atlassian CLI (`acli`) when\n  available and summarizes the implementation ask. Also renames the session to the\n  argument (the same effect as `\u002Frename \u003CNAME>`) so it's easy to find in `\u002Fresume`.\n  Then stops and waits — it sets up the workspace and context, it does not implement.\nlicense: MIT\ncompatibility: >-\n  Requires a git repo (EnterWorktree branches off a fresh origin default; honors\n  worktree.baseRef: fresh). JIRA loading is optional and needs the Atlassian CLI\n  (`acli`) installed and authenticated (`acli auth login`). EnterWorktree is\n  deferred — load it via ToolSearch before calling.\nargument-hint: \"\u003Cworktree\u002Fbranch name — a JIRA key like ABC-123, or any slug like random-misc>\"\ndisable-model-invocation: true\n---\n\n# Start Session\n\nBegin a working session inside a clean, isolated git worktree named after the task,\nthen load whatever context that task needs — and stop there. Point is a correct,\nlow-friction start: worktree becomes the session's working directory so no `cd`\ngymnastics follow, and if the task is a JIRA ticket its story is on screen before the\nuser types another word.\n\n## Core principles\n\n1. **EnterWorktree, never `git worktree add`.** EnterWorktree creates the worktree\n   *and* switches the session's cwd into it. `git worktree add` into a path (especially\n   `\u002Ftmp`) does not move the session cwd — Bash resets to repo root after every\n   call, forcing a `cd …\u002Fworktree &&` prefix on every command for rest of the\n   session. This skill exists to prevent that. Use the tool.\n2. **The argument is the name — verbatim.** Whatever the user passes (`ABC-123`,\n   `random-misc`) is the worktree directory name. Do not rename, slugify, or prefix it.\n   EnterWorktree derives the branch as `worktree-\u003CNAME>` — that prefix is the tool's, not\n   yours to add or strip. Report the branch it actually created; do not claim `\u003CNAME>`.\n3. **Load context, don't act.** Create the worktree, load the story if there is one,\n   report, then **stop and wait**. Do not read the codebase for an implementation plan,\n   do not write code, do not enter plan mode — unless the user asks next.\n4. **Degrade gracefully.** JIRA loading is a bonus, not a gate. If the argument isn't a\n   ticket, or `acli` is missing or unauthenticated, skip that step with a one-line note\n   and still deliver the worktree.\n5. **Rename the session to `NAME`.** `\u002Frename` is a user-typed command with no callable\n   tool. What actually makes a name show up in `\u002Fresume` is a `custom-title` record\n   appended to the session's own transcript JSONL file — not the `name` field of\n   `~\u002F.claude\u002Fsessions\u002F\u003Cpid>.json`. That pid file only drives the live \"concurrent\n   sessions\" indicator while the process runs, and is deleted the instant the process\n   exits, so writing it alone renames nothing durable. Write the transcript record\n   directly (see Phase 2.5); mirror into the pid file too, best-effort, for the live\n   indicator.\n6. **One plain command per Bash call, from Phase 2 onward.** The moment EnterWorktree\n   returns, the session is worktree-isolated, and Claude Code's isolation validator\n   refuses any Bash line it cannot statically prove stays inside the worktree:\n   *\"too complex to verify that it stays inside the worktree; break it into plain,\n   separate commands.\"* It rejects `;` and `&&` chains, `$(…)` substitution, and\n   heredocs — **even when every component is read-only**, and even for a bare\n   `acli jira workitem view`. No permission rule can pre-empt it. So after Phase 2,\n   never join commands: issue them as separate Bash calls, in parallel in a single\n   message where they're independent. That costs no extra turns; a refusal costs\n   several.\n7. **Execute silently; report once.** Don't narrate phase transitions, tool calls, or\n   intermediate checks (\"Preconditions pass...\", \"Now Phase 2.5...\", \"Verifying...\").\n   Run Phases 0-3 without commentary. The only output is the Phase 4 report — unless a\n   real precondition fails and needs a user decision (that's a stop, not narration).\n\n## Workflow\n\n### Phase 0 — Parse the argument (no tools)\n\n- `NAME` = the argument, used verbatim. If none given, ask the user for one (or a\n  ticket) before doing anything — do not auto-generate a random name; the name carries\n  meaning here.\n- Validate `NAME` against EnterWorktree's rule: each `\u002F`-separated segment may contain\n  only letters, digits, dots, underscores, and dashes; ≤64 chars total. If it violates\n  this, tell the user and stop.\n- **Is it a JIRA key?** True if `NAME` matches `^[A-Za-z][A-Za-z0-9]*-[0-9]+$`\n  (e.g. `ABC-123`, `PROJ-1505`). Uppercase it for the JIRA lookup only — the worktree\n  and branch keep the exact string the user passed.\n\n### Phase 1 — Preconditions (read-only)\n\n- Confirm a git repo: `git rev-parse --git-dir`. (Outside a repo, EnterWorktree falls\n  back to WorktreeCreate\u002FWorktreeRemove hooks; if none, surface that and stop.)\n- Confirm the session is **not already in a worktree**. EnterWorktree refuses to create\n  a new worktree from inside one. If `git rev-parse --git-common-dir` shows this is\n  already a linked worktree, tell the user (they likely want a fresh top-level session)\n  and stop rather than nesting.\n\n### Phase 2 — Create and enter the worktree\n\n1. Load the deferred tool: `ToolSearch` with query `select:EnterWorktree`.\n2. Call `EnterWorktree({ name: \"\u003CNAME>\" })`. This creates `.claude\u002Fworktrees\u002F\u003CNAME>` on\n   a new branch `worktree-\u003CNAME>`, based on a freshly-fetched origin default branch\n   (`worktree.baseRef: fresh`), and switches the session cwd into it.\n3. Do **not** run `git worktree add`, `git checkout -b`, or any `cd`. The tool does all\n   of it; the branch is created for you.\n\n**Fallback (only if EnterWorktree unavailable):** create the worktree at the\nconventional path — `git worktree add .claude\u002Fworktrees\u002F\u003CNAME> -b worktree-\u003CNAME> origin\u002F\u003Cdefault>`\n— then re-run `ToolSearch select:EnterWorktree` and call `EnterWorktree({ path:\n\".claude\u002Fworktrees\u002F\u003CNAME>\" })` to enter it. If EnterWorktree truly cannot be loaded,\nwarn the user that the session cwd will not follow the worktree and that subsequent\ncommands must use absolute paths \u002F `git -C \u003Cpath>` (do not sprinkle `cd`).\n\n### Phase 2.5 — Persist the session title to `NAME`\n\nGive the session a findable, durable title — the same effect as the user typing\n`\u002Frename \u003CNAME>`. There is no callable tool for it, so write the underlying record\ndirectly. `\u002Fresume`'s picker builds its title list by scanning each session's own\ntranscript file for `{\"type\":\"custom-title\",\"customTitle\":...}` lines (falling back\nto `ai-title` if none exist) — it does **not** read `~\u002F.claude\u002Fsessions\u002F\u003Cpid>.json`.\nThat pid file only drives the live \"concurrent sessions\" indicator while this process\nis running, and gets deleted the instant the process exits, so writing only there\nrenames nothing durable — the change vanishes the moment the session ends.\n\nRun the bundled script — one plain command, no heredoc (Principle 6):\n\n```bash\npython3 \u003Cskill-dir>\u002Fscripts\u002Frename-session.py \"$CLAUDE_CODE_SESSION_ID\" \"\u003CNAME>\"\n```\n\n(Substitute the real absolute path to this skill's `scripts\u002Frename-session.py`.) It\nappends the title records to the transcript and mirrors the name into the live pid\nfile, reporting each on stdout.\n\nEarlier versions inlined this as `python3 - … \u003C\u003C'PY'`. Don't go back to that: a\nheredoc is exactly the shape the worktree-isolation validator refuses, and improvising\naround it means writing a scratch script to `\u002Ftmp` — two more round trips and a\n`Write` that nothing grants.\n\nNotes:\n- The script appends rather than rewriting, because the transcript is being actively\n  written by this very process for the rest of the session. Never read-modify-write it.\n- If `CLAUDE_CODE_SESSION_ID` is unset or no transcript matches, the script prints a\n  one-line skip and exits 0 — a missing name is not worth failing the session over.\n- This renames the session for next time — it takes effect when the session is opened\n  via `\u002Fresume` afterward. It does not repaint the *currently running* process's own\n  terminal title or prompt-box name (only the interactive `\u002Frename` command updates\n  that in-memory state); the pid-file mirror is the closest live-visible approximation.\n\n### Phase 2.6 — Report what the worktree inherited (read-only)\n\nA fresh worktree is not empty of untracked state, and the state it gets can make it look\nready while pointing at another checkout's resources. Establish both, in the new cwd:\n\nIssue these as **separate, parallel Bash calls in one message** (Principle 6) — joining\nthem with `;` is what gets the whole probe refused:\n\n- **`.worktreeinclude`** at the *main checkout's* root: every non-comment line is a\n  gitignored path Claude Code **copies** into the new worktree — usually `.env`. Read the\n  file, then confirm what landed (`ls -la` each path in the worktree). Paths absent from\n  the main checkout are skipped silently, so absence is not an error.\n- **`worktree.symlinkDirectories`** in user settings: those directories (`node_modules`\n  and friends) are **symlinked** back to the main checkout, not copied — so no install\n  step is needed, and none should be run. Use the `Read` tool on\n  `~\u002F.claude\u002Fsettings.json` rather than shelling out to `cat`\u002F`grep`\u002F`jq`.\n\nThen answer the question that decides whether the workspace is usable: **does this\nworktree have its own stack, or is it borrowing the main checkout's?** A copied `.env`\ncarries the source checkout's ports, `COMPOSE_PROJECT_NAME`, and `PGURL`\u002F`DATABASE_URL`\nverbatim. Until something reassigns them, `docker compose`, `just migrate`, `just test`,\nand `just psql` run from this worktree reach the **main checkout's** containers and\ndatabase — silently, with no error to notice.\n\n- **Repo allocates per-worktree ports** (look for it: `just --list | grep -i 'worktree.*port'`):\n  say so and print the exact command, e.g. `just setup_worktree_ports 6320`. **Do not run\n  it.** It claims a range of sequential ports, and only the user knows what their other\n  worktrees already hold.\n- **Repo has no such recipe:** say plainly that no per-worktree isolation exists — the\n  stack has to be run from one checkout at a time, and starting it here will collide with\n  or hijack whatever is already up.\n- **No `.worktreeinclude` at the main root:** the worktree has no `.env`. Name the repo's\n  bootstrap (`just setup`, `cp env.example .env`), or, when there is no `env.example`, say\n  the file has to be reconstructed by hand — and note that a missing dotenv file is\n  usually *silent*, leaving recipes with empty variables and hardcoded fallbacks rather\n  than an error.\n\nAll read-only. Do not run `docker`, `just migrate`, or any stack command to determine this.\n\n### Phase 3 — Load the JIRA story (only if `NAME` is a ticket)\n\n1. Fetch the story with the Atlassian CLI, uppercased key, one call:\n\n   ```bash\n   acli jira workitem view \u003CKEY> --json \\\n     --fields \"summary,issuetype,status,assignee,priority,description,parent,issuelinks\"\n   ```\n\n   Do **not** reach for the Atlassian MCP server — it is disabled, and\n   `mcp__plugin_atlassian_atlassian__*` tools no longer exist.\n2. If the command fails, note it in one line and go to Phase 4 — never block the\n   worktree on it:\n   - `command not found` → \"acli not installed; skipping story load\".\n   - `unauthorized: use 'acli auth login'` → \"acli not authenticated; skipping story\n     load — run `! acli auth login`\". Do not run `acli auth login` yourself; it is an\n     interactive browser flow.\n   - Unknown key or permissions → report the error verbatim in one line.\n3. Read the issue and distill it — do not dump the raw payload. The `description` comes\n   back as Atlassian Document Format (ADF) JSON, so read the text out of the node tree\n   rather than pasting it. Summarize:\n   - **Title \u002F type \u002F status** (one line).\n   - **The implementation ask** — what the ticket wants built or changed, in your words.\n   - **Acceptance criteria** if present, as a short checklist.\n   - Notable links (design, parent epic, blocked-by) if any.\n\n### Phase 4 — Report once, then stop\n\nThis is the *only* narration Phases 0-3 produce. Print a short summary, then wait:\n\n- Worktree: `.claude\u002Fworktrees\u002F\u003CNAME>` · branch `worktree-\u003CNAME>` · based on\n  `origin\u002F\u003Cdefault>`.\n- Session renamed to `\u003CNAME>` (or a one-line note if the rename was skipped).\n- Inherited environment, from Phase 2.6: which `.worktreeinclude` paths were copied, which\n  directories were symlinked, and — when the copied `.env` still points at the main\n  checkout's stack — the exact port-allocation command to run before anything else. Put\n  this above the handoff line. It is the one item that, if missed, sends `just migrate` or\n  `just test` at the wrong database.\n- If a ticket was loaded: the story summary and implementation ask from Phase 3.\n- If not a ticket, or JIRA skipped: say so in one line.\n- End with an explicit handoff, e.g. *\"Workspace ready. What would you like to build?\"*\n\n**Then stop.** Do not begin implementation, exploration, or planning until the user\ngives the next instruction.\n\n## Reducing permission prompts\n\nClaude Code plugins have no mechanism to self-grant permissions — every tool call\nbelow is still gated by the *user's own* `settings.json` (project or\n`~\u002F.claude\u002Fsettings.json`), never by anything this plugin ships. To run this skill\nend-to-end without prompts, add to `permissions.allow`:\n\n- `EnterWorktree`, `ExitWorktree` — the worktree lifecycle tools Phase 2 calls directly.\n- `ToolSearch` — loads deferred tools (`EnterWorktree`); read-only.\n- `Bash(acli jira workitem view *)` — Phase 3's story fetch; read-only.\n- `Bash(git rev-parse *)`, `Bash(git worktree list)` — Phase 1's read-only preconditions\n  (covered already if you blanket-allow `Bash(git *)`).\n- `Bash(cat *)`, `Bash(ls *)`, `Bash(just *)` — Phase 2.6's probe of the inherited\n  environment.\n- Phase 2.5's rename runs under `python3`. There's no way to allowlist one script\n  without allowlisting the interpreter broadly, so treat `Bash(python3 *)` as a\n  deliberate, standalone trust decision, not something to add solely for this skill.\n\nNote that Bash rules are wildcard-matched against the raw command string, where `*`\nspans `\u002F` and spaces — they are not gitignore-style path globs (that matcher is only\nused for `Read`\u002F`Edit` rules). And entering `auto` mode strips every `Bash(...)` allow\nrule in favour of the classifier, so in that mode what matters is `autoMode.allow`,\nnot this list.\n\n## Gotchas\n\n- **EnterWorktree is deferred.** Calling it without a prior `ToolSearch\n  select:EnterWorktree` fails with InputValidationError. Always load it first.\n- **After EnterWorktree, compound Bash lines are refused.** The isolation validator\n  rejects `;`, `&&`, `$(…)` and heredocs regardless of how harmless the components are\n  — it is a static-analysis gate, not a permission check, so no allow rule and no\n  permission mode gets past it. Split the call (Principle 6).\n- **`acli` is a shell command, not a tool.** There is nothing to ToolSearch for; the\n  Atlassian MCP server is disabled and its `mcp__plugin_atlassian_atlassian__*` tools do\n  not exist.\n- **Already in a worktree → EnterWorktree refuses** a new `name`. Don't nest; surface it.\n- **Name rules are strict.** Spaces, `@`, `:` and other punctuation are rejected. Fix\n  with the user rather than silently mangling the name.\n- **`baseRef: fresh` needs the remote.** The base is a freshly-fetched origin default;\n  if offline or the remote unreachable, EnterWorktree may fail — report it plainly.\n- **Don't pre-create the branch.** EnterWorktree makes `worktree-\u003CNAME>` itself; a prior\n  `git checkout -b` of that name will collide with it.\n- **`.worktreeinclude` is read from the main checkout's working tree**, not from the branch\n  being checked out. One that exists only on a feature branch copies nothing, so a repo\n  where it is still in review behaves as if the file were absent.\n- **Copies, not symlinks.** Rotating `.env` in the main checkout does not reach worktrees\n  that already exist, and each worktree is one more on-disk copy of real credentials.\n- **Symlinked `node_modules` is shared, not private.** An install inside a worktree writes\n  through to the main checkout's `node_modules`; a dependency bump here changes it there.\n- **EnterWorktree locks the worktree**, and the lock can outlive the process that took it\n  (`git worktree list --porcelain` shows `locked claude session \u003Cname> (pid …)`). Teardown\n  needs `git worktree unlock \u003Cpath>` first — plain `git worktree remove --force` fails with\n  \"cannot remove a locked working tree\".\n- **JIRA is optional.** A non-ticket name (`random-misc`) is a perfectly valid session;\n  just skip Phase 3.\n","# Start Session\n\nBegin a working session inside a clean, isolated git worktree named after the task,\nthen load whatever context that task needs — and stop there. Point is a correct,\nlow-friction start: worktree becomes the session's working directory so no `cd`\ngymnastics follow, and if the task is a JIRA ticket its story is on screen before the\nuser types another word.\n\n## Core principles\n\n1. **EnterWorktree, never `git worktree add`.** EnterWorktree creates the worktree\n   *and* switches the session's cwd into it. `git worktree add` into a path (especially\n   `\u002Ftmp`) does not move the session cwd — Bash resets to repo root after every\n   call, forcing a `cd …\u002Fworktree &&` prefix on every command for rest of the\n   session. This skill exists to prevent that. Use the tool.\n2. **The argument is the name — verbatim.** Whatever the user passes (`ABC-123`,\n   `random-misc`) is the worktree directory name. Do not rename, slugify, or prefix it.\n   EnterWorktree derives the branch as `worktree-\u003CNAME>` — that prefix is the tool's, not\n   yours to add or strip. Report the branch it actually created; do not claim `\u003CNAME>`.\n3. **Load context, don't act.** Create the worktree, load the story if there is one,\n   report, then **stop and wait**. Do not read the codebase for an implementation plan,\n   do not write code, do not enter plan mode — unless the user asks next.\n4. **Degrade gracefully.** JIRA loading is a bonus, not a gate. If the argument isn't a\n   ticket, or `acli` is missing or unauthenticated, skip that step with a one-line note\n   and still deliver the worktree.\n5. **Rename the session to `NAME`.** `\u002Frename` is a user-typed command with no callable\n   tool. What actually makes a name show up in `\u002Fresume` is a `custom-title` record\n   appended to the session's own transcript JSONL file — not the `name` field of\n   `~\u002F.claude\u002Fsessions\u002F\u003Cpid>.json`. That pid file only drives the live \"concurrent\n   sessions\" indicator while the process runs, and is deleted the instant the process\n   exits, so writing it alone renames nothing durable. Write the transcript record\n   directly (see Phase 2.5); mirror into the pid file too, best-effort, for the live\n   indicator.\n6. **One plain command per Bash call, from Phase 2 onward.** The moment EnterWorktree\n   returns, the session is worktree-isolated, and Claude Code's isolation validator\n   refuses any Bash line it cannot statically prove stays inside the worktree:\n   *\"too complex to verify that it stays inside the worktree; break it into plain,\n   separate commands.\"* It rejects `;` and `&&` chains, `$(…)` substitution, and\n   heredocs — **even when every component is read-only**, and even for a bare\n   `acli jira workitem view`. No permission rule can pre-empt it. So after Phase 2,\n   never join commands: issue them as separate Bash calls, in parallel in a single\n   message where they're independent. That costs no extra turns; a refusal costs\n   several.\n7. **Execute silently; report once.** Don't narrate phase transitions, tool calls, or\n   intermediate checks (\"Preconditions pass...\", \"Now Phase 2.5...\", \"Verifying...\").\n   Run Phases 0-3 without commentary. The only output is the Phase 4 report — unless a\n   real precondition fails and needs a user decision (that's a stop, not narration).\n\n## Workflow\n\n### Phase 0 — Parse the argument (no tools)\n\n- `NAME` = the argument, used verbatim. If none given, ask the user for one (or a\n  ticket) before doing anything — do not auto-generate a random name; the name carries\n  meaning here.\n- Validate `NAME` against EnterWorktree's rule: each `\u002F`-separated segment may contain\n  only letters, digits, dots, underscores, and dashes; ≤64 chars total. If it violates\n  this, tell the user and stop.\n- **Is it a JIRA key?** True if `NAME` matches `^[A-Za-z][A-Za-z0-9]*-[0-9]+$`\n  (e.g. `ABC-123`, `PROJ-1505`). Uppercase it for the JIRA lookup only — the worktree\n  and branch keep the exact string the user passed.\n\n### Phase 1 — Preconditions (read-only)\n\n- Confirm a git repo: `git rev-parse --git-dir`. (Outside a repo, EnterWorktree falls\n  back to WorktreeCreate\u002FWorktreeRemove hooks; if none, surface that and stop.)\n- Confirm the session is **not already in a worktree**. EnterWorktree refuses to create\n  a new worktree from inside one. If `git rev-parse --git-common-dir` shows this is\n  already a linked worktree, tell the user (they likely want a fresh top-level session)\n  and stop rather than nesting.\n\n### Phase 2 — Create and enter the worktree\n\n1. Load the deferred tool: `ToolSearch` with query `select:EnterWorktree`.\n2. Call `EnterWorktree({ name: \"\u003CNAME>\" })`. This creates `.claude\u002Fworktrees\u002F\u003CNAME>` on\n   a new branch `worktree-\u003CNAME>`, based on a freshly-fetched origin default branch\n   (`worktree.baseRef: fresh`), and switches the session cwd into it.\n3. Do **not** run `git worktree add`, `git checkout -b`, or any `cd`. The tool does all\n   of it; the branch is created for you.\n\n**Fallback (only if EnterWorktree unavailable):** create the worktree at the\nconventional path — `git worktree add .claude\u002Fworktrees\u002F\u003CNAME> -b worktree-\u003CNAME> origin\u002F\u003Cdefault>`\n— then re-run `ToolSearch select:EnterWorktree` and call `EnterWorktree({ path:\n\".claude\u002Fworktrees\u002F\u003CNAME>\" })` to enter it. If EnterWorktree truly cannot be loaded,\nwarn the user that the session cwd will not follow the worktree and that subsequent\ncommands must use absolute paths \u002F `git -C \u003Cpath>` (do not sprinkle `cd`).\n\n### Phase 2.5 — Persist the session title to `NAME`\n\nGive the session a findable, durable title — the same effect as the user typing\n`\u002Frename \u003CNAME>`. There is no callable tool for it, so write the underlying record\ndirectly. `\u002Fresume`'s picker builds its title list by scanning each session's own\ntranscript file for `{\"type\":\"custom-title\",\"customTitle\":...}` lines (falling back\nto `ai-title` if none exist) — it does **not** read `~\u002F.claude\u002Fsessions\u002F\u003Cpid>.json`.\nThat pid file only drives the live \"concurrent sessions\" indicator while this process\nis running, and gets deleted the instant the process exits, so writing only there\nrenames nothing durable — the change vanishes the moment the session ends.\n\nRun the bundled script — one plain command, no heredoc (Principle 6):\n\n```bash\npython3 \u003Cskill-dir>\u002Fscripts\u002Frename-session.py \"$CLAUDE_CODE_SESSION_ID\" \"\u003CNAME>\"\n```\n\n(Substitute the real absolute path to this skill's `scripts\u002Frename-session.py`.) It\nappends the title records to the transcript and mirrors the name into the live pid\nfile, reporting each on stdout.\n\nEarlier versions inlined this as `python3 - … \u003C\u003C'PY'`. Don't go back to that: a\nheredoc is exactly the shape the worktree-isolation validator refuses, and improvising\naround it means writing a scratch script to `\u002Ftmp` — two more round trips and a\n`Write` that nothing grants.\n\nNotes:\n- The script appends rather than rewriting, because the transcript is being actively\n  written by this very process for the rest of the session. Never read-modify-write it.\n- If `CLAUDE_CODE_SESSION_ID` is unset or no transcript matches, the script prints a\n  one-line skip and exits 0 — a missing name is not worth failing the session over.\n- This renames the session for next time — it takes effect when the session is opened\n  via `\u002Fresume` afterward. It does not repaint the *currently running* process's own\n  terminal title or prompt-box name (only the interactive `\u002Frename` command updates\n  that in-memory state); the pid-file mirror is the closest live-visible approximation.\n\n### Phase 2.6 — Report what the worktree inherited (read-only)\n\nA fresh worktree is not empty of untracked state, and the state it gets can make it look\nready while pointing at another checkout's resources. Establish both, in the new cwd:\n\nIssue these as **separate, parallel Bash calls in one message** (Principle 6) — joining\nthem with `;` is what gets the whole probe refused:\n\n- **`.worktreeinclude`** at the *main checkout's* root: every non-comment line is a\n  gitignored path Claude Code **copies** into the new worktree — usually `.env`. Read the\n  file, then confirm what landed (`ls -la` each path in the worktree). Paths absent from\n  the main checkout are skipped silently, so absence is not an error.\n- **`worktree.symlinkDirectories`** in user settings: those directories (`node_modules`\n  and friends) are **symlinked** back to the main checkout, not copied — so no install\n  step is needed, and none should be run. Use the `Read` tool on\n  `~\u002F.claude\u002Fsettings.json` rather than shelling out to `cat`\u002F`grep`\u002F`jq`.\n\nThen answer the question that decides whether the workspace is usable: **does this\nworktree have its own stack, or is it borrowing the main checkout's?** A copied `.env`\ncarries the source checkout's ports, `COMPOSE_PROJECT_NAME`, and `PGURL`\u002F`DATABASE_URL`\nverbatim. Until something reassigns them, `docker compose`, `just migrate`, `just test`,\nand `just psql` run from this worktree reach the **main checkout's** containers and\ndatabase — silently, with no error to notice.\n\n- **Repo allocates per-worktree ports** (look for it: `just --list | grep -i 'worktree.*port'`):\n  say so and print the exact command, e.g. `just setup_worktree_ports 6320`. **Do not run\n  it.** It claims a range of sequential ports, and only the user knows what their other\n  worktrees already hold.\n- **Repo has no such recipe:** say plainly that no per-worktree isolation exists — the\n  stack has to be run from one checkout at a time, and starting it here will collide with\n  or hijack whatever is already up.\n- **No `.worktreeinclude` at the main root:** the worktree has no `.env`. Name the repo's\n  bootstrap (`just setup`, `cp env.example .env`), or, when there is no `env.example`, say\n  the file has to be reconstructed by hand — and note that a missing dotenv file is\n  usually *silent*, leaving recipes with empty variables and hardcoded fallbacks rather\n  than an error.\n\nAll read-only. Do not run `docker`, `just migrate`, or any stack command to determine this.\n\n### Phase 3 — Load the JIRA story (only if `NAME` is a ticket)\n\n1. Fetch the story with the Atlassian CLI, uppercased key, one call:\n\n   ```bash\n   acli jira workitem view \u003CKEY> --json \\\n     --fields \"summary,issuetype,status,assignee,priority,description,parent,issuelinks\"\n   ```\n\n   Do **not** reach for the Atlassian MCP server — it is disabled, and\n   `mcp__plugin_atlassian_atlassian__*` tools no longer exist.\n2. If the command fails, note it in one line and go to Phase 4 — never block the\n   worktree on it:\n   - `command not found` → \"acli not installed; skipping story load\".\n   - `unauthorized: use 'acli auth login'` → \"acli not authenticated; skipping story\n     load — run `! acli auth login`\". Do not run `acli auth login` yourself; it is an\n     interactive browser flow.\n   - Unknown key or permissions → report the error verbatim in one line.\n3. Read the issue and distill it — do not dump the raw payload. The `description` comes\n   back as Atlassian Document Format (ADF) JSON, so read the text out of the node tree\n   rather than pasting it. Summarize:\n   - **Title \u002F type \u002F status** (one line).\n   - **The implementation ask** — what the ticket wants built or changed, in your words.\n   - **Acceptance criteria** if present, as a short checklist.\n   - Notable links (design, parent epic, blocked-by) if any.\n\n### Phase 4 — Report once, then stop\n\nThis is the *only* narration Phases 0-3 produce. Print a short summary, then wait:\n\n- Worktree: `.claude\u002Fworktrees\u002F\u003CNAME>` · branch `worktree-\u003CNAME>` · based on\n  `origin\u002F\u003Cdefault>`.\n- Session renamed to `\u003CNAME>` (or a one-line note if the rename was skipped).\n- Inherited environment, from Phase 2.6: which `.worktreeinclude` paths were copied, which\n  directories were symlinked, and — when the copied `.env` still points at the main\n  checkout's stack — the exact port-allocation command to run before anything else. Put\n  this above the handoff line. It is the one item that, if missed, sends `just migrate` or\n  `just test` at the wrong database.\n- If a ticket was loaded: the story summary and implementation ask from Phase 3.\n- If not a ticket, or JIRA skipped: say so in one line.\n- End with an explicit handoff, e.g. *\"Workspace ready. What would you like to build?\"*\n\n**Then stop.** Do not begin implementation, exploration, or planning until the user\ngives the next instruction.\n\n## Reducing permission prompts\n\nClaude Code plugins have no mechanism to self-grant permissions — every tool call\nbelow is still gated by the *user's own* `settings.json` (project or\n`~\u002F.claude\u002Fsettings.json`), never by anything this plugin ships. To run this skill\nend-to-end without prompts, add to `permissions.allow`:\n\n- `EnterWorktree`, `ExitWorktree` — the worktree lifecycle tools Phase 2 calls directly.\n- `ToolSearch` — loads deferred tools (`EnterWorktree`); read-only.\n- `Bash(acli jira workitem view *)` — Phase 3's story fetch; read-only.\n- `Bash(git rev-parse *)`, `Bash(git worktree list)` — Phase 1's read-only preconditions\n  (covered already if you blanket-allow `Bash(git *)`).\n- `Bash(cat *)`, `Bash(ls *)`, `Bash(just *)` — Phase 2.6's probe of the inherited\n  environment.\n- Phase 2.5's rename runs under `python3`. There's no way to allowlist one script\n  without allowlisting the interpreter broadly, so treat `Bash(python3 *)` as a\n  deliberate, standalone trust decision, not something to add solely for this skill.\n\nNote that Bash rules are wildcard-matched against the raw command string, where `*`\nspans `\u002F` and spaces — they are not gitignore-style path globs (that matcher is only\nused for `Read`\u002F`Edit` rules). And entering `auto` mode strips every `Bash(...)` allow\nrule in favour of the classifier, so in that mode what matters is `autoMode.allow`,\nnot this list.\n\n## Gotchas\n\n- **EnterWorktree is deferred.** Calling it without a prior `ToolSearch\n  select:EnterWorktree` fails with InputValidationError. Always load it first.\n- **After EnterWorktree, compound Bash lines are refused.** The isolation validator\n  rejects `;`, `&&`, `$(…)` and heredocs regardless of how harmless the components are\n  — it is a static-analysis gate, not a permission check, so no allow rule and no\n  permission mode gets past it. Split the call (Principle 6).\n- **`acli` is a shell command, not a tool.** There is nothing to ToolSearch for; the\n  Atlassian MCP server is disabled and its `mcp__plugin_atlassian_atlassian__*` tools do\n  not exist.\n- **Already in a worktree → EnterWorktree refuses** a new `name`. Don't nest; surface it.\n- **Name rules are strict.** Spaces, `@`, `:` and other punctuation are rejected. Fix\n  with the user rather than silently mangling the name.\n- **`baseRef: fresh` needs the remote.** The base is a freshly-fetched origin default;\n  if offline or the remote unreachable, EnterWorktree may fail — report it plainly.\n- **Don't pre-create the branch.** EnterWorktree makes `worktree-\u003CNAME>` itself; a prior\n  `git checkout -b` of that name will collide with it.\n- **`.worktreeinclude` is read from the main checkout's working tree**, not from the branch\n  being checked out. One that exists only on a feature branch copies nothing, so a repo\n  where it is still in review behaves as if the file were absent.\n- **Copies, not symlinks.** Rotating `.env` in the main checkout does not reach worktrees\n  that already exist, and each worktree is one more on-disk copy of real credentials.\n- **Symlinked `node_modules` is shared, not private.** An install inside a worktree writes\n  through to the main checkout's `node_modules`; a dependency bump here changes it there.\n- **EnterWorktree locks the worktree**, and the lock can outlive the process that took it\n  (`git worktree list --porcelain` shows `locked claude session \u003Cname> (pid …)`). Teardown\n  needs `git worktree unlock \u003Cpath>` first — plain `git worktree remove --force` fails with\n  \"cannot remove a locked working tree\".\n- **JIRA is optional.** A non-ticket name (`random-misc`) is a perfectly valid session;\n  just skip Phase 3.\n",{"name":5,"license":15,"description":7,"argument-hint":24,"compatibility":25,"disable-model-invocation":26},"\u003Cworktree\u002Fbranch name — a JIRA key like ABC-123, or any slug like random-misc>","Requires a git repo (EnterWorktree branches off a fresh origin default; honors worktree.baseRef: fresh). JIRA loading is optional and needs the Atlassian CLI (`acli`) installed and authenticated (`acli auth login`). EnterWorktree is deferred — load it via ToolSearch before calling.",true,"main","a3f19bcc313571bff79dca391a83f9c4d38bb335","session-mgmt\u002Fskills\u002Fstart-session",0,"https:\u002F\u002Fgithub.com\u002Fozzycodes2\u002Fclaudellum","https:\u002F\u002Fgithub.com\u002Fozzycodes2","Software Engineer | Engineering Manager | AI whisperer | ☕Enjoyer","2026-11-14 04:50:11",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":26},[37,40,43],{"tool":38,"command":39},"npx","npx skills add ozzycodes2\u002Fclaudellum --skill start-session",{"tool":41,"command":42},"bunx","bunx skills add ozzycodes2\u002Fclaudellum --skill start-session",{"tool":44,"command":45},"pnpm","pnpm dlx skills add ozzycodes2\u002Fclaudellum --skill start-session","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fozzycodes2\u002Fclaudellum\u002Fblob\u002Fmain\u002Fsession-mgmt\u002Fskills\u002Fstart-session\u002FSKILL.md",[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"scripts\u002Frename-session.py","SCRIPT","脚本",2845,"https:\u002F\u002Fgithub.com\u002Fozzycodes2\u002Fclaudellum\u002Fblob\u002Fmain\u002Fsession-mgmt\u002Fskills\u002Fstart-session\u002Fscripts\u002Frename-session.py",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7ASQB3CTKMKDNAXD9DCF1YC","writing-design-docs","Use when the user wants to write a problem-statement design doc, says \"let's plan a feature properly\" \u002F \"write a design doc\" \u002F \"I'm thinking about how to do X\" for a non-trivial X, or before committing to a non-obvious technical direction","https:\u002F\u002Fgithub.com\u002Fozzycodes2\u002Fclaudellum\u002Fblob\u002Fmain\u002Ftechnical-writing\u002Fskills\u002Fwriting-design-docs\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7ASQ6JD4QRV5ZKK2QME401Y","write-doc","Use when the user asks to write or draft a README, ADR, runbook, tutorial, how-to, explanation, or reference doc, or a caller passes \"type ADR\" or \"type README\". Picks the type, fills a template, adds diagrams. RFCs and design docs belong to writing-design-docs.","https:\u002F\u002Fgithub.com\u002Fozzycodes2\u002Fclaudellum\u002Fblob\u002Fmain\u002Ftechnical-writing\u002Fskills\u002Fwrite-doc\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7ASQ1VWNVP1RE7M5D4G2QMG","review-doc","Use when the user asks to review, critique, score, grade, or \"how good is this doc\" for a Markdown doc or pasted text. Read-only. Scores it on the 20 Practical Prose dimensions and emits a findings table. Does not edit; fix-doc applies the findings next.","https:\u002F\u002Fgithub.com\u002Fozzycodes2\u002Fclaudellum\u002Fblob\u002Fmain\u002Ftechnical-writing\u002Fskills\u002Freview-doc\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7ASPWST208JZNR7HF7J6KMV","fix-doc","Use when the user asks to fix, edit for prose quality, polish, tighten, humanize, or de-slop a Markdown doc or pasted text, or says \"make this read less AI\". Applies review-doc findings, generates flagged diagrams, lists substantive issues for the author, then runs the AI-tell pass last. Modifies the target.","https:\u002F\u002Fgithub.com\u002Fozzycodes2\u002Fclaudellum\u002Fblob\u002Fmain\u002Ftechnical-writing\u002Fskills\u002Ffix-doc\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7ASPS6Y9ZGK9KCDHNPDR75A","create-slides","Use when the user asks for a slide deck, presentation, talk, or slides from a document, report, PR, notes, or topic. Builds one self-contained Machinify-branded HTML deck in a minimalist style, with headline-plus-visual slides, speaker notes, and every diagram drawn by architecture-design:create-diagram.","https:\u002F\u002Fgithub.com\u002Fozzycodes2\u002Fclaudellum\u002Fblob\u002Fmain\u002Ftechnical-writing\u002Fskills\u002Fcreate-slides\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7ASNSKFMMXSG954AEMW8HAZ","exit-session","Tear down the ephemeral resources a Claude Code working session created, then quit the CLI — so the user can wrap up with a single \u002Fexit-session. Use when the user says \"exit session\", \"clean up this session\", \"tear down everything\", \"wrap up and clean up resources\", \"remove the worktree and scratch\", \"stop the background processes\", \"shut down the stack\", \"clean up the agent worktrees\", or asks to clean up after finishing a task — even if they only name one resource (assume they want the full sweep unless they scope it). Runs teardown permission-free: stops background processes and dev servers, Docker\u002Fcompose stacks plus their volumes, networks and images, local Tilt\u002FKubernetes, git worktrees, merged local branches, and temp\u002Fscratch files without prompting, then exits the CLI. Covers the worktrees and Docker resources left behind by subagents spawned during the session, not just the primary agent's own worktree — both determined from git locks and Docker labels rather than from recall. Never touches resources a still-live session holds.","https:\u002F\u002Fgithub.com\u002Fozzycodes2\u002Fclaudellum\u002Fblob\u002Fmain\u002Fsession-mgmt\u002Fskills\u002Fexit-session\u002FSKILL.md",[],[]]