[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B2YF7QBFVZTQ9AXN2W7E4G":3,"skill-same:01M7B2YF7QBFVZTQ9AXN2W7E4G":66},{"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},"01M7B2YF7QBFVZTQ9AXN2W7E4G","hamster-context-graph-perf",null,"Context graph performance validation for Hamster Studio. Use when changing context graph RPCs, indexes, RLS\u002Fsecurity modes, live-docs search, code search \u002F search_code_with_neighbors behavior, or SQL migrations that can affect query plans.","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\u002Fhamster-context-graph-perf\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: hamster-context-graph-perf\ndescription: \"Context graph performance validation for Hamster Studio. Use when changing context graph RPCs, indexes, RLS\u002Fsecurity modes, live-docs search, code search \u002F search_code_with_neighbors behavior, or SQL migrations that can affect query plans.\"\nversion: \"1.0.0\"\n---\n\n# Hamster Context Graph Perf\n\nUse this with `hamster-database` whenever context graph search SQL, RPCs,\nindexes, RLS policies, or live-docs retrieval changes.\n\n## What To Validate\n\nRun the full safety net after `pnpm supabase:web:reset`:\n\n```bash\npnpm seed:context-graph-perf\nPGPASSWORD=postgres psql -h 127.0.0.1 -p 54322 -U postgres -d postgres \\\n  -v ON_ERROR_STOP=1 \\\n  -f apps\u002Fweb\u002Fsupabase\u002Fscripts\u002Fvalidate-context-graph-perf.sql\nPGPASSWORD=postgres psql -h 127.0.0.1 -p 54322 -U postgres -d postgres \\\n  -v ON_ERROR_STOP=1 \\\n  -f .agents\u002Fskills\u002Fhamster-context-graph-perf\u002Fscripts\u002Fvalidate-context-graph-rpc-indexes.sql\n```\n\nAlso run:\n\n```bash\npnpm supabase:web:diff:drift-check\npnpm --filter hamster-ai test -- search-hamster-docs.tool.spec.ts context-graph-retrieval-backend.service.spec.ts hybrid-merge.spec.ts\npnpm --filter hamster-ai typecheck\n```\n\n## Interpreting Results\n\n- `search_fts_only` must move `idx_context_node_segments_fts` on a selective\n  term like `synthetic-perf-12345`.\n- Vector search is split by segment type into two partial HNSW indexes (a\n  minority segment type post-filtered out of a shared graph forces pgvector's\n  iterative scan to walk tens of thousands of tuples and blow the 5s\n  statement_timeout — this is what timed out code search). Each path carries a\n  *constant* `segment_type` guard so the planner picks the right index:\n- Non-code semantic (`search_semantic_only`, live-docs) must move\n  `idx_context_node_segments_noncode_embedding_hnsw` (predicate\n  `segment_type \u003C> 'code_chunk'`).\n- Code search (`search_code_with_neighbors`\u002F`hybrid_search_code_segments`\n  and `match_code_segments`) must move\n  `idx_context_node_segments_code_embedding_hnsw` (predicate\n  `segment_type = 'code_chunk'`). A scan delta of 0 here means code search\n  fell back onto the shared\u002Fnon-code index — the regression this guards.\n- `get_context_graph_neighborhood` must move both\n  `idx_context_edges_source` and `idx_context_edges_target`.\n- `search_code_with_neighbors` is the production bundled code-retrieval entry\n  point (SECURITY DEFINER hybrid + neighborhood); keep it fast and validate it\n  under an authenticated JWT context.\n- Live-docs search must use the split RPC path (`search_fts_only` +\n  `search_semantic_only`) or otherwise prove that the direct hybrid path does\n  not regress. Direct `hybrid_search_code_segments` as `authenticated` can\n  benchmark the wrong RLS context and look much slower than the definer\n  production path.\n\n## Gotchas\n\n- Do not use `pg_stat_reset()` in local Supabase validation. It can be denied;\n  snapshot `pg_stat_user_indexes` before and after the RPC calls instead.\n- Do not call `kit.system_global_account_id()` after `SET ROLE authenticated`\n  inside ad hoc SQL; use the application constant\n  `00000000-0000-0000-0000-00000000d0c5` in caller SQL.\n- Broad fixture terms like `synthetic` can match almost every seeded row, so\n  Postgres may reasonably choose a sequential scan for FTS. Use a selective\n  node term for index assertions.\n- Keep schema and migration in sync. If SQL changes, use the normal diff\n  workflow and finish with `pnpm supabase:web:diff:drift-check`.\n","# Hamster Context Graph Perf\n\nUse this with `hamster-database` whenever context graph search SQL, RPCs,\nindexes, RLS policies, or live-docs retrieval changes.\n\n## What To Validate\n\nRun the full safety net after `pnpm supabase:web:reset`:\n\n```bash\npnpm seed:context-graph-perf\nPGPASSWORD=postgres psql -h 127.0.0.1 -p 54322 -U postgres -d postgres \\\n  -v ON_ERROR_STOP=1 \\\n  -f apps\u002Fweb\u002Fsupabase\u002Fscripts\u002Fvalidate-context-graph-perf.sql\nPGPASSWORD=postgres psql -h 127.0.0.1 -p 54322 -U postgres -d postgres \\\n  -v ON_ERROR_STOP=1 \\\n  -f .agents\u002Fskills\u002Fhamster-context-graph-perf\u002Fscripts\u002Fvalidate-context-graph-rpc-indexes.sql\n```\n\nAlso run:\n\n```bash\npnpm supabase:web:diff:drift-check\npnpm --filter hamster-ai test -- search-hamster-docs.tool.spec.ts context-graph-retrieval-backend.service.spec.ts hybrid-merge.spec.ts\npnpm --filter hamster-ai typecheck\n```\n\n## Interpreting Results\n\n- `search_fts_only` must move `idx_context_node_segments_fts` on a selective\n  term like `synthetic-perf-12345`.\n- Vector search is split by segment type into two partial HNSW indexes (a\n  minority segment type post-filtered out of a shared graph forces pgvector's\n  iterative scan to walk tens of thousands of tuples and blow the 5s\n  statement_timeout — this is what timed out code search). Each path carries a\n  *constant* `segment_type` guard so the planner picks the right index:\n- Non-code semantic (`search_semantic_only`, live-docs) must move\n  `idx_context_node_segments_noncode_embedding_hnsw` (predicate\n  `segment_type \u003C> 'code_chunk'`).\n- Code search (`search_code_with_neighbors`\u002F`hybrid_search_code_segments`\n  and `match_code_segments`) must move\n  `idx_context_node_segments_code_embedding_hnsw` (predicate\n  `segment_type = 'code_chunk'`). A scan delta of 0 here means code search\n  fell back onto the shared\u002Fnon-code index — the regression this guards.\n- `get_context_graph_neighborhood` must move both\n  `idx_context_edges_source` and `idx_context_edges_target`.\n- `search_code_with_neighbors` is the production bundled code-retrieval entry\n  point (SECURITY DEFINER hybrid + neighborhood); keep it fast and validate it\n  under an authenticated JWT context.\n- Live-docs search must use the split RPC path (`search_fts_only` +\n  `search_semantic_only`) or otherwise prove that the direct hybrid path does\n  not regress. Direct `hybrid_search_code_segments` as `authenticated` can\n  benchmark the wrong RLS context and look much slower than the definer\n  production path.\n\n## Gotchas\n\n- Do not use `pg_stat_reset()` in local Supabase validation. It can be denied;\n  snapshot `pg_stat_user_indexes` before and after the RPC calls instead.\n- Do not call `kit.system_global_account_id()` after `SET ROLE authenticated`\n  inside ad hoc SQL; use the application constant\n  `00000000-0000-0000-0000-00000000d0c5` in caller SQL.\n- Broad fixture terms like `synthetic` can match almost every seeded row, so\n  Postgres may reasonably choose a sequential scan for FTS. Use a selective\n  node term for index assertions.\n- Keep schema and migration in sync. If SQL changes, use the normal diff\n  workflow and finish with `pnpm supabase:web:diff:drift-check`.\n",{"name":5,"version":24,"description":7},"1.0.0","main","fe3bb1476c3ec23d8a366eac0fa8cd9f0852360a","skills\u002F.experimental\u002Fhamster-context-graph-perf",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 hamster-context-graph-perf",{"tool":40,"command":41},"bunx","bunx skills add gethamster\u002Fskills --skill hamster-context-graph-perf",{"tool":43,"command":44},"pnpm","pnpm dlx skills add gethamster\u002Fskills --skill hamster-context-graph-perf","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Fhamster-context-graph-perf\u002FSKILL.md",true,[48,54,58,62],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"scripts\u002Fbenchmark-context-graph-inference-buckets.sql","SCRIPT","脚本",2994,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Fhamster-context-graph-perf\u002Fscripts\u002Fbenchmark-context-graph-inference-buckets.sql",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"scripts\u002Fbenchmark-context-graph-inference-recall.sql",12489,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Fhamster-context-graph-perf\u002Fscripts\u002Fbenchmark-context-graph-inference-recall.sql",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"scripts\u002Fbenchmark-context-graph-inference-sparse.sql",3662,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Fhamster-context-graph-perf\u002Fscripts\u002Fbenchmark-context-graph-inference-sparse.sql",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Fvalidate-context-graph-rpc-indexes.sql",16170,"https:\u002F\u002Fgithub.com\u002Fgethamster\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F.experimental\u002Fhamster-context-graph-perf\u002Fscripts\u002Fvalidate-context-graph-rpc-indexes.sql",[67,74,81,88,95,102],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"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":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"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":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"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":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"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":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"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":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"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",[],[]]