cross-source-correlation
Skill100 starsChanged 8 months agoMITView on GitHub
Correlate near-in-time events across PR merges, deploys, monitoring (Sentry/NewRelic/Datadog/AppDynamics) and ticket trackers (Jira/Azure DevOps) into confidence-scored clusters that answer "which deploy caused this bug" without manual tab-switching.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- integration-rule-engineSkill
- owasp-reviewer-promptSkill
- review-backlog-killerSkill
- stale-ticket-triageSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
When a Sentry alert fires, a senior engineer mentally cross-references the last deploy time, recent PRs, NewRelic apdex, and the support …
- Distinctive: line 61
Run as a background poller every ~5 minutes on a fresh window — no webhook fan-out needed when you control all the sources.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cross-Source Correlation
When a Sentry alert fires, a senior engineer mentally cross-references the last deploy time, recent PRs, NewRelic apdex, and the support tickets opened in the last hour. AGENA's Cross-Source Correlation engine does the same correlation deterministically, producing a single confidence-scored cluster per incident.
How to apply this pattern
- Pick a time window (default 60 minutes ending now) and pull every event your platform observed inside it: PR merges, deploys, error imports (Sentry / NewRelic / Datadog / AppDynamics), and work-item imports (Jira / Azure DevOps).
- Score candidate clusters using a heuristic that rewards co-location
in time + repo:
- PR merge inside the window →
+40 - Deploy from the same repo inside the window →
+20 - One monitoring signal in the window →
+20(+30if more than one) - One work-item opened in the window →
+10(+20if more than one) - Bonus
+10when a PR is present alongside any monitoring signal
- PR merge inside the window →
- Surface only clusters ≥ 70. Below that the noise / signal ratio collapses; above it you get the "vay" moment for incident triage.
- Persist the cluster with:
primary_kind,primary_label,related_events[],confidence,severity,narrative,repo_mapping_id. Keep afingerprintfor idempotency so repeated poller runs don't double-insert the same cluster. - Offer triage actions on each cluster: confirm, false-positive, undo, and (when a PR is the prime suspect) one-click rollback.
Example
🔴 CRITICAL · confidence 94%
PR #4519 (erinc, merged 14:18) in checkout-api correlates with
2 monitoring signal(s) (sentry, newrelic) and 1 work-item opened
in the same window.
Timeline:
14:18 🔀 PR #4519 merged — payment_service.py, +47/-12
14:18 🚀 deploy a1b2c3d4 → production
14:23 🚨 Sentry: TypeError in payment_service.py:88 (47×)
14:24 📡 NewRelic: apdex 0.92 → 0.41
14:31 🪐 Jira SUP-128 opened — 12 customers report failed checkoutNotes
- Run as a background poller every ~5 minutes on a fresh window — no webhook fan-out needed when you control all the sources.
- Sub-70 clusters can still be useful for trending dashboards even if you don't want to surface them as actionable.
- Store the cluster's narrative as a one-sentence summary (LLM-generated off the timeline) so it's readable in Slack alerts and post-mortem docs.
- Designed to be agnostic to specific monitoring backends — add a new
source by writing a single mapper that emits
(timestamp, kind, ref, label)rows into the same window query.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

