[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74GKHGY8HB4PY7QYXTSXDHM":3,"skill-same:01M74GKHGY8HB4PY7QYXTSXDHM":44},{"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":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M74GKHGY8HB4PY7QYXTSXDHM","lakehouse-performance",null,"Tune Databricks\u002FSpark and Delta — small files, OPTIMIZE, clustering, shuffle, skew, Auto Loader, cluster cost. Not lake layout.","MohammadBafkar\u002Fpolymath","MohammadBafkar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F34940462?v=4","01M74G540TQFZWK6KVAPKFVGNR","Mohammad Bafkar","01M74G541HG19QP9V5DQCJVKYE",0,"MIT","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-streaming\u002Fskills\u002Flakehouse-performance\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: lakehouse-performance\ndescription: Tune Databricks\u002FSpark and Delta — small files, OPTIMIZE, clustering, shuffle, skew, Auto Loader, cluster cost. Not lake layout.\n---\n\n# lakehouse-performance\n\n> Lakehouse jobs are slow for three reasons: too many small files, too much data shuffled, or one skewed task holding the stage. Read the Spark UI first; tune the table layout before the cluster.\n\n**Mode:** analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked `[TBD]` or `[VERIFY]`, never filled in.\n\n## When to use\n\n- A Databricks\u002FSpark job or SQL warehouse query is slow or expensive; the Spark UI shows spill, skew, or thousands of tiny tasks.\n- Delta tables degrade over time (many small files, slow MERGE, slow reads); designing table maintenance.\n- Setting up ingestion (Auto Loader) or Structured Streaming into Delta with predictable latency and cost.\n\nNot this when: you are choosing the physical lake layout and file formats — `polymath-streaming:data-lake-layout`; the dimensional model — `data-modeling`; a single warehouse SQL query on Postgres-like engines — `polymath-data:sql-optimize`.\n\n## Inputs\n\n- The job\u002Fquery, runtime (Databricks Runtime version, Photon on\u002Foff, serverless\u002Fclassic), cluster size and type, and run history (duration trend, cost).\n- Spark UI\u002Fquery-profile evidence: stage\u002Ftask time distribution (median vs max), shuffle read\u002Fwrite, spill (memory\u002Fdisk), GC time, input file count and size, scan vs filter rows.\n- Table facts: size, file count and average file size, partition columns and cardinality, clustering\u002FZ-order columns, `DESCRIBE DETAIL` and `DESCRIBE HISTORY` output, write pattern (append, MERGE, streaming micro-batches).\n- Feature availability depends on version\u002Fedition (liquid clustering, predictive optimization, deletion vectors, Photon) — verify for the workspace.\n\n**Read-only first.** Inspect with `DESCRIBE DETAIL\u002FHISTORY`, query profile, and Spark UI. `OPTIMIZE`, `VACUUM`, cluster resizing, and config changes are applied by the owner after review (`VACUUM` shortens time-travel and can break long-running readers).\n\n## Procedure\n\n1. **Establish where time goes** (Spark UI \u002F query profile): per stage, compare task durations (median vs max ⇒ skew), shuffle read\u002Fwrite bytes, spill, GC%, task count, and input size vs rows. A stage with 50,000 tiny tasks is a small-files problem; one task 20× the median is skew; large spill is memory\u002Fpartition sizing; a full scan with a selective filter is a layout\u002Fdata-skipping problem.\n2. **Fix the files and layout first (Delta):**\n   - **Small files**: streaming and frequent appends create many KB-MB files. Enable optimized writes\u002Fauto compaction (or use predictive optimization on Unity Catalog managed tables), and schedule `OPTIMIZE` (target file size is typically hundreds of MB — let the platform defaults apply unless measured) for tables that are append-heavy.\n   - **Data skipping**: Delta keeps min\u002Fmax stats (by default on the first 32 columns); put filter and join columns early or set `delta.dataSkippingStatsColumns`\u002F`dataSkippingNumIndexedCols`. Cluster data by the common predicate: **liquid clustering** (`CLUSTER BY`) for new tables — flexible and incremental — or `OPTIMIZE … ZORDER BY` on older tables (multi-column locality, rewrites more data). Don't also hive-partition the same column.\n   - **Partitioning**: use hive-style partitions only for very large tables (multi-TB) on low-cardinality columns (date, region) with each partition holding ≥ ~1 GB; over-partitioning (by user_id, by hour on a small table) creates millions of small files and slow listings. Prefer clustering for most tables.\n   - **Maintenance**: `VACUUM` to remove unreferenced files (retention default 7 days; keep ≥ the longest reader\u002Fstream lag and your time-travel need), and bound the transaction-log history. Deletion vectors speed `DELETE`\u002F`UPDATE`\u002F`MERGE` by avoiding full file rewrites (verify support).\n3. **Fix the shuffle:**\n   - Avoid it: broadcast the small side of a join (`broadcast()` hint or raise `spark.sql.autoBroadcastJoinThreshold` thoughtfully; AQE can convert at runtime); filter and project early; pre-aggregate; avoid `distinct`\u002F`groupBy` on high-cardinality columns when a window or approximate function will do.\n   - Size it: with AQE (default on) shuffle partitions coalesce automatically; if AQE is off or ineffective, set `spark.sql.shuffle.partitions` so each shuffle partition is ~100–200 MB (not the default 200 for a TB-scale shuffle).\n   - **Skew**: confirm in the UI (max task ≫ median, one key dominating); enable AQE skew-join handling; salt hot keys or split hot keys into a separate broadcast\u002Fpath; filter null\u002Fdefault keys that all hash together.\n   - **Spill**: raise partitions (smaller tasks) or use memory-optimized instances before adding nodes; avoid collecting or caching huge DataFrames; prefer built-in functions\u002FPhoton over Python UDFs (serialization cost) — use pandas\u002FArrow UDFs if needed.\n4. **MERGE\u002Fupsert performance**: include partition\u002Fcluster columns in the `ON` condition so the target files read are pruned (a MERGE without pruning rewrites the table); dedupe the source first (duplicate matches error out and waste time); keep batches reasonably large; use deletion vectors and Photon where available; for CDC use `foreachBatch` with MERGE and idempotency on a batch\u002Fversion key.\n5. **Ingestion**: use **Auto Loader** (`cloudFiles`) for incremental file ingestion — file-notification mode over directory listing at scale; define a schema or schema hints plus `schemaEvolutionMode`; `maxFilesPerTrigger`\u002F`maxBytesPerTrigger` to bound batch size; quarantine bad records (`_rescued_data`). Land raw in bronze with minimal transformation, then incremental transforms downstream.\n6. **Structured Streaming**: choose the trigger by the latency SLA — continuous micro-batches (`processingTime`) only when freshness demands; `availableNow` (incremental batch on a schedule) is far cheaper for hourly\u002Fdaily freshness. Always set a checkpoint location (one per stream, never shared or deleted casually); bound state (watermark + TTL; RocksDB state store for large state); monitor input rate vs processing rate and batch duration vs trigger interval (if processing time ≥ interval, it falls behind). Design sinks idempotently (`foreachBatch` + MERGE, or Delta's exactly-once writes with checkpoint).\n7. **Compute right-sizing**: pick instance families by bottleneck (memory-optimized for shuffle\u002Fspill-heavy, storage-optimized with local NVMe disk cache for repeated scans, compute-optimized for CPU-bound); enable Photon for SQL\u002FDataFrame-heavy work if it pays off per job; autoscale with sensible min\u002Fmax; use job clusters (or serverless) rather than all-purpose clusters for scheduled work; spot\u002Fpreemptible for fault-tolerant jobs; avoid over-large clusters for jobs bounded by a single skewed task. Measure cost per run (DBUs + cloud), not just duration.\n8. **Reduce the work**: read fewer columns\u002Frows (column pruning, predicate pushdown into Parquet\u002FDelta), compute incrementally (streaming tables\u002Fmaterialized views\u002Fincremental MERGE) instead of full refresh, cache only reused data, and retire unused tables (`polymath-database:data-retention-archiving`).\n9. **Verify**: re-run on the same data volume; compare stage times, bytes scanned\u002Fshuffled\u002Fspilled, file counts, and cost per run; keep a baseline in the job's run history.\n\n## Output\n\n```text\nLakehouse performance review: silver.orders_enriched nightly job (DBR 15.4, Photon on, 16 × i3.2xlarge)\n\nSymptom: 3 h 10 min (was 55 min in March); cost 3.4× [VERIFY: DBU + cloud].\nEvidence\n  Spark UI: stage 14 (MERGE into silver.orders) = 71% of runtime; 41,000 tasks, median 1.9 s, max 7 min (1 task)\n  Table: DESCRIBE DETAIL → 380,000 files, avg 9 MB; partitioned by order_id (!); no OPTIMIZE in 90 d\n  MERGE condition: t.order_id = s.order_id (no cluster\u002Fpartition pruning on order_date)\n  Skew: key \"unknown_customer\" = 11% of source rows\nDiagnosis (ranked)\n  1. Layout: partitioning on a high-cardinality column → 380k small files; MERGE scans all.\n  2. MERGE without pruning predicate + skewed null-like key.\nChanges\n  1. Rewrite to CLUSTER BY (order_date, customer_id) [liquid clustering], drop order_id partitioning; run OPTIMIZE once; enable predictive optimization\u002Fauto compaction.\n  2. MERGE ON t.order_date = s.order_date AND t.order_id = s.order_id (+ order_date range filter from source min\u002Fmax); filter 'unknown_customer' to a side path.\n  3. Job: availableNow incremental instead of full-day reprocess [VERIFY: source supports incremental watermark].\nExpected: scan files from 380k to ≈ days-touched × files-per-day; runtime back near baseline — confirm on one night's run before the backfill.\nVerify: files scanned in the MERGE, max\u002Fmedian task ratio \u003C 3, spill 0, cost per run.\nNot changed: cluster size (task skew, not capacity, is the limit).\nCaution: VACUUM retention stays 7 d (downstream stream lags ≤ 2 d).\n```\n\n## Quality bar\n\n- The diagnosis comes from Spark UI\u002FDelta metadata evidence (task skew, file counts, bytes scanned\u002Fshuffled\u002Fspilled), not from a config list.\n- Table layout and small files are addressed before cluster scaling; partition vs clustering choice is justified.\n- MERGE\u002Fstreaming recommendations preserve idempotency and checkpoints; `VACUUM`\u002Fretention changes consider time travel and long readers.\n- Cost per run, not only duration, is the success metric.\n- Version-dependent features are flagged `[VERIFY]`.\n\n## Anti-patterns to avoid\n\n- Scaling the cluster to fix skew or small files.\n- Partitioning by high-cardinality columns, or `Z-ORDER` on columns that are also partition keys.\n- `spark.sql.shuffle.partitions` copy-pasted values regardless of data size; disabling AQE without evidence.\n- Python row-at-a-time UDFs in hot paths; `collect()` on large data.\n- Sharing or deleting streaming checkpoints; running a 24\u002F7 micro-batch stream for daily freshness.\n- Setting `VACUUM` retention to 0 hours to \"free space\" while streams or readers lag.\n","# lakehouse-performance\n\n> Lakehouse jobs are slow for three reasons: too many small files, too much data shuffled, or one skewed task holding the stage. Read the Spark UI first; tune the table layout before the cluster.\n\n**Mode:** analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked `[TBD]` or `[VERIFY]`, never filled in.\n\n## When to use\n\n- A Databricks\u002FSpark job or SQL warehouse query is slow or expensive; the Spark UI shows spill, skew, or thousands of tiny tasks.\n- Delta tables degrade over time (many small files, slow MERGE, slow reads); designing table maintenance.\n- Setting up ingestion (Auto Loader) or Structured Streaming into Delta with predictable latency and cost.\n\nNot this when: you are choosing the physical lake layout and file formats — `polymath-streaming:data-lake-layout`; the dimensional model — `data-modeling`; a single warehouse SQL query on Postgres-like engines — `polymath-data:sql-optimize`.\n\n## Inputs\n\n- The job\u002Fquery, runtime (Databricks Runtime version, Photon on\u002Foff, serverless\u002Fclassic), cluster size and type, and run history (duration trend, cost).\n- Spark UI\u002Fquery-profile evidence: stage\u002Ftask time distribution (median vs max), shuffle read\u002Fwrite, spill (memory\u002Fdisk), GC time, input file count and size, scan vs filter rows.\n- Table facts: size, file count and average file size, partition columns and cardinality, clustering\u002FZ-order columns, `DESCRIBE DETAIL` and `DESCRIBE HISTORY` output, write pattern (append, MERGE, streaming micro-batches).\n- Feature availability depends on version\u002Fedition (liquid clustering, predictive optimization, deletion vectors, Photon) — verify for the workspace.\n\n**Read-only first.** Inspect with `DESCRIBE DETAIL\u002FHISTORY`, query profile, and Spark UI. `OPTIMIZE`, `VACUUM`, cluster resizing, and config changes are applied by the owner after review (`VACUUM` shortens time-travel and can break long-running readers).\n\n## Procedure\n\n1. **Establish where time goes** (Spark UI \u002F query profile): per stage, compare task durations (median vs max ⇒ skew), shuffle read\u002Fwrite bytes, spill, GC%, task count, and input size vs rows. A stage with 50,000 tiny tasks is a small-files problem; one task 20× the median is skew; large spill is memory\u002Fpartition sizing; a full scan with a selective filter is a layout\u002Fdata-skipping problem.\n2. **Fix the files and layout first (Delta):**\n   - **Small files**: streaming and frequent appends create many KB-MB files. Enable optimized writes\u002Fauto compaction (or use predictive optimization on Unity Catalog managed tables), and schedule `OPTIMIZE` (target file size is typically hundreds of MB — let the platform defaults apply unless measured) for tables that are append-heavy.\n   - **Data skipping**: Delta keeps min\u002Fmax stats (by default on the first 32 columns); put filter and join columns early or set `delta.dataSkippingStatsColumns`\u002F`dataSkippingNumIndexedCols`. Cluster data by the common predicate: **liquid clustering** (`CLUSTER BY`) for new tables — flexible and incremental — or `OPTIMIZE … ZORDER BY` on older tables (multi-column locality, rewrites more data). Don't also hive-partition the same column.\n   - **Partitioning**: use hive-style partitions only for very large tables (multi-TB) on low-cardinality columns (date, region) with each partition holding ≥ ~1 GB; over-partitioning (by user_id, by hour on a small table) creates millions of small files and slow listings. Prefer clustering for most tables.\n   - **Maintenance**: `VACUUM` to remove unreferenced files (retention default 7 days; keep ≥ the longest reader\u002Fstream lag and your time-travel need), and bound the transaction-log history. Deletion vectors speed `DELETE`\u002F`UPDATE`\u002F`MERGE` by avoiding full file rewrites (verify support).\n3. **Fix the shuffle:**\n   - Avoid it: broadcast the small side of a join (`broadcast()` hint or raise `spark.sql.autoBroadcastJoinThreshold` thoughtfully; AQE can convert at runtime); filter and project early; pre-aggregate; avoid `distinct`\u002F`groupBy` on high-cardinality columns when a window or approximate function will do.\n   - Size it: with AQE (default on) shuffle partitions coalesce automatically; if AQE is off or ineffective, set `spark.sql.shuffle.partitions` so each shuffle partition is ~100–200 MB (not the default 200 for a TB-scale shuffle).\n   - **Skew**: confirm in the UI (max task ≫ median, one key dominating); enable AQE skew-join handling; salt hot keys or split hot keys into a separate broadcast\u002Fpath; filter null\u002Fdefault keys that all hash together.\n   - **Spill**: raise partitions (smaller tasks) or use memory-optimized instances before adding nodes; avoid collecting or caching huge DataFrames; prefer built-in functions\u002FPhoton over Python UDFs (serialization cost) — use pandas\u002FArrow UDFs if needed.\n4. **MERGE\u002Fupsert performance**: include partition\u002Fcluster columns in the `ON` condition so the target files read are pruned (a MERGE without pruning rewrites the table); dedupe the source first (duplicate matches error out and waste time); keep batches reasonably large; use deletion vectors and Photon where available; for CDC use `foreachBatch` with MERGE and idempotency on a batch\u002Fversion key.\n5. **Ingestion**: use **Auto Loader** (`cloudFiles`) for incremental file ingestion — file-notification mode over directory listing at scale; define a schema or schema hints plus `schemaEvolutionMode`; `maxFilesPerTrigger`\u002F`maxBytesPerTrigger` to bound batch size; quarantine bad records (`_rescued_data`). Land raw in bronze with minimal transformation, then incremental transforms downstream.\n6. **Structured Streaming**: choose the trigger by the latency SLA — continuous micro-batches (`processingTime`) only when freshness demands; `availableNow` (incremental batch on a schedule) is far cheaper for hourly\u002Fdaily freshness. Always set a checkpoint location (one per stream, never shared or deleted casually); bound state (watermark + TTL; RocksDB state store for large state); monitor input rate vs processing rate and batch duration vs trigger interval (if processing time ≥ interval, it falls behind). Design sinks idempotently (`foreachBatch` + MERGE, or Delta's exactly-once writes with checkpoint).\n7. **Compute right-sizing**: pick instance families by bottleneck (memory-optimized for shuffle\u002Fspill-heavy, storage-optimized with local NVMe disk cache for repeated scans, compute-optimized for CPU-bound); enable Photon for SQL\u002FDataFrame-heavy work if it pays off per job; autoscale with sensible min\u002Fmax; use job clusters (or serverless) rather than all-purpose clusters for scheduled work; spot\u002Fpreemptible for fault-tolerant jobs; avoid over-large clusters for jobs bounded by a single skewed task. Measure cost per run (DBUs + cloud), not just duration.\n8. **Reduce the work**: read fewer columns\u002Frows (column pruning, predicate pushdown into Parquet\u002FDelta), compute incrementally (streaming tables\u002Fmaterialized views\u002Fincremental MERGE) instead of full refresh, cache only reused data, and retire unused tables (`polymath-database:data-retention-archiving`).\n9. **Verify**: re-run on the same data volume; compare stage times, bytes scanned\u002Fshuffled\u002Fspilled, file counts, and cost per run; keep a baseline in the job's run history.\n\n## Output\n\n```text\nLakehouse performance review: silver.orders_enriched nightly job (DBR 15.4, Photon on, 16 × i3.2xlarge)\n\nSymptom: 3 h 10 min (was 55 min in March); cost 3.4× [VERIFY: DBU + cloud].\nEvidence\n  Spark UI: stage 14 (MERGE into silver.orders) = 71% of runtime; 41,000 tasks, median 1.9 s, max 7 min (1 task)\n  Table: DESCRIBE DETAIL → 380,000 files, avg 9 MB; partitioned by order_id (!); no OPTIMIZE in 90 d\n  MERGE condition: t.order_id = s.order_id (no cluster\u002Fpartition pruning on order_date)\n  Skew: key \"unknown_customer\" = 11% of source rows\nDiagnosis (ranked)\n  1. Layout: partitioning on a high-cardinality column → 380k small files; MERGE scans all.\n  2. MERGE without pruning predicate + skewed null-like key.\nChanges\n  1. Rewrite to CLUSTER BY (order_date, customer_id) [liquid clustering], drop order_id partitioning; run OPTIMIZE once; enable predictive optimization\u002Fauto compaction.\n  2. MERGE ON t.order_date = s.order_date AND t.order_id = s.order_id (+ order_date range filter from source min\u002Fmax); filter 'unknown_customer' to a side path.\n  3. Job: availableNow incremental instead of full-day reprocess [VERIFY: source supports incremental watermark].\nExpected: scan files from 380k to ≈ days-touched × files-per-day; runtime back near baseline — confirm on one night's run before the backfill.\nVerify: files scanned in the MERGE, max\u002Fmedian task ratio \u003C 3, spill 0, cost per run.\nNot changed: cluster size (task skew, not capacity, is the limit).\nCaution: VACUUM retention stays 7 d (downstream stream lags ≤ 2 d).\n```\n\n## Quality bar\n\n- The diagnosis comes from Spark UI\u002FDelta metadata evidence (task skew, file counts, bytes scanned\u002Fshuffled\u002Fspilled), not from a config list.\n- Table layout and small files are addressed before cluster scaling; partition vs clustering choice is justified.\n- MERGE\u002Fstreaming recommendations preserve idempotency and checkpoints; `VACUUM`\u002Fretention changes consider time travel and long readers.\n- Cost per run, not only duration, is the success metric.\n- Version-dependent features are flagged `[VERIFY]`.\n\n## Anti-patterns to avoid\n\n- Scaling the cluster to fix skew or small files.\n- Partitioning by high-cardinality columns, or `Z-ORDER` on columns that are also partition keys.\n- `spark.sql.shuffle.partitions` copy-pasted values regardless of data size; disabling AQE without evidence.\n- Python row-at-a-time UDFs in hot paths; `collect()` on large data.\n- Sharing or deleting streaming checkpoints; running a 24\u002F7 micro-batch stream for daily freshness.\n- Setting `VACUUM` retention to 0 hours to \"free space\" while streams or readers lag.\n",{"name":5,"description":7},"main","23f6e21841a39580c9da2b5ec941f39dda17cd86","plugins\u002Fpolymath-streaming\u002Fskills\u002Flakehouse-performance","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath","https:\u002F\u002Fgithub.com\u002FMohammadBafkar","2026-10-29 18:34:59",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add MohammadBafkar\u002Fpolymath --skill lakehouse-performance",{"tool":36,"command":37},"bunx","bunx skills add MohammadBafkar\u002Fpolymath --skill lakehouse-performance",{"tool":39,"command":40},"pnpm","pnpm dlx skills add MohammadBafkar\u002Fpolymath --skill lakehouse-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-streaming\u002Fskills\u002Flakehouse-performance\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M74GN87EBRHM9N87M7AP1HDD","runbook","Write or refresh an operational runbook for an alert\u002Fsymptom; structured as TL;DR + Pre-checks + Steps + Verification + Rollback + Escalation.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Frunbook\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M74GN5GPKEC1JEKP2DFQNEQJ","rfc","Draft a lightweight design RFC to docs\u002Frfcs\u002F\u003Cslug>.md; Summary, Motivation, Detailed design, Drawbacks, Alternatives, Unresolved questions. A proposal to debate, not a recorded decision (adr).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Frfc\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M74GN2F4CWPMV4X09TG4E304","editorial-pass","Review and tighten prose in a Markdown artifact for a target tone (terse, formal, friendly) without dropping information; preserve quotations and load-bearing constraints.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Feditorial-pass\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M74GMZWGYMZ37C4DYGT6P23G","architecture-review-facilitation","Run an architecture review as a process — entry criteria, reviewer checklist, decision log, and follow-up actions — pairing the design artifact with a red-team pass.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Farchitecture-review-facilitation\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M74GMXVX0YX3ETDXS527XDGM","architecture-doc","Write a C4-style architecture document; System Context + Containers (+ Components when interesting) with mermaid diagrams. Describes structure, not a decision (adr) or proposal (rfc).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Farchitecture-doc\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M74GMVG1WSMCK066S3KE6V5K","adr","Write an Architecture Decision Record (Michael Nygard format) to docs\u002Fadrs\u002FNNNN-\u003Cslug>.md; frontmatter validated by the ADR artifact schema. Records a made decision, not a proposal to debate (rfc).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Fadr\u002FSKILL.md",[],[]]