FrancyJGLisboa/agent-skills-platform / references/examples/pr-blocker-summarizer
pr-blocker-summarizer
UnverifiedSummarizes open pull requests into a blockers-first standup digest. Activates when the user asks to summarize open PRs, find blocked pull requests, generate a PR standup, or triage review backlog from a PR export.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 1.9 KB |
| SKILL.md | skill md | 2.7 KB |
| VERIFICATION.md | markdown | 849 B |
| contracts/data_contract_pull_request_reviews/.contract_id | other | 20 B |
| contracts/data_contract_pull_request_reviews/code/contract_health.py | script | 402 B |
| discovery.json | config | 2.2 KB |
| evals/golden/case-1/expected.json | config | 396 B |
| evals/golden/case-1/input.json | config | 339 B |
| evals/golden/case-2/expected.json | config | 152 B |
| evals/golden/case-2/input.json | config | 209 B |
| evals/golden/case-3/expected.json | config | 233 B |
| evals/golden/case-3/input.json | config | 106 B |
| evals/pr-blocker-summarizer.eval.md | markdown | 1.8 KB |
| scripts/dependency_health.py | script | 3.9 KB |
| scripts/evolve.pyexecutable | script | 10.2 KB |
| scripts/review_staleness.py | script | 6.2 KB |
| scripts/run_evals.pyexecutable | script | 49.4 KB |
| scripts/run_pipeline.pyexecutable | script | 2.7 KB |
| scripts/schema_drift.py | script | 7.3 KB |
| scripts/skill_document.py | script | 9.8 KB |
| scripts/staleness_check.py | script | 7.5 KB |
| scripts/success_ledger.py | script | 16.5 KB |
scripts/dependency_health.py
View on GitHub#!/usr/bin/env python3
"""
Dependency health check for a skill.
Issues an HTTP HEAD to each declared dependency URL and reports whether the
endpoint is reachable, returning a normal status, or has moved / errored.
Non-HTTP URLs and URLs without a scheme are reported as skipped.
"""
from __future__ import annotations
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
HTTP_TIMEOUT_SECONDS = 10
_USER_AGENT = "agent-skill-staleness-check/1.0"
def check_dependency_health(dependencies: list[dict]) -> list[dict]:
"""
Probe each dependency's URL. Returns a list of issue dicts (level, message,
detail). Status thresholds:
2xx-3xx -> info "healthy"
4xx -> warning "client error / may have moved"
5xx -> error "server error"
URLError, other -> error "unreachable / check failed"
"""
issues: list[dict] = []
for dep in dependencies:
url = dep.get("url", "").strip()
name = dep.get("name", url)
if not url:
issues.append({
"level": "warning",
"message": f"Dependency '{name}' has no URL",
"detail": "Cannot check health without a URL.",
})
continue
if not url.startswith(("http://", "https://")):
issues.append({
"level": "warning",
"message": f"Dependency '{name}' has non-HTTP URL",
"detail": f"Skipping health check for: {url}",
})
continue
try:
req = Request(url, method="HEAD")
req.add_header("User-Agent", _USER_AGENT)
with urlopen(req, timeout=HTTP_TIMEOUT_SECONDS) as resp:
status = resp.status
if 200 <= status < 400:
issues.append({
"level": "info",
"message": f"Dependency '{name}' is healthy",
"detail": f"HTTP {status} from {url}",
})
elif 400 <= status < 500:
issues.append({
"level": "warning",
"message": f"Dependency '{name}' returned client error",
"detail": f"HTTP {status} from {url}. "
"The endpoint may have moved or require authentication.",
})
else:
issues.append({
"level": "error",
"message": f"Dependency '{name}' returned server error",
"detail": f"HTTP {status} from {url}",
})
except HTTPError as exc:
# urlopen RAISES on 4xx/5xx; HTTPError subclasses URLError, so this
# must be caught first or every error status reads as "unreachable".
if 400 <= exc.code < 500:
issues.append({
"level": "warning",
"message": f"Dependency '{name}' returned client error",
"detail": f"HTTP {exc.code} from {url}. "
"The endpoint may have moved or require authentication.",
})
else:
issues.append({
"level": "error",
"message": f"Dependency '{name}' returned server error",
"detail": f"HTTP {exc.code} from {url}",
})
except URLError as exc:
issues.append({
"level": "error",
"message": f"Dependency '{name}' is unreachable",
"detail": f"Failed to connect to {url}: {exc.reason}",
})
except Exception as exc:
issues.append({
"level": "error",
"message": f"Dependency '{name}' check failed",
"detail": f"Error checking {url}: {exc}",
})
return issues
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| add-product-e2e-evalpaperclipai/paperclipAdd or extend a Paperclip full-stack runner E2E workflow, fixture, matcher, or report evidence path for local or Daytona execution. | Stars: 115k | Updated | Claude CodeCodex | Verified | Install |
| add-runner-evalpaperclipai/paperclipAdd or extend a Paperclip Runner protocol evaluation definition, roster, assertion, or report fixture with provenance and narrow validation. | Stars: 115k | Updated | Claude CodeCodex | Verified | Install |
| diagnose-why-work-stoppedpaperclipai/paperclipCompatibility entry point for failed, stalled, looping, or over-recovered Paperclip work. Use fix-failed-paperclip-run for the full diagnosis, regression, repair, real verification, and green-PR workflow; honor an explicitly requested diagnosis-only scope. | Stars: 115k | Updated | Claude CodeCodex | Verified | Install |
| fix-failed-paperclip-runpaperclipai/paperclipDiagnose and fix failed, stuck, slow, or incorrectly blocked Paperclip tasks and runs. Use with a task/run URL or failure report to trace the root cause, prove a regression red then green, check second-order effects, verify the real workflow, and deliver a PR with passing checks. | Stars: 115k | Updated | Claude CodeCodex | Verified | Install |