[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77XYB5EX0R6MYR4SEG1XVCN":3,"skill-same:01M77XYB5EX0R6MYR4SEG1XVCN":49},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M77XYB5EX0R6MYR4SEG1XVCN","network-bgp-diagnostics",null,"Diagnostics-only BGP troubleshooting patterns for neighbor state, route exchange, prefix policy, AS path inspection, and safe evidence collection.","503496348-ops\u002Fmischief-production","503496348-ops","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F266905914?v=4","01M77X5J7XQWWZGT8998HDGXQM","AtomCollide","01M77X5J8V78Y3NXMY6BBC75X9",2,"MIT","https:\u002F\u002Fgithub.com\u002F503496348-ops\u002Fmischief-production\u002Fblob\u002Fmain\u002Fskills\u002Fecc-network-bgp-diagnostics\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: network-bgp-diagnostics\ndescription: Diagnostics-only BGP troubleshooting patterns for neighbor state, route exchange, prefix policy, AS path inspection, and safe evidence collection.\nmetadata:\n  origin: community\n---\n\n# Network BGP Diagnostics\n\nUse this skill when a BGP session is down, flapping, established with missing\nroutes, or advertising unexpected prefixes. The default workflow is read-only\nevidence collection; policy and reset actions belong in a reviewed change\nwindow.\n\n## When to Use\n\n- BGP neighbors are stuck in Idle, Connect, Active, OpenSent, or OpenConfirm.\n- A session is Established but expected prefixes are missing.\n- A route-map, prefix-list, max-prefix limit, or AS path policy may be filtering\n  routes.\n- You need before\u002Fafter evidence for a BGP change.\n- You are reviewing automation that parses BGP summary output.\n\n## Read-Only Triage Flow\n\n1. Identify the exact neighbor, address family, VRF, and local\u002Fremote ASNs.\n2. Capture summary state and last reset reason.\n3. Prove reachability to the peer source address.\n4. Check route policy references before assuming transport failure.\n5. Compare advertised, received, and installed routes where the platform\n   supports those commands.\n\n```text\nshow bgp summary\nshow bgp neighbors \u003Cpeer>\nshow ip route \u003Cpeer>\nshow tcp brief | include \u003Cpeer>|:179\nshow logging | include BGP|\u003Cpeer>\nshow running-config | section router bgp\nshow ip prefix-list\nshow route-map\n```\n\nUse platform-specific address-family commands when the device uses VRFs, IPv6,\nVPNv4, or EVPN. Do not assume global IPv4 unicast.\n\n## State Interpretation\n\n| State | First checks |\n| --- | --- |\n| Established with prefix count | Route exchange is up; inspect policy and table selection |\n| Established with zero prefixes | Check inbound policy, max-prefix, advertised routes, and AFI\u002FSAFI |\n| Active | TCP session is not completing; check routing, source, ACLs, and peer reachability |\n| Connect | TCP connection is in progress; check path and remote listener |\n| OpenSent\u002FOpenConfirm | TCP works; check ASN, authentication, timers, capabilities, and logs |\n| Idle | Neighbor may be disabled, missing config, blocked by policy, or backoff timer |\n\n## Transport Checks\n\n```text\nping \u003Cpeer> source \u003Clocal-source>\ntraceroute \u003Cpeer> source \u003Clocal-source>\nshow ip route \u003Cpeer>\nshow bgp neighbors \u003Cpeer> | include BGP state|Last reset|Local host|Foreign host\n```\n\nIf the peer is sourced from a loopback, confirm both directions route to the\nloopback addresses and that the neighbor config uses the expected update source.\n\nAvoid disabling ACLs or firewall policy as a diagnostic shortcut. Read hit\ncounters, logs, and path state first.\n\n## Route Policy Checks\n\n```text\nshow bgp neighbors \u003Cpeer> advertised-routes\nshow bgp neighbors \u003Cpeer> routes\nshow ip prefix-list \u003Cname>\nshow route-map \u003Cname>\nshow bgp \u003Cprefix>\n```\n\nSome platforms require additional configuration before `received-routes` is\navailable. Do not add that configuration during incident triage unless the\noperator approves the change.\n\n## AS Path And Prefix Review\n\n```text\nshow bgp regexp _65001_\nshow bgp regexp ^65001$\nshow bgp \u003Cprefix>\nshow bgp neighbors \u003Cpeer> advertised-routes | include Network|Path|\u003Cprefix>\n```\n\nUse AS-path regex carefully. `_65001_` matches AS 65001 as a token. Plain\n`65001` can match longer ASNs or unrelated text.\n\n## Parser Pattern\n\n```python\nimport re\nfrom typing import Any\n\nBGP_SUMMARY_RE = re.compile(\n    r\"^(?P\u003Cneighbor>\\d{1,3}(?:\\.\\d{1,3}){3})\\s+\"\n    r\"(?P\u003Cversion>\\d+)\\s+\"\n    r\"(?P\u003Cremote_as>\\d+)\\s+\"\n    r\"(?P\u003Cmsg_rcvd>\\d+)\\s+\"\n    r\"(?P\u003Cmsg_sent>\\d+)\\s+\"\n    r\"(?P\u003Ctable_version>\\d+)\\s+\"\n    r\"(?P\u003Cinput_queue>\\d+)\\s+\"\n    r\"(?P\u003Coutput_queue>\\d+)\\s+\"\n    r\"(?P\u003Cuptime>\\S+)\\s+\"\n    r\"(?P\u003Cstate_or_prefixes>\\S+)$\",\n    re.M,\n)\n\ndef parse_bgp_summary(raw: str) -> list[dict[str, Any]]:\n    rows = []\n    for match in BGP_SUMMARY_RE.finditer(raw):\n        state_or_prefixes = match.group(\"state_or_prefixes\")\n        if state_or_prefixes.isdigit():\n            state = \"Established\"\n            prefixes_received = int(state_or_prefixes)\n        else:\n            state = state_or_prefixes\n            prefixes_received = None\n        rows.append({\n            \"neighbor\": match.group(\"neighbor\"),\n            \"remote_as\": int(match.group(\"remote_as\")),\n            \"state\": state,\n            \"prefixes_received\": prefixes_received,\n            \"uptime\": match.group(\"uptime\"),\n        })\n    return rows\n```\n\nPrefer structured parser output when available, but store raw output with the\nincident record because BGP summary formats vary by platform and address family.\n\n## Change-Window Only\n\nThese actions can affect routing and should not be suggested as automatic\ndiagnostics:\n\n- Clearing a BGP session.\n- Changing neighbor authentication, timers, update source, route-maps, or\n  prefix-lists.\n- Enabling additional received-route storage.\n- Relaxing firewall, ACL, or control-plane policy.\n\nIf a reset is approved, prefer the least disruptive soft or route-refresh option\nsupported by the platform and document exactly why it is safe.\n\n## Anti-Patterns\n\n- Assuming `Active` always means the remote side is down.\n- Ignoring VRF, address family, or update-source differences.\n- Using broad AS-path regex without token boundaries.\n- Hard-resetting a peer before reading last reset reason and logs.\n- Treating missing `received-routes` output as proof that no routes arrived.\n\n## See Also\n\n- Skill: `cisco-ios-patterns`\n- Skill: `network-config-validation`\n- Skill: `network-interface-health`\n","# Network BGP Diagnostics\n\nUse this skill when a BGP session is down, flapping, established with missing\nroutes, or advertising unexpected prefixes. The default workflow is read-only\nevidence collection; policy and reset actions belong in a reviewed change\nwindow.\n\n## When to Use\n\n- BGP neighbors are stuck in Idle, Connect, Active, OpenSent, or OpenConfirm.\n- A session is Established but expected prefixes are missing.\n- A route-map, prefix-list, max-prefix limit, or AS path policy may be filtering\n  routes.\n- You need before\u002Fafter evidence for a BGP change.\n- You are reviewing automation that parses BGP summary output.\n\n## Read-Only Triage Flow\n\n1. Identify the exact neighbor, address family, VRF, and local\u002Fremote ASNs.\n2. Capture summary state and last reset reason.\n3. Prove reachability to the peer source address.\n4. Check route policy references before assuming transport failure.\n5. Compare advertised, received, and installed routes where the platform\n   supports those commands.\n\n```text\nshow bgp summary\nshow bgp neighbors \u003Cpeer>\nshow ip route \u003Cpeer>\nshow tcp brief | include \u003Cpeer>|:179\nshow logging | include BGP|\u003Cpeer>\nshow running-config | section router bgp\nshow ip prefix-list\nshow route-map\n```\n\nUse platform-specific address-family commands when the device uses VRFs, IPv6,\nVPNv4, or EVPN. Do not assume global IPv4 unicast.\n\n## State Interpretation\n\n| State | First checks |\n| --- | --- |\n| Established with prefix count | Route exchange is up; inspect policy and table selection |\n| Established with zero prefixes | Check inbound policy, max-prefix, advertised routes, and AFI\u002FSAFI |\n| Active | TCP session is not completing; check routing, source, ACLs, and peer reachability |\n| Connect | TCP connection is in progress; check path and remote listener |\n| OpenSent\u002FOpenConfirm | TCP works; check ASN, authentication, timers, capabilities, and logs |\n| Idle | Neighbor may be disabled, missing config, blocked by policy, or backoff timer |\n\n## Transport Checks\n\n```text\nping \u003Cpeer> source \u003Clocal-source>\ntraceroute \u003Cpeer> source \u003Clocal-source>\nshow ip route \u003Cpeer>\nshow bgp neighbors \u003Cpeer> | include BGP state|Last reset|Local host|Foreign host\n```\n\nIf the peer is sourced from a loopback, confirm both directions route to the\nloopback addresses and that the neighbor config uses the expected update source.\n\nAvoid disabling ACLs or firewall policy as a diagnostic shortcut. Read hit\ncounters, logs, and path state first.\n\n## Route Policy Checks\n\n```text\nshow bgp neighbors \u003Cpeer> advertised-routes\nshow bgp neighbors \u003Cpeer> routes\nshow ip prefix-list \u003Cname>\nshow route-map \u003Cname>\nshow bgp \u003Cprefix>\n```\n\nSome platforms require additional configuration before `received-routes` is\navailable. Do not add that configuration during incident triage unless the\noperator approves the change.\n\n## AS Path And Prefix Review\n\n```text\nshow bgp regexp _65001_\nshow bgp regexp ^65001$\nshow bgp \u003Cprefix>\nshow bgp neighbors \u003Cpeer> advertised-routes | include Network|Path|\u003Cprefix>\n```\n\nUse AS-path regex carefully. `_65001_` matches AS 65001 as a token. Plain\n`65001` can match longer ASNs or unrelated text.\n\n## Parser Pattern\n\n```python\nimport re\nfrom typing import Any\n\nBGP_SUMMARY_RE = re.compile(\n    r\"^(?P\u003Cneighbor>\\d{1,3}(?:\\.\\d{1,3}){3})\\s+\"\n    r\"(?P\u003Cversion>\\d+)\\s+\"\n    r\"(?P\u003Cremote_as>\\d+)\\s+\"\n    r\"(?P\u003Cmsg_rcvd>\\d+)\\s+\"\n    r\"(?P\u003Cmsg_sent>\\d+)\\s+\"\n    r\"(?P\u003Ctable_version>\\d+)\\s+\"\n    r\"(?P\u003Cinput_queue>\\d+)\\s+\"\n    r\"(?P\u003Coutput_queue>\\d+)\\s+\"\n    r\"(?P\u003Cuptime>\\S+)\\s+\"\n    r\"(?P\u003Cstate_or_prefixes>\\S+)$\",\n    re.M,\n)\n\ndef parse_bgp_summary(raw: str) -> list[dict[str, Any]]:\n    rows = []\n    for match in BGP_SUMMARY_RE.finditer(raw):\n        state_or_prefixes = match.group(\"state_or_prefixes\")\n        if state_or_prefixes.isdigit():\n            state = \"Established\"\n            prefixes_received = int(state_or_prefixes)\n        else:\n            state = state_or_prefixes\n            prefixes_received = None\n        rows.append({\n            \"neighbor\": match.group(\"neighbor\"),\n            \"remote_as\": int(match.group(\"remote_as\")),\n            \"state\": state,\n            \"prefixes_received\": prefixes_received,\n            \"uptime\": match.group(\"uptime\"),\n        })\n    return rows\n```\n\nPrefer structured parser output when available, but store raw output with the\nincident record because BGP summary formats vary by platform and address family.\n\n## Change-Window Only\n\nThese actions can affect routing and should not be suggested as automatic\ndiagnostics:\n\n- Clearing a BGP session.\n- Changing neighbor authentication, timers, update source, route-maps, or\n  prefix-lists.\n- Enabling additional received-route storage.\n- Relaxing firewall, ACL, or control-plane policy.\n\nIf a reset is approved, prefer the least disruptive soft or route-refresh option\nsupported by the platform and document exactly why it is safe.\n\n## Anti-Patterns\n\n- Assuming `Active` always means the remote side is down.\n- Ignoring VRF, address family, or update-source differences.\n- Using broad AS-path regex without token boundaries.\n- Hard-resetting a peer before reading last reset reason and logs.\n- Treating missing `received-routes` output as proof that no routes arrived.\n\n## See Also\n\n- Skill: `cisco-ios-patterns`\n- Skill: `network-config-validation`\n- Skill: `network-interface-health`\n",{"name":5,"metadata":24,"description":7},{"origin":25},"community","main","c9103dbad48ef3005f163584d0f2abd4591217f6","skills\u002Fecc-network-bgp-diagnostics",1,"https:\u002F\u002Fgithub.com\u002F503496348-ops\u002Fmischief-production","https:\u002F\u002Fgithub.com\u002F503496348-ops","https:\u002F\u002F503496348-ops.github.io\u002Fatomcollide-product-matrix\u002F#tree","元素碰撞-AtomCollide-AI 智能体实验室 测试人专属成长社群 正式招募\r\n我们的目标很纯粹：连接每一位测试工程师\u002FAI使用探索与爱好者，让你在这里既能扎实打磨技术硬实力，也能打通职业晋升的新通路，这是一个专注于AI领域的开源组","2026-07-30 00:35:42",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add 503496348-ops\u002Fmischief-production --skill network-bgp-diagnostics",{"tool":41,"command":42},"bunx","bunx skills add 503496348-ops\u002Fmischief-production --skill network-bgp-diagnostics",{"tool":44,"command":45},"pnpm","pnpm dlx skills add 503496348-ops\u002Fmischief-production --skill network-bgp-diagnostics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F503496348-ops\u002Fmischief-production\u002Fblob\u002Fmain\u002Fskills\u002Fecc-network-bgp-diagnostics\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M77YG7NPZHE751W9QGK3H9ED","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002F503496348-ops\u002Fmischief-production\u002Fblob\u002Fmain\u002Fskills\u002Fsp-writing-skills\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M77YG4HPYH0GJP974DZ6KCPQ","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002F503496348-ops\u002Fmischief-production\u002Fblob\u002Fmain\u002Fskills\u002Fsp-writing-plans\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M77YFZW1FZ1GVC5C89NPE5M8","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002F503496348-ops\u002Fmischief-production\u002Fblob\u002Fmain\u002Fskills\u002Fsp-verification-before-completion\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M77YFVPWANT5VE5GWBTKHPA2","using-智械工程","Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions","https:\u002F\u002Fgithub.com\u002F503496348-ops\u002Fmischief-production\u002Fblob\u002Fmain\u002Fskills\u002Fsp-using-superpowers\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M77YFQJAW5PX3QYSBCD3B24S","using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002F503496348-ops\u002Fmischief-production\u002Fblob\u002Fmain\u002Fskills\u002Fsp-using-git-worktrees\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M77YFMSTB70VX8W2QHNJWYB0","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002F503496348-ops\u002Fmischief-production\u002Fblob\u002Fmain\u002Fskills\u002Fsp-test-driven-development\u002FSKILL.md",[],[]]