[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F44VAD9HSZSKQV5ZD4XM5T":3,"skill-same:01M7F44VAD9HSZSKQV5ZD4XM5T":45},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7F44VAD9HSZSKQV5ZD4XM5T","storage-engine-selection",null,"Select a storage topology from enumerated access patterns, defaulting to a single engine and justifying every additional store against a named pattern it uniquely serves.","cwik-tech\u002Foctopus","cwik-tech","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F54542292?v=4","01M7F42E123GEHVK6RWC5MSWJ9","Tomasz Cwik","01M7F42E1PD4P54MTG8PG32VCV",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fagents\u002Farchitect-data-persistence\u002Fskills\u002Fstorage-engine-selection\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: storage-engine-selection\ndescription: Select a storage topology from enumerated access patterns, defaulting to a single engine and justifying every additional store against a named pattern it uniquely serves.\n---\n\n# Storage Engine Selection\n\n## Purpose\n\nTurn a set of required access patterns into a defensible storage topology. This skill exists to prevent two failure modes: choosing an engine on familiarity before knowing the query shapes, and accreting stores until the operational surface exceeds what the team can actually run.\n\n## When to use\n\nUse this whenever a question involves where data lives — picking a primary store, deciding whether embeddings belong beside their source rows, evaluating a graph database against relational adjacency modeling, choosing an embedded store for desktop, or reviewing an existing multi-store design.\n\n## Core principle\n\n**One store until proven otherwise.** Every additional persistence engine is a permanent operational tax: backup and restore, migration tooling, cross-store consistency reasoning, monitoring, and on-call surface. Polyglot persistence is a conclusion reached under pressure from a specific measured pattern, never a starting posture.\n\n## Procedure\n\n### Step 1 — Enumerate access patterns before naming any engine\n\nBuild the pattern table first. Refuse to discuss engines until it exists.\n\n| Pattern | Shape | Frequency | Latency budget | Consistency need |\n|---|---|---|---|---|\n| e.g. fetch document with related entities | point read + 1 join | high, per page load | \u003C 50ms p95 | read-your-writes |\n| e.g. semantic search over corpus | vector similarity, top-k | moderate | \u003C 300ms p95 | eventual acceptable |\n| e.g. multi-hop relationship traversal | graph, depth 3, fanout ~10 | low | \u003C 1s | eventual acceptable |\n\nFor each row capture: is this pattern **known** (specified in the brief), **plausible** (a reasonable future need), or **speculative** (someone's hunch)? Only known and plausible patterns may drive engine selection. Speculative patterns are recorded as foreclosure risks, not as requirements.\n\n### Step 2 — Test the single-store hypothesis\n\nStart with the most general engine that plausibly serves the pattern table — usually a relational store. For each pattern, ask whether it can be served acceptably by that one engine, including with extensions.\n\nSpecifically check whether these extend the primary store far enough:\n\n- **Vector search:** pgvector inside Postgres, or an equivalent in-database index. Adequate up to substantial corpus sizes and removes the consistency problem between an embedding and its source row entirely.\n- **Document\u002FJSON access:** native JSON column types with indexing.\n- **Full-text search:** built-in text search before a dedicated search engine.\n- **Graph traversal:** recursive CTEs for bounded depth before a dedicated graph store.\n- **Queue and job state:** a table with skip-locked semantics before a broker.\n\nRecord which patterns the single store serves adequately, which it serves poorly, and which it cannot serve at all.\n\n### Step 3 — Justify each additional store\n\nAn additional store is warranted only when a **known or plausible** pattern is served *unacceptably* by the primary engine — not merely suboptimally. Require, for each proposed addition:\n\n- The specific pattern it exists to serve.\n- Evidence the primary store fails it: a measurement at representative volume, or a structural argument for why no configuration of the primary store can meet the budget.\n- The consistency boundary this creates — what can now be stale, and for how long.\n- The operational cost accepted: who backs it up, who restores it, who migrates it, who is paged for it.\n\nIf any of these cannot be answered, the addition is not yet justified.\n\n### Step 4 — Map the consistency boundaries\n\nFor every multi-store design that survives Step 3, draw the boundary explicitly. For each pair of stores state:\n\n- What writes must propagate between them.\n- The propagation mechanism and its failure mode.\n- The maximum acceptable staleness, and what the user sees while stale.\n- What happens when propagation fails permanently — is there a reconciliation path, or does the system silently drift?\n\nAn unmapped consistency boundary is the most common source of late-discovered correctness bugs in polyglot designs.\n\n### Step 5 — Name the foreclosures\n\nFor the chosen topology, state what becomes expensive or impossible:\n\n- Denormalization for read speed forecloses cheap schema change.\n- An embedded single-writer store forecloses concurrent multi-user writes.\n- A separate vector store forecloses transactional consistency between an embedding and its source.\n- Aggressive partitioning forecloses cheap cross-partition queries.\n- A schema-per-tenant model forecloses cheap cross-tenant analytics.\n\nFor each foreclosure, classify the cost of reversal as **recoverable in v2** (a migration, painful but bounded) or **locked in** (a rewrite). Locked-in foreclosures require explicit board acknowledgment.\n\n## Output\n\nProduce:\n\n1. The access pattern table with known\u002Fplausible\u002Fspeculative classification.\n2. The recommended topology — engine or engines, and what each holds.\n3. For each additional store beyond the first: the justifying pattern and the evidence.\n4. The consistency boundary map for multi-store designs.\n5. The foreclosure list with reversal cost classified.\n\n## Red lines\n\n- Never name an engine before the access pattern table exists.\n- Never justify a store with a speculative pattern.\n- Never accept vendor benchmarks as evidence of fit.\n- Never leave a consistency boundary undrawn in a multi-store recommendation.\n- Never omit the foreclosure list — a recommendation without it is incomplete.\n","# Storage Engine Selection\n\n## Purpose\n\nTurn a set of required access patterns into a defensible storage topology. This skill exists to prevent two failure modes: choosing an engine on familiarity before knowing the query shapes, and accreting stores until the operational surface exceeds what the team can actually run.\n\n## When to use\n\nUse this whenever a question involves where data lives — picking a primary store, deciding whether embeddings belong beside their source rows, evaluating a graph database against relational adjacency modeling, choosing an embedded store for desktop, or reviewing an existing multi-store design.\n\n## Core principle\n\n**One store until proven otherwise.** Every additional persistence engine is a permanent operational tax: backup and restore, migration tooling, cross-store consistency reasoning, monitoring, and on-call surface. Polyglot persistence is a conclusion reached under pressure from a specific measured pattern, never a starting posture.\n\n## Procedure\n\n### Step 1 — Enumerate access patterns before naming any engine\n\nBuild the pattern table first. Refuse to discuss engines until it exists.\n\n| Pattern | Shape | Frequency | Latency budget | Consistency need |\n|---|---|---|---|---|\n| e.g. fetch document with related entities | point read + 1 join | high, per page load | \u003C 50ms p95 | read-your-writes |\n| e.g. semantic search over corpus | vector similarity, top-k | moderate | \u003C 300ms p95 | eventual acceptable |\n| e.g. multi-hop relationship traversal | graph, depth 3, fanout ~10 | low | \u003C 1s | eventual acceptable |\n\nFor each row capture: is this pattern **known** (specified in the brief), **plausible** (a reasonable future need), or **speculative** (someone's hunch)? Only known and plausible patterns may drive engine selection. Speculative patterns are recorded as foreclosure risks, not as requirements.\n\n### Step 2 — Test the single-store hypothesis\n\nStart with the most general engine that plausibly serves the pattern table — usually a relational store. For each pattern, ask whether it can be served acceptably by that one engine, including with extensions.\n\nSpecifically check whether these extend the primary store far enough:\n\n- **Vector search:** pgvector inside Postgres, or an equivalent in-database index. Adequate up to substantial corpus sizes and removes the consistency problem between an embedding and its source row entirely.\n- **Document\u002FJSON access:** native JSON column types with indexing.\n- **Full-text search:** built-in text search before a dedicated search engine.\n- **Graph traversal:** recursive CTEs for bounded depth before a dedicated graph store.\n- **Queue and job state:** a table with skip-locked semantics before a broker.\n\nRecord which patterns the single store serves adequately, which it serves poorly, and which it cannot serve at all.\n\n### Step 3 — Justify each additional store\n\nAn additional store is warranted only when a **known or plausible** pattern is served *unacceptably* by the primary engine — not merely suboptimally. Require, for each proposed addition:\n\n- The specific pattern it exists to serve.\n- Evidence the primary store fails it: a measurement at representative volume, or a structural argument for why no configuration of the primary store can meet the budget.\n- The consistency boundary this creates — what can now be stale, and for how long.\n- The operational cost accepted: who backs it up, who restores it, who migrates it, who is paged for it.\n\nIf any of these cannot be answered, the addition is not yet justified.\n\n### Step 4 — Map the consistency boundaries\n\nFor every multi-store design that survives Step 3, draw the boundary explicitly. For each pair of stores state:\n\n- What writes must propagate between them.\n- The propagation mechanism and its failure mode.\n- The maximum acceptable staleness, and what the user sees while stale.\n- What happens when propagation fails permanently — is there a reconciliation path, or does the system silently drift?\n\nAn unmapped consistency boundary is the most common source of late-discovered correctness bugs in polyglot designs.\n\n### Step 5 — Name the foreclosures\n\nFor the chosen topology, state what becomes expensive or impossible:\n\n- Denormalization for read speed forecloses cheap schema change.\n- An embedded single-writer store forecloses concurrent multi-user writes.\n- A separate vector store forecloses transactional consistency between an embedding and its source.\n- Aggressive partitioning forecloses cheap cross-partition queries.\n- A schema-per-tenant model forecloses cheap cross-tenant analytics.\n\nFor each foreclosure, classify the cost of reversal as **recoverable in v2** (a migration, painful but bounded) or **locked in** (a rewrite). Locked-in foreclosures require explicit board acknowledgment.\n\n## Output\n\nProduce:\n\n1. The access pattern table with known\u002Fplausible\u002Fspeculative classification.\n2. The recommended topology — engine or engines, and what each holds.\n3. For each additional store beyond the first: the justifying pattern and the evidence.\n4. The consistency boundary map for multi-store designs.\n5. The foreclosure list with reversal cost classified.\n\n## Red lines\n\n- Never name an engine before the access pattern table exists.\n- Never justify a store with a speculative pattern.\n- Never accept vendor benchmarks as evidence of fit.\n- Never leave a consistency boundary undrawn in a multi-store recommendation.\n- Never omit the foreclosure list — a recommendation without it is incomplete.\n",{"name":5,"description":7},"main","f0f0efe1d4c64b51a51f44427ad147750d29154e","agents\u002Farchitect-data-persistence\u002Fskills\u002Fstorage-engine-selection","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus","www.cuteoctopus.site","https:\u002F\u002Fgithub.com\u002Fcwik-tech","2026-10-27 06:12:19",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add cwik-tech\u002Foctopus --skill storage-engine-selection",{"tool":37,"command":38},"bunx","bunx skills add cwik-tech\u002Foctopus --skill storage-engine-selection",{"tool":40,"command":41},"pnpm","pnpm dlx skills add cwik-tech\u002Foctopus --skill storage-engine-selection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fagents\u002Farchitect-data-persistence\u002Fskills\u002Fstorage-engine-selection\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7F5MQVQ3CHGM77Q51M4B1AC","twenty-year-land-plan","Apply the Bren discipline of evaluating every land and development decision on a twenty-year horizon, with a comprehensive plan for how the land, the community, and the surrounding public infrastructure evolve together. Deals optimized for a five-year exit are structurally different from deals that compound across generations; insist on knowing which kind you are making. Use when evaluating land, entitlements, master-planned development, or phasing decisions, and when separating five-year exit deals from generational holds.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Ftwenty-year-land-plan\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7F5MGQ8JSV27SFDQVVGFQE3","thematic-gut-check","Apply the Gray discipline of identifying the structural theme behind every real estate deal, testing where that theme sits in its capital-flow lifecycle, and insisting that deals without a named theme — or deals late in a crowded theme — clear a higher bar. A mediocre deal in a strong theme usually beats a clever deal in a weak one. Use when naming the structural thesis behind a deal, judging whether that theme is early or crowded, and setting the bar the deal must clear.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Fthematic-gut-check\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7F5M8V64Y0ZD8PTPWEJQXJ9","supply-pipeline-gut-check","Apply the Zell discipline of grounding every real estate thesis in the local supply pipeline. Demand counts over adjectives — units under construction, units permitted, units proposed — and convert them into a forward absorption schedule. A deal that ignores the pipeline is a bet on a market you have not actually studied. Use when validating a market thesis, forecasting absorption and rent growth, or counting units under construction, permitted, and proposed.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Fsupply-pipeline-gut-check\u002FSKILL.md",[],[],{"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},"01M7F5M3J2Q146BJC13TD3YCXF","ruin-scenario-mapping","Apply the Taleb discipline of identifying, for every real estate deal, the specific chain of events that produces ruin — permanent, unrecoverable capital loss — and verifying that no single such chain has non-trivial probability. Deals with any plausible ruin path must be restructured or abandoned. Use when sizing leverage, testing refinancing, covenant, and liquidity risk, or checking whether any single failure chain can permanently wipe out the position.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Fruin-scenario-mapping\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},"01M7F5KZDS0DYD172P6HS0WXEM","revenue-cost-architecture","Design a venture's revenue streams, pricing logic, cost structure, and unit economics so the business model has a coherent theory of value capture, not just value creation. Use after the value proposition and customer segment are set and before financial projections, when choosing a pricing model, calculating contribution margin or CAC payback, or checking whether the unit economics hold at scale.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Frevenue-cost-architecture\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},"01M7F5KP1CNQMYAVCDTV4EEW3J","replacement-cost-stress-test","Apply the Buffett discipline of pricing every real estate asset against the cost to rebuild it from scratch. The ratio of purchase price to replacement cost sets a ceiling on long-run downside: below replacement cost, new supply cannot profitably undercut you; at or above it, you are buying a liability disguised as an asset. Use when setting a purchase price, judging downside protection, or testing how exposed an asset is to newly built competing supply.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Freplacement-cost-stress-test\u002FSKILL.md",[],[]]