[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74GA1HBG187KQ527EES58FS":3,"skill-same:01M74GA1HBG187KQ527EES58FS":50},{"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},"01M74GA1HBG187KQ527EES58FS","postgres-performance",null,"Tune Postgres runtime performance — pg_stat_statements, vacuum\u002Fbloat\u002FHOT, index types, locks, pooling. Not server config (audit-pg-config).","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-database\u002Fskills\u002Fpostgres-performance\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: postgres-performance\ndescription: Tune Postgres runtime performance — pg_stat_statements, vacuum\u002Fbloat\u002FHOT, index types, locks, pooling. Not server config (audit-pg-config).\n---\n\n# postgres-performance\n\n> Postgres performance is MVCC economics: every update writes a new row version, and vacuum, indexes, and long transactions decide whether that stays cheap. Measure with the catalog, then change one thing.\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 Postgres workload is slow, bloated, lagging replicas, or burning IO\u002FCPU and you need Postgres-specific causes and fixes.\n- Designing a high-write or large-table Postgres schema (queue table, event log, time series) for performance.\n- Following `polymath-database:db-performance-triage` once the engine is confirmed as Postgres.\n\nNot this when: you only need the server parameters sanity-checked — `polymath-backend:audit-pg-config`. For reading one plan — `polymath-data:sql-optimize`; for lock review of a schema change — `polymath-backend:review-migration`.\n\n## Inputs\n\n- Postgres version (features differ: `pg_stat_io` and `MERGE` need 15–16+, `INCLUDE` indexes 11+, partition pruning improved through 12–14), managed\u002Fself-hosted, RAM\u002FvCPU\u002Fstorage.\n- Output of the catalog queries in [references\u002Fcatalog-queries.md](references\u002Fcatalog-queries.md) for the affected window; `pg_stat_statements` must be enabled or say so.\n- The workload shape: OLTP \u002F queue \u002F append-only \u002F analytics, write rate, table sizes, and the pooler in front (PgBouncer mode).\n\n**Read-only.** `SELECT`\u002F`SHOW`\u002F`EXPLAIN` only; `EXPLAIN ANALYZE` of writes inside `BEGIN … ROLLBACK` and preferably on a replica. Never run `VACUUM FULL`, `REINDEX`, `ALTER SYSTEM`, or `pg_terminate_backend` from this skill — recommend; the owner applies.\n\n## Procedure\n\n1. **Find the load.** Rank `pg_stat_statements` by `total_exec_time` and by `calls`; for the top few note `mean_exec_time`, `rows`, `shared_blks_read`, `temp_blks_written`. Sample `pg_stat_activity` wait events repeatedly (`IO:DataFileRead`, `LWLock:*`, `Lock:transactionid`, `Client:ClientRead`, `IPC:*`). `Client:ClientRead` dominating means the app, network, or an idle-in-transaction pattern — not the database.\n2. **Read plans the Postgres way.** `EXPLAIN (ANALYZE, BUFFERS, SETTINGS)`: actual vs estimated rows (an order-of-magnitude drift means stats or correlation problems), `Rows Removed by Filter`, `Heap Fetches` on an Index Only Scan (stale visibility map), `Sort Method: external merge`, `Batches > 1` on hash (spill), nested loop with high `loops`. Fixes in order: `ANALYZE`; raise per-column `STATISTICS` or add extended statistics (`CREATE STATISTICS … (dependencies, ndistinct, mcv)`) for correlated columns; then index\u002Fquery changes. Never leave `enable_seqscan = off` in place.\n3. **Index kind and shape.** B-tree default; partial indexes for queue\u002Fstatus predicates; `INCLUDE` for covering hot reads; GIN for JSONB\u002Farray\u002FFTS (`gin_pending_list` and `fastupdate` trade write latency for throughput); BRIN for huge append-only, time-correlated tables; `pg_trgm` for `LIKE '%x%'`. Build with `CREATE INDEX CONCURRENTLY`; check for leftover `INVALID` indexes. Full design in `polymath-database:index-strategy`.\n4. **MVCC, vacuum, bloat.**\n   - Dead tuples accumulate on every `UPDATE`\u002F`DELETE`; autovacuum reclaims them if nothing pins the xmin horizon. The usual blockers: long transactions, `idle in transaction`, forgotten replication slots, `hot_standby_feedback` with long replica queries, orphaned prepared transactions. Find the oldest xmin holder before touching vacuum settings.\n   - Lower `autovacuum_vacuum_scale_factor` (and set `autovacuum_vacuum_insert_scale_factor` for append-only tables — freezes and the visibility map need it) per large table; raise `autovacuum_vacuum_cost_limit` if autovacuum can't keep pace on fast storage.\n   - **HOT updates** avoid index writes when no indexed column changes and the page has room: set `fillfactor` 70–90 on hot-update tables and don't index frequently updated columns. Check `n_tup_hot_upd \u002F n_tup_upd` in `pg_stat_user_tables`.\n   - Transaction ID wraparound: monitor `age(datfrozenxid)` \u002F `relfrozenxid`; anti-wraparound vacuums are not cancellable and not optional.\n5. **Queue\u002Fhot-row patterns.** A table used as a queue churns dead tuples — use `FOR UPDATE SKIP LOCKED` with a partial index on the pending predicate, delete\u002Farchive in batches, and vacuum aggressively (or partition and drop). Counters and \"latest\" rows serialize on one tuple: shard the counter, append-and-aggregate, or move to a cache.\n6. **Partitioning.** Declarative range\u002Flist partitioning helps when (a) queries filter on the partition key so pruning works, (b) you drop old data by detaching\u002Fdropping partitions instead of `DELETE`, (c) vacuum\u002Findex builds on a monolith hurt. It does not speed up queries that don't prune, and partition counts in the thousands slow planning. See `polymath-database:partitioning-sharding`.\n7. **Connections and pooling.** Each backend is a process; > a few hundred active connections thrash. Put PgBouncer in `transaction` mode (no session state: prepared statements, `SET`, advisory locks, `LISTEN` need care), size the server pool to roughly cores × 2–4 for active work, and keep `max_connections` modest. Fix the app's pool size before raising server limits.\n8. **Locks and contention.** `pg_blocking_pids`, `log_lock_waits`, `deadlock_timeout`. Common causes: long transactions holding row locks, `ALTER TABLE` queued behind a long query (and blocking everything behind it — set `lock_timeout`), foreign-key checks on unindexed referencing columns, `SELECT … FOR UPDATE` on hot parents. Index every foreign key's referencing column unless you've shown it unneeded.\n9. **WAL, checkpoints, replicas.** `pg_stat_wal`\u002Fcheckpointer stats for checkpoint pressure (`max_wal_size`, `checkpoint_timeout`, `wal_compression`); replica `replay_lag` and recovery conflicts; inactive replication slots retaining WAL (`max_slot_wal_keep_size`). Offload read-only reporting to replicas only after accounting for lag and feedback bloat.\n10. **Memory knobs, last.** `work_mem` is per sort\u002Fhash node per connection — raise per session for the job that needs it, not globally; `effective_cache_size` informs the planner but allocates nothing; `shared_buffers` ~25% RAM is the usual start; `maintenance_work_mem` speeds index builds and vacuum. Server-level audit is `polymath-backend:audit-pg-config`.\n11. **Change one thing, re-measure** with the same queries and reset deltas (`pg_stat_statements_reset()` only on a system you own; otherwise diff two snapshots).\n\n## Output\n\n```text\nPostgres performance review: ledger-db (PG 15, 32 vCPU \u002F 256 GB, PgBouncer transaction mode)\n\nLoad (pg_stat_statements, 24 h)\n  #1 UPDATE accounts SET balance … WHERE id=$1      38% total · 9k calls\u002Fs · mean 1.1 ms · HOT ratio 4%\n  #2 SELECT … FROM entries WHERE account_id=$1 AND posted_at > $2   27% total · 6k\u002Fs · mean 2.0 ms · heap fetches 61%\nWaits: 44% IO:DataFileRead, 18% LWLock:WALWrite, 9% Lock:transactionid\n\nFindings\n  1. accounts is updated on an indexed column (updated_at in accounts_updated_idx) → HOT 4%; every update rewrites 4 indexes.\n     Fix: drop accounts_updated_idx (0 reads); set fillfactor 80 via a table rewrite in a maintenance window; expect HOT ratio > 80%.\n  2. entries index-only scan does heap fetches 61% → visibility map stale; autovacuum_vacuum_insert_scale_factor is default.\n     Fix: per-table autovacuum_vacuum_insert_scale_factor = 0.02; verify Heap Fetches → ~0.\n  3. Oldest xmin holder: replication slot \"bi_etl\" inactive 3 d, pinning 220 GB WAL and vacuum.\n     Fix: confirm the consumer is gone, drop the slot; set max_slot_wal_keep_size.\nNot the cause (checked): connections (active 31), checkpoints (timed 96%), planner estimates (within 2×).\nOrder: 3 → 2 → 1 (risk ascending; 1 needs a rewrite window).\nVerify: accounts HOT ratio, entries Heap Fetches, WAL retained, p99 of #1 and #2.\nUnknowns: [VERIFY: bi_etl slot is truly abandoned — ask its owner before dropping].\n```\n\n## Quality bar\n\n- Findings cite catalog evidence (a `pg_stat_*` view, a plan field, a wait event), not folklore.\n- The xmin horizon is checked before any vacuum or bloat remedy is proposed.\n- Fixes name the verification metric; destructive steps (`REINDEX`, rewrite, slot drop) carry a rollback or owner-confirmation note.\n- Version-dependent features are stated with the version needed.\n- Connection pooling constraints (transaction mode vs session state) are respected in recommendations.\n\n## Anti-patterns to avoid\n\n- Raising `max_connections` or `work_mem` globally as the first move.\n- Disabling autovacuum \"for now\", or running `VACUUM FULL` on a hot table (it takes an `ACCESS EXCLUSIVE` lock and rewrites it).\n- Adding an index to a high-write table without checking HOT impact and write cost.\n- Using `enable_*` planner switches, or hints, as the permanent fix instead of fixing statistics.\n- A long-lived `idle in transaction` session, or an unbounded transaction around a batch job.\n- Partitioning a table whose queries never filter on the partition key.\n","# postgres-performance\n\n> Postgres performance is MVCC economics: every update writes a new row version, and vacuum, indexes, and long transactions decide whether that stays cheap. Measure with the catalog, then change one thing.\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 Postgres workload is slow, bloated, lagging replicas, or burning IO\u002FCPU and you need Postgres-specific causes and fixes.\n- Designing a high-write or large-table Postgres schema (queue table, event log, time series) for performance.\n- Following `polymath-database:db-performance-triage` once the engine is confirmed as Postgres.\n\nNot this when: you only need the server parameters sanity-checked — `polymath-backend:audit-pg-config`. For reading one plan — `polymath-data:sql-optimize`; for lock review of a schema change — `polymath-backend:review-migration`.\n\n## Inputs\n\n- Postgres version (features differ: `pg_stat_io` and `MERGE` need 15–16+, `INCLUDE` indexes 11+, partition pruning improved through 12–14), managed\u002Fself-hosted, RAM\u002FvCPU\u002Fstorage.\n- Output of the catalog queries in [references\u002Fcatalog-queries.md](references\u002Fcatalog-queries.md) for the affected window; `pg_stat_statements` must be enabled or say so.\n- The workload shape: OLTP \u002F queue \u002F append-only \u002F analytics, write rate, table sizes, and the pooler in front (PgBouncer mode).\n\n**Read-only.** `SELECT`\u002F`SHOW`\u002F`EXPLAIN` only; `EXPLAIN ANALYZE` of writes inside `BEGIN … ROLLBACK` and preferably on a replica. Never run `VACUUM FULL`, `REINDEX`, `ALTER SYSTEM`, or `pg_terminate_backend` from this skill — recommend; the owner applies.\n\n## Procedure\n\n1. **Find the load.** Rank `pg_stat_statements` by `total_exec_time` and by `calls`; for the top few note `mean_exec_time`, `rows`, `shared_blks_read`, `temp_blks_written`. Sample `pg_stat_activity` wait events repeatedly (`IO:DataFileRead`, `LWLock:*`, `Lock:transactionid`, `Client:ClientRead`, `IPC:*`). `Client:ClientRead` dominating means the app, network, or an idle-in-transaction pattern — not the database.\n2. **Read plans the Postgres way.** `EXPLAIN (ANALYZE, BUFFERS, SETTINGS)`: actual vs estimated rows (an order-of-magnitude drift means stats or correlation problems), `Rows Removed by Filter`, `Heap Fetches` on an Index Only Scan (stale visibility map), `Sort Method: external merge`, `Batches > 1` on hash (spill), nested loop with high `loops`. Fixes in order: `ANALYZE`; raise per-column `STATISTICS` or add extended statistics (`CREATE STATISTICS … (dependencies, ndistinct, mcv)`) for correlated columns; then index\u002Fquery changes. Never leave `enable_seqscan = off` in place.\n3. **Index kind and shape.** B-tree default; partial indexes for queue\u002Fstatus predicates; `INCLUDE` for covering hot reads; GIN for JSONB\u002Farray\u002FFTS (`gin_pending_list` and `fastupdate` trade write latency for throughput); BRIN for huge append-only, time-correlated tables; `pg_trgm` for `LIKE '%x%'`. Build with `CREATE INDEX CONCURRENTLY`; check for leftover `INVALID` indexes. Full design in `polymath-database:index-strategy`.\n4. **MVCC, vacuum, bloat.**\n   - Dead tuples accumulate on every `UPDATE`\u002F`DELETE`; autovacuum reclaims them if nothing pins the xmin horizon. The usual blockers: long transactions, `idle in transaction`, forgotten replication slots, `hot_standby_feedback` with long replica queries, orphaned prepared transactions. Find the oldest xmin holder before touching vacuum settings.\n   - Lower `autovacuum_vacuum_scale_factor` (and set `autovacuum_vacuum_insert_scale_factor` for append-only tables — freezes and the visibility map need it) per large table; raise `autovacuum_vacuum_cost_limit` if autovacuum can't keep pace on fast storage.\n   - **HOT updates** avoid index writes when no indexed column changes and the page has room: set `fillfactor` 70–90 on hot-update tables and don't index frequently updated columns. Check `n_tup_hot_upd \u002F n_tup_upd` in `pg_stat_user_tables`.\n   - Transaction ID wraparound: monitor `age(datfrozenxid)` \u002F `relfrozenxid`; anti-wraparound vacuums are not cancellable and not optional.\n5. **Queue\u002Fhot-row patterns.** A table used as a queue churns dead tuples — use `FOR UPDATE SKIP LOCKED` with a partial index on the pending predicate, delete\u002Farchive in batches, and vacuum aggressively (or partition and drop). Counters and \"latest\" rows serialize on one tuple: shard the counter, append-and-aggregate, or move to a cache.\n6. **Partitioning.** Declarative range\u002Flist partitioning helps when (a) queries filter on the partition key so pruning works, (b) you drop old data by detaching\u002Fdropping partitions instead of `DELETE`, (c) vacuum\u002Findex builds on a monolith hurt. It does not speed up queries that don't prune, and partition counts in the thousands slow planning. See `polymath-database:partitioning-sharding`.\n7. **Connections and pooling.** Each backend is a process; > a few hundred active connections thrash. Put PgBouncer in `transaction` mode (no session state: prepared statements, `SET`, advisory locks, `LISTEN` need care), size the server pool to roughly cores × 2–4 for active work, and keep `max_connections` modest. Fix the app's pool size before raising server limits.\n8. **Locks and contention.** `pg_blocking_pids`, `log_lock_waits`, `deadlock_timeout`. Common causes: long transactions holding row locks, `ALTER TABLE` queued behind a long query (and blocking everything behind it — set `lock_timeout`), foreign-key checks on unindexed referencing columns, `SELECT … FOR UPDATE` on hot parents. Index every foreign key's referencing column unless you've shown it unneeded.\n9. **WAL, checkpoints, replicas.** `pg_stat_wal`\u002Fcheckpointer stats for checkpoint pressure (`max_wal_size`, `checkpoint_timeout`, `wal_compression`); replica `replay_lag` and recovery conflicts; inactive replication slots retaining WAL (`max_slot_wal_keep_size`). Offload read-only reporting to replicas only after accounting for lag and feedback bloat.\n10. **Memory knobs, last.** `work_mem` is per sort\u002Fhash node per connection — raise per session for the job that needs it, not globally; `effective_cache_size` informs the planner but allocates nothing; `shared_buffers` ~25% RAM is the usual start; `maintenance_work_mem` speeds index builds and vacuum. Server-level audit is `polymath-backend:audit-pg-config`.\n11. **Change one thing, re-measure** with the same queries and reset deltas (`pg_stat_statements_reset()` only on a system you own; otherwise diff two snapshots).\n\n## Output\n\n```text\nPostgres performance review: ledger-db (PG 15, 32 vCPU \u002F 256 GB, PgBouncer transaction mode)\n\nLoad (pg_stat_statements, 24 h)\n  #1 UPDATE accounts SET balance … WHERE id=$1      38% total · 9k calls\u002Fs · mean 1.1 ms · HOT ratio 4%\n  #2 SELECT … FROM entries WHERE account_id=$1 AND posted_at > $2   27% total · 6k\u002Fs · mean 2.0 ms · heap fetches 61%\nWaits: 44% IO:DataFileRead, 18% LWLock:WALWrite, 9% Lock:transactionid\n\nFindings\n  1. accounts is updated on an indexed column (updated_at in accounts_updated_idx) → HOT 4%; every update rewrites 4 indexes.\n     Fix: drop accounts_updated_idx (0 reads); set fillfactor 80 via a table rewrite in a maintenance window; expect HOT ratio > 80%.\n  2. entries index-only scan does heap fetches 61% → visibility map stale; autovacuum_vacuum_insert_scale_factor is default.\n     Fix: per-table autovacuum_vacuum_insert_scale_factor = 0.02; verify Heap Fetches → ~0.\n  3. Oldest xmin holder: replication slot \"bi_etl\" inactive 3 d, pinning 220 GB WAL and vacuum.\n     Fix: confirm the consumer is gone, drop the slot; set max_slot_wal_keep_size.\nNot the cause (checked): connections (active 31), checkpoints (timed 96%), planner estimates (within 2×).\nOrder: 3 → 2 → 1 (risk ascending; 1 needs a rewrite window).\nVerify: accounts HOT ratio, entries Heap Fetches, WAL retained, p99 of #1 and #2.\nUnknowns: [VERIFY: bi_etl slot is truly abandoned — ask its owner before dropping].\n```\n\n## Quality bar\n\n- Findings cite catalog evidence (a `pg_stat_*` view, a plan field, a wait event), not folklore.\n- The xmin horizon is checked before any vacuum or bloat remedy is proposed.\n- Fixes name the verification metric; destructive steps (`REINDEX`, rewrite, slot drop) carry a rollback or owner-confirmation note.\n- Version-dependent features are stated with the version needed.\n- Connection pooling constraints (transaction mode vs session state) are respected in recommendations.\n\n## Anti-patterns to avoid\n\n- Raising `max_connections` or `work_mem` globally as the first move.\n- Disabling autovacuum \"for now\", or running `VACUUM FULL` on a hot table (it takes an `ACCESS EXCLUSIVE` lock and rewrites it).\n- Adding an index to a high-write table without checking HOT impact and write cost.\n- Using `enable_*` planner switches, or hints, as the permanent fix instead of fixing statistics.\n- A long-lived `idle in transaction` session, or an unbounded transaction around a batch job.\n- Partitioning a table whose queries never filter on the partition key.\n",{"name":5,"description":7},"main","23f6e21841a39580c9da2b5ec941f39dda17cd86","plugins\u002Fpolymath-database\u002Fskills\u002Fpostgres-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 postgres-performance",{"tool":36,"command":37},"bunx","bunx skills add MohammadBafkar\u002Fpolymath --skill postgres-performance",{"tool":39,"command":40},"pnpm","pnpm dlx skills add MohammadBafkar\u002Fpolymath --skill postgres-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-database\u002Fskills\u002Fpostgres-performance\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Fcatalog-queries.md","REFERENCE","参考文档",3667,"https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-database\u002Fskills\u002Fpostgres-performance\u002Freferences\u002Fcatalog-queries.md",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"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":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"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":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"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":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"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":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"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":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"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",[],[]]