link-log-diagnosis
Skill by facebook
Diagnoses link flaps from wedge_agent and qsfp_service logs on both ends of a link. It helps FBOSS optics and PHY oncall work decide whether the root cause is software or hardware, citing log evidence.
Install link-log-diagnosis
Built from the published package, never by AI.
git clone --depth 1 https://github.com/facebook/fboss /tmp/fboss && mkdir -p ~/.claude/skills && cp -r /tmp/fboss/fboss/skills/link-log-diagnosis ~/.claude/skills/link-log-diagnosisRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/facebook/fboss /tmp/fboss && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/fboss/fboss/skills/link-log-diagnosis ~/.gemini/antigravity-cli/skills/link-log-diagnosisAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The link-log-diagnosis skill analyzes wedge_agent, qsfp_service and PHY snapshot logs from both sides of a link. It determines whether a flap has a software root cause, such as warmboot reprogramming or remediation loops, or a hardware cause, such as bad optics or signal loss. It points to specific log evidence and suggests fixes or detection strategies.
The user supplies the link in the form host:port-host:port and a time range. The skill gives a fetch_logs.sh command to collect logs from both switches, then runs scripts for flap timelines, transceiver programming traces, PHY snapshots and config change correlation. Reference files cover CMIS disruptive operations and PHY snapshot analysis. The skill is tagged for FBOSS optics and PHY oncall work.
Written from the project's SKILL.md and checked against it.
What it can do
- Log collectionfetch_logs.sh gathers wedge_agent and qsfp_service logs from both switches for a time window.
- Flap timelineanalyze_flaps.sh builds a merged timeline of warmboot events and link flaps.
- Transceiver tracetrace_transceiver.sh shows programming actions, state transitions and PHY fault status.
- PHY snapshot diagnosticsReads LinkSnapshot and PhyInfo entries to find the direction of a fault.
- Warmboot comparisonCompares flapping and non-flapping warmboot traces side by side.
- Config change correlationfilter_config_changes.sh extracts hardware-affecting changes from config git patches.
- Root cause reportPresents trigger, quoted log lines with timestamps, fault direction and a suggested fix.
What you need
- Bash, to run the skill scripts
- Access to wedge_agent and qsfp_service logs on both switches
- A configured config repo, for config change correlation
Try asking
- Diagnose flaps on switch-a eth1/6/1 to switch-b eth1/48/1 from yesterday 6am to noon
- Check whether this link flap was caused by a warmboot or by bad optics
- Show the transceiver programming trace for transceiver 5 during the warmboot
Good to know
- Transport, on-switch log locations and config repo layout are environment-specific.
- Internal checkouts use facebook/ overrides. Open-source checkouts use the references/ files.
- The user must run fetch_logs.sh and continue the session once logs are collected.
- Config change correlation depends on a configured config repo.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: fboss/skills/link-log-diagnosis/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to link-log-diagnosis
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
link-log-diagnosis: common questions
What does link-log-diagnosis decide?
It determines whether a link flap has a software or hardware root cause. It points to log lines that support the answer.
Which logs does it read?
It reads wedge_agent, qsfp_service and their snapshot logs from both the local and remote switches.
Can the time range be written in plain language?
Yes. The skill accepts natural language time ranges such as 'last 2 hours' or 'March 30 14:00 to 18:00'.
How do I install link-log-diagnosis?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is link-log-diagnosis free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is link-log-diagnosis safe to use?
It scores 74 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to link-log-diagnosis?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
