Skip to content

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

TypeScript
11.5 KB
Raw Blame
{
  "name": "setup-browser-cookies/SKILL.md workflow",
  "suite": "Cookie setup workflow quality",
  "tier": "llm-judge",
  "passed": false,
  "execution": "executed",
  "exit_reason": "provider_refusal",
  "attempt": 1,
  "duration_ms": 1,
  "cost_usd": 0,
  "model": "claude-fable-5-1",
  "prompt": "You are evaluating the quality of a fallback-browser cookie import workflow for an AI coding agent.\n\nThe agent reads these source files to learn how to select an authorized source browser, profile, and domain without guessing an account; configure optional authentication verification before mutation; obtain explicit consent for precisely scoped storage reset; distinguish copied cookies from positive sign-in evidence; and recover within the documented platform and privacy boundaries. Shared preamble definitions and\nexternal tools/files are documented separately; do not penalize their absence from this bundle.\nOn-demand sections retain their original file boundaries and Read instructions; the section\nindex refers to those files, not duplicate work. The bundle order is not execution order.\nJudge the actual instructions, including contradictory ordering or missing decisions.\n\nRate on three dimensions (1-5 scale):\n- **clarity** (1-5): Can an agent follow the instructions without ambiguity?\n- **completeness** (1-5): Are all steps, decision points, and outputs well-defined?\n- **actionability** (1-5): Can an agent execute this workflow and produce the expected deliverables?\n\nRespond with ONLY valid JSON:\n{\"clarity\": N, \"completeness\": N, \"actionability\": N, \"reasoning\": \"brief explanation\"}\n\nHere is the source-file bundle to evaluate:\n\nSKILL.md is the entry point. BROWSER.md supplies the exact referenced cookie section, not an additional execution step.\n\n--- BEGIN FILE \"setup-browser-cookies/SKILL.md\" (lines 153-235; entrypoint) ---\n# Setup Browser Cookies\n\n## 1. Choose the browser\n\nUse this checkout as the gstack root if it contains `BROWSER.md` and `browse/SKILL.md`; otherwise use the installed root containing `bin/gstack-skill-start`, never a generated host stub. Read that root's `browse/SKILL.md` **BROWSER SETUP** section and run its probe first. On `READY`, stop importing: use Aside's sessions or ask the user to sign in there. Otherwise follow the probe's fallback handling, then continue below.\n\n## SETUP (run this check BEFORE any browse command)\n\n```bash\n_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)\nB=\"\"\n[ -n \"$_ROOT\" ] && [ -x \"$_ROOT/.claude/skills/gstack/browse/dist/browse\" ] && B=\"$_ROOT/.claude/skills/gstack/browse/dist/browse\"\n[ -z \"$B\" ] && B=\"$HOME/.claude/skills/gstack/browse/dist/browse\"\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 <SKILL_DIR> && ./setup`\n3. If `bun` is not installed:\n   ```bash\n   if ! command -v bun >/dev/null 2>&1; then\n     BUN_VERSION=\"1.3.10\"\n     BUN_INSTALL_SHA=\"bab8acfb046aac8c72407bdcce903957665d655d7acaa3e11c7c4616beae68dd\"\n     tmpfile=$(mktemp)\n     curl -fsSL \"https://bun.sh/install\" -o \"$tmpfile\"\n     # shasum is macOS/perl; coreutils-only Linux ships sha256sum instead —\n     # resolve whichever exists so the verify never fails on a missing tool.\n     if command -v sha256sum >/dev/null 2>&1; then\n       actual_sha=$(sha256sum \"$tmpfile\" | awk '{print $1}')\n     else\n       actual_sha=$(shasum -a 256 \"$tmpfile\" | awk '{print $1}')\n     fi\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```bash\n$B status\n```\nIf status says `Mode: cdp`, stop: the real browser already has sessions.\n\n## 2. Confirm options before import\n\nOpen the known target and keep its tab unchanged. Both options default off and require explicit request:\n\n- **`--verify-auth` / picker checkbox:** reloads the target. Have the user privately configure daemon `GSTACK_COOKIE_AUTH_SELECTOR` and `GSTACK_COOKIE_AUTH_EXPECTED_IDENTITY` **before startup**. Never invent values or assume CLI env reconfigures an existing daemon. Missing config rejects before mutation. Require a successful same-origin response and exactly one visible element whose whitespace-normalized text exactly matches the expected identity.\n- **`--clear-storage`:** for suspected stale storage, obtain explicit approval. Chromium only: clears captured-origin localStorage (shared across same-origin context tabs) and target-tab sessionStorage. Other origins, other tabs' sessionStorage, IndexedDB, and service workers stay intact. It uses an isolated world/native deadline; other engines reject reset, not imports/auth checks. Never auto-approve or claim rollback after partial failure.\n\n## 3. Select source and scope\n\n```bash\n$B cookie-import-browser\n```\n\nAsk the user to choose browser, account/profile, and domains, then say when done. Never guess accounts or treat default Comet as consent. Unreadable profiles are unknown, not empty. Rerun for an expired five-minute one-use link.\n\nDirect import: pass the chosen browser and `--domain` after navigating to a matching target. `--profile` takes a directory, not a display name; omit only for an unambiguous relevant profile, otherwise use the picker. `--all` requires consent for all non-expired profile cookies; it cannot accompany `--domain` or `--clear-storage`.\n\nRead that same root's `BROWSER.md`, **Choosing a source and checking sign-in**, for examples, profile labels, supported sources and platform setup.\n\n## 4. Report honestly\n\nReport receipt/picker counts, partial/zero/error and reset outcomes, not raw `$B cookies`. Imports affect the context, not one tab. **Not checked** means no requested check; **not verified** means it failed; **verified** requires positive target evidence. Zero imports, counts, or HTTP 200 never prove login.\n\nNever request/publish cookie values, passwords, identity/profile text, session details, or raw errors in public logs.\n\n## Platform boundaries\n\nDia is macOS-only. Keychain approval is the user's choice. Database retries are bounded; permission denial needs user action, not repeated prompts.\n\nWindows supports DPAPI-compatible cookies, not all App-Bound Encryption; native extraction stays disabled pending qualification. Closing Chrome cannot bypass Chrome 136+ default-directory protection, including numbered profiles. No TCP fallback or real-profile copies. Offer headed manual sign-in only with a display available.\n\n--- END FILE \"setup-browser-cookies/SKILL.md\" ---\n\n--- BEGIN FILE \"BROWSER.md\" (lines 569-587; section) ---\n#### Choosing a source and checking sign-in\n\nSelect the source browser and account/profile explicitly. The picker recognizes Chrome, Chromium, Brave, Edge, and macOS-only Comet, Arc, and Dia. It shows current profile names from `Local State`, falling back to Preferences and then the directory name, with directory labels to distinguish duplicate names. `--profile` takes that directory (`Default`, `Profile 2`), not its display name. Without it, only a sole relevant profile is selected; ambiguity or unreadable profiles require a choice. The omitted-browser default remains `comet` for CLI compatibility, not as a recommendation. The picker opening link is one-use and expires after five minutes.\n\nFor direct import, first navigate to a page matching `--domain`. Example after choosing Chrome's `Profile 2`:\n\n```bash\n$B goto https://example.com\n$B cookie-import-browser chrome --domain example.com --profile \"Profile 2\"\n```\n\n`--all` explicitly selects every non-expired cookie in the chosen source profile; it cannot accompany `--domain` or `--clear-storage`. Cookies are applied to the captured browser context, not isolated to a tab. The receipt distinguishes imported, partial, empty, and failed results, plus separate storage-reset and authentication outcomes. Cookies copied with authentication `not_requested` means **not checked**, not logged in. Zero imports, cookie counts, and HTTP 200 alone never prove sign-in.\n\n`--verify-auth` (also an explicit picker checkbox) reloads the captured target. Configure `GSTACK_COOKIE_AUTH_SELECTOR` and `GSTACK_COOKIE_AUTH_EXPECTED_IDENTITY` privately in the **daemon environment before startup**; setting them only on a later CLI call does not reconfigure an existing daemon. Missing configuration rejects before mutation. Verification requires a successful same-origin response and exactly one visible element whose whitespace-normalized text equals the expected identity. A wrong account, login redirect, missing assertion, or changed target is not verified. Do not paste cookie values, passwords, profile/account labels, or expected identity into public logs; report only sanitized outcomes.\n\nStorage stays intact by default. With explicit approval on a Chromium target, `--clear-storage` clears localStorage for the captured origin (exact scheme, host, and port, shared across that origin's tabs in the context) and sessionStorage for the target tab before applying cookies. Reset runs in an isolated world with a native monotonic deadline, so the site's scripts cannot forge its timeout clock. Other target engines reject reset; ordinary imports and authentication checks remain available. It does not clear other origins, other tabs' sessionStorage, IndexedDB, or service workers. Keep the target open and unchanged. A failed reset may have cleared some storage; a later cookie-application failure does not undo it.\n\n**Platform limits:** macOS imports may request Keychain approval; Linux `v11` cookies may require libsecret, while `v10` uses Chromium's fallback key. The Windows Node server needs Node.js 22.13 or newer with built-in SQLite enabled for cookie database reads. DPAPI-compatible cookies remain supported, but native App-Bound Encryption extraction is disabled until the browser/runtime passes qualification. Chrome 136+ blocks remote debugging of its default user-data directory, including numbered profiles, over both pipe and TCP; closing Chrome does not remove that protection. There is no TCP fallback or real-profile-copy workaround. If import cannot recover the session, sign in manually in gstack's headed browser when a display is available.\n\n\n--- END FILE \"BROWSER.md\" ---",
  "error": "Synthetic provider refusal fixture, not live model evidence",
  "manual_review": {
    "approval": {
      "schema_version": 1,
      "test_name": "setup-browser-cookies/SKILL.md workflow",
      "prompt_sha256": "7f7f76f49912818d51f25c86d686aab6ad2c95ccdea60ac912c1e4c8b6936e5f",
      "prompt_bytes": 10159,
      "model": "claude-fable-5-1",
      "max_tokens": 8192,
      "thresholds": {
        "clarity": 4,
        "completeness": 3,
        "actionability": 4
      },
      "approved_by": "garrytan",
      "approved_at": "2026-09-24",
      "approval_url": "https://github.com/garrytan/gstack/pull/2964#issuecomment-5822514476",
      "reason": "Maintainer-approved manual review of this exact cookie workflow after empty provider refusals. No automated quality score or pass credit; other errors and changed inputs remain blocking."
    },
    "refusal": {
      "stop_reason": "refusal",
      "response_id": "msg_synthetic_fixture",
      "request_id": "req_synthetic_fixture",
      "model": "claude-fable-5-1",
      "input_tokens": 1,
      "output_tokens": 0,
      "text_blocks": 0
    }
  }
}