[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AK8DEZHADCFB89A0HDTQ97":3,"skill-same:01M7AK8DEZHADCFB89A0HDTQ97":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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7AK8DEZHADCFB89A0HDTQ97","algo-probabilistic-concurrency-and-measurement",null,"Use when working with approximate or concurrent structures, or when measuring performance: Bloom filters, HyperLogLog, count-min sketch and streaming structures, benchmarking and profiling discipline, vector and similarity search (HNSW, IVF, approximate nearest neighbour recall), and concurrent data structures — locks, lock-free and wait-free designs, memory ordering, and the ABA problem.","the-vibey-project\u002Fvibey","the-vibey-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F329298758?v=4","01M7AJHGZ9722CTJ4JNQZVRH0Q","the vibey project","01M7AJHGZVMG2K7TGXQ6XFHVG3",5,"MIT","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Falgorithms-deep-dive\u002Fskills\u002Falgo-probabilistic-concurrency-and-measurement\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: algo-probabilistic-concurrency-and-measurement\ndescription: \"Use when working with approximate or concurrent structures, or when measuring performance: Bloom filters, HyperLogLog, count-min sketch and streaming structures, benchmarking and profiling discipline, vector and similarity search (HNSW, IVF, approximate nearest neighbour recall), and concurrent data structures — locks, lock-free and wait-free designs, memory ordering, and the ABA problem.\"\n---\n\n# Algorithms Deep Dive: Probabilistic Structures, Measurement, and Concurrency\n\n> **Part 4 of 5** of the *Algorithms Deep Dive* reference (plugin `algorithms-deep-dive`), covering §12–§14. Sibling skills: `algo-foundations-and-machine-model` (§0–§2), `algo-data-structures` (§3–§6), `algo-core-algorithms` (§7–§11), `algo-reference` (§15–§20). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §17 → `algo-reference` for the currency snapshot and what goes stale first.\n\n> **How to read this.** Reference, not a course, and deliberately complementary to a\n> theory-of-computation reference: **that** answers \"is this solvable and how hard is it\";\n> **this** answers \"which structure, which algorithm, and why is it slower than the\n> analysis said.\"\n>\n> Three markers:\n> - **[DURABLE]** — established algorithms, structures, and engineering practice. Most of\n>   this document.\n> - **[VERSIONED]** — library implementations, hardware behaviour, recent results.\n> - **[CONTESTED]** — genuine disagreement.\n>\n> **⚠️ GOTCHA** boxes mark the places where the textbook answer and the production answer\n> diverge.\n>\n> **The three framings that organize everything below:**\n> 1. **Data structure choice is algorithm choice.** Most \"algorithm problems\" in real\n>    systems are solved by picking the right structure and letting the algorithm fall out.\n>    **If your algorithm is complicated, your data layout is probably wrong** (§3–§7 → `algo-data-structures`, `algo-core-algorithms`).\n> 2. **Asymptotic analysis models the wrong machine.** It assumes uniform-cost memory\n>    access, which stopped being true in the 1990s. **A cache miss is ~100× an arithmetic\n>    op, and a branch mispredict ~15–20 cycles** — so an O(n) scan over an array routinely\n>    beats an O(log n) walk over a pointer structure (§2 → `algo-foundations-and-machine-model`). Asymptotics tell you how\n>    something scales; they do not tell you which is faster at your n.\n> 3. **You will almost never write these.** You will *choose* them. The valuable skill is\n>    knowing what your standard library actually does, what its failure modes are, and\n>    when its default is wrong for your data — not reimplementing quicksort (§13).\n\n---\n\n## §12. Probabilistic and Streaming Structures\n\n**[DURABLE] These trade a bounded, quantified error for enormous savings in space or time,\nand they are dramatically under-used relative to how often they fit.**\n\n| Structure | Answers | Trades |\n|---|---|---|\n| **Bloom filter** | \"Definitely not present\" \u002F \"probably present\" | ⚠️ **False positives, never false negatives.** No deletion |\n| **Counting \u002F Cuckoo filter** | Same, with deletion | More space; cuckoo also gives better locality |\n| **HyperLogLog** | Approximate cardinality | ~2% error in **kilobytes** for billions of items. Mergeable |\n| **Count-Min Sketch** | Approximate frequency | Overestimates only; heavy-hitters |\n| **t-digest \u002F DDSketch** | Approximate quantiles | ⚠️ **What your metrics system uses for p99** |\n| **MinHash \u002F SimHash** | Set\u002Fdocument similarity | Near-duplicate detection at scale |\n| **Reservoir sampling** | Uniform sample from a stream of unknown length | One pass, O(k) space |\n\n**[DURABLE] The canonical use**: **Bloom filters in front of LSM-tree reads** (§5.2 → `algo-data-structures`), so a\nlookup skips levels that definitely don't contain the key. That single application is why\nwrite-optimized stores can also read acceptably.\n\n**⚠️ Know the error model before deploying.** \"2% error\" on a cardinality estimate is fine\nfor a dashboard and unacceptable for billing. **The question is always: what does being\nwrong cost here?**\n\n---\n\n## §13. Measurement\n\n**[DURABLE] The discipline that separates real optimization from folklore**, and the part\nmost engineers skip.\n\n**Profile first.** Intuition about where time goes is unreliable, and the hot spot is\nusually not where you'd guess. **Amdahl's law**: optimizing 10% of runtime by 10× gains\nyou 9%.\n\n**Benchmarking correctly:**\n- **Realistic data, realistic distribution, realistic size** — and **benchmark across\n  sizes**, because §2.1 → `algo-foundations-and-machine-model`'s cache cliffs make single-size benchmarks actively misleading.\n- **Warm up** (JIT, caches, branch predictors), then **measure many iterations**.\n- **⚠️ Prevent dead-code elimination** — the compiler will delete your benchmark if the\n  result is unused. Use the black-box\u002F`std::hint::black_box` facility your language\n  provides.\n- **Report distributions, not means.** p50\u002Fp95\u002Fp99 and variance. **A mean hides the tail\n  that your users experience.**\n- **Control the environment**: pin CPUs, disable turbo\u002Ffrequency scaling if you can, and\n  run enough samples to see the noise floor.\n- **Use a real harness** — Criterion, JMH, `google\u002Fbenchmark`, `pytest-benchmark`,\n  `hyperfine`. Hand-rolled timing loops get all of the above wrong.\n- **Measure hardware counters** when it matters: `perf stat` gives cache misses, branch\n  mispredicts, and IPC, which turns \"it's slow\" into \"it's memory-bound.\"\n\n### 13.4 Vector and similarity search\n\n**[VERSIONED] Worth its own subsection because it went from research to standard\ninfrastructure in about four years**, driven by embeddings and RAG.\n\n**The problem**: nearest-neighbour in high dimensions, where **k-d trees fail** (§8 → `algo-core-algorithms`) and\nexact search is a linear scan. **The answer is approximate (ANN), trading recall for\nspeed.**\n\n| Approach | Notes |\n|---|---|\n| **HNSW** | Hierarchical navigable small world graphs. **The in-memory default.** Excellent recall\u002FQPS; ⚠️ **memory-hungry — the whole index in RAM** |\n| **IVF** | Partition via k-means, search `nprobe` nearest cells. Scales better to billions; needs `nlist`\u002F`nprobe` tuning |\n| **DiskANN (Vamana)** | **Index and full-precision vectors on SSD, PQ-compressed vectors in RAM** for routing, then rerank. Indexes 1B+ vectors on a single machine with ~64 GB RAM |\n| **ScaNN** | Anisotropic quantization — optimizes directional accuracy rather than reconstruction error; strong for inner-product search |\n| **CAGRA** | GPU-oriented graph index |\n\n**Quantization is the other axis**: **PQ** (product quantization — typically 16–32× smaller),\n**scalar**, **binary**, and **RaBitQ**. **⚠️ Nearly all production deployments quantize and\nrerank**, because storing full-precision vectors in RAM at scale is the dominant cost.\n\n> **⚠️ GOTCHA — filtered search is where naive implementations fall over, and it's what\n> real applications need.** \"Find similar documents *where tenant = X and date > Y*\" breaks\n> the graph assumptions. **Post-filtering** either loses results or requires\n> over-fetching; **pre-filtering** needs a mask that grows linearly with the dataset. And\n> **when too many vectors are filtered out, an HNSW graph becomes disconnected and recall\n> collapses** — the \"recall cliff.\" This drove a whole line of work (Filtered-DiskANN,\n> ACORN, and vendor-specific filterable-HNSW designs) and **it is the first thing to test\n> when evaluating a vector store**, because benchmark numbers are almost always unfiltered.\n\n**[DURABLE] Benchmark on your own data.** ANN performance is extremely dataset-dependent —\ndimensionality, intrinsic dimension, and clustering all matter more than the published\nQPS-vs-recall curve. **ANN-Benchmarks** and **VIBE** are the standard harnesses; use them\nas method, not as an answer.\n\n---\n\n## §14. Concurrent Data Structures\n\n**[DURABLE] Concurrency changes every answer in this document**, and the ordering of the\noptions below is the recommended order of preference.\n\n```\n1. DON'T SHARE           Partition the data. Thread-local, sharded, actor-per-key.\n                         ⚠️ Almost always the right answer and the least explored one\n2. IMMUTABLE \u002F PERSISTENT  Structural sharing; readers never block. Great for read-heavy\n3. COARSE LOCK           A single mutex. Boring, correct, and fast enough far more often\n                         than people assume. START HERE and measure\n4. FINE-GRAINED LOCKS    Striped\u002Fsharded locks. ⚠️ Deadlock risk; establish a lock order\n5. RW LOCKS              Only when reads massively dominate; ⚠️ writer starvation\n6. LOCK-FREE             CAS-based. Hard to get right, harder to debug\n7. WAIT-FREE             Bounded steps per operation. Rare, and usually not worth it\n```\n\n**Key structures**: **concurrent hash maps** (striped or lock-free — `ConcurrentHashMap`,\n`DashMap`), **MPMC\u002FSPSC queues** (⚠️ **SPSC ring buffers are dramatically faster** — use the\nmost restrictive queue that fits), **the Disruptor** pattern (ring buffer + sequence\nbarriers; the reference design for low-latency pipelines), **RCU** (read-copy-update —\nreaders pay nothing), **hazard pointers** and **epoch-based reclamation** for the\nmemory-reclamation problem, and **CRDTs** for eventually-consistent replicated state.\n\n> **⚠️ GOTCHA — the concurrency-specific failure modes:**\n> - **The ABA problem.** A CAS succeeds because the value returned to A, but the structure\n>   changed underneath. **The reason hazard pointers and epochs exist.**\n> - **Memory reclamation is the hard part of lock-free programming**, not the algorithm.\n>   You can't free a node while another thread might read it.\n> - **⚠️ False sharing.** Two threads writing *different* variables on the **same cache\n>   line** ping-pong that line between cores. **Can cost an order of magnitude, and it is\n>   invisible in the source.** Pad to cache-line boundaries.\n> - **Memory ordering.** Acquire\u002Frelease\u002Fseq_cst are not decoration. **Getting this wrong\n>   produces bugs that appear only on weakly-ordered architectures (ARM) after passing all\n>   tests on x86.**\n> - **Lock-free ≠ faster.** Under contention it often *is*; under low contention a mutex\n>   frequently wins on simplicity and cache behaviour. **Measure.**\n","# Algorithms Deep Dive: Probabilistic Structures, Measurement, and Concurrency\n\n> **Part 4 of 5** of the *Algorithms Deep Dive* reference (plugin `algorithms-deep-dive`), covering §12–§14. Sibling skills: `algo-foundations-and-machine-model` (§0–§2), `algo-data-structures` (§3–§6), `algo-core-algorithms` (§7–§11), `algo-reference` (§15–§20). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §17 → `algo-reference` for the currency snapshot and what goes stale first.\n\n> **How to read this.** Reference, not a course, and deliberately complementary to a\n> theory-of-computation reference: **that** answers \"is this solvable and how hard is it\";\n> **this** answers \"which structure, which algorithm, and why is it slower than the\n> analysis said.\"\n>\n> Three markers:\n> - **[DURABLE]** — established algorithms, structures, and engineering practice. Most of\n>   this document.\n> - **[VERSIONED]** — library implementations, hardware behaviour, recent results.\n> - **[CONTESTED]** — genuine disagreement.\n>\n> **⚠️ GOTCHA** boxes mark the places where the textbook answer and the production answer\n> diverge.\n>\n> **The three framings that organize everything below:**\n> 1. **Data structure choice is algorithm choice.** Most \"algorithm problems\" in real\n>    systems are solved by picking the right structure and letting the algorithm fall out.\n>    **If your algorithm is complicated, your data layout is probably wrong** (§3–§7 → `algo-data-structures`, `algo-core-algorithms`).\n> 2. **Asymptotic analysis models the wrong machine.** It assumes uniform-cost memory\n>    access, which stopped being true in the 1990s. **A cache miss is ~100× an arithmetic\n>    op, and a branch mispredict ~15–20 cycles** — so an O(n) scan over an array routinely\n>    beats an O(log n) walk over a pointer structure (§2 → `algo-foundations-and-machine-model`). Asymptotics tell you how\n>    something scales; they do not tell you which is faster at your n.\n> 3. **You will almost never write these.** You will *choose* them. The valuable skill is\n>    knowing what your standard library actually does, what its failure modes are, and\n>    when its default is wrong for your data — not reimplementing quicksort (§13).\n\n---\n\n## §12. Probabilistic and Streaming Structures\n\n**[DURABLE] These trade a bounded, quantified error for enormous savings in space or time,\nand they are dramatically under-used relative to how often they fit.**\n\n| Structure | Answers | Trades |\n|---|---|---|\n| **Bloom filter** | \"Definitely not present\" \u002F \"probably present\" | ⚠️ **False positives, never false negatives.** No deletion |\n| **Counting \u002F Cuckoo filter** | Same, with deletion | More space; cuckoo also gives better locality |\n| **HyperLogLog** | Approximate cardinality | ~2% error in **kilobytes** for billions of items. Mergeable |\n| **Count-Min Sketch** | Approximate frequency | Overestimates only; heavy-hitters |\n| **t-digest \u002F DDSketch** | Approximate quantiles | ⚠️ **What your metrics system uses for p99** |\n| **MinHash \u002F SimHash** | Set\u002Fdocument similarity | Near-duplicate detection at scale |\n| **Reservoir sampling** | Uniform sample from a stream of unknown length | One pass, O(k) space |\n\n**[DURABLE] The canonical use**: **Bloom filters in front of LSM-tree reads** (§5.2 → `algo-data-structures`), so a\nlookup skips levels that definitely don't contain the key. That single application is why\nwrite-optimized stores can also read acceptably.\n\n**⚠️ Know the error model before deploying.** \"2% error\" on a cardinality estimate is fine\nfor a dashboard and unacceptable for billing. **The question is always: what does being\nwrong cost here?**\n\n---\n\n## §13. Measurement\n\n**[DURABLE] The discipline that separates real optimization from folklore**, and the part\nmost engineers skip.\n\n**Profile first.** Intuition about where time goes is unreliable, and the hot spot is\nusually not where you'd guess. **Amdahl's law**: optimizing 10% of runtime by 10× gains\nyou 9%.\n\n**Benchmarking correctly:**\n- **Realistic data, realistic distribution, realistic size** — and **benchmark across\n  sizes**, because §2.1 → `algo-foundations-and-machine-model`'s cache cliffs make single-size benchmarks actively misleading.\n- **Warm up** (JIT, caches, branch predictors), then **measure many iterations**.\n- **⚠️ Prevent dead-code elimination** — the compiler will delete your benchmark if the\n  result is unused. Use the black-box\u002F`std::hint::black_box` facility your language\n  provides.\n- **Report distributions, not means.** p50\u002Fp95\u002Fp99 and variance. **A mean hides the tail\n  that your users experience.**\n- **Control the environment**: pin CPUs, disable turbo\u002Ffrequency scaling if you can, and\n  run enough samples to see the noise floor.\n- **Use a real harness** — Criterion, JMH, `google\u002Fbenchmark`, `pytest-benchmark`,\n  `hyperfine`. Hand-rolled timing loops get all of the above wrong.\n- **Measure hardware counters** when it matters: `perf stat` gives cache misses, branch\n  mispredicts, and IPC, which turns \"it's slow\" into \"it's memory-bound.\"\n\n### 13.4 Vector and similarity search\n\n**[VERSIONED] Worth its own subsection because it went from research to standard\ninfrastructure in about four years**, driven by embeddings and RAG.\n\n**The problem**: nearest-neighbour in high dimensions, where **k-d trees fail** (§8 → `algo-core-algorithms`) and\nexact search is a linear scan. **The answer is approximate (ANN), trading recall for\nspeed.**\n\n| Approach | Notes |\n|---|---|\n| **HNSW** | Hierarchical navigable small world graphs. **The in-memory default.** Excellent recall\u002FQPS; ⚠️ **memory-hungry — the whole index in RAM** |\n| **IVF** | Partition via k-means, search `nprobe` nearest cells. Scales better to billions; needs `nlist`\u002F`nprobe` tuning |\n| **DiskANN (Vamana)** | **Index and full-precision vectors on SSD, PQ-compressed vectors in RAM** for routing, then rerank. Indexes 1B+ vectors on a single machine with ~64 GB RAM |\n| **ScaNN** | Anisotropic quantization — optimizes directional accuracy rather than reconstruction error; strong for inner-product search |\n| **CAGRA** | GPU-oriented graph index |\n\n**Quantization is the other axis**: **PQ** (product quantization — typically 16–32× smaller),\n**scalar**, **binary**, and **RaBitQ**. **⚠️ Nearly all production deployments quantize and\nrerank**, because storing full-precision vectors in RAM at scale is the dominant cost.\n\n> **⚠️ GOTCHA — filtered search is where naive implementations fall over, and it's what\n> real applications need.** \"Find similar documents *where tenant = X and date > Y*\" breaks\n> the graph assumptions. **Post-filtering** either loses results or requires\n> over-fetching; **pre-filtering** needs a mask that grows linearly with the dataset. And\n> **when too many vectors are filtered out, an HNSW graph becomes disconnected and recall\n> collapses** — the \"recall cliff.\" This drove a whole line of work (Filtered-DiskANN,\n> ACORN, and vendor-specific filterable-HNSW designs) and **it is the first thing to test\n> when evaluating a vector store**, because benchmark numbers are almost always unfiltered.\n\n**[DURABLE] Benchmark on your own data.** ANN performance is extremely dataset-dependent —\ndimensionality, intrinsic dimension, and clustering all matter more than the published\nQPS-vs-recall curve. **ANN-Benchmarks** and **VIBE** are the standard harnesses; use them\nas method, not as an answer.\n\n---\n\n## §14. Concurrent Data Structures\n\n**[DURABLE] Concurrency changes every answer in this document**, and the ordering of the\noptions below is the recommended order of preference.\n\n```\n1. DON'T SHARE           Partition the data. Thread-local, sharded, actor-per-key.\n                         ⚠️ Almost always the right answer and the least explored one\n2. IMMUTABLE \u002F PERSISTENT  Structural sharing; readers never block. Great for read-heavy\n3. COARSE LOCK           A single mutex. Boring, correct, and fast enough far more often\n                         than people assume. START HERE and measure\n4. FINE-GRAINED LOCKS    Striped\u002Fsharded locks. ⚠️ Deadlock risk; establish a lock order\n5. RW LOCKS              Only when reads massively dominate; ⚠️ writer starvation\n6. LOCK-FREE             CAS-based. Hard to get right, harder to debug\n7. WAIT-FREE             Bounded steps per operation. Rare, and usually not worth it\n```\n\n**Key structures**: **concurrent hash maps** (striped or lock-free — `ConcurrentHashMap`,\n`DashMap`), **MPMC\u002FSPSC queues** (⚠️ **SPSC ring buffers are dramatically faster** — use the\nmost restrictive queue that fits), **the Disruptor** pattern (ring buffer + sequence\nbarriers; the reference design for low-latency pipelines), **RCU** (read-copy-update —\nreaders pay nothing), **hazard pointers** and **epoch-based reclamation** for the\nmemory-reclamation problem, and **CRDTs** for eventually-consistent replicated state.\n\n> **⚠️ GOTCHA — the concurrency-specific failure modes:**\n> - **The ABA problem.** A CAS succeeds because the value returned to A, but the structure\n>   changed underneath. **The reason hazard pointers and epochs exist.**\n> - **Memory reclamation is the hard part of lock-free programming**, not the algorithm.\n>   You can't free a node while another thread might read it.\n> - **⚠️ False sharing.** Two threads writing *different* variables on the **same cache\n>   line** ping-pong that line between cores. **Can cost an order of magnitude, and it is\n>   invisible in the source.** Pad to cache-line boundaries.\n> - **Memory ordering.** Acquire\u002Frelease\u002Fseq_cst are not decoration. **Getting this wrong\n>   produces bugs that appear only on weakly-ordered architectures (ARM) after passing all\n>   tests on x86.**\n> - **Lock-free ≠ faster.** Under contention it often *is*; under low contention a mutex\n>   frequently wins on simplicity and cache behaviour. **Measure.**\n",{"name":5,"description":7},"develop","ae32736a1aabddabca5d2c96d665aa0ebc7d8700","src\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Falgorithms-deep-dive\u002Fskills\u002Falgo-probabilistic-concurrency-and-measurement",3,"https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey","https:\u002F\u002Fthe-vibey-project.github.io\u002Fvibey\u002F","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project","https:\u002F\u002Fvibewithadam.matthewsteinberger.com","freedom for software engineers","2026-11-15 05:47:42",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add the-vibey-project\u002Fvibey --skill algo-probabilistic-concurrency-and-measurement",{"tool":40,"command":41},"bunx","bunx skills add the-vibey-project\u002Fvibey --skill algo-probabilistic-concurrency-and-measurement",{"tool":43,"command":44},"pnpm","pnpm dlx skills add the-vibey-project\u002Fvibey --skill algo-probabilistic-concurrency-and-measurement","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Falgorithms-deep-dive\u002Fskills\u002Falgo-probabilistic-concurrency-and-measurement\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},"01M7AT1FQJAE1FQYAMDTF490Y4","white-paper-writing","Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks \"how should I structure this\" for a long-form document.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fwhite-paper-writing\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},"01M7AT16BJRJJKK2MASXRZS76G","prose-technical-mechanics","Use when editing or writing prose at a technical\u002Fmechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-technical-mechanics\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},"01M7AT0W9HT0ZZ9Y287NW99MR3","prose-mechanics","Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate\u002FJamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix \"AI-sounding\" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-mechanics\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},"01M7AT0KR635JX66X2X6F3E2CP","narrative-structure","Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or \"how should I structure this story\u002Fpitch\u002Fpresentation\" request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fnarrative-structure\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},"01M7AT0AKGW09NKKZDYBT8VRDE","legal-brief-writing","Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic\u002Fneurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Flegal-brief-writing\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},"01M7AT00VWPS4Q8B5VEMXX9NQT","journal-publishability-criteria","Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs\u002Fpaper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fjournal-publishability-criteria\u002FSKILL.md",[],[]]