investigate-latest-link-failures
Investigate the latest External Links GitHub Actions failure by verifying one example URL per host in the user's local Chrome browser (via Chrome DevTools…
от buddhist-uni★ 149 звёзд на GitHub
Установить investigate-latest-link-failures в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Investigate Latest Link Failures
Triage the latest External Links (.github/workflows/links.yml) GitHub Actions run by separating GitHub-runner blocks and auto-resolving bot challenges from genuine broken links.
Step 1: Prompt User to Start Local Chrome
Before running any browser checks, instruct the user to set up their local Chrome debugging instance and stop and wait for their reply:
- Start Chrome in the background:
google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debug - Navigate to
chrome://inspect/#remote-debugging, ensure remote debugging is turned on, and close that settings tab. - Reply when ready.
Do not proceed to browser checks until the user confirms Chrome is ready.
Step 2: Fetch Latest External Links Action Log
Once the user replies:
- Verify
list_pagesonchrome-devtools-plugin_chrome_devtoolssucceeds. - Fetch the latest
External Links(links.yml) run and itsLinksjob log usinggh(BypassSandbox: truesinceghneeds network and keyring access):
Then get thegh run list --repo buddhist-uni/buddhist-uni.github.io --workflow links.yml --limit 1 --json databaseId,status,conclusion,createdAtLinksjob ID and download its raw log to/tmp/gh_links_log.txt:gh api repos/buddhist-uni/buddhist-uni.github.io/actions/runs/<RUN_ID>/jobs --jq '.jobs[] | select(.name=="Links") | .id' gh api repos/buddhist-uni/buddhist-uni.github.io/actions/jobs/<JOB_ID>/logs > /tmp/gh_links_log.txt
Step 3: Extract One Example URL per (host, status) Pair
Run the helper script (sandboxed) to parse ## Errors per input (up to ## Timeouts per input) and write one example URL per unique (host, gha_status) pair (so a spurious 403 on a host never masks a real 404 on that same host):
python3 .agents/skills/investigate-latest-link-failures/scripts/parse_errors.py extract /tmp/gh_links_log.txt /tmp/urls_to_check.json
Step 4: Verify Hosts in Local Chrome (Two-Stage Check)
Split the extracted host URLs into about 6-8 batches and launch parallel browser subagents (Model: "flash"). Instruct each subagent:
- Open one blank tab (
new_page(url="about:blank", background=true)) and use only itspageId. - Stage 1 (Fast pass): For each URL:
- Call
navigate_page(pageId=<id>, type="url", url=<url>, timeout=3000). (Timeout is expected on slow pages—do not retry.) - Call
list_network_requests(pageId=<id>, resourceTypes=["document"], pageSize=5)to read the document HTTP status. - If the status is
200(or redirects to200) and the title is not a bot challenge ("Just a moment...","Checking your browser","Let's confirm you are human","Making sure you're not a bot!", etc), classify asok.
- Call
- Stage 2 (Challenge wait): Only if Stage 1 hits a
403,429,405, or bot-challenge title:- Wait ~6–8 seconds (e.g.,
evaluate_scriptwithasync () => { await new Promise(r => setTimeout(r, 7000)); return {url: location.href, title: document.title}; }) and re-checklist_network_requests(pageId=<id>, resourceTypes=["document"], pageSize=10). - If a subsequent
200document request appeared and the title changed to real content, classify asok(auto-resolved managed challenge). - Otherwise, check
get_network_requeston the403reqidfor challenge headers (cf-mitigated) vs static origin/WAF blocks (e.g., CloudFront403), and the page content to classify ashard_blockorinteractive_challenge.
- Wait ~6–8 seconds (e.g.,
- Close the tab (
close_page(pageId=<id>)) when done and return JSON results.
Note: Classify as spurious (ok) any host whose HTML renders normally despite an origin 500 (such as newbooksnetwork.com) or fake 404 (e.g. collection.bccampus.ca), etc. Keep as real failures genuine 404s, 500/502/503 error pages, net::ERR_* (DNS/TLS/connection failures), local timeouts, and confirmed hard_blocks.
Step 5: Generate the Filtered Report Artifact
Save the confirmed real-failure (host, gha_status) pairs (keyed as "host|gha_status" -> local status note) to /tmp/keep_pairs.json, then run:
python3 .agents/skills/investigate-latest-link-failures/scripts/parse_errors.py filter /tmp/gh_links_log.txt /tmp/keep_pairs.json /tmp/real_failing_urls.md
Write the resulting markdown to real_failing_urls.md in the conversation artifact directory (UserFacing: true) and link it in your final response.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/parse_errors.py
FAQ
Что делает скилл investigate-latest-link-failures?
Investigate the latest External Links GitHub Actions failure by verifying one example URL per host in the user's local Chrome browser (via Chrome DevTools MCP) and producing a filtered report of real failing URLs. Use when the user invokes /investigate-latest-link-failures or asks to triage the latest External Links action run.
Как установить скилл investigate-latest-link-failures?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл investigate-latest-link-failures запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…