[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70MH0CPD5VGF1X75QZWSWYP":3,"skill-same:01M70MH0CPD5VGF1X75QZWSWYP":83},{"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":23,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":53,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M70MH0CPD5VGF1X75QZWSWYP","setup-browser-cookies",null,"Import cookies from your real Chromium browser into the headless browse session. (gstack)","shengdabai\u002FTony-Claude-Code-Skills","shengdabai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F116417419?v=4","01M70F6D2WY5PQV5A92BKYJQEW","Tony Sheng","01M70F6D3GAAAYZ5H4CC1G8VXM",3,"MIT","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fgstack\u002Fsetup-browser-cookies\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"browser","cookies","setup browser cookies","setup","headless","Bash","gstack","login","read","test site","import","browse","session","chromium","test","site","2026-11-10 10:12:30",false,"---\nname: setup-browser-cookies\npreamble-tier: 1\nversion: 1.0.0\ndescription: Import cookies from your real Chromium browser into the headless browse session. (gstack)\ntriggers:\n  - import browser cookies\n  - login to test site\n  - setup authenticated session\nallowed-tools:\n  - Bash\n  - Read\n  - AskUserQuestion\n---\n\u003C!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->\n\u003C!-- Regenerate: bun run gen:skill-docs -->\n\n\n## When to invoke this skill\n\nOpens an interactive picker UI where you select which cookie domains to import.\nUse before QA testing authenticated pages. Use when asked to \"import cookies\",\n\"login to the site\", or \"authenticate the browser\".\n\n## Preamble (run first)\n\n```bash\n_UPD=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-update-check 2>\u002Fdev\u002Fnull || .claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-update-check 2>\u002Fdev\u002Fnull || true)\n[ -n \"$_UPD\" ] && echo \"$_UPD\" || true\nmkdir -p ~\u002F.gstack\u002Fsessions\ntouch ~\u002F.gstack\u002Fsessions\u002F\"$PPID\"\n_SESSIONS=$(find ~\u002F.gstack\u002Fsessions -mmin -120 -type f 2>\u002Fdev\u002Fnull | wc -l | tr -d ' ')\nfind ~\u002F.gstack\u002Fsessions -mmin +120 -type f -exec rm {} + 2>\u002Fdev\u002Fnull || true\n_PROACTIVE=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get proactive 2>\u002Fdev\u002Fnull || echo \"true\")\n_PROACTIVE_PROMPTED=$([ -f ~\u002F.gstack\u002F.proactive-prompted ] && echo \"yes\" || echo \"no\")\n_BRANCH=$(git branch --show-current 2>\u002Fdev\u002Fnull || echo \"unknown\")\necho \"BRANCH: $_BRANCH\"\n_SKILL_PREFIX=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get skill_prefix 2>\u002Fdev\u002Fnull || echo \"false\")\necho \"PROACTIVE: $_PROACTIVE\"\necho \"PROACTIVE_PROMPTED: $_PROACTIVE_PROMPTED\"\necho \"SKILL_PREFIX: $_SKILL_PREFIX\"\nsource \u003C(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-repo-mode 2>\u002Fdev\u002Fnull) || true\nREPO_MODE=${REPO_MODE:-unknown}\necho \"REPO_MODE: $REPO_MODE\"\n_SESSION_KIND=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-session-kind 2>\u002Fdev\u002Fnull || echo \"interactive\")\ncase \"$_SESSION_KIND\" in spawned|headless|interactive) ;; *) _SESSION_KIND=\"interactive\" ;; esac\necho \"SESSION_KIND: $_SESSION_KIND\"\n# Conductor host: AskUserQuestion is unreliable here (native disabled, MCP\n# variant flaky), so skills render decisions as prose instead of calling the\n# tool. Gated on !headless so an eval\u002FCI run INSIDE Conductor (GSTACK_HEADLESS)\n# still BLOCKs rather than rendering prose to nobody.\nif [ \"$_SESSION_KIND\" != \"headless\" ] && { [ -n \"${CONDUCTOR_WORKSPACE_PATH:-}\" ] || [ -n \"${CONDUCTOR_PORT:-}\" ]; }; then\n  echo \"CONDUCTOR_SESSION: true\"\nfi\n_ACTIVATED=$([ -f ~\u002F.gstack\u002F.activated ] && echo \"yes\" || echo \"no\")\n_FIRST_LOOP_SHOWN=$([ -f ~\u002F.gstack\u002F.first-loop-tip-shown ] && echo \"yes\" || echo \"no\")\necho \"ACTIVATED: $_ACTIVATED\"\necho \"FIRST_LOOP_SHOWN: $_FIRST_LOOP_SHOWN\"\n# First-run project detection: run the detector ONLY on the first-ever skill run\n# (ACTIVATED=no, interactive) so it stays off the hot path for every run after.\n_FIRST_TASK=\"\"\nif [ \"$_ACTIVATED\" = \"no\" ] && [ \"$_SESSION_KIND\" != \"headless\" ]; then\n  _FIRST_TASK=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-first-task-detect 2>\u002Fdev\u002Fnull || true)\nfi\necho \"FIRST_TASK: $_FIRST_TASK\"\n_LAKE_SEEN=$([ -f ~\u002F.gstack\u002F.completeness-intro-seen ] && echo \"yes\" || echo \"no\")\necho \"LAKE_INTRO: $_LAKE_SEEN\"\n_TEL=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get telemetry 2>\u002Fdev\u002Fnull || true)\n_TEL_PROMPTED=$([ -f ~\u002F.gstack\u002F.telemetry-prompted ] && echo \"yes\" || echo \"no\")\n_TEL_START=$(date +%s)\n_SESSION_ID=\"$$-$(date +%s)\"\necho \"TELEMETRY: ${_TEL:-off}\"\necho \"TEL_PROMPTED: $_TEL_PROMPTED\"\n_EXPLAIN_LEVEL=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get explain_level 2>\u002Fdev\u002Fnull || echo \"default\")\nif [ \"$_EXPLAIN_LEVEL\" != \"default\" ] && [ \"$_EXPLAIN_LEVEL\" != \"terse\" ]; then _EXPLAIN_LEVEL=\"default\"; fi\necho \"EXPLAIN_LEVEL: $_EXPLAIN_LEVEL\"\n_QUESTION_TUNING=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get question_tuning 2>\u002Fdev\u002Fnull || echo \"false\")\necho \"QUESTION_TUNING: $_QUESTION_TUNING\"\nmkdir -p ~\u002F.gstack\u002Fanalytics\nif [ \"$_TEL\" != \"off\" ]; then\necho '{\"skill\":\"setup-browser-cookies\",\"ts\":\"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\",\"repo\":\"'$(_repo=$(basename \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull)\" 2>\u002Fdev\u002Fnull | tr -cd 'a-zA-Z0-9._-'); echo \"${_repo:-unknown}\")'\"}'  >> ~\u002F.gstack\u002Fanalytics\u002Fskill-usage.jsonl 2>\u002Fdev\u002Fnull || true\nfi\nfor _PF in $(find ~\u002F.gstack\u002Fanalytics -maxdepth 1 -name '.pending-*' 2>\u002Fdev\u002Fnull); do\n  if [ -f \"$_PF\" ]; then\n    if [ \"$_TEL\" != \"off\" ] && [ -x \"~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-telemetry-log\" ]; then\n      ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-telemetry-log --event-type skill_run --skill _pending_finalize --outcome unknown --session-id \"$_SESSION_ID\" 2>\u002Fdev\u002Fnull || true\n    fi\n    rm -f \"$_PF\" 2>\u002Fdev\u002Fnull || true\n  fi\n  break\ndone\neval \"$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-slug 2>\u002Fdev\u002Fnull)\" 2>\u002Fdev\u002Fnull || true\n_LEARN_FILE=\"${GSTACK_HOME:-$HOME\u002F.gstack}\u002Fprojects\u002F${SLUG:-unknown}\u002Flearnings.jsonl\"\nif [ -f \"$_LEARN_FILE\" ]; then\n  _LEARN_COUNT=$(wc -l \u003C \"$_LEARN_FILE\" 2>\u002Fdev\u002Fnull | tr -d ' ')\n  echo \"LEARNINGS: $_LEARN_COUNT entries loaded\"\n  if [ \"$_LEARN_COUNT\" -gt 5 ] 2>\u002Fdev\u002Fnull; then\n    ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-learnings-search --limit 3 2>\u002Fdev\u002Fnull || true\n  fi\nelse\n  echo \"LEARNINGS: 0\"\nfi\n~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-timeline-log '{\"skill\":\"setup-browser-cookies\",\"event\":\"started\",\"branch\":\"'\"$_BRANCH\"'\",\"session\":\"'\"$_SESSION_ID\"'\"}' 2>\u002Fdev\u002Fnull &\n_HAS_ROUTING=\"no\"\nif [ -f CLAUDE.md ] && grep -q \"## Skill routing\" CLAUDE.md 2>\u002Fdev\u002Fnull; then\n  _HAS_ROUTING=\"yes\"\nfi\n_ROUTING_DECLINED=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get routing_declined 2>\u002Fdev\u002Fnull || echo \"false\")\necho \"HAS_ROUTING: $_HAS_ROUTING\"\necho \"ROUTING_DECLINED: $_ROUTING_DECLINED\"\n_VENDORED=\"no\"\nif [ -d \".claude\u002Fskills\u002Fgstack\" ] && [ ! -L \".claude\u002Fskills\u002Fgstack\" ]; then\n  if [ -f \".claude\u002Fskills\u002Fgstack\u002FVERSION\" ] || [ -d \".claude\u002Fskills\u002Fgstack\u002F.git\" ]; then\n    _VENDORED=\"yes\"\n  fi\nfi\necho \"VENDORED_GSTACK: $_VENDORED\"\necho \"MODEL_OVERLAY: claude\"\n_CHECKPOINT_MODE=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get checkpoint_mode 2>\u002Fdev\u002Fnull || echo \"explicit\")\n_CHECKPOINT_PUSH=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get checkpoint_push 2>\u002Fdev\u002Fnull || echo \"false\")\necho \"CHECKPOINT_MODE: $_CHECKPOINT_MODE\"\necho \"CHECKPOINT_PUSH: $_CHECKPOINT_PUSH\"\n# Plan-mode hint for skills like \u002Fspec that branch behavior on plan-mode state.\n# Claude Code exposes plan mode via system reminders; we detect best-effort\n# from CLAUDE_PLAN_FILE (set by the harness when plan mode is active) and\n# fall back to \"inactive\". Codex hosts and Claude execution mode both end up\n# inactive, which is the safe default (defaults to file+execute pipeline).\nif [ -n \"${CLAUDE_PLAN_FILE:-}${GSTACK_PLAN_MODE_FORCE:-}\" ]; then\n  export GSTACK_PLAN_MODE=\"active\"\nelif [ \"${GSTACK_PLAN_MODE:-}\" = \"active\" ]; then\n  export GSTACK_PLAN_MODE=\"active\"\nelse\n  export GSTACK_PLAN_MODE=\"inactive\"\nfi\necho \"GSTACK_PLAN_MODE: $GSTACK_PLAN_MODE\"\n[ -n \"$OPENCLAW_SESSION\" ] && echo \"SPAWNED_SESSION: true\" || true\n```\n\n## Plan Mode Safe Operations\n\nIn plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`\u002F`codex review`, writes to `~\u002F.gstack\u002F`, writes to the plan file, and `open` for generated artifacts.\n\n## Skill Invocation During Plan Mode\n\nIf the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see \"AskUserQuestion Format → Tool resolution\") satisfies plan mode's end-of-turn requirement. If AskUserQuestion is unavailable or a call fails, follow the AskUserQuestion Format failure fallback: `headless` → BLOCKED; `interactive` → the prose fallback (also satisfies end-of-turn). At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked \"PLAN MODE EXCEPTION — ALWAYS RUN\" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.\n\nIf `PROACTIVE` is `\"false\"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: \"I think \u002Fskillname might help here — want me to run it?\"\n\nIf `SKILL_PREFIX` is `\"true\"`, suggest\u002Finvoke `\u002Fgstack-*` names. Disk paths stay `~\u002F.claude\u002Fskills\u002Fgstack\u002F[skill-name]\u002FSKILL.md`.\n\nIf output shows `UPGRADE_AVAILABLE \u003Cold> \u003Cnew>`: read `~\u002F.claude\u002Fskills\u002Fgstack\u002Fgstack-upgrade\u002FSKILL.md` and follow the \"Inline upgrade flow\" (auto-upgrade if configured, otherwise AskUserQuestion with 4 options, write snooze state if declined).\n\nIf output shows `JUST_UPGRADED \u003Cfrom> \u003Cto>`: print \"Running gstack v{to} (just updated!)\". If `SPAWNED_SESSION` is true, skip feature discovery.\n\nFeature discovery, max one prompt per session:\n- Missing `~\u002F.claude\u002Fskills\u002Fgstack\u002F.feature-prompted-continuous-checkpoint`: AskUserQuestion for Continuous checkpoint auto-commits. If accepted, run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set checkpoint_mode continuous`. Always touch marker.\n- Missing `~\u002F.claude\u002Fskills\u002Fgstack\u002F.feature-prompted-model-overlay`: inform \"Model overlays are active. MODEL_OVERLAY shows the patch.\" Always touch marker.\n\nAfter upgrade prompts, continue workflow.\n\nIf `WRITING_STYLE_PENDING` is `yes`: ask once about writing style:\n\n> v1 prompts are simpler: first-use jargon glosses, outcome-framed questions, shorter prose. Keep default or restore terse?\n\nOptions:\n- A) Keep the new default (recommended — good writing helps everyone)\n- B) Restore V0 prose — set `explain_level: terse`\n\nIf A: leave `explain_level` unset (defaults to `default`).\nIf B: run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set explain_level terse`.\n\nAlways run (regardless of choice):\n```bash\nrm -f ~\u002F.gstack\u002F.writing-style-prompt-pending\ntouch ~\u002F.gstack\u002F.writing-style-prompted\n```\n\nSkip if `WRITING_STYLE_PENDING` is `no`.\n\nIf `LAKE_INTRO` is `no`: say \"gstack follows the **Boil the Ocean** principle — do the complete thing when AI makes marginal cost near-zero. Read more: https:\u002F\u002Fgarryslist.org\u002Fposts\u002Fboil-the-ocean\" Offer to open:\n\n```bash\nopen https:\u002F\u002Fgarryslist.org\u002Fposts\u002Fboil-the-ocean\ntouch ~\u002F.gstack\u002F.completeness-intro-seen\n```\n\nOnly run `open` if yes. Always run `touch`.\n\nIf `TEL_PROMPTED` is `no` AND `LAKE_INTRO` is `yes`: ask telemetry once via AskUserQuestion:\n\n> Help gstack get better. Share usage data only: skill, duration, crashes, stable device ID. No code or file paths. Your repo name is recorded locally only and stripped before any upload.\n\nOptions:\n- A) Help gstack get better! (recommended)\n- B) No thanks\n\nIf A: run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set telemetry community`\n\nIf B: ask follow-up:\n\n> Anonymous mode sends only aggregate usage, no unique ID.\n\nOptions:\n- A) Sure, anonymous is fine\n- B) No thanks, fully off\n\nIf B→A: run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set telemetry anonymous`\nIf B→B: run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set telemetry off`\n\nAlways run:\n```bash\ntouch ~\u002F.gstack\u002F.telemetry-prompted\n```\n\nSkip if `TEL_PROMPTED` is `yes`.\n\nIf `PROACTIVE_PROMPTED` is `no` AND `TEL_PROMPTED` is `yes`: ask once:\n\n> Let gstack proactively suggest skills, like \u002Fqa for \"does this work?\" or \u002Finvestigate for bugs?\n\nOptions:\n- A) Keep it on (recommended)\n- B) Turn it off — I'll type \u002Fcommands myself\n\nIf A: run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set proactive true`\nIf B: run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set proactive false`\n\nAlways run:\n```bash\ntouch ~\u002F.gstack\u002F.proactive-prompted\n```\n\nSkip if `PROACTIVE_PROMPTED` is `yes`.\n\n## First-run guidance (one-time)\n\nIf `ACTIVATED` is `no` (first skill run on this machine) AND the preamble printed a non-empty `FIRST_TASK:` value that is NOT `nongit`: show ONE short, project-specific line mapped from the token, as a heads-up, then CONTINUE with whatever the user actually asked — do NOT halt their task. Map the token: `greenfield` → \"Fresh repo — shape it first with `\u002Fspec` or `\u002Foffice-hours`.\" `code_node`\u002F`code_python`\u002F`code_rust`\u002F`code_go`\u002F`code_ruby`\u002F`code_ios` → \"There's code here — `\u002Fqa` to see it work, or `\u002Finvestigate` if something's off.\" `branch_ahead` → \"Unshipped work on this branch — `\u002Freview` then `\u002Fship`.\" `dirty_default` → \"Uncommitted changes — `\u002Freview` before committing.\" `clean_default` → \"Pick one: `\u002Fspec`, `\u002Finvestigate`, or `\u002Fqa`.\" Then substitute the token you saw for TASK_TOKEN and run (best-effort), and mark activated:\n```bash\n~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-telemetry-log --event-type first_task_scaffold_shown --skill \"TASK_TOKEN\" --outcome shown 2>\u002Fdev\u002Fnull || true\ntouch ~\u002F.gstack\u002F.activated 2>\u002Fdev\u002Fnull || true\n```\n\nIf `ACTIVATED` is `no` but `FIRST_TASK:` is empty or `nongit` (headless, non-git, or nothing actionable): show nothing, just run `touch ~\u002F.gstack\u002F.activated 2>\u002Fdev\u002Fnull || true`.\n\nElse if `ACTIVATED` is `yes` AND `FIRST_LOOP_SHOWN` is `no`: say once as a heads-up (then continue):\n\n> Tip: gstack pays off when you complete one loop — **plan → review → ship**. A common first loop: `\u002Foffice-hours` or `\u002Fspec` to shape it, `\u002Fplan-eng-review` to lock it, then `\u002Fship`.\n\nThen run `touch ~\u002F.gstack\u002F.first-loop-tip-shown 2>\u002Fdev\u002Fnull || true`.\n\nSkip this section if `ACTIVATED` and `FIRST_LOOP_SHOWN` are both `yes`.\n\nIf `HAS_ROUTING` is `no` AND `ROUTING_DECLINED` is `false` AND `PROACTIVE_PROMPTED` is `yes`:\nCheck if a CLAUDE.md file exists in the project root. If it does not exist, create it.\n\nUse AskUserQuestion:\n\n> gstack works best when your project's CLAUDE.md includes skill routing rules.\n\nOptions:\n- A) Add routing rules to CLAUDE.md (recommended)\n- B) No thanks, I'll invoke skills manually\n\nIf A: Append this section to the end of CLAUDE.md:\n\n```markdown\n\n## Skill routing\n\nWhen the user's request matches an available skill, invoke it via the Skill tool. When in doubt, invoke the skill.\n\nKey routing rules:\n- Product ideas\u002Fbrainstorming → invoke \u002Foffice-hours\n- Strategy\u002Fscope → invoke \u002Fplan-ceo-review\n- Architecture → invoke \u002Fplan-eng-review\n- Design system\u002Fplan review → invoke \u002Fdesign-consultation or \u002Fplan-design-review\n- Full review pipeline → invoke \u002Fautoplan\n- Bugs\u002Ferrors → invoke \u002Finvestigate\n- QA\u002Ftesting site behavior → invoke \u002Fqa or \u002Fqa-only\n- Code review\u002Fdiff check → invoke \u002Freview\n- Visual polish → invoke \u002Fdesign-review\n- Ship\u002Fdeploy\u002FPR → invoke \u002Fship or \u002Fland-and-deploy\n- Save progress → invoke \u002Fcontext-save\n- Resume context → invoke \u002Fcontext-restore\n- Author a backlog-ready spec\u002Fissue → invoke \u002Fspec\n```\n\nThen commit the change: `git add CLAUDE.md && git commit -m \"chore: add gstack skill routing rules to CLAUDE.md\"`\n\nIf B: run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set routing_declined true` and say they can re-enable with `gstack-config set routing_declined false`.\n\nThis only happens once per project. Skip if `HAS_ROUTING` is `yes` or `ROUTING_DECLINED` is `true`.\n\nIf `VENDORED_GSTACK` is `yes`, warn once via AskUserQuestion unless `~\u002F.gstack\u002F.vendoring-warned-$SLUG` exists:\n\n> This project has gstack vendored in `.claude\u002Fskills\u002Fgstack\u002F`. Vendoring is deprecated.\n> Migrate to team mode?\n\nOptions:\n- A) Yes, migrate to team mode now\n- B) No, I'll handle it myself\n\nIf A:\n1. Run `git rm -r .claude\u002Fskills\u002Fgstack\u002F`\n2. Run `echo '.claude\u002Fskills\u002Fgstack\u002F' >> .gitignore`\n3. Run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-team-init required` (or `optional`)\n4. Run `git add .claude\u002F .gitignore CLAUDE.md && git commit -m \"chore: migrate gstack from vendored to team mode\"`\n5. Tell the user: \"Done. Each developer now runs: `cd ~\u002F.claude\u002Fskills\u002Fgstack && .\u002Fsetup --team`\"\n\nIf B: say \"OK, you're on your own to keep the vendored copy up to date.\"\n\nAlways run (regardless of choice):\n```bash\neval \"$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-slug 2>\u002Fdev\u002Fnull)\" 2>\u002Fdev\u002Fnull || true\ntouch ~\u002F.gstack\u002F.vendoring-warned-${SLUG:-unknown}\n```\n\nIf marker exists, skip.\n\nIf `SPAWNED_SESSION` is `\"true\"`, you are running inside a session spawned by an\nAI orchestrator (e.g., OpenClaw). In spawned sessions:\n- Do NOT use AskUserQuestion for interactive prompts. Auto-choose the recommended option.\n- Do NOT run upgrade checks, telemetry prompts, routing injection, or lake intro.\n- Focus on completing the task and reporting results via prose output.\n- End with a completion report: what shipped, decisions made, anything uncertain.\n\n## Artifacts Sync (skill start)\n\n```bash\n_GSTACK_HOME=\"${GSTACK_HOME:-$HOME\u002F.gstack}\"\n# Prefer the v1.27.0.0 artifacts file; fall back to brain file for users\n# upgrading mid-stream before the migration script runs.\nif [ -f \"$HOME\u002F.gstack-artifacts-remote.txt\" ]; then\n  _BRAIN_REMOTE_FILE=\"$HOME\u002F.gstack-artifacts-remote.txt\"\nelse\n  _BRAIN_REMOTE_FILE=\"$HOME\u002F.gstack-brain-remote.txt\"\nfi\n_BRAIN_SYNC_BIN=\"~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-brain-sync\"\n_BRAIN_CONFIG_BIN=\"~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config\"\n\n# \u002Fsync-gbrain context-load: teach the agent to use gbrain when it's available.\n# Per-worktree pin: post-spike redesign uses kubectl-style `.gbrain-source` in the\n# git toplevel to scope queries. Look for the pin in the worktree (not a global\n# state file) so that opening worktree B without a pin doesn't claim \"indexed\"\n# just because worktree A was synced. Empty string when gbrain is not\n# configured (zero context cost for non-gbrain users).\n_GBRAIN_CONFIG=\"$HOME\u002F.gbrain\u002Fconfig.json\"\nif [ -f \"$_GBRAIN_CONFIG\" ] && command -v gbrain >\u002Fdev\u002Fnull 2>&1; then\n  _GBRAIN_VERSION_OK=$(gbrain --version 2>\u002Fdev\u002Fnull | grep -c '^gbrain ' || echo 0)\n  if [ \"$_GBRAIN_VERSION_OK\" -gt 0 ] 2>\u002Fdev\u002Fnull; then\n    _GBRAIN_PIN_PATH=\"\"\n    _REPO_TOP=$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || echo \"\")\n    if [ -n \"$_REPO_TOP\" ] && [ -f \"$_REPO_TOP\u002F.gbrain-source\" ]; then\n      _GBRAIN_PIN_PATH=\"$_REPO_TOP\u002F.gbrain-source\"\n    fi\n    if [ -n \"$_GBRAIN_PIN_PATH\" ]; then\n      echo \"GBrain configured. Prefer \\`gbrain search\\`\u002F\\`gbrain query\\` over Grep for\"\n      echo \"semantic questions; use \\`gbrain code-def\\`\u002F\\`code-refs\\`\u002F\\`code-callers\\` for\"\n      echo \"symbol-aware code lookup. See \\\"## GBrain Search Guidance\\\" in CLAUDE.md.\"\n      echo \"Run \u002Fsync-gbrain to refresh.\"\n    else\n      echo \"GBrain configured but this worktree isn't pinned yet. Run \\`\u002Fsync-gbrain --full\\`\"\n      echo \"before relying on \\`gbrain search\\` for code questions in this worktree.\"\n      echo \"Falls back to Grep until pinned.\"\n    fi\n  fi\nfi\n\n_BRAIN_SYNC_MODE=$(\"$_BRAIN_CONFIG_BIN\" get artifacts_sync_mode 2>\u002Fdev\u002Fnull || echo off)\n\n# Detect remote-MCP mode (Path 4 of \u002Fsetup-gbrain). Local artifacts sync is\n# a no-op in remote mode; the brain server pulls from GitHub\u002FGitLab on its\n# own cadence. Read claude.json directly to keep this preamble fast (no\n# subprocess to claude CLI on every skill start).\n_GBRAIN_MCP_MODE=\"none\"\nif command -v jq >\u002Fdev\u002Fnull 2>&1 && [ -f \"$HOME\u002F.claude.json\" ]; then\n  _GBRAIN_MCP_TYPE=$(jq -r '.mcpServers.gbrain.type \u002F\u002F .mcpServers.gbrain.transport \u002F\u002F empty' \"$HOME\u002F.claude.json\" 2>\u002Fdev\u002Fnull)\n  case \"$_GBRAIN_MCP_TYPE\" in\n    url|http|sse) _GBRAIN_MCP_MODE=\"remote-http\" ;;\n    stdio) _GBRAIN_MCP_MODE=\"local-stdio\" ;;\n  esac\nfi\n\nif [ -f \"$_BRAIN_REMOTE_FILE\" ] && [ ! -d \"$_GSTACK_HOME\u002F.git\" ] && [ \"$_BRAIN_SYNC_MODE\" = \"off\" ]; then\n  _BRAIN_NEW_URL=$(head -1 \"$_BRAIN_REMOTE_FILE\" 2>\u002Fdev\u002Fnull | tr -d '[:space:]')\n  if [ -n \"$_BRAIN_NEW_URL\" ]; then\n    echo \"ARTIFACTS_SYNC: artifacts repo detected: $_BRAIN_NEW_URL\"\n    echo \"ARTIFACTS_SYNC: run 'gstack-brain-restore' to pull your cross-machine artifacts (or 'gstack-config set artifacts_sync_mode off' to dismiss forever)\"\n  fi\nfi\n\nif [ -d \"$_GSTACK_HOME\u002F.git\" ] && [ \"$_BRAIN_SYNC_MODE\" != \"off\" ]; then\n  _BRAIN_LAST_PULL_FILE=\"$_GSTACK_HOME\u002F.brain-last-pull\"\n  _BRAIN_NOW=$(date +%s)\n  _BRAIN_DO_PULL=1\n  if [ -f \"$_BRAIN_LAST_PULL_FILE\" ]; then\n    _BRAIN_LAST=$(cat \"$_BRAIN_LAST_PULL_FILE\" 2>\u002Fdev\u002Fnull || echo 0)\n    _BRAIN_AGE=$(( _BRAIN_NOW - _BRAIN_LAST ))\n    [ \"$_BRAIN_AGE\" -lt 86400 ] && _BRAIN_DO_PULL=0\n  fi\n  if [ \"$_BRAIN_DO_PULL\" = \"1\" ]; then\n    ( cd \"$_GSTACK_HOME\" && git fetch origin >\u002Fdev\u002Fnull 2>&1 && git merge --ff-only \"origin\u002F$(git rev-parse --abbrev-ref HEAD)\" >\u002Fdev\u002Fnull 2>&1 ) || true\n    echo \"$_BRAIN_NOW\" > \"$_BRAIN_LAST_PULL_FILE\"\n  fi\n  \"$_BRAIN_SYNC_BIN\" --once 2>\u002Fdev\u002Fnull || true\nfi\n\nif [ \"$_GBRAIN_MCP_MODE\" = \"remote-http\" ]; then\n  # Remote-MCP mode: local artifacts sync is a no-op (brain admin's server\n  # pulls from GitHub\u002FGitLab). Show the user this is by design, not broken.\n  _GBRAIN_HOST=$(jq -r '.mcpServers.gbrain.url \u002F\u002F empty' \"$HOME\u002F.claude.json\" 2>\u002Fdev\u002Fnull | sed -E 's|^https?:\u002F\u002F([^\u002F:]+).*|\\1|')\n  echo \"ARTIFACTS_SYNC: remote-mode (managed by brain server ${_GBRAIN_HOST:-remote})\"\nelif [ -d \"$_GSTACK_HOME\u002F.git\" ] && [ \"$_BRAIN_SYNC_MODE\" != \"off\" ]; then\n  _BRAIN_QUEUE_DEPTH=0\n  [ -f \"$_GSTACK_HOME\u002F.brain-queue.jsonl\" ] && _BRAIN_QUEUE_DEPTH=$(wc -l \u003C \"$_GSTACK_HOME\u002F.brain-queue.jsonl\" | tr -d ' ')\n  _BRAIN_LAST_PUSH=\"never\"\n  [ -f \"$_GSTACK_HOME\u002F.brain-last-push\" ] && _BRAIN_LAST_PUSH=$(cat \"$_GSTACK_HOME\u002F.brain-last-push\" 2>\u002Fdev\u002Fnull || echo never)\n  echo \"ARTIFACTS_SYNC: mode=$_BRAIN_SYNC_MODE | last_push=$_BRAIN_LAST_PUSH | queue=$_BRAIN_QUEUE_DEPTH\"\nelse\n  echo \"ARTIFACTS_SYNC: off\"\nfi\n```\n\n\n\nPrivacy stop-gate: if output shows `ARTIFACTS_SYNC: off`, `artifacts_sync_mode_prompted` is `false`, and gbrain is on PATH or `gbrain doctor --fast --json` works, ask once:\n\n> gstack can publish your artifacts (CEO plans, designs, reports) to a private GitHub repo that GBrain indexes across machines. How much should sync?\n\nOptions:\n- A) Everything allowlisted (recommended)\n- B) Only artifacts\n- C) Decline, keep everything local\n\nAfter answer:\n\n```bash\n# Chosen mode: full | artifacts-only | off\n\"$_BRAIN_CONFIG_BIN\" set artifacts_sync_mode \u003Cchoice>\n\"$_BRAIN_CONFIG_BIN\" set artifacts_sync_mode_prompted true\n```\n\nIf A\u002FB and `~\u002F.gstack\u002F.git` is missing, ask whether to run `gstack-artifacts-init`. Do not block the skill.\n\nAt skill END before telemetry:\n\n```bash\n\"~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-brain-sync\" --discover-new 2>\u002Fdev\u002Fnull || true\n\"~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-brain-sync\" --once 2>\u002Fdev\u002Fnull || true\n```\n\n\n## Model-Specific Behavioral Patch (claude)\n\nThe following nudges are tuned for the claude model family. They are\n**subordinate** to skill workflow, STOP points, AskUserQuestion gates, plan-mode\nsafety, and \u002Fship review gates. If a nudge below conflicts with skill instructions,\nthe skill wins. Treat these as preferences, not rules.\n\n**Todo-list discipline.** When working through a multi-step plan, mark each task\ncomplete individually as you finish it. Do not batch-complete at the end. If a task\nturns out to be unnecessary, mark it skipped with a one-line reason.\n\n**Think before heavy actions.** For complex operations (refactors, migrations,\nnon-trivial new features), briefly state your approach before executing. This lets\nthe user course-correct cheaply instead of mid-flight.\n\n**Dedicated tools over Bash.** Prefer Read, Edit, Write, Glob, Grep over shell\nequivalents (cat, sed, find, grep). The dedicated tools are cheaper and clearer.\n\n## Voice\n\nDirect, concrete, builder-to-builder. Name the file, function, command, and user-visible impact. No filler.\n\nNo em dashes. No AI vocabulary: delve, crucial, robust, comprehensive, nuanced, multifaceted. Never corporate or academic. Short paragraphs. End with what to do.\n\nThe user has context you do not. Cross-model agreement is a recommendation, not a decision. The user decides.\n\n## Completion Status Protocol\n\nWhen completing a skill workflow, report status using one of:\n- **DONE** — completed with evidence.\n- **DONE_WITH_CONCERNS** — completed, but list concerns.\n- **BLOCKED** — cannot proceed; state blocker and what was tried.\n- **NEEDS_CONTEXT** — missing info; state exactly what is needed.\n\nEscalate after 3 failed attempts, uncertain security-sensitive changes, or scope you cannot verify. Format: `STATUS`, `REASON`, `ATTEMPTED`, `RECOMMENDATION`.\n\n## Operational Self-Improvement\n\nBefore completing, if you discovered a durable project quirk or command fix that would save 5+ minutes next time, log it:\n\n```bash\n~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-learnings-log '{\"skill\":\"SKILL_NAME\",\"type\":\"operational\",\"key\":\"SHORT_KEY\",\"insight\":\"DESCRIPTION\",\"confidence\":N,\"source\":\"observed\"}'\n```\n\nDo not log obvious facts or one-time transient errors.\n\n## Telemetry (run last)\n\nAfter workflow completion, log telemetry. Use skill `name:` from frontmatter. OUTCOME is success\u002Ferror\u002Fabort\u002Funknown.\n\n**PLAN MODE EXCEPTION — ALWAYS RUN:** This command writes telemetry to\n`~\u002F.gstack\u002Fanalytics\u002F`, matching preamble analytics writes.\n\nRun this bash:\n\n```bash\n_TEL_END=$(date +%s)\n_TEL_DUR=$(( _TEL_END - _TEL_START ))\nrm -f ~\u002F.gstack\u002Fanalytics\u002F.pending-\"$_SESSION_ID\" 2>\u002Fdev\u002Fnull || true\n# Session timeline: record skill completion (local-only, never sent anywhere)\n~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-timeline-log '{\"skill\":\"SKILL_NAME\",\"event\":\"completed\",\"branch\":\"'$(git branch --show-current 2>\u002Fdev\u002Fnull || echo unknown)'\",\"outcome\":\"OUTCOME\",\"duration_s\":\"'\"$_TEL_DUR\"'\",\"session\":\"'\"$_SESSION_ID\"'\"}' 2>\u002Fdev\u002Fnull || true\n# Local analytics (gated on telemetry setting)\nif [ \"$_TEL\" != \"off\" ]; then\necho '{\"skill\":\"SKILL_NAME\",\"duration_s\":\"'\"$_TEL_DUR\"'\",\"outcome\":\"OUTCOME\",\"browse\":\"USED_BROWSE\",\"session\":\"'\"$_SESSION_ID\"'\",\"ts\":\"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\"}' >> ~\u002F.gstack\u002Fanalytics\u002Fskill-usage.jsonl 2>\u002Fdev\u002Fnull || true\nfi\n# Remote telemetry (opt-in, requires binary)\nif [ \"$_TEL\" != \"off\" ] && [ -x ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-telemetry-log ]; then\n  ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-telemetry-log \\\n    --skill \"SKILL_NAME\" --duration \"$_TEL_DUR\" --outcome \"OUTCOME\" \\\n    --used-browse \"USED_BROWSE\" --session-id \"$_SESSION_ID\" 2>\u002Fdev\u002Fnull &\nfi\n```\n\nReplace `SKILL_NAME`, `OUTCOME`, and `USED_BROWSE` before running.\n\n## Plan Status Footer\n\nSkills that run plan reviews (`\u002Fplan-*-review`, `\u002Fcodex review`) include the EXIT PLAN MODE GATE blocking checklist at the end of the skill, which verifies the plan file ends with `## GSTACK REVIEW REPORT` before ExitPlanMode is called. Skills that don't run plan reviews (operational skills like `\u002Fship`, `\u002Fqa`, `\u002Freview`) typically don't operate in plan mode and have no review report to verify; this footer is a no-op for them. Writing the plan file is the one edit allowed in plan mode.\n\n# Setup Browser Cookies\n\nImport logged-in sessions from your real Chromium browser into the headless browse session.\n\n## CDP mode check\n\nFirst, check if browse is already connected to the user's real browser:\n```bash\n$B status 2>\u002Fdev\u002Fnull | grep -q \"Mode: cdp\" && echo \"CDP_MODE=true\" || echo \"CDP_MODE=false\"\n```\nIf `CDP_MODE=true`: tell the user \"Not needed — you're connected to your real browser via CDP. Your cookies and sessions are already available.\" and stop. No cookie import needed.\n\n## How it works\n\n1. Find the browse binary\n2. Run `cookie-import-browser` to detect installed browsers and open the picker UI\n3. User selects which cookie domains to import in their browser\n4. Cookies are decrypted and loaded into the Playwright session\n\n## Steps\n\n### 1. Find the browse binary\n\n## SETUP (run this check BEFORE any browse command)\n\n```bash\n_ROOT=$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull)\nB=\"\"\n[ -n \"$_ROOT\" ] && [ -x \"$_ROOT\u002F.claude\u002Fskills\u002Fgstack\u002Fbrowse\u002Fdist\u002Fbrowse\" ] && B=\"$_ROOT\u002F.claude\u002Fskills\u002Fgstack\u002Fbrowse\u002Fdist\u002Fbrowse\"\n[ -z \"$B\" ] && B=\"$HOME\u002F.claude\u002Fskills\u002Fgstack\u002Fbrowse\u002Fdist\u002Fbrowse\"\nif [ -x \"$B\" ]; then\n  echo \"READY: $B\"\nelse\n  echo \"NEEDS_SETUP\"\nfi\n```\n\nIf `NEEDS_SETUP`:\n1. Tell the user: \"gstack browse needs a one-time build (~10 seconds). OK to proceed?\" Then STOP and wait.\n2. Run: `cd \u003CSKILL_DIR> && .\u002Fsetup`\n3. If `bun` is not installed:\n   ```bash\n   if ! command -v bun >\u002Fdev\u002Fnull 2>&1; then\n     BUN_VERSION=\"1.3.10\"\n     BUN_INSTALL_SHA=\"bab8acfb046aac8c72407bdcce903957665d655d7acaa3e11c7c4616beae68dd\"\n     tmpfile=$(mktemp)\n     curl -fsSL \"https:\u002F\u002Fbun.sh\u002Finstall\" -o \"$tmpfile\"\n     actual_sha=$(shasum -a 256 \"$tmpfile\" | awk '{print $1}')\n     if [ \"$actual_sha\" != \"$BUN_INSTALL_SHA\" ]; then\n       echo \"ERROR: bun install script checksum mismatch\" >&2\n       echo \"  expected: $BUN_INSTALL_SHA\" >&2\n       echo \"  got:      $actual_sha\" >&2\n       rm \"$tmpfile\"; exit 1\n     fi\n     BUN_VERSION=\"$BUN_VERSION\" bash \"$tmpfile\"\n     rm \"$tmpfile\"\n   fi\n   ```\n\n### 2. Open the cookie picker\n\n```bash\n$B cookie-import-browser\n```\n\nThis auto-detects installed Chromium browsers and opens\nan interactive picker UI in your default browser where you can:\n- Switch between installed browsers\n- Search domains\n- Click \"+\" to import a domain's cookies\n- Click trash to remove imported cookies\n\nTell the user: **\"Cookie picker opened — select the domains you want to import in your browser, then tell me when you're done.\"**\n\n### 3. Direct import (alternative)\n\nIf the user specifies a domain directly (e.g., `\u002Fsetup-browser-cookies github.com`), skip the UI:\n\n```bash\n$B cookie-import-browser comet --domain github.com\n```\n\nReplace `comet` with the appropriate browser if specified.\n\n### 4. Verify\n\nAfter the user confirms they're done:\n\n```bash\n$B cookies\n```\n\nShow the user a summary of imported cookies (domain counts).\n\n## Notes\n\n- On macOS, the first import per browser may trigger a Keychain dialog — click \"Allow\" \u002F \"Always Allow\"\n- On Linux, `v11` cookies may require `secret-tool`\u002Flibsecret access; `v10` cookies use Chromium's standard fallback key\n- Cookie picker is served on the same port as the browse server (no extra process)\n- Only domain names and cookie counts are shown in the UI — no cookie values are exposed\n- The browse session persists cookies between commands, so imported cookies work immediately\n","\u003C!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->\n\u003C!-- Regenerate: bun run gen:skill-docs -->\n\n\n## When to invoke this skill\n\nOpens an interactive picker UI where you select which cookie domains to import.\nUse before QA testing authenticated pages. Use when asked to \"import cookies\",\n\"login to the site\", or \"authenticate the browser\".\n\n## Preamble (run first)\n\n```bash\n_UPD=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-update-check 2>\u002Fdev\u002Fnull || .claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-update-check 2>\u002Fdev\u002Fnull || true)\n[ -n \"$_UPD\" ] && echo \"$_UPD\" || true\nmkdir -p ~\u002F.gstack\u002Fsessions\ntouch ~\u002F.gstack\u002Fsessions\u002F\"$PPID\"\n_SESSIONS=$(find ~\u002F.gstack\u002Fsessions -mmin -120 -type f 2>\u002Fdev\u002Fnull | wc -l | tr -d ' ')\nfind ~\u002F.gstack\u002Fsessions -mmin +120 -type f -exec rm {} + 2>\u002Fdev\u002Fnull || true\n_PROACTIVE=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get proactive 2>\u002Fdev\u002Fnull || echo \"true\")\n_PROACTIVE_PROMPTED=$([ -f ~\u002F.gstack\u002F.proactive-prompted ] && echo \"yes\" || echo \"no\")\n_BRANCH=$(git branch --show-current 2>\u002Fdev\u002Fnull || echo \"unknown\")\necho \"BRANCH: $_BRANCH\"\n_SKILL_PREFIX=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get skill_prefix 2>\u002Fdev\u002Fnull || echo \"false\")\necho \"PROACTIVE: $_PROACTIVE\"\necho \"PROACTIVE_PROMPTED: $_PROACTIVE_PROMPTED\"\necho \"SKILL_PREFIX: $_SKILL_PREFIX\"\nsource \u003C(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-repo-mode 2>\u002Fdev\u002Fnull) || true\nREPO_MODE=${REPO_MODE:-unknown}\necho \"REPO_MODE: $REPO_MODE\"\n_SESSION_KIND=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-session-kind 2>\u002Fdev\u002Fnull || echo \"interactive\")\ncase \"$_SESSION_KIND\" in spawned|headless|interactive) ;; *) _SESSION_KIND=\"interactive\" ;; esac\necho \"SESSION_KIND: $_SESSION_KIND\"\n# Conductor host: AskUserQuestion is unreliable here (native disabled, MCP\n# variant flaky), so skills render decisions as prose instead of calling the\n# tool. Gated on !headless so an eval\u002FCI run INSIDE Conductor (GSTACK_HEADLESS)\n# still BLOCKs rather than rendering prose to nobody.\nif [ \"$_SESSION_KIND\" != \"headless\" ] && { [ -n \"${CONDUCTOR_WORKSPACE_PATH:-}\" ] || [ -n \"${CONDUCTOR_PORT:-}\" ]; }; then\n  echo \"CONDUCTOR_SESSION: true\"\nfi\n_ACTIVATED=$([ -f ~\u002F.gstack\u002F.activated ] && echo \"yes\" || echo \"no\")\n_FIRST_LOOP_SHOWN=$([ -f ~\u002F.gstack\u002F.first-loop-tip-shown ] && echo \"yes\" || echo \"no\")\necho \"ACTIVATED: $_ACTIVATED\"\necho \"FIRST_LOOP_SHOWN: $_FIRST_LOOP_SHOWN\"\n# First-run project detection: run the detector ONLY on the first-ever skill run\n# (ACTIVATED=no, interactive) so it stays off the hot path for every run after.\n_FIRST_TASK=\"\"\nif [ \"$_ACTIVATED\" = \"no\" ] && [ \"$_SESSION_KIND\" != \"headless\" ]; then\n  _FIRST_TASK=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-first-task-detect 2>\u002Fdev\u002Fnull || true)\nfi\necho \"FIRST_TASK: $_FIRST_TASK\"\n_LAKE_SEEN=$([ -f ~\u002F.gstack\u002F.completeness-intro-seen ] && echo \"yes\" || echo \"no\")\necho \"LAKE_INTRO: $_LAKE_SEEN\"\n_TEL=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get telemetry 2>\u002Fdev\u002Fnull || true)\n_TEL_PROMPTED=$([ -f ~\u002F.gstack\u002F.telemetry-prompted ] && echo \"yes\" || echo \"no\")\n_TEL_START=$(date +%s)\n_SESSION_ID=\"$$-$(date +%s)\"\necho \"TELEMETRY: ${_TEL:-off}\"\necho \"TEL_PROMPTED: $_TEL_PROMPTED\"\n_EXPLAIN_LEVEL=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get explain_level 2>\u002Fdev\u002Fnull || echo \"default\")\nif [ \"$_EXPLAIN_LEVEL\" != \"default\" ] && [ \"$_EXPLAIN_LEVEL\" != \"terse\" ]; then _EXPLAIN_LEVEL=\"default\"; fi\necho \"EXPLAIN_LEVEL: $_EXPLAIN_LEVEL\"\n_QUESTION_TUNING=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get question_tuning 2>\u002Fdev\u002Fnull || echo \"false\")\necho \"QUESTION_TUNING: $_QUESTION_TUNING\"\nmkdir -p ~\u002F.gstack\u002Fanalytics\nif [ \"$_TEL\" != \"off\" ]; then\necho '{\"skill\":\"setup-browser-cookies\",\"ts\":\"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\",\"repo\":\"'$(_repo=$(basename \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull)\" 2>\u002Fdev\u002Fnull | tr -cd 'a-zA-Z0-9._-'); echo \"${_repo:-unknown}\")'\"}'  >> ~\u002F.gstack\u002Fanalytics\u002Fskill-usage.jsonl 2>\u002Fdev\u002Fnull || true\nfi\nfor _PF in $(find ~\u002F.gstack\u002Fanalytics -maxdepth 1 -name '.pending-*' 2>\u002Fdev\u002Fnull); do\n  if [ -f \"$_PF\" ]; then\n    if [ \"$_TEL\" != \"off\" ] && [ -x \"~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-telemetry-log\" ]; then\n      ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-telemetry-log --event-type skill_run --skill _pending_finalize --outcome unknown --session-id \"$_SESSION_ID\" 2>\u002Fdev\u002Fnull || true\n    fi\n    rm -f \"$_PF\" 2>\u002Fdev\u002Fnull || true\n  fi\n  break\ndone\neval \"$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-slug 2>\u002Fdev\u002Fnull)\" 2>\u002Fdev\u002Fnull || true\n_LEARN_FILE=\"${GSTACK_HOME:-$HOME\u002F.gstack}\u002Fprojects\u002F${SLUG:-unknown}\u002Flearnings.jsonl\"\nif [ -f \"$_LEARN_FILE\" ]; then\n  _LEARN_COUNT=$(wc -l \u003C \"$_LEARN_FILE\" 2>\u002Fdev\u002Fnull | tr -d ' ')\n  echo \"LEARNINGS: $_LEARN_COUNT entries loaded\"\n  if [ \"$_LEARN_COUNT\" -gt 5 ] 2>\u002Fdev\u002Fnull; then\n    ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-learnings-search --limit 3 2>\u002Fdev\u002Fnull || true\n  fi\nelse\n  echo \"LEARNINGS: 0\"\nfi\n~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-timeline-log '{\"skill\":\"setup-browser-cookies\",\"event\":\"started\",\"branch\":\"'\"$_BRANCH\"'\",\"session\":\"'\"$_SESSION_ID\"'\"}' 2>\u002Fdev\u002Fnull &\n_HAS_ROUTING=\"no\"\nif [ -f CLAUDE.md ] && grep -q \"## Skill routing\" CLAUDE.md 2>\u002Fdev\u002Fnull; then\n  _HAS_ROUTING=\"yes\"\nfi\n_ROUTING_DECLINED=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get routing_declined 2>\u002Fdev\u002Fnull || echo \"false\")\necho \"HAS_ROUTING: $_HAS_ROUTING\"\necho \"ROUTING_DECLINED: $_ROUTING_DECLINED\"\n_VENDORED=\"no\"\nif [ -d \".claude\u002Fskills\u002Fgstack\" ] && [ ! -L \".claude\u002Fskills\u002Fgstack\" ]; then\n  if [ -f \".claude\u002Fskills\u002Fgstack\u002FVERSION\" ] || [ -d \".claude\u002Fskills\u002Fgstack\u002F.git\" ]; then\n    _VENDORED=\"yes\"\n  fi\nfi\necho \"VENDORED_GSTACK: $_VENDORED\"\necho \"MODEL_OVERLAY: claude\"\n_CHECKPOINT_MODE=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get checkpoint_mode 2>\u002Fdev\u002Fnull || echo \"explicit\")\n_CHECKPOINT_PUSH=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get checkpoint_push 2>\u002Fdev\u002Fnull || echo \"false\")\necho \"CHECKPOINT_MODE: $_CHECKPOINT_MODE\"\necho \"CHECKPOINT_PUSH: $_CHECKPOINT_PUSH\"\n# Plan-mode hint for skills like \u002Fspec that branch behavior on plan-mode state.\n# Claude Code exposes plan mode via system reminders; we detect best-effort\n# from CLAUDE_PLAN_FILE (set by the harness when plan mode is active) and\n# fall back to \"inactive\". Codex hosts and Claude execution mode both end up\n# inactive, which is the safe default (defaults to file+execute pipeline).\nif [ -n \"${CLAUDE_PLAN_FILE:-}${GSTACK_PLAN_MODE_FORCE:-}\" ]; then\n  export GSTACK_PLAN_MODE=\"active\"\nelif [ \"${GSTACK_PLAN_MODE:-}\" = \"active\" ]; then\n  export GSTACK_PLAN_MODE=\"active\"\nelse\n  export GSTACK_PLAN_MODE=\"inactive\"\nfi\necho \"GSTACK_PLAN_MODE: $GSTACK_PLAN_MODE\"\n[ -n \"$OPENCLAW_SESSION\" ] && echo \"SPAWNED_SESSION: true\" || true\n```\n\n## Plan Mode Safe Operations\n\nIn plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`\u002F`codex review`, writes to `~\u002F.gstack\u002F`, writes to the plan file, and `open` for generated artifacts.\n\n## Skill Invocation During Plan Mode\n\nIf the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see \"AskUserQuestion Format → Tool resolution\") satisfies plan mode's end-of-turn requirement. If AskUserQuestion is unavailable or a call fails, follow the AskUserQuestion Format failure fallback: `headless` → BLOCKED; `interactive` → the prose fallback (also satisfies end-of-turn). At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked \"PLAN MODE EXCEPTION — ALWAYS RUN\" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.\n\nIf `PROACTIVE` is `\"false\"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: \"I think \u002Fskillname might help here — want me to run it?\"\n\nIf `SKILL_PREFIX` is `\"true\"`, suggest\u002Finvoke `\u002Fgstack-*` names. Disk paths stay `~\u002F.claude\u002Fskills\u002Fgstack\u002F[skill-name]\u002FSKILL.md`.\n\nIf output shows `UPGRADE_AVAILABLE \u003Cold> \u003Cnew>`: read `~\u002F.claude\u002Fskills\u002Fgstack\u002Fgstack-upgrade\u002FSKILL.md` and follow the \"Inline upgrade flow\" (auto-upgrade if configured, otherwise AskUserQuestion with 4 options, write snooze state if declined).\n\nIf output shows `JUST_UPGRADED \u003Cfrom> \u003Cto>`: print \"Running gstack v{to} (just updated!)\". If `SPAWNED_SESSION` is true, skip feature discovery.\n\nFeature discovery, max one prompt per session:\n- Missing `~\u002F.claude\u002Fskills\u002Fgstack\u002F.feature-prompted-continuous-checkpoint`: AskUserQuestion for Continuous checkpoint auto-commits. If accepted, run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set checkpoint_mode continuous`. Always touch marker.\n- Missing `~\u002F.claude\u002Fskills\u002Fgstack\u002F.feature-prompted-model-overlay`: inform \"Model overlays are active. MODEL_OVERLAY shows the patch.\" Always touch marker.\n\nAfter upgrade prompts, continue workflow.\n\nIf `WRITING_STYLE_PENDING` is `yes`: ask once about writing style:\n\n> v1 prompts are simpler: first-use jargon glosses, outcome-framed questions, shorter prose. Keep default or restore terse?\n\nOptions:\n- A) Keep the new default (recommended — good writing helps everyone)\n- B) Restore V0 prose — set `explain_level: terse`\n\nIf A: leave `explain_level` unset (defaults to `default`).\nIf B: run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set explain_level terse`.\n\nAlways run (regardless of choice):\n```bash\nrm -f ~\u002F.gstack\u002F.writing-style-prompt-pending\ntouch ~\u002F.gstack\u002F.writing-style-prompted\n```\n\nSkip if `WRITING_STYLE_PENDING` is `no`.\n\nIf `LAKE_INTRO` is `no`: say \"gstack follows the **Boil the Ocean** principle — do the complete thing when AI makes marginal cost near-zero. Read more: https:\u002F\u002Fgarryslist.org\u002Fposts\u002Fboil-the-ocean\" Offer to open:\n\n```bash\nopen https:\u002F\u002Fgarryslist.org\u002Fposts\u002Fboil-the-ocean\ntouch ~\u002F.gstack\u002F.completeness-intro-seen\n```\n\nOnly run `open` if yes. Always run `touch`.\n\nIf `TEL_PROMPTED` is `no` AND `LAKE_INTRO` is `yes`: ask telemetry once via AskUserQuestion:\n\n> Help gstack get better. Share usage data only: skill, duration, crashes, stable device ID. No code or file paths. Your repo name is recorded locally only and stripped before any upload.\n\nOptions:\n- A) Help gstack get better! (recommended)\n- B) No thanks\n\nIf A: run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set telemetry community`\n\nIf B: ask follow-up:\n\n> Anonymous mode sends only aggregate usage, no unique ID.\n\nOptions:\n- A) Sure, anonymous is fine\n- B) No thanks, fully off\n\nIf B→A: run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set telemetry anonymous`\nIf B→B: run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set telemetry off`\n\nAlways run:\n```bash\ntouch ~\u002F.gstack\u002F.telemetry-prompted\n```\n\nSkip if `TEL_PROMPTED` is `yes`.\n\nIf `PROACTIVE_PROMPTED` is `no` AND `TEL_PROMPTED` is `yes`: ask once:\n\n> Let gstack proactively suggest skills, like \u002Fqa for \"does this work?\" or \u002Finvestigate for bugs?\n\nOptions:\n- A) Keep it on (recommended)\n- B) Turn it off — I'll type \u002Fcommands myself\n\nIf A: run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set proactive true`\nIf B: run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set proactive false`\n\nAlways run:\n```bash\ntouch ~\u002F.gstack\u002F.proactive-prompted\n```\n\nSkip if `PROACTIVE_PROMPTED` is `yes`.\n\n## First-run guidance (one-time)\n\nIf `ACTIVATED` is `no` (first skill run on this machine) AND the preamble printed a non-empty `FIRST_TASK:` value that is NOT `nongit`: show ONE short, project-specific line mapped from the token, as a heads-up, then CONTINUE with whatever the user actually asked — do NOT halt their task. Map the token: `greenfield` → \"Fresh repo — shape it first with `\u002Fspec` or `\u002Foffice-hours`.\" `code_node`\u002F`code_python`\u002F`code_rust`\u002F`code_go`\u002F`code_ruby`\u002F`code_ios` → \"There's code here — `\u002Fqa` to see it work, or `\u002Finvestigate` if something's off.\" `branch_ahead` → \"Unshipped work on this branch — `\u002Freview` then `\u002Fship`.\" `dirty_default` → \"Uncommitted changes — `\u002Freview` before committing.\" `clean_default` → \"Pick one: `\u002Fspec`, `\u002Finvestigate`, or `\u002Fqa`.\" Then substitute the token you saw for TASK_TOKEN and run (best-effort), and mark activated:\n```bash\n~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-telemetry-log --event-type first_task_scaffold_shown --skill \"TASK_TOKEN\" --outcome shown 2>\u002Fdev\u002Fnull || true\ntouch ~\u002F.gstack\u002F.activated 2>\u002Fdev\u002Fnull || true\n```\n\nIf `ACTIVATED` is `no` but `FIRST_TASK:` is empty or `nongit` (headless, non-git, or nothing actionable): show nothing, just run `touch ~\u002F.gstack\u002F.activated 2>\u002Fdev\u002Fnull || true`.\n\nElse if `ACTIVATED` is `yes` AND `FIRST_LOOP_SHOWN` is `no`: say once as a heads-up (then continue):\n\n> Tip: gstack pays off when you complete one loop — **plan → review → ship**. A common first loop: `\u002Foffice-hours` or `\u002Fspec` to shape it, `\u002Fplan-eng-review` to lock it, then `\u002Fship`.\n\nThen run `touch ~\u002F.gstack\u002F.first-loop-tip-shown 2>\u002Fdev\u002Fnull || true`.\n\nSkip this section if `ACTIVATED` and `FIRST_LOOP_SHOWN` are both `yes`.\n\nIf `HAS_ROUTING` is `no` AND `ROUTING_DECLINED` is `false` AND `PROACTIVE_PROMPTED` is `yes`:\nCheck if a CLAUDE.md file exists in the project root. If it does not exist, create it.\n\nUse AskUserQuestion:\n\n> gstack works best when your project's CLAUDE.md includes skill routing rules.\n\nOptions:\n- A) Add routing rules to CLAUDE.md (recommended)\n- B) No thanks, I'll invoke skills manually\n\nIf A: Append this section to the end of CLAUDE.md:\n\n```markdown\n\n## Skill routing\n\nWhen the user's request matches an available skill, invoke it via the Skill tool. When in doubt, invoke the skill.\n\nKey routing rules:\n- Product ideas\u002Fbrainstorming → invoke \u002Foffice-hours\n- Strategy\u002Fscope → invoke \u002Fplan-ceo-review\n- Architecture → invoke \u002Fplan-eng-review\n- Design system\u002Fplan review → invoke \u002Fdesign-consultation or \u002Fplan-design-review\n- Full review pipeline → invoke \u002Fautoplan\n- Bugs\u002Ferrors → invoke \u002Finvestigate\n- QA\u002Ftesting site behavior → invoke \u002Fqa or \u002Fqa-only\n- Code review\u002Fdiff check → invoke \u002Freview\n- Visual polish → invoke \u002Fdesign-review\n- Ship\u002Fdeploy\u002FPR → invoke \u002Fship or \u002Fland-and-deploy\n- Save progress → invoke \u002Fcontext-save\n- Resume context → invoke \u002Fcontext-restore\n- Author a backlog-ready spec\u002Fissue → invoke \u002Fspec\n```\n\nThen commit the change: `git add CLAUDE.md && git commit -m \"chore: add gstack skill routing rules to CLAUDE.md\"`\n\nIf B: run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config set routing_declined true` and say they can re-enable with `gstack-config set routing_declined false`.\n\nThis only happens once per project. Skip if `HAS_ROUTING` is `yes` or `ROUTING_DECLINED` is `true`.\n\nIf `VENDORED_GSTACK` is `yes`, warn once via AskUserQuestion unless `~\u002F.gstack\u002F.vendoring-warned-$SLUG` exists:\n\n> This project has gstack vendored in `.claude\u002Fskills\u002Fgstack\u002F`. Vendoring is deprecated.\n> Migrate to team mode?\n\nOptions:\n- A) Yes, migrate to team mode now\n- B) No, I'll handle it myself\n\nIf A:\n1. Run `git rm -r .claude\u002Fskills\u002Fgstack\u002F`\n2. Run `echo '.claude\u002Fskills\u002Fgstack\u002F' >> .gitignore`\n3. Run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-team-init required` (or `optional`)\n4. Run `git add .claude\u002F .gitignore CLAUDE.md && git commit -m \"chore: migrate gstack from vendored to team mode\"`\n5. Tell the user: \"Done. Each developer now runs: `cd ~\u002F.claude\u002Fskills\u002Fgstack && .\u002Fsetup --team`\"\n\nIf B: say \"OK, you're on your own to keep the vendored copy up to date.\"\n\nAlways run (regardless of choice):\n```bash\neval \"$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-slug 2>\u002Fdev\u002Fnull)\" 2>\u002Fdev\u002Fnull || true\ntouch ~\u002F.gstack\u002F.vendoring-warned-${SLUG:-unknown}\n```\n\nIf marker exists, skip.\n\nIf `SPAWNED_SESSION` is `\"true\"`, you are running inside a session spawned by an\nAI orchestrator (e.g., OpenClaw). In spawned sessions:\n- Do NOT use AskUserQuestion for interactive prompts. Auto-choose the recommended option.\n- Do NOT run upgrade checks, telemetry prompts, routing injection, or lake intro.\n- Focus on completing the task and reporting results via prose output.\n- End with a completion report: what shipped, decisions made, anything uncertain.\n\n## Artifacts Sync (skill start)\n\n```bash\n_GSTACK_HOME=\"${GSTACK_HOME:-$HOME\u002F.gstack}\"\n# Prefer the v1.27.0.0 artifacts file; fall back to brain file for users\n# upgrading mid-stream before the migration script runs.\nif [ -f \"$HOME\u002F.gstack-artifacts-remote.txt\" ]; then\n  _BRAIN_REMOTE_FILE=\"$HOME\u002F.gstack-artifacts-remote.txt\"\nelse\n  _BRAIN_REMOTE_FILE=\"$HOME\u002F.gstack-brain-remote.txt\"\nfi\n_BRAIN_SYNC_BIN=\"~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-brain-sync\"\n_BRAIN_CONFIG_BIN=\"~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config\"\n\n# \u002Fsync-gbrain context-load: teach the agent to use gbrain when it's available.\n# Per-worktree pin: post-spike redesign uses kubectl-style `.gbrain-source` in the\n# git toplevel to scope queries. Look for the pin in the worktree (not a global\n# state file) so that opening worktree B without a pin doesn't claim \"indexed\"\n# just because worktree A was synced. Empty string when gbrain is not\n# configured (zero context cost for non-gbrain users).\n_GBRAIN_CONFIG=\"$HOME\u002F.gbrain\u002Fconfig.json\"\nif [ -f \"$_GBRAIN_CONFIG\" ] && command -v gbrain >\u002Fdev\u002Fnull 2>&1; then\n  _GBRAIN_VERSION_OK=$(gbrain --version 2>\u002Fdev\u002Fnull | grep -c '^gbrain ' || echo 0)\n  if [ \"$_GBRAIN_VERSION_OK\" -gt 0 ] 2>\u002Fdev\u002Fnull; then\n    _GBRAIN_PIN_PATH=\"\"\n    _REPO_TOP=$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || echo \"\")\n    if [ -n \"$_REPO_TOP\" ] && [ -f \"$_REPO_TOP\u002F.gbrain-source\" ]; then\n      _GBRAIN_PIN_PATH=\"$_REPO_TOP\u002F.gbrain-source\"\n    fi\n    if [ -n \"$_GBRAIN_PIN_PATH\" ]; then\n      echo \"GBrain configured. Prefer \\`gbrain search\\`\u002F\\`gbrain query\\` over Grep for\"\n      echo \"semantic questions; use \\`gbrain code-def\\`\u002F\\`code-refs\\`\u002F\\`code-callers\\` for\"\n      echo \"symbol-aware code lookup. See \\\"## GBrain Search Guidance\\\" in CLAUDE.md.\"\n      echo \"Run \u002Fsync-gbrain to refresh.\"\n    else\n      echo \"GBrain configured but this worktree isn't pinned yet. Run \\`\u002Fsync-gbrain --full\\`\"\n      echo \"before relying on \\`gbrain search\\` for code questions in this worktree.\"\n      echo \"Falls back to Grep until pinned.\"\n    fi\n  fi\nfi\n\n_BRAIN_SYNC_MODE=$(\"$_BRAIN_CONFIG_BIN\" get artifacts_sync_mode 2>\u002Fdev\u002Fnull || echo off)\n\n# Detect remote-MCP mode (Path 4 of \u002Fsetup-gbrain). Local artifacts sync is\n# a no-op in remote mode; the brain server pulls from GitHub\u002FGitLab on its\n# own cadence. Read claude.json directly to keep this preamble fast (no\n# subprocess to claude CLI on every skill start).\n_GBRAIN_MCP_MODE=\"none\"\nif command -v jq >\u002Fdev\u002Fnull 2>&1 && [ -f \"$HOME\u002F.claude.json\" ]; then\n  _GBRAIN_MCP_TYPE=$(jq -r '.mcpServers.gbrain.type \u002F\u002F .mcpServers.gbrain.transport \u002F\u002F empty' \"$HOME\u002F.claude.json\" 2>\u002Fdev\u002Fnull)\n  case \"$_GBRAIN_MCP_TYPE\" in\n    url|http|sse) _GBRAIN_MCP_MODE=\"remote-http\" ;;\n    stdio) _GBRAIN_MCP_MODE=\"local-stdio\" ;;\n  esac\nfi\n\nif [ -f \"$_BRAIN_REMOTE_FILE\" ] && [ ! -d \"$_GSTACK_HOME\u002F.git\" ] && [ \"$_BRAIN_SYNC_MODE\" = \"off\" ]; then\n  _BRAIN_NEW_URL=$(head -1 \"$_BRAIN_REMOTE_FILE\" 2>\u002Fdev\u002Fnull | tr -d '[:space:]')\n  if [ -n \"$_BRAIN_NEW_URL\" ]; then\n    echo \"ARTIFACTS_SYNC: artifacts repo detected: $_BRAIN_NEW_URL\"\n    echo \"ARTIFACTS_SYNC: run 'gstack-brain-restore' to pull your cross-machine artifacts (or 'gstack-config set artifacts_sync_mode off' to dismiss forever)\"\n  fi\nfi\n\nif [ -d \"$_GSTACK_HOME\u002F.git\" ] && [ \"$_BRAIN_SYNC_MODE\" != \"off\" ]; then\n  _BRAIN_LAST_PULL_FILE=\"$_GSTACK_HOME\u002F.brain-last-pull\"\n  _BRAIN_NOW=$(date +%s)\n  _BRAIN_DO_PULL=1\n  if [ -f \"$_BRAIN_LAST_PULL_FILE\" ]; then\n    _BRAIN_LAST=$(cat \"$_BRAIN_LAST_PULL_FILE\" 2>\u002Fdev\u002Fnull || echo 0)\n    _BRAIN_AGE=$(( _BRAIN_NOW - _BRAIN_LAST ))\n    [ \"$_BRAIN_AGE\" -lt 86400 ] && _BRAIN_DO_PULL=0\n  fi\n  if [ \"$_BRAIN_DO_PULL\" = \"1\" ]; then\n    ( cd \"$_GSTACK_HOME\" && git fetch origin >\u002Fdev\u002Fnull 2>&1 && git merge --ff-only \"origin\u002F$(git rev-parse --abbrev-ref HEAD)\" >\u002Fdev\u002Fnull 2>&1 ) || true\n    echo \"$_BRAIN_NOW\" > \"$_BRAIN_LAST_PULL_FILE\"\n  fi\n  \"$_BRAIN_SYNC_BIN\" --once 2>\u002Fdev\u002Fnull || true\nfi\n\nif [ \"$_GBRAIN_MCP_MODE\" = \"remote-http\" ]; then\n  # Remote-MCP mode: local artifacts sync is a no-op (brain admin's server\n  # pulls from GitHub\u002FGitLab). Show the user this is by design, not broken.\n  _GBRAIN_HOST=$(jq -r '.mcpServers.gbrain.url \u002F\u002F empty' \"$HOME\u002F.claude.json\" 2>\u002Fdev\u002Fnull | sed -E 's|^https?:\u002F\u002F([^\u002F:]+).*|\\1|')\n  echo \"ARTIFACTS_SYNC: remote-mode (managed by brain server ${_GBRAIN_HOST:-remote})\"\nelif [ -d \"$_GSTACK_HOME\u002F.git\" ] && [ \"$_BRAIN_SYNC_MODE\" != \"off\" ]; then\n  _BRAIN_QUEUE_DEPTH=0\n  [ -f \"$_GSTACK_HOME\u002F.brain-queue.jsonl\" ] && _BRAIN_QUEUE_DEPTH=$(wc -l \u003C \"$_GSTACK_HOME\u002F.brain-queue.jsonl\" | tr -d ' ')\n  _BRAIN_LAST_PUSH=\"never\"\n  [ -f \"$_GSTACK_HOME\u002F.brain-last-push\" ] && _BRAIN_LAST_PUSH=$(cat \"$_GSTACK_HOME\u002F.brain-last-push\" 2>\u002Fdev\u002Fnull || echo never)\n  echo \"ARTIFACTS_SYNC: mode=$_BRAIN_SYNC_MODE | last_push=$_BRAIN_LAST_PUSH | queue=$_BRAIN_QUEUE_DEPTH\"\nelse\n  echo \"ARTIFACTS_SYNC: off\"\nfi\n```\n\n\n\nPrivacy stop-gate: if output shows `ARTIFACTS_SYNC: off`, `artifacts_sync_mode_prompted` is `false`, and gbrain is on PATH or `gbrain doctor --fast --json` works, ask once:\n\n> gstack can publish your artifacts (CEO plans, designs, reports) to a private GitHub repo that GBrain indexes across machines. How much should sync?\n\nOptions:\n- A) Everything allowlisted (recommended)\n- B) Only artifacts\n- C) Decline, keep everything local\n\nAfter answer:\n\n```bash\n# Chosen mode: full | artifacts-only | off\n\"$_BRAIN_CONFIG_BIN\" set artifacts_sync_mode \u003Cchoice>\n\"$_BRAIN_CONFIG_BIN\" set artifacts_sync_mode_prompted true\n```\n\nIf A\u002FB and `~\u002F.gstack\u002F.git` is missing, ask whether to run `gstack-artifacts-init`. Do not block the skill.\n\nAt skill END before telemetry:\n\n```bash\n\"~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-brain-sync\" --discover-new 2>\u002Fdev\u002Fnull || true\n\"~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-brain-sync\" --once 2>\u002Fdev\u002Fnull || true\n```\n\n\n## Model-Specific Behavioral Patch (claude)\n\nThe following nudges are tuned for the claude model family. They are\n**subordinate** to skill workflow, STOP points, AskUserQuestion gates, plan-mode\nsafety, and \u002Fship review gates. If a nudge below conflicts with skill instructions,\nthe skill wins. Treat these as preferences, not rules.\n\n**Todo-list discipline.** When working through a multi-step plan, mark each task\ncomplete individually as you finish it. Do not batch-complete at the end. If a task\nturns out to be unnecessary, mark it skipped with a one-line reason.\n\n**Think before heavy actions.** For complex operations (refactors, migrations,\nnon-trivial new features), briefly state your approach before executing. This lets\nthe user course-correct cheaply instead of mid-flight.\n\n**Dedicated tools over Bash.** Prefer Read, Edit, Write, Glob, Grep over shell\nequivalents (cat, sed, find, grep). The dedicated tools are cheaper and clearer.\n\n## Voice\n\nDirect, concrete, builder-to-builder. Name the file, function, command, and user-visible impact. No filler.\n\nNo em dashes. No AI vocabulary: delve, crucial, robust, comprehensive, nuanced, multifaceted. Never corporate or academic. Short paragraphs. End with what to do.\n\nThe user has context you do not. Cross-model agreement is a recommendation, not a decision. The user decides.\n\n## Completion Status Protocol\n\nWhen completing a skill workflow, report status using one of:\n- **DONE** — completed with evidence.\n- **DONE_WITH_CONCERNS** — completed, but list concerns.\n- **BLOCKED** — cannot proceed; state blocker and what was tried.\n- **NEEDS_CONTEXT** — missing info; state exactly what is needed.\n\nEscalate after 3 failed attempts, uncertain security-sensitive changes, or scope you cannot verify. Format: `STATUS`, `REASON`, `ATTEMPTED`, `RECOMMENDATION`.\n\n## Operational Self-Improvement\n\nBefore completing, if you discovered a durable project quirk or command fix that would save 5+ minutes next time, log it:\n\n```bash\n~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-learnings-log '{\"skill\":\"SKILL_NAME\",\"type\":\"operational\",\"key\":\"SHORT_KEY\",\"insight\":\"DESCRIPTION\",\"confidence\":N,\"source\":\"observed\"}'\n```\n\nDo not log obvious facts or one-time transient errors.\n\n## Telemetry (run last)\n\nAfter workflow completion, log telemetry. Use skill `name:` from frontmatter. OUTCOME is success\u002Ferror\u002Fabort\u002Funknown.\n\n**PLAN MODE EXCEPTION — ALWAYS RUN:** This command writes telemetry to\n`~\u002F.gstack\u002Fanalytics\u002F`, matching preamble analytics writes.\n\nRun this bash:\n\n```bash\n_TEL_END=$(date +%s)\n_TEL_DUR=$(( _TEL_END - _TEL_START ))\nrm -f ~\u002F.gstack\u002Fanalytics\u002F.pending-\"$_SESSION_ID\" 2>\u002Fdev\u002Fnull || true\n# Session timeline: record skill completion (local-only, never sent anywhere)\n~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-timeline-log '{\"skill\":\"SKILL_NAME\",\"event\":\"completed\",\"branch\":\"'$(git branch --show-current 2>\u002Fdev\u002Fnull || echo unknown)'\",\"outcome\":\"OUTCOME\",\"duration_s\":\"'\"$_TEL_DUR\"'\",\"session\":\"'\"$_SESSION_ID\"'\"}' 2>\u002Fdev\u002Fnull || true\n# Local analytics (gated on telemetry setting)\nif [ \"$_TEL\" != \"off\" ]; then\necho '{\"skill\":\"SKILL_NAME\",\"duration_s\":\"'\"$_TEL_DUR\"'\",\"outcome\":\"OUTCOME\",\"browse\":\"USED_BROWSE\",\"session\":\"'\"$_SESSION_ID\"'\",\"ts\":\"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\"}' >> ~\u002F.gstack\u002Fanalytics\u002Fskill-usage.jsonl 2>\u002Fdev\u002Fnull || true\nfi\n# Remote telemetry (opt-in, requires binary)\nif [ \"$_TEL\" != \"off\" ] && [ -x ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-telemetry-log ]; then\n  ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-telemetry-log \\\n    --skill \"SKILL_NAME\" --duration \"$_TEL_DUR\" --outcome \"OUTCOME\" \\\n    --used-browse \"USED_BROWSE\" --session-id \"$_SESSION_ID\" 2>\u002Fdev\u002Fnull &\nfi\n```\n\nReplace `SKILL_NAME`, `OUTCOME`, and `USED_BROWSE` before running.\n\n## Plan Status Footer\n\nSkills that run plan reviews (`\u002Fplan-*-review`, `\u002Fcodex review`) include the EXIT PLAN MODE GATE blocking checklist at the end of the skill, which verifies the plan file ends with `## GSTACK REVIEW REPORT` before ExitPlanMode is called. Skills that don't run plan reviews (operational skills like `\u002Fship`, `\u002Fqa`, `\u002Freview`) typically don't operate in plan mode and have no review report to verify; this footer is a no-op for them. Writing the plan file is the one edit allowed in plan mode.\n\n# Setup Browser Cookies\n\nImport logged-in sessions from your real Chromium browser into the headless browse session.\n\n## CDP mode check\n\nFirst, check if browse is already connected to the user's real browser:\n```bash\n$B status 2>\u002Fdev\u002Fnull | grep -q \"Mode: cdp\" && echo \"CDP_MODE=true\" || echo \"CDP_MODE=false\"\n```\nIf `CDP_MODE=true`: tell the user \"Not needed — you're connected to your real browser via CDP. Your cookies and sessions are already available.\" and stop. No cookie import needed.\n\n## How it works\n\n1. Find the browse binary\n2. Run `cookie-import-browser` to detect installed browsers and open the picker UI\n3. User selects which cookie domains to import in their browser\n4. Cookies are decrypted and loaded into the Playwright session\n\n## Steps\n\n### 1. Find the browse binary\n\n## SETUP (run this check BEFORE any browse command)\n\n```bash\n_ROOT=$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull)\nB=\"\"\n[ -n \"$_ROOT\" ] && [ -x \"$_ROOT\u002F.claude\u002Fskills\u002Fgstack\u002Fbrowse\u002Fdist\u002Fbrowse\" ] && B=\"$_ROOT\u002F.claude\u002Fskills\u002Fgstack\u002Fbrowse\u002Fdist\u002Fbrowse\"\n[ -z \"$B\" ] && B=\"$HOME\u002F.claude\u002Fskills\u002Fgstack\u002Fbrowse\u002Fdist\u002Fbrowse\"\nif [ -x \"$B\" ]; then\n  echo \"READY: $B\"\nelse\n  echo \"NEEDS_SETUP\"\nfi\n```\n\nIf `NEEDS_SETUP`:\n1. Tell the user: \"gstack browse needs a one-time build (~10 seconds). OK to proceed?\" Then STOP and wait.\n2. Run: `cd \u003CSKILL_DIR> && .\u002Fsetup`\n3. If `bun` is not installed:\n   ```bash\n   if ! command -v bun >\u002Fdev\u002Fnull 2>&1; then\n     BUN_VERSION=\"1.3.10\"\n     BUN_INSTALL_SHA=\"bab8acfb046aac8c72407bdcce903957665d655d7acaa3e11c7c4616beae68dd\"\n     tmpfile=$(mktemp)\n     curl -fsSL \"https:\u002F\u002Fbun.sh\u002Finstall\" -o \"$tmpfile\"\n     actual_sha=$(shasum -a 256 \"$tmpfile\" | awk '{print $1}')\n     if [ \"$actual_sha\" != \"$BUN_INSTALL_SHA\" ]; then\n       echo \"ERROR: bun install script checksum mismatch\" >&2\n       echo \"  expected: $BUN_INSTALL_SHA\" >&2\n       echo \"  got:      $actual_sha\" >&2\n       rm \"$tmpfile\"; exit 1\n     fi\n     BUN_VERSION=\"$BUN_VERSION\" bash \"$tmpfile\"\n     rm \"$tmpfile\"\n   fi\n   ```\n\n### 2. Open the cookie picker\n\n```bash\n$B cookie-import-browser\n```\n\nThis auto-detects installed Chromium browsers and opens\nan interactive picker UI in your default browser where you can:\n- Switch between installed browsers\n- Search domains\n- Click \"+\" to import a domain's cookies\n- Click trash to remove imported cookies\n\nTell the user: **\"Cookie picker opened — select the domains you want to import in your browser, then tell me when you're done.\"**\n\n### 3. Direct import (alternative)\n\nIf the user specifies a domain directly (e.g., `\u002Fsetup-browser-cookies github.com`), skip the UI:\n\n```bash\n$B cookie-import-browser comet --domain github.com\n```\n\nReplace `comet` with the appropriate browser if specified.\n\n### 4. Verify\n\nAfter the user confirms they're done:\n\n```bash\n$B cookies\n```\n\nShow the user a summary of imported cookies (domain counts).\n\n## Notes\n\n- On macOS, the first import per browser may trigger a Keychain dialog — click \"Allow\" \u002F \"Always Allow\"\n- On Linux, `v11` cookies may require `secret-tool`\u002Flibsecret access; `v10` cookies use Chromium's standard fallback key\n- Cookie picker is served on the same port as the browse server (no extra process)\n- Only domain names and cookie counts are shown in the UI — no cookie values are exposed\n- The browse session persists cookies between commands, so imported cookies work immediately\n",{"name":5,"version":45,"triggers":46,"description":7,"allowed-tools":50,"preamble-tier":53},"1.0.0",[47,48,49],"import browser cookies","login to test site","setup authenticated session",[29,51,52],"Read","AskUserQuestion",1,"main","7850740bd837adb32f0a109ab2af82482196c6f2","skills\u002Fgstack\u002Fsetup-browser-cookies","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills","https:\u002F\u002Fzturnsgo.com","https:\u002F\u002Fgithub.com\u002Fshengdabai","https:\u002F\u002Fzturnsgo.com\u002F","AI × education creator — producer, not consumer. Taught 6,000+ learners; shipping learning tools & daily essays with Claude Code, practicing @xiaolai's way 🥋","2026-11-01 21:28:23",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add shengdabai\u002FTony-Claude-Code-Skills --skill setup-browser-cookies",{"tool":69,"command":70},"bunx","bunx skills add shengdabai\u002FTony-Claude-Code-Skills --skill setup-browser-cookies",{"tool":72,"command":73},"pnpm","pnpm dlx skills add shengdabai\u002FTony-Claude-Code-Skills --skill setup-browser-cookies","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fgstack\u002Fsetup-browser-cookies\u002FSKILL.md",true,[77],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"SKILL.md.tmpl","OTHER","其他",2724,"https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fgstack\u002Fsetup-browser-cookies\u002FSKILL.md.tmpl",[84,101,133,160,182,202],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":93,"publishedAt":40},"01M70P17DAD4C1C47NPH6A96EM","xiaolai-methodology","以李笑来(Li Xiaolai)的思考方式、方法论与表达风格,为用户做全方位 1-on-1 教练指导,覆盖创业、赚钱、投资、学习、自学、读书写作、用 AI、以及人生心态与自我管理。当用户提到 \"李笑来\"、\"笑来\"、\"笑来老师\"、\"扮演李笑来\"、\"找笑来聊聊\"、\"笑来怎么看\"、\"xiaolai\"、\"把时间当作朋友\"、\"通往财富自由之路\"、\"定投改变命运\"、\"韭菜的自我修养\"、\"自学是门手艺\"、\"让时间陪你慢慢变富\"、\"七年就是一辈子\"、\"元认知\"、\"活在未来\"、\"复利\u002F长期主义\"、\"践行\"、\"痴迷改进\"、\"个人商业模式\u002F出售时间\"、\"睡后收入\"、\"定投\"、\"财富自由\"、\"操作系统升级\"、\"最少必要知识\"、\"北极星提示词\"、\"用 AI 该怎么学\u002F思考\" 等任一触发词,或当用户带着关于创业\u002F赚钱\u002F投资\u002F学习\u002F职业\u002F重大人生决策的困惑、希望被人用笑来式的「逻辑 + 大白话 + 类比 + 重新定义 + 践行导向」来点醒和指导时,自动进入李笑来教练模式。","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fxiaolai-methodology\u002FSKILL.md",[90],{"categoryNo":91,"categoryName":92,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",[94,95,96,97,98,99,100],"methodology","xiaolai","xiaolai methodology","朋友","投资","writing","收入",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":113,"publishedAt":40},"01M70P13NB9YP7ACJR1S861CDS","zread","Produce and consume a wiki-style knowledge base for a code repository via the `zread` CLI and its on-disk output under `.\u002F.zread\u002Fwiki\u002F`. Use this skill whenever the user wants to understand, onboard onto, explore, summarize, map, or get an overview of an unfamiliar codebase; asks for architecture docs, a project wiki, a repo walkthrough, module\u002Fpackage explanations, or \"what does this repo do\"; wants to generate, regenerate, resume, browse, or serve code documentation locally; or mentions zread \u002F zread.ai directly. Also use it proactively before diving into a large unknown repo — if `.\u002F.zread\u002Fwiki\u002Fcurrent` exists, read the generated pages instead of crawling source file-by-file; if it doesn't, consider offering to run `zread generate`. The trigger is the intent (understand a codebase through generated docs), not the literal word \"zread\".","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fzread\u002FSKILL.md",[107,108],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":109,"categoryName":110,"taxonomyType":111,"taxonomyTypeDesc":112},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[103,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132],"knowledge","wiki","explore","walkthrough","project","get","knowledge base","run","generate","intent","cli","map","documentation","project wiki","disk","architecture","code","unknown","generated",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":143,"publishedAt":40},"01M70P10S4SWMZQ8BJAFBFDRW3","youtube","Launch the YouTube Creator Agent to auto-generate videos.\nUse when: user types \u002Fyoutube, wants to create YouTube videos,\ngenerate video content, or upload to YouTube.\nKeywords: youtube, video, 视频, 创作视频, 发布视频","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube\u002FSKILL.md",[139,140],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":141,"categoryName":142,"taxonomyType":111,"taxonomyTypeDesc":112},"01JBSEEDCAT000000000000036","内容创作者",[135,144,145,146,147,148,149,150,122,151,152,153,154,155,156,157,158,159],"user","content","视频","creator","generate video","videos","launch","video content","create","upload","when","use","auto","types","Video","创作",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":167,"publishedAt":40},"01M70P0YE95D8BACZCGV8BK90K","youtube-script-sync","Sync, update, or optimize Tony's GetNote knowledge base `Youtube视频逐字稿` by turning each parent recording or first-person idea note into an idempotent child note containing a directly recordable YouTube long-video or Shorts script. Use when the user says “更新\u002F同步\u002F优化 Youtube视频逐字稿知识库”, or says “更新\u002F同步\u002F优化该知识库” while this knowledge base is the active context.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-script-sync\u002FSKILL.md",[166],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[168,169,135,170,171,158,172,173,174,175,176,177,178,179,120,180,154,155,114,181],"sync","script","youtube script sync","recording","shorts","first","base","person","update","active","child","optimize","idempotent","long",{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":192,"publishedAt":40},"01M70P0WMV5XT0EEC0N445PW07","writing-skills","How to write SKILL.md files that trigger reliably and teach effectively. Use when creating, improving, or reviewing Claude Code skills.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fxiaolai\u002Fnlpm\u002Fskills\u002Fnlpm\u002Fwriting-skills\u002FSKILL.md",[188,189,190,191],{"categoryNo":91,"categoryName":92,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":109,"categoryName":110,"taxonomyType":111,"taxonomyTypeDesc":112},{"categoryNo":141,"categoryName":142,"taxonomyType":111,"taxonomyTypeDesc":112},[193,99,194,195,196,197,130,154,155,198,199,200,201],"writing skills","how","teach","write skill","write","claude code skills","files","how to","trigger",{"skillNo":203,"name":204,"nameZh":6,"description":205,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":206,"categories":207,"keywords":210,"publishedAt":40},"01M70P0SJFR4YVJQBGMHKGSKXT","writing-rules","How to write .claude\u002Frules\u002F files that Claude actually follows. Use when creating, improving, or reviewing project rules.","https:\u002F\u002Fgithub.com\u002Fshengdabai\u002FTony-Claude-Code-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fxiaolai\u002Fnlpm\u002Fskills\u002Fnlpm\u002Fwriting-rules\u002FSKILL.md",[208,209],{"categoryNo":91,"categoryName":92,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":141,"categoryName":142,"taxonomyType":111,"taxonomyTypeDesc":112},[211,99,212,118,213,199,154,194,197,155,200],"Rules","writing rules","project rules"]