[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73H057DDZ1D8XPCTD6ZHMRH":3,"skill-same:01M73H057DDZ1D8XPCTD6ZHMRH":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},"01M73H057DDZ1D8XPCTD6ZHMRH","kegg-pathway-analysis",null,"Guide to KEGG pathway enrichment for DEG results. Covers ORA vs GSEA, mandatory directionality splitting, KEGG organism codes, API failure handling with offline fallbacks, cross-condition comparisons, and answer-first reporting. Consult when running enrichment with clusterProfiler or gseapy.","bg-szy\u002FTOP-SKILLS","bg-szy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106576190?v=4","01M73A4E8KPV67SFXRY8XZGNBX","ShuZhiyong","01M73A4E96MQ294MHM74TZBVQD",6,"CC-BY-4.0","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fawesome-skills\u002Fkegg-pathway-analysis\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: kegg-pathway-analysis\ndescription: \"Guide to KEGG pathway enrichment for DEG results. Covers ORA vs GSEA, mandatory directionality splitting, KEGG organism codes, API failure handling with offline fallbacks, cross-condition comparisons, and answer-first reporting. Consult when running enrichment with clusterProfiler or gseapy.\"\nlicense: CC-BY-4.0\n---\n\n# KEGG Pathway Enrichment Analysis Guide\n\n## Overview\n\nKEGG (Kyoto Encyclopedia of Genes and Genomes) pathway enrichment analysis identifies biological pathways that are statistically over-represented among differentially expressed genes. This guide covers the two main enrichment approaches (ORA and GSEA), critical workflow decisions such as splitting genes by directionality, tool selection between R clusterProfiler and Python gseapy, and strategies for handling the notoriously unreliable KEGG REST API. It addresses recurring failure modes that produce incorrect pathway counts or stalled analyses.\n\nThe three most common errors in KEGG pathway analysis are: (1) combining up-regulated and down-regulated genes into a single enrichment run, which masks true pathway signals; (2) analysis failures caused by KEGG REST API timeouts with no fallback strategy; and (3) delaying result reporting while attempting cosmetic pathway name lookups that may never complete. This guide provides concrete solutions for each.\n\n## Key Concepts\n\n### ORA vs GSEA\n\nOver-Representation Analysis (ORA) and Gene Set Enrichment Analysis (GSEA) are the two primary methods for pathway enrichment, and they differ in both input and statistical approach.\n\n**ORA** takes a pre-filtered gene list (e.g., genes with padj \u003C 0.05 and |log2FC| > 1.5) and tests whether KEGG pathway members are over-represented in that list relative to a background universe. ORA uses a hypergeometric test (Fisher's exact test). It is straightforward but discards magnitude information and depends heavily on the significance cutoff chosen.\n\n**GSEA** takes a ranked list of all genes (typically ranked by log2 fold change or a signed significance statistic) without any cutoff. It computes a running enrichment score by walking down the ranked list and identifies pathways whose members cluster toward the top or bottom of the ranking. GSEA captures subtle coordinated changes that ORA may miss.\n\nIn practice, ORA via `enrichKEGG()` (clusterProfiler) or `gp.enrichr()` (gseapy) is the more common starting point. GSEA via `gseKEGG()` or `gp.prerank()` is preferred when you want to avoid arbitrary cutoffs or when effect sizes are small.\n\n### Directionality in Enrichment\n\nWhen performing ORA, gene directionality -- whether a gene is up-regulated or down-regulated -- is critical. A single pathway can contain genes regulated in opposite directions. If up-regulated and down-regulated genes are combined into one list, their opposing signals cancel out, diluting the enrichment signal and masking genuinely enriched pathways. Running enrichment separately for up-regulated and down-regulated gene sets produces more accurate and interpretable results. This splitting is mandatory for ORA. GSEA inherently handles directionality through the signed ranking, though interpreting leading-edge genes by direction is still important.\n\n### KEGG Organism Codes\n\nKEGG uses three-letter (or four-letter) organism codes to identify species-specific pathway databases. Using the wrong code silently returns empty results. Common codes:\n\n| Organism | Code |\n|---|---|\n| Human | hsa |\n| Mouse | mmu |\n| Rat | rno |\n| Zebrafish | dre |\n| Drosophila | dme |\n| C. elegans | cel |\n| E. coli K-12 | eco |\n| P. aeruginosa PA14 | pau |\n| P. aeruginosa PAO1 | pae |\n| S. cerevisiae | sce |\n| A. thaliana | ath |\n\nGene ID format also varies by organism: eukaryotic species typically require Entrez gene IDs, while bacterial species use locus tags. Mismatched ID types are a silent failure mode.\n\n### KEGG API Reliability\n\nThe KEGG REST API (`rest.kegg.jp`) is rate-limited, frequently slow, and prone to timeouts. Both `clusterProfiler::enrichKEGG()` and direct HTTP requests to KEGG can fail unpredictably. Planning for API failures is not optional -- it is a necessary part of any KEGG-based workflow. Strategies include pre-fetching and caching pathway data, using offline gene set databases bundled with gseapy, and implementing retry logic with timeouts.\n\n## Pre-flight Interview\n\nSettle these with the user before writing any analysis code.\n\n```yaml\ndecisions:\n  - id: D1\n    param: organismCode\n    kind: required\n    source: upstream\n    ask: \"Which species should pathways be looked up for?\"\n    default: \"carried from the dataset\"\n\n  - id: D2\n    param: identifierMapping\n    kind: required\n    source: data\n    depends_on: [D1]\n    ask: \"Which identifier type do the genes carry, and how should unmapped ones be handled?\"\n    default: null\n\n  - id: D3\n    param: testingApproach\n    kind: required\n    source: upstream\n    ask: \"Test a significant-gene list against pathways (over-representation), or the whole ranked list without a cut (enrichment)?\"\n    default: \"over-representation when the input is a gene list\"\n\n  - id: D4\n    param: backgroundSet\n    kind: required\n    source: upstream\n    depends_on: [D3]\n    ask: \"Which genes form the background - everything measured in this experiment, or the whole annotated genome?\"\n    default: \"the genes tested in this experiment\"\n    skip_if: \"ranked-list enrichment, which uses the ranking rather than a background\"\n\n  - id: D5\n    param: pathwayScope\n    kind: optional\n    source: user\n    ask: \"Should all pathway categories be tested, or only metabolism, signalling, or disease maps?\"\n    default: \"all categories\"\n\n  - id: D6\n    param: significanceThreshold\n    kind: required\n    source: user\n    ask: \"How strong must a pathway's evidence be, after correcting for the number of pathways tested?\"\n    default: \"adjusted p-value 0.05\"\n```\n\nD4 is the decision most often skipped and the one that most changes the answer.\nUsing the whole genome as background when the experiment only measured\nexpressed genes makes every tissue-specific pathway look enriched - the\nenrichment is against genes that were never measurable, not against the\nexperiment.\n\n## Decision Framework\n\n```\nQuestion: What enrichment analysis do you need?\n|\n+-- Have a pre-filtered DEG list (with cutoffs applied)?\n|   +-- Yes --> ORA\n|   |   +-- Using R? --> clusterProfiler::enrichKEGG()\n|   |   +-- Using Python? --> gseapy.enrichr()\n|   |   +-- KEGG API failing? --> gseapy with offline gene sets\n|   +-- No, want cutoff-free analysis --> GSEA\n|       +-- Using R? --> clusterProfiler::gseKEGG()\n|       +-- Using Python? --> gseapy.prerank()\n|\n+-- Need to split by direction?\n|   +-- ORA --> YES, always split up\u002Fdown (mandatory)\n|   +-- GSEA --> No split needed (direction encoded in ranking)\n|\n+-- KEGG API unreliable?\n    +-- Try cached\u002Fpre-fetched data first\n    +-- Fall back to gseapy offline databases\n    +-- Use retry logic with short timeouts\n```\n\n| Scenario | Recommended Approach | Rationale |\n|----------|---------------------|-----------|\n| Standard ORA with R | `clusterProfiler::enrichKEGG()`, split by direction | Most widely used, integrates with Bioconductor ecosystem |\n| Standard ORA with Python | `gseapy.enrichr()` with KEGG_2021_Human | Offline gene sets avoid API dependency |\n| Cutoff-free enrichment | GSEA via `gseKEGG()` or `gp.prerank()` | Captures subtle coordinated changes, no arbitrary threshold |\n| KEGG API is down | Switch to gseapy offline databases | gseapy bundles KEGG gene sets locally |\n| Comparing conditions | Run separate up\u002Fdown enrichment per condition | Enables direction-aware set operations across conditions |\n| Non-model organism | Verify organism code, use KEGGREST to check availability | Wrong code silently returns empty results |\n\n## Best Practices\n\n1. **Always split ORA by gene direction.** Run `enrichKEGG()` or `gp.enrichr()` separately for up-regulated and down-regulated genes. Combining them inflates the gene list, dilutes enrichment signal, and produces incorrect pathway counts. Report the union of significant pathways from both directions.\n\n2. **Specify the background universe explicitly.** Set the universe to all tested genes (the full set from your differential expression analysis), not just the significant ones. Omitting the universe defaults to all genes in the KEGG database, which inflates significance for well-studied pathways.\n\n3. **Pre-fetch and cache KEGG data before running enrichment.** Download pathway-gene mappings at the start of the analysis and save them locally. This avoids mid-analysis failures when the KEGG API becomes unresponsive and makes the analysis reproducible.\n\n4. **Report the numeric answer before resolving pathway names.** Once you have computed the count or list of significant pathway IDs, emit that result immediately. Resolving IDs to human-readable names via additional KEGG API calls is cosmetic and can timeout, losing the primary result.\n\n5. **Apply multiple testing correction consistently.** Use adjusted p-values (p.adjust \u003C 0.05, typically BH method) rather than raw p-values. Both clusterProfiler and gseapy apply correction by default, but always verify the cutoff is on the adjusted value.\n\n6. **Verify gene ID format matches the organism.** Eukaryotic KEGG pathways expect Entrez gene IDs; bacterial species expect locus tags. A mismatch silently returns zero enriched pathways. Use `bitr()` in clusterProfiler or equivalent ID conversion if your input uses gene symbols.\n\n7. **Use gseapy as a fallback when clusterProfiler fails.** When `enrichKEGG()` fails due to KEGG API issues, gseapy's `enrichr()` function with bundled offline gene sets (e.g., `KEGG_2021_Human`) provides equivalent ORA results without any network dependency.\n\n## Common Pitfalls\n\n1. **Combining up-regulated and down-regulated genes into a single enrichment run.** Pathways with genes regulated in opposite directions cancel out, producing fewer significant pathways than the true count. Results from combined lists are unreliable. Example of the anti-pattern:\n\n   ```r\n   # WRONG: combining up and down genes into one list\n   all_sig_genes \u003C- rownames(subset(res, padj \u003C 0.05 & abs(log2FoldChange) > 1.5))\n   ekegg \u003C- enrichKEGG(gene = all_sig_genes, ...)  # Will miss pathways\n   ```\n\n   - *How to avoid*: Always split DEGs by direction before ORA. Run enrichment twice (once for up, once for down) and take the union of significant pathways.\n\n2. **Using the wrong KEGG organism code.** KEGG silently returns empty results for invalid or mismatched organism codes. This is especially common for bacterial species with multiple strain-specific codes (e.g., `pae` for PAO1 vs `pau` for PA14).\n   - *How to avoid*: Confirm the organism code from the KEGG organism list before running enrichment. For bacteria, verify the specific strain code.\n\n3. **Gene ID type mismatch.** Providing gene symbols when KEGG expects Entrez IDs (or locus tags for bacteria) silently yields zero enriched pathways with no error message.\n   - *How to avoid*: Check the expected ID type for your organism. Use `clusterProfiler::bitr()` or equivalent to convert gene symbols to Entrez IDs before enrichment.\n\n4. **Not handling KEGG API timeouts.** The KEGG REST API frequently times out, causing `enrichKEGG()` to fail mid-analysis. Without error handling, the entire analysis is lost.\n   - *How to avoid*: Wrap KEGG API calls in retry logic with short timeouts (30 seconds). Pre-fetch pathway data at the start. Have gseapy as a fallback.\n\n5. **Delaying the answer to resolve pathway names.** Calling `keggGet()` to convert pathway IDs to human-readable names after computing results can timeout, losing the numeric answer entirely. Example of the anti-pattern:\n\n   ```r\n   # BAD: answer delayed by name lookup that may hang\n   result_ids \u003C- setdiff(pathways_condA, pathways_condB)\n   names \u003C- keggGet(result_ids)  # Can timeout -- answer never emitted\n   count \u003C- length(result_ids)\n   ```\n\n   - *How to avoid*: Report pathway IDs and counts immediately. Resolve names only after the primary result is secured, inside a `tryCatch()` or try\u002Fexcept block.\n\n6. **Omitting the background universe.** Not specifying the universe parameter defaults to the entire KEGG gene database for that organism, inflating statistical significance for pathways containing well-annotated housekeeping genes.\n   - *How to avoid*: Always pass `universe = rownames(res)` (all tested genes from the DE analysis) to `enrichKEGG()`.\n\n7. **Using raw p-values instead of adjusted p-values for filtering.** Reporting pathways with p \u003C 0.05 without multiple testing correction dramatically increases false positives.\n   - *How to avoid*: Always filter on `p.adjust \u003C 0.05`. Verify that the column you are filtering is the adjusted value, not the raw p-value.\n\n## Workflow\n\n1. **Step 1: Prepare gene lists**\n   - Filter significant DEGs from differential expression results (e.g., padj \u003C 0.05, |log2FC| > 1.5)\n   - Split into up-regulated and down-regulated gene sets\n   - Convert gene IDs to the format expected by KEGG (Entrez IDs or locus tags)\n\n   ```r\n   library(clusterProfiler)\n\n   # Filter significant DEGs\n   sig_genes \u003C- subset(res, padj \u003C 0.05 & abs(log2FoldChange) > 1.5)\n\n   # MANDATORY: Split by direction BEFORE running enrichment\n   up_genes \u003C- rownames(subset(sig_genes, log2FoldChange > 0))\n   dn_genes \u003C- rownames(subset(sig_genes, log2FoldChange \u003C 0))\n\n   cat(\"Up-regulated genes:\", length(up_genes), \"\\n\")\n   cat(\"Down-regulated genes:\", length(dn_genes), \"\\n\")\n   ```\n\n2. **Step 2: Pre-fetch KEGG data (recommended)**\n   - Cache pathway-gene mappings locally before running enrichment\n   - Decision point: If KEGG API is accessible, proceed with live queries. If not, switch to offline gene sets (Step 2b).\n\n   **R (KEGGREST package):**\n   ```r\n   library(KEGGREST)\n   pathway_list \u003C- tryCatch(\n     keggList(\"pathway\", organism_code),\n     error = function(e) NULL\n   )\n   ```\n\n   **Python (requests with caching):**\n   ```python\n   import requests\n   import json\n   import os\n\n   cache_file = f\"kegg_{organism_code}_pathways.json\"\n   if os.path.exists(cache_file):\n       with open(cache_file) as f:\n           pathway_map = json.load(f)\n   else:\n       resp = requests.get(\n           f\"https:\u002F\u002Frest.kegg.jp\u002Flist\u002Fpathway\u002F{organism_code}\", timeout=30\n       )\n       if resp.ok:\n           pathway_map = dict(\n               line.split(\"\\t\") for line in resp.text.strip().split(\"\\n\")\n           )\n           with open(cache_file, 'w') as f:\n               json.dump(pathway_map, f)\n   ```\n\n3. **Step 3: Run enrichment separately for each direction**\n   - Run ORA twice: once for up-regulated genes, once for down-regulated genes\n   - Always specify the universe (all tested genes)\n\n   **R (clusterProfiler):**\n   ```r\n   ekegg_up \u003C- enrichKEGG(gene = up_genes, organism = organism_code,\n                          universe = rownames(res), pvalueCutoff = 0.05)\n   ekegg_dn \u003C- enrichKEGG(gene = dn_genes, organism = organism_code,\n                          universe = rownames(res), pvalueCutoff = 0.05)\n\n   up_pathways \u003C- subset(as.data.frame(ekegg_up), p.adjust \u003C 0.05)$ID\n   dn_pathways \u003C- subset(as.data.frame(ekegg_dn), p.adjust \u003C 0.05)$ID\n\n   all_sig_pathways \u003C- union(up_pathways, dn_pathways)\n   cat(\"Significant pathways (up):\", length(up_pathways), \"\\n\")\n   cat(\"Significant pathways (down):\", length(dn_pathways), \"\\n\")\n   cat(\"Total unique significant pathways:\", length(all_sig_pathways), \"\\n\")\n   ```\n\n   **Python (gseapy):**\n   ```python\n   import gseapy as gp\n\n   up_genes = sig_genes[sig_genes['log2FoldChange'] > 0].index.tolist()\n   dn_genes = sig_genes[sig_genes['log2FoldChange'] \u003C 0].index.tolist()\n\n   enr_up = gp.enrichr(gene_list=up_genes, gene_sets='KEGG_2021_Human',\n                        organism='human', outdir=None)\n   enr_dn = gp.enrichr(gene_list=dn_genes, gene_sets='KEGG_2021_Human',\n                        organism='human', outdir=None)\n   ```\n\n4. **Step 4: Report results immediately**\n   - Emit pathway IDs and counts before attempting name resolution\n   - Optionally resolve pathway names in a non-blocking manner\n\n   ```r\n   result_ids \u003C- setdiff(pathways_condA, pathways_condB)\n   count \u003C- length(result_ids)\n   cat(\"Answer:\", count, \"pathways unique to condition A\\n\")\n   cat(\"Pathway IDs:\", paste(result_ids, collapse = \", \"), \"\\n\")\n\n   # Optional: resolve names (non-blocking)\n   names \u003C- tryCatch(keggGet(result_ids), error = function(e) NULL)\n   ```\n\n5. **Step 5: Cross-condition comparison (if applicable)**\n   - Run separate up\u002Fdown enrichment for each condition (4 enrichKEGG calls total)\n   - Compare pathway sets within the same direction\n   - Report the union of direction-specific unique pathways\n\n   ```r\n   # Condition A\n   up_pathways_A \u003C- subset(as.data.frame(ekegg_up_A), p.adjust \u003C 0.05)$ID\n   dn_pathways_A \u003C- subset(as.data.frame(ekegg_dn_A), p.adjust \u003C 0.05)$ID\n\n   # Condition B\n   up_pathways_B \u003C- subset(as.data.frame(ekegg_up_B), p.adjust \u003C 0.05)$ID\n   dn_pathways_B \u003C- subset(as.data.frame(ekegg_dn_B), p.adjust \u003C 0.05)$ID\n\n   # Find pathways unique to condition A in each direction\n   unique_up \u003C- setdiff(up_pathways_A, up_pathways_B)\n   unique_dn \u003C- setdiff(dn_pathways_A, dn_pathways_B)\n\n   # Union\n   unique_to_A \u003C- union(unique_up, unique_dn)\n   cat(\"Pathways in A but not B:\", length(unique_to_A), \"\\n\")\n   cat(\"  From up-regulated:\", length(unique_up), \"-\",\n       paste(unique_up, collapse = \", \"), \"\\n\")\n   cat(\"  From down-regulated:\", length(unique_dn), \"-\",\n       paste(unique_dn, collapse = \", \"), \"\\n\")\n   ```\n\n6. **Step 6: Handle API failures with retry logic**\n   - If KEGG API calls fail, retry with timeout before falling back to offline data\n\n   ```r\n   fetch_kegg_with_retry \u003C- function(organism_code, max_retries = 3,\n                                      timeout_sec = 30) {\n     for (i in seq_len(max_retries)) {\n       result \u003C- tryCatch({\n         R.utils::withTimeout(\n           keggList(\"pathway\", organism_code),\n           timeout = timeout_sec\n         )\n       }, error = function(e) NULL)\n       if (!is.null(result)) return(result)\n       Sys.sleep(2)\n     }\n     warning(\"KEGG API unreachable after retries. Proceeding without pathway names.\")\n     return(NULL)\n   }\n   ```\n\n## Further Reading\n\n- [KEGG: Kyoto Encyclopedia of Genes and Genomes](https:\u002F\u002Fwww.kegg.jp\u002F) -- Official KEGG database with pathway maps, organism lists, and REST API documentation\n- [clusterProfiler: an R package for comparing biological themes among gene clusters](https:\u002F\u002Fdoi.org\u002F10.1089\u002Fomi.2011.0118) -- Original publication by Guangchuang Yu describing the enrichKEGG and gseKEGG functions\n- [gseapy documentation](https:\u002F\u002Fgseapy.readthedocs.io\u002F) -- Python package for gene set enrichment analysis with offline KEGG gene set support\n- [KEGG REST API reference](https:\u002F\u002Frest.kegg.jp\u002Fkegg\u002Frest_api.html) -- Technical documentation for programmatic access to KEGG pathway data\n\n## Related Skills\n\n- `gseapy-gene-enrichment` -- Python-based gene set enrichment analysis; use as a fallback when clusterProfiler KEGG API calls fail, or as the primary tool for Python-based workflows\n- `deseq2-differential-expression` \u002F `pydeseq2-differential-expression` -- Upstream differential expression analysis that produces the DEG lists used as input to KEGG pathway enrichment\n","# KEGG Pathway Enrichment Analysis Guide\n\n## Overview\n\nKEGG (Kyoto Encyclopedia of Genes and Genomes) pathway enrichment analysis identifies biological pathways that are statistically over-represented among differentially expressed genes. This guide covers the two main enrichment approaches (ORA and GSEA), critical workflow decisions such as splitting genes by directionality, tool selection between R clusterProfiler and Python gseapy, and strategies for handling the notoriously unreliable KEGG REST API. It addresses recurring failure modes that produce incorrect pathway counts or stalled analyses.\n\nThe three most common errors in KEGG pathway analysis are: (1) combining up-regulated and down-regulated genes into a single enrichment run, which masks true pathway signals; (2) analysis failures caused by KEGG REST API timeouts with no fallback strategy; and (3) delaying result reporting while attempting cosmetic pathway name lookups that may never complete. This guide provides concrete solutions for each.\n\n## Key Concepts\n\n### ORA vs GSEA\n\nOver-Representation Analysis (ORA) and Gene Set Enrichment Analysis (GSEA) are the two primary methods for pathway enrichment, and they differ in both input and statistical approach.\n\n**ORA** takes a pre-filtered gene list (e.g., genes with padj \u003C 0.05 and |log2FC| > 1.5) and tests whether KEGG pathway members are over-represented in that list relative to a background universe. ORA uses a hypergeometric test (Fisher's exact test). It is straightforward but discards magnitude information and depends heavily on the significance cutoff chosen.\n\n**GSEA** takes a ranked list of all genes (typically ranked by log2 fold change or a signed significance statistic) without any cutoff. It computes a running enrichment score by walking down the ranked list and identifies pathways whose members cluster toward the top or bottom of the ranking. GSEA captures subtle coordinated changes that ORA may miss.\n\nIn practice, ORA via `enrichKEGG()` (clusterProfiler) or `gp.enrichr()` (gseapy) is the more common starting point. GSEA via `gseKEGG()` or `gp.prerank()` is preferred when you want to avoid arbitrary cutoffs or when effect sizes are small.\n\n### Directionality in Enrichment\n\nWhen performing ORA, gene directionality -- whether a gene is up-regulated or down-regulated -- is critical. A single pathway can contain genes regulated in opposite directions. If up-regulated and down-regulated genes are combined into one list, their opposing signals cancel out, diluting the enrichment signal and masking genuinely enriched pathways. Running enrichment separately for up-regulated and down-regulated gene sets produces more accurate and interpretable results. This splitting is mandatory for ORA. GSEA inherently handles directionality through the signed ranking, though interpreting leading-edge genes by direction is still important.\n\n### KEGG Organism Codes\n\nKEGG uses three-letter (or four-letter) organism codes to identify species-specific pathway databases. Using the wrong code silently returns empty results. Common codes:\n\n| Organism | Code |\n|---|---|\n| Human | hsa |\n| Mouse | mmu |\n| Rat | rno |\n| Zebrafish | dre |\n| Drosophila | dme |\n| C. elegans | cel |\n| E. coli K-12 | eco |\n| P. aeruginosa PA14 | pau |\n| P. aeruginosa PAO1 | pae |\n| S. cerevisiae | sce |\n| A. thaliana | ath |\n\nGene ID format also varies by organism: eukaryotic species typically require Entrez gene IDs, while bacterial species use locus tags. Mismatched ID types are a silent failure mode.\n\n### KEGG API Reliability\n\nThe KEGG REST API (`rest.kegg.jp`) is rate-limited, frequently slow, and prone to timeouts. Both `clusterProfiler::enrichKEGG()` and direct HTTP requests to KEGG can fail unpredictably. Planning for API failures is not optional -- it is a necessary part of any KEGG-based workflow. Strategies include pre-fetching and caching pathway data, using offline gene set databases bundled with gseapy, and implementing retry logic with timeouts.\n\n## Pre-flight Interview\n\nSettle these with the user before writing any analysis code.\n\n```yaml\ndecisions:\n  - id: D1\n    param: organismCode\n    kind: required\n    source: upstream\n    ask: \"Which species should pathways be looked up for?\"\n    default: \"carried from the dataset\"\n\n  - id: D2\n    param: identifierMapping\n    kind: required\n    source: data\n    depends_on: [D1]\n    ask: \"Which identifier type do the genes carry, and how should unmapped ones be handled?\"\n    default: null\n\n  - id: D3\n    param: testingApproach\n    kind: required\n    source: upstream\n    ask: \"Test a significant-gene list against pathways (over-representation), or the whole ranked list without a cut (enrichment)?\"\n    default: \"over-representation when the input is a gene list\"\n\n  - id: D4\n    param: backgroundSet\n    kind: required\n    source: upstream\n    depends_on: [D3]\n    ask: \"Which genes form the background - everything measured in this experiment, or the whole annotated genome?\"\n    default: \"the genes tested in this experiment\"\n    skip_if: \"ranked-list enrichment, which uses the ranking rather than a background\"\n\n  - id: D5\n    param: pathwayScope\n    kind: optional\n    source: user\n    ask: \"Should all pathway categories be tested, or only metabolism, signalling, or disease maps?\"\n    default: \"all categories\"\n\n  - id: D6\n    param: significanceThreshold\n    kind: required\n    source: user\n    ask: \"How strong must a pathway's evidence be, after correcting for the number of pathways tested?\"\n    default: \"adjusted p-value 0.05\"\n```\n\nD4 is the decision most often skipped and the one that most changes the answer.\nUsing the whole genome as background when the experiment only measured\nexpressed genes makes every tissue-specific pathway look enriched - the\nenrichment is against genes that were never measurable, not against the\nexperiment.\n\n## Decision Framework\n\n```\nQuestion: What enrichment analysis do you need?\n|\n+-- Have a pre-filtered DEG list (with cutoffs applied)?\n|   +-- Yes --> ORA\n|   |   +-- Using R? --> clusterProfiler::enrichKEGG()\n|   |   +-- Using Python? --> gseapy.enrichr()\n|   |   +-- KEGG API failing? --> gseapy with offline gene sets\n|   +-- No, want cutoff-free analysis --> GSEA\n|       +-- Using R? --> clusterProfiler::gseKEGG()\n|       +-- Using Python? --> gseapy.prerank()\n|\n+-- Need to split by direction?\n|   +-- ORA --> YES, always split up\u002Fdown (mandatory)\n|   +-- GSEA --> No split needed (direction encoded in ranking)\n|\n+-- KEGG API unreliable?\n    +-- Try cached\u002Fpre-fetched data first\n    +-- Fall back to gseapy offline databases\n    +-- Use retry logic with short timeouts\n```\n\n| Scenario | Recommended Approach | Rationale |\n|----------|---------------------|-----------|\n| Standard ORA with R | `clusterProfiler::enrichKEGG()`, split by direction | Most widely used, integrates with Bioconductor ecosystem |\n| Standard ORA with Python | `gseapy.enrichr()` with KEGG_2021_Human | Offline gene sets avoid API dependency |\n| Cutoff-free enrichment | GSEA via `gseKEGG()` or `gp.prerank()` | Captures subtle coordinated changes, no arbitrary threshold |\n| KEGG API is down | Switch to gseapy offline databases | gseapy bundles KEGG gene sets locally |\n| Comparing conditions | Run separate up\u002Fdown enrichment per condition | Enables direction-aware set operations across conditions |\n| Non-model organism | Verify organism code, use KEGGREST to check availability | Wrong code silently returns empty results |\n\n## Best Practices\n\n1. **Always split ORA by gene direction.** Run `enrichKEGG()` or `gp.enrichr()` separately for up-regulated and down-regulated genes. Combining them inflates the gene list, dilutes enrichment signal, and produces incorrect pathway counts. Report the union of significant pathways from both directions.\n\n2. **Specify the background universe explicitly.** Set the universe to all tested genes (the full set from your differential expression analysis), not just the significant ones. Omitting the universe defaults to all genes in the KEGG database, which inflates significance for well-studied pathways.\n\n3. **Pre-fetch and cache KEGG data before running enrichment.** Download pathway-gene mappings at the start of the analysis and save them locally. This avoids mid-analysis failures when the KEGG API becomes unresponsive and makes the analysis reproducible.\n\n4. **Report the numeric answer before resolving pathway names.** Once you have computed the count or list of significant pathway IDs, emit that result immediately. Resolving IDs to human-readable names via additional KEGG API calls is cosmetic and can timeout, losing the primary result.\n\n5. **Apply multiple testing correction consistently.** Use adjusted p-values (p.adjust \u003C 0.05, typically BH method) rather than raw p-values. Both clusterProfiler and gseapy apply correction by default, but always verify the cutoff is on the adjusted value.\n\n6. **Verify gene ID format matches the organism.** Eukaryotic KEGG pathways expect Entrez gene IDs; bacterial species expect locus tags. A mismatch silently returns zero enriched pathways. Use `bitr()` in clusterProfiler or equivalent ID conversion if your input uses gene symbols.\n\n7. **Use gseapy as a fallback when clusterProfiler fails.** When `enrichKEGG()` fails due to KEGG API issues, gseapy's `enrichr()` function with bundled offline gene sets (e.g., `KEGG_2021_Human`) provides equivalent ORA results without any network dependency.\n\n## Common Pitfalls\n\n1. **Combining up-regulated and down-regulated genes into a single enrichment run.** Pathways with genes regulated in opposite directions cancel out, producing fewer significant pathways than the true count. Results from combined lists are unreliable. Example of the anti-pattern:\n\n   ```r\n   # WRONG: combining up and down genes into one list\n   all_sig_genes \u003C- rownames(subset(res, padj \u003C 0.05 & abs(log2FoldChange) > 1.5))\n   ekegg \u003C- enrichKEGG(gene = all_sig_genes, ...)  # Will miss pathways\n   ```\n\n   - *How to avoid*: Always split DEGs by direction before ORA. Run enrichment twice (once for up, once for down) and take the union of significant pathways.\n\n2. **Using the wrong KEGG organism code.** KEGG silently returns empty results for invalid or mismatched organism codes. This is especially common for bacterial species with multiple strain-specific codes (e.g., `pae` for PAO1 vs `pau` for PA14).\n   - *How to avoid*: Confirm the organism code from the KEGG organism list before running enrichment. For bacteria, verify the specific strain code.\n\n3. **Gene ID type mismatch.** Providing gene symbols when KEGG expects Entrez IDs (or locus tags for bacteria) silently yields zero enriched pathways with no error message.\n   - *How to avoid*: Check the expected ID type for your organism. Use `clusterProfiler::bitr()` or equivalent to convert gene symbols to Entrez IDs before enrichment.\n\n4. **Not handling KEGG API timeouts.** The KEGG REST API frequently times out, causing `enrichKEGG()` to fail mid-analysis. Without error handling, the entire analysis is lost.\n   - *How to avoid*: Wrap KEGG API calls in retry logic with short timeouts (30 seconds). Pre-fetch pathway data at the start. Have gseapy as a fallback.\n\n5. **Delaying the answer to resolve pathway names.** Calling `keggGet()` to convert pathway IDs to human-readable names after computing results can timeout, losing the numeric answer entirely. Example of the anti-pattern:\n\n   ```r\n   # BAD: answer delayed by name lookup that may hang\n   result_ids \u003C- setdiff(pathways_condA, pathways_condB)\n   names \u003C- keggGet(result_ids)  # Can timeout -- answer never emitted\n   count \u003C- length(result_ids)\n   ```\n\n   - *How to avoid*: Report pathway IDs and counts immediately. Resolve names only after the primary result is secured, inside a `tryCatch()` or try\u002Fexcept block.\n\n6. **Omitting the background universe.** Not specifying the universe parameter defaults to the entire KEGG gene database for that organism, inflating statistical significance for pathways containing well-annotated housekeeping genes.\n   - *How to avoid*: Always pass `universe = rownames(res)` (all tested genes from the DE analysis) to `enrichKEGG()`.\n\n7. **Using raw p-values instead of adjusted p-values for filtering.** Reporting pathways with p \u003C 0.05 without multiple testing correction dramatically increases false positives.\n   - *How to avoid*: Always filter on `p.adjust \u003C 0.05`. Verify that the column you are filtering is the adjusted value, not the raw p-value.\n\n## Workflow\n\n1. **Step 1: Prepare gene lists**\n   - Filter significant DEGs from differential expression results (e.g., padj \u003C 0.05, |log2FC| > 1.5)\n   - Split into up-regulated and down-regulated gene sets\n   - Convert gene IDs to the format expected by KEGG (Entrez IDs or locus tags)\n\n   ```r\n   library(clusterProfiler)\n\n   # Filter significant DEGs\n   sig_genes \u003C- subset(res, padj \u003C 0.05 & abs(log2FoldChange) > 1.5)\n\n   # MANDATORY: Split by direction BEFORE running enrichment\n   up_genes \u003C- rownames(subset(sig_genes, log2FoldChange > 0))\n   dn_genes \u003C- rownames(subset(sig_genes, log2FoldChange \u003C 0))\n\n   cat(\"Up-regulated genes:\", length(up_genes), \"\\n\")\n   cat(\"Down-regulated genes:\", length(dn_genes), \"\\n\")\n   ```\n\n2. **Step 2: Pre-fetch KEGG data (recommended)**\n   - Cache pathway-gene mappings locally before running enrichment\n   - Decision point: If KEGG API is accessible, proceed with live queries. If not, switch to offline gene sets (Step 2b).\n\n   **R (KEGGREST package):**\n   ```r\n   library(KEGGREST)\n   pathway_list \u003C- tryCatch(\n     keggList(\"pathway\", organism_code),\n     error = function(e) NULL\n   )\n   ```\n\n   **Python (requests with caching):**\n   ```python\n   import requests\n   import json\n   import os\n\n   cache_file = f\"kegg_{organism_code}_pathways.json\"\n   if os.path.exists(cache_file):\n       with open(cache_file) as f:\n           pathway_map = json.load(f)\n   else:\n       resp = requests.get(\n           f\"https:\u002F\u002Frest.kegg.jp\u002Flist\u002Fpathway\u002F{organism_code}\", timeout=30\n       )\n       if resp.ok:\n           pathway_map = dict(\n               line.split(\"\\t\") for line in resp.text.strip().split(\"\\n\")\n           )\n           with open(cache_file, 'w') as f:\n               json.dump(pathway_map, f)\n   ```\n\n3. **Step 3: Run enrichment separately for each direction**\n   - Run ORA twice: once for up-regulated genes, once for down-regulated genes\n   - Always specify the universe (all tested genes)\n\n   **R (clusterProfiler):**\n   ```r\n   ekegg_up \u003C- enrichKEGG(gene = up_genes, organism = organism_code,\n                          universe = rownames(res), pvalueCutoff = 0.05)\n   ekegg_dn \u003C- enrichKEGG(gene = dn_genes, organism = organism_code,\n                          universe = rownames(res), pvalueCutoff = 0.05)\n\n   up_pathways \u003C- subset(as.data.frame(ekegg_up), p.adjust \u003C 0.05)$ID\n   dn_pathways \u003C- subset(as.data.frame(ekegg_dn), p.adjust \u003C 0.05)$ID\n\n   all_sig_pathways \u003C- union(up_pathways, dn_pathways)\n   cat(\"Significant pathways (up):\", length(up_pathways), \"\\n\")\n   cat(\"Significant pathways (down):\", length(dn_pathways), \"\\n\")\n   cat(\"Total unique significant pathways:\", length(all_sig_pathways), \"\\n\")\n   ```\n\n   **Python (gseapy):**\n   ```python\n   import gseapy as gp\n\n   up_genes = sig_genes[sig_genes['log2FoldChange'] > 0].index.tolist()\n   dn_genes = sig_genes[sig_genes['log2FoldChange'] \u003C 0].index.tolist()\n\n   enr_up = gp.enrichr(gene_list=up_genes, gene_sets='KEGG_2021_Human',\n                        organism='human', outdir=None)\n   enr_dn = gp.enrichr(gene_list=dn_genes, gene_sets='KEGG_2021_Human',\n                        organism='human', outdir=None)\n   ```\n\n4. **Step 4: Report results immediately**\n   - Emit pathway IDs and counts before attempting name resolution\n   - Optionally resolve pathway names in a non-blocking manner\n\n   ```r\n   result_ids \u003C- setdiff(pathways_condA, pathways_condB)\n   count \u003C- length(result_ids)\n   cat(\"Answer:\", count, \"pathways unique to condition A\\n\")\n   cat(\"Pathway IDs:\", paste(result_ids, collapse = \", \"), \"\\n\")\n\n   # Optional: resolve names (non-blocking)\n   names \u003C- tryCatch(keggGet(result_ids), error = function(e) NULL)\n   ```\n\n5. **Step 5: Cross-condition comparison (if applicable)**\n   - Run separate up\u002Fdown enrichment for each condition (4 enrichKEGG calls total)\n   - Compare pathway sets within the same direction\n   - Report the union of direction-specific unique pathways\n\n   ```r\n   # Condition A\n   up_pathways_A \u003C- subset(as.data.frame(ekegg_up_A), p.adjust \u003C 0.05)$ID\n   dn_pathways_A \u003C- subset(as.data.frame(ekegg_dn_A), p.adjust \u003C 0.05)$ID\n\n   # Condition B\n   up_pathways_B \u003C- subset(as.data.frame(ekegg_up_B), p.adjust \u003C 0.05)$ID\n   dn_pathways_B \u003C- subset(as.data.frame(ekegg_dn_B), p.adjust \u003C 0.05)$ID\n\n   # Find pathways unique to condition A in each direction\n   unique_up \u003C- setdiff(up_pathways_A, up_pathways_B)\n   unique_dn \u003C- setdiff(dn_pathways_A, dn_pathways_B)\n\n   # Union\n   unique_to_A \u003C- union(unique_up, unique_dn)\n   cat(\"Pathways in A but not B:\", length(unique_to_A), \"\\n\")\n   cat(\"  From up-regulated:\", length(unique_up), \"-\",\n       paste(unique_up, collapse = \", \"), \"\\n\")\n   cat(\"  From down-regulated:\", length(unique_dn), \"-\",\n       paste(unique_dn, collapse = \", \"), \"\\n\")\n   ```\n\n6. **Step 6: Handle API failures with retry logic**\n   - If KEGG API calls fail, retry with timeout before falling back to offline data\n\n   ```r\n   fetch_kegg_with_retry \u003C- function(organism_code, max_retries = 3,\n                                      timeout_sec = 30) {\n     for (i in seq_len(max_retries)) {\n       result \u003C- tryCatch({\n         R.utils::withTimeout(\n           keggList(\"pathway\", organism_code),\n           timeout = timeout_sec\n         )\n       }, error = function(e) NULL)\n       if (!is.null(result)) return(result)\n       Sys.sleep(2)\n     }\n     warning(\"KEGG API unreachable after retries. Proceeding without pathway names.\")\n     return(NULL)\n   }\n   ```\n\n## Further Reading\n\n- [KEGG: Kyoto Encyclopedia of Genes and Genomes](https:\u002F\u002Fwww.kegg.jp\u002F) -- Official KEGG database with pathway maps, organism lists, and REST API documentation\n- [clusterProfiler: an R package for comparing biological themes among gene clusters](https:\u002F\u002Fdoi.org\u002F10.1089\u002Fomi.2011.0118) -- Original publication by Guangchuang Yu describing the enrichKEGG and gseKEGG functions\n- [gseapy documentation](https:\u002F\u002Fgseapy.readthedocs.io\u002F) -- Python package for gene set enrichment analysis with offline KEGG gene set support\n- [KEGG REST API reference](https:\u002F\u002Frest.kegg.jp\u002Fkegg\u002Frest_api.html) -- Technical documentation for programmatic access to KEGG pathway data\n\n## Related Skills\n\n- `gseapy-gene-enrichment` -- Python-based gene set enrichment analysis; use as a fallback when clusterProfiler KEGG API calls fail, or as the primary tool for Python-based workflows\n- `deseq2-differential-expression` \u002F `pydeseq2-differential-expression` -- Upstream differential expression analysis that produces the DEG lists used as input to KEGG pathway enrichment\n",{"name":5,"license":15,"description":7},"master","fd76f882a04e445e899d5cfb2732f2105ea054ee","skills\u002Fawesome-skills\u002Fkegg-pathway-analysis",0,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS","https:\u002F\u002Fbg-szy.github.io\u002FTOP-SKILLS\u002F","https:\u002F\u002Fgithub.com\u002Fbg-szy","https:\u002F\u002Fwww.ecust.edu.cn\u002F","a student of East China University of Science and Technology","2026-11-15 03:38:02",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add bg-szy\u002FTOP-SKILLS --skill kegg-pathway-analysis",{"tool":40,"command":41},"bunx","bunx skills add bg-szy\u002FTOP-SKILLS --skill kegg-pathway-analysis",{"tool":43,"command":44},"pnpm","pnpm dlx skills add bg-szy\u002FTOP-SKILLS --skill kegg-pathway-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fawesome-skills\u002Fkegg-pathway-analysis\u002FSKILL.md",true,[],[49,58,65,72,79,86],{"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":53,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":57},"01M7DXW9N826PKXK174PVW3038","serpmaven","Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.","MIT","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fserpmaven\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"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":53,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":57},"01M7DXVHSTWDV65475QEQ915M7","revnu-landing-page-audit","Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: \"audit my landing page\", \"why isn't this page converting\", \"review my homepage\", \"my ads get clicks but no signups\", \"people bounce from the pricing page\", \"CRO review\", \"improve conversion rate\", \"is my hero section clear\", \"roast my landing page\", \"rewrite my headline\", \"what's wrong with this page\", \"landing page feedback\", \"make the signup page convert better\". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-landing-page-audit\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":53,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":57},"01M7DXV8X2D7B3VTD4HHYYHTGR","revnu-growth-context","Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents\u002Frevnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says \"set up our marketing context\", \"who is our ideal customer\", \"write our ICP\", \"describe the product for marketing\", \"positioning doc\", \"what's our brand voice\", \"remember this about our customers\", \"log what we tried\", \"what have we learned from marketing\", \"we changed pricing, update the context\", \"update our growth notes\", \"summarize the business for the agent\", \"import my product-marketing.md\", \"start a growth doc\", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-growth-context\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":53,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":57},"01M7DXV0DGJ1G0A60PAHC6J3C5","revnu-get-listed","Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: \"best X\" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says \"get us listed\", \"which directories should we submit to\", \"how do we get into best-of lists\", \"why does ChatGPT recommend competitors and not us\", \"get mentioned in AI answers\", \"submit to awesome lists\", \"get on G2\", \"where are our competitors listed\", \"pitch listicle authors\", \"find backlink opportunities\", \"launch directories\", \"get into roundups\", \"Product Hunt alternatives\", \"where should we be listed\", \"get cited by Perplexity\". Never submits, pays or posts without a yes. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-get-listed\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":53,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":57},"01M7DXTSPMGT9D6DSS0HP9BSTA","revnu-ai-readiness-audit","Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks \"is my site ready for AI search\", \"audit my site for AI answers\", \"AEO audit\", \"GEO audit\", \"why doesn't ChatGPT quote our pricing\", \"make our pages citable by AI\", \"do I need llms.txt\", \"does schema help with ChatGPT\", \"check our structured data\", \"is our content visible without JavaScript\", \"AI SEO audit\", \"optimize our homepage for AI answers\", \"LLM SEO check\", \"why does AI get our product wrong\", \"fix our site for AI Overviews\". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-ai-readiness-audit\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":53,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":57},"01M7DXSZHCVTRS620GC3S97JZV","proxy-troubleshooting","Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fproxy-troubleshooting\u002FSKILL.md",[],[]]