[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B2XDTF5ZFTA5B8YK0J1YV9":3,"skill-same:01M7B2XDTF5ZFTA5B8YK0J1YV9":48},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7B2XDTF5ZFTA5B8YK0J1YV9","glass-box",null,"Python evaluation framework for Hamster Studio. Use when working in packages\u002Fglass-box\u002F — running replay experiments, monitoring Sentry data, training classifiers, or writing tests for any glass-box module.","gethamster\u002Fskills","gethamster","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F215697643?v=4","01M7B2R6PGB3SDZZ71E0WE2S74","Hamster","01M7B2R6Q21HWJRXZZWB78BNDG",4,"MIT","https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Fglass-box\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: glass-box\ndescription: \"Python evaluation framework for Hamster Studio. Use when working in packages\u002Fglass-box\u002F — running replay experiments, monitoring Sentry data, training classifiers, or writing tests for any glass-box module.\"\nversion: \"1.1.0\"\n---\n\n# Glass-Box\n\n## Overview\n\n`packages\u002Fglass-box\u002F` is a standalone Python package (Python 3.12+, `uv`) for evaluating and observing Hamster's AI pipeline. It is not part of the TypeScript monorepo build.\n\n## When to Apply\n\n- Running or debugging replay experiments against a real environment\n- Querying or syncing Sentry monitoring data locally\n- Training, evaluating, or deploying the GLSB Router classifier\n- Writing tests for any glass-box module\n- Working on prompting dataset generation or quality assessment\n- Touching the GLSB Router CI\u002FCD pipeline\n\n## Module Tiers\n\n| Tier | Modules | Frequency |\n| --- | --- | --- |\n| **1 — Daily** | `replay`, `replay\u002Fexperiment`, `monitoring` | Every dev cycle |\n| **2 — Training** | `classifier`, `prompting` | Model training cycles |\n| **3 — Background** | `routing`, `core` | Rarely touched directly |\n\n## Quick Reference\n\n| Task | Command |\n| --- | --- |\n| Run an experiment | `uv run python -m replay experiment run --metadata \u003Cpath> --env dev` |\n| Retrieve results | `uv run python -m replay experiment retrieve --metadata \u003Cpath>` |\n| Chat replay | `uv run python -m replay chat run --context brief --content \"\u003Cmsg>\" --env dev` |\n| Sync Sentry data | `uv run python -m monitoring --project hamster --env production sync --days 7` |\n| Query monitoring | `uv run python -m monitoring query \"SELECT ...\"` |\n| Serve classifier | `uv run python -m classifier serve --port 8008 --version \u003Cver>` |\n| Assess prompts | `uv run python -m prompting assess --limit 3` |\n| Run unit tests | `uv run pytest tests\u002F -m unit` |\n| Setup env files | `pnpm get-env-qa` |\n\n## Key Patterns\n\n### Environment loading\n\nAlways call before any service access:\n\n```python\nfrom core.config import ensure_env_loaded\nensure_env_loaded(env)   # env = \"local\" | \"dev\" | \"tux\" | \"prod\"\n```\n\nPass `--env \u003Cname>` to any CLI command to select the environment.\n\n### CLI command structure\n\nAll CLI commands follow this pattern:\n\n```python\ndef cmd_\u003Cname>(args: argparse.Namespace) -> None:\n    value = getattr(args, \"field\", None)   # use getattr for optional args\n    if error:\n        print(msg, file=sys.stderr)\n        sys.exit(1)\n    print(result)\n```\n\n### Test structure\n\n```python\npytestmark = pytest.mark.unit  # or monitoring, integration, etc.\n\ndef test_something(monitoring_db):          # use fixtures from conftest.py\n    result = monitoring_db.execute(\"SELECT 1\")\n    assert result is not None\n```\n\nRun with: `uv run pytest tests\u002F -m unit` (no external services needed for unit tests).\n\n## Critical Gotchas\n\n- **Mock patch targets**: Patch WHERE the name is used, not where it's defined. `run.py` does `from replay.trigger import run_one_prompt` → patch target is `\"replay.experiment.run.run_one_prompt\"`, not `\"replay.trigger.run_one_prompt\"`.\n- **`monitoring_db` fixture uses `:memory:`**: Always pass `db_path=\":memory:\"` in tests — `None` maps to the real filesystem path at `monitoring\u002Fdata\u002Fmonitoring.db`.\n- **Headless replay needs correct `account_id`**: Use the SQL in `docs\u002Fheadless-replay-setup.md` to find the right user + account pair for a given environment.\n- **Delay between prompts**: Default 5s (`--delay 5`) in `replay experiment run`. Pass `--delay 0` to disable during testing.\n\n## Infrastructure\n\nThe classifier is deployed as a Docker image (`glsb-router-api`) on Cloud Run:\n\n- **Build**: GitHub Actions `41-glassbox-build-release.yml` (manual `workflow_dispatch`)\n- **Deploy**: `42-glassbox-deploy.yml` (called by build, or manually to promote to tux\u002Fprod)\n- **Manifest**: `pnpm --filter hamster-ai generate:glassbox-manifest` — run from monorepo root before building\n\n## References\n\n- Full documentation: `packages\u002Fglass-box\u002FCLAUDE.md`\n- Headless replay setup + account SQL: `packages\u002Fglass-box\u002Fdocs\u002Fheadless-replay-setup.md`\n- Legacy test patterns: `packages\u002Fglass-box\u002FtestsOld\u002Fconftest.py`\n","# Glass-Box\n\n## Overview\n\n`packages\u002Fglass-box\u002F` is a standalone Python package (Python 3.12+, `uv`) for evaluating and observing Hamster's AI pipeline. It is not part of the TypeScript monorepo build.\n\n## When to Apply\n\n- Running or debugging replay experiments against a real environment\n- Querying or syncing Sentry monitoring data locally\n- Training, evaluating, or deploying the GLSB Router classifier\n- Writing tests for any glass-box module\n- Working on prompting dataset generation or quality assessment\n- Touching the GLSB Router CI\u002FCD pipeline\n\n## Module Tiers\n\n| Tier | Modules | Frequency |\n| --- | --- | --- |\n| **1 — Daily** | `replay`, `replay\u002Fexperiment`, `monitoring` | Every dev cycle |\n| **2 — Training** | `classifier`, `prompting` | Model training cycles |\n| **3 — Background** | `routing`, `core` | Rarely touched directly |\n\n## Quick Reference\n\n| Task | Command |\n| --- | --- |\n| Run an experiment | `uv run python -m replay experiment run --metadata \u003Cpath> --env dev` |\n| Retrieve results | `uv run python -m replay experiment retrieve --metadata \u003Cpath>` |\n| Chat replay | `uv run python -m replay chat run --context brief --content \"\u003Cmsg>\" --env dev` |\n| Sync Sentry data | `uv run python -m monitoring --project hamster --env production sync --days 7` |\n| Query monitoring | `uv run python -m monitoring query \"SELECT ...\"` |\n| Serve classifier | `uv run python -m classifier serve --port 8008 --version \u003Cver>` |\n| Assess prompts | `uv run python -m prompting assess --limit 3` |\n| Run unit tests | `uv run pytest tests\u002F -m unit` |\n| Setup env files | `pnpm get-env-qa` |\n\n## Key Patterns\n\n### Environment loading\n\nAlways call before any service access:\n\n```python\nfrom core.config import ensure_env_loaded\nensure_env_loaded(env)   # env = \"local\" | \"dev\" | \"tux\" | \"prod\"\n```\n\nPass `--env \u003Cname>` to any CLI command to select the environment.\n\n### CLI command structure\n\nAll CLI commands follow this pattern:\n\n```python\ndef cmd_\u003Cname>(args: argparse.Namespace) -> None:\n    value = getattr(args, \"field\", None)   # use getattr for optional args\n    if error:\n        print(msg, file=sys.stderr)\n        sys.exit(1)\n    print(result)\n```\n\n### Test structure\n\n```python\npytestmark = pytest.mark.unit  # or monitoring, integration, etc.\n\ndef test_something(monitoring_db):          # use fixtures from conftest.py\n    result = monitoring_db.execute(\"SELECT 1\")\n    assert result is not None\n```\n\nRun with: `uv run pytest tests\u002F -m unit` (no external services needed for unit tests).\n\n## Critical Gotchas\n\n- **Mock patch targets**: Patch WHERE the name is used, not where it's defined. `run.py` does `from replay.trigger import run_one_prompt` → patch target is `\"replay.experiment.run.run_one_prompt\"`, not `\"replay.trigger.run_one_prompt\"`.\n- **`monitoring_db` fixture uses `:memory:`**: Always pass `db_path=\":memory:\"` in tests — `None` maps to the real filesystem path at `monitoring\u002Fdata\u002Fmonitoring.db`.\n- **Headless replay needs correct `account_id`**: Use the SQL in `docs\u002Fheadless-replay-setup.md` to find the right user + account pair for a given environment.\n- **Delay between prompts**: Default 5s (`--delay 5`) in `replay experiment run`. Pass `--delay 0` to disable during testing.\n\n## Infrastructure\n\nThe classifier is deployed as a Docker image (`glsb-router-api`) on Cloud Run:\n\n- **Build**: GitHub Actions `41-glassbox-build-release.yml` (manual `workflow_dispatch`)\n- **Deploy**: `42-glassbox-deploy.yml` (called by build, or manually to promote to tux\u002Fprod)\n- **Manifest**: `pnpm --filter hamster-ai generate:glassbox-manifest` — run from monorepo root before building\n\n## References\n\n- Full documentation: `packages\u002Fglass-box\u002FCLAUDE.md`\n- Headless replay setup + account SQL: `packages\u002Fglass-box\u002Fdocs\u002Fheadless-replay-setup.md`\n- Legacy test patterns: `packages\u002Fglass-box\u002FtestsOld\u002Fconftest.py`\n",{"name":5,"version":24,"description":7},"1.1.0","main","fe3bb1476c3ec23d8a366eac0fa8cd9f0852360a","skills\u002F.experimental\u002Fglass-box",0,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgethamster","https:\u002F\u002Ftryhamster.com","We're building the AI-native future of work, unlocking the promised acceleration for your whole team, from idea to impact.","2026-11-05 11:33:33",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add gethamster\u002Fskills --skill glass-box",{"tool":40,"command":41},"bunx","bunx skills add gethamster\u002Fskills --skill glass-box",{"tool":43,"command":44},"pnpm","pnpm dlx skills add gethamster\u002Fskills --skill glass-box","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Fglass-box\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7B5MWYW0KE251276S56KQDZ","writing-waterfall-requirements-documents","Write a waterfall requirements document: elicit, structure and review testable, traceable requirements, then baseline the specification before design.","https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-waterfall-requirements-documents\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7B5MRCXWWPKREPB1CHQ7H90","writing-vision-and-values-statements","Write a V2MOM vision a reader can test and a ranked list of values that settles real tradeoffs, so the rest of the document has a clear anchor.","https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-vision-and-values-statements\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7B5MKH2CH22YZAHQW3080VQ","writing-system-prompts-for-claude","Write Claude prompts and CLAUDE.md files that supply exact inputs, scope the task, and define done so the first attempt can be checked.","https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-system-prompts-for-claude\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7B5ME1Y3X9RNRKP5HKHKACZ","writing-page-specific-website-copy","Website copywriting by page type: write homepage, landing page, pricing page and feature page copy that fits each page's visitor and single job.","https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-page-specific-website-copy\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7B5M8MQNM8MN8PYH6BVWJ2B","writing-internal-press-releases","How to write an internal press release: the one-page working backwards press release that opens a PR\u002FFAQ document before anything is built.","https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-internal-press-releases\u002FSKILL.md",[],[],{"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":90,"publishedAt":19},"01M7B5M3P3YH1XF37R8PWXXSBK","writing-email-sequences-that-sell","Email sequence copywriting for nurture and sales: give each email one job, write clear subject lines, and close with one specific call to action.","https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-email-sequences-that-sell\u002FSKILL.md",[],[]]