ar-api-dd-compare

Audit code assumptions against production Datadog traces and generate fix tickets.

1|2|Updated Jul 11, 2026
One-click install
npx skills add https://github.com/mahsanamin/agentic-repos --skill ar-api-dd-compare-mahsanamin
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ar-api-dd-compare
Source: https://github.com/mahsanamin/agentic-repos/tree/main/skills/ar-api-dd-compare
Command: npx skills add https://github.com/mahsanamin/agentic-repos --skill ar-api-dd-compare-mahsanamin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Code often claims behaviors (caching, parallelism, internal routing) that production traffic contradicts, and these runtime-shape defects slip past diff review and unit tests. This Skill diffs what the code assumes against what Datadog traces actually show, turning mismatches into verifiable fix tickets. ## Core Features & Use Cases - Runtime Profile Building: Pulls a Datadog trace via MCP and profiles per-resource call counts, durations, target hosts, and sequential-vs-parallel timelines. - Assumed-vs-Actual Diffing: Extracts declared assumptions from the code (cache annotations, TTLs, async constructs, base URLs) and applies a language-neutral heuristics catalog to detect defects like bypassed caches, N+1 patterns, and wrong-edge routing. - Fix Ticket Generation: Creates tickets following ar-ticket-creator conventions, each embedding a runtime budget in its "Done when" so re-running the audit objectively verifies the fix. - Use Case: An endpoint feels slow in production. You provide a Datadog trace URL; the audit reveals the same currency-rate fetch runs five times per request despite a declared cache, and files a ticket requiring at most one fetch per request. ## Quick Start Say "ar-api-dd-compare" or "trace audit" and provide a Datadog trace URL or endpoint name with a time window to start the audit.

Frequently Asked Questions about ar-api-dd-compare

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What runtime defects can trace-vs-code comparison detect?▼

It detects bypassed or ineffective caches, missing request-scope memoization, sequential independent calls that could be parallelized, public-edge routing instead of internal endpoints, N+1 flush amplification, and token acquisition inside the request hot path.

Can I run this Datadog trace audit in a cron job or headless pipeline?▼

No, this is an on-demand skill only. The Datadog MCP requires interactive authentication, so it cannot run in cron or headless environments; if the MCP is unavailable, the skill stops and reports that.

Does the trace audit work with any programming language or framework?▼

Yes, the heuristics catalog is language-neutral and describes runtime shapes rather than specific languages. The skill detects the repo's language and framework and reasons in its idioms when extracting declared assumptions.

How are fix tickets verified after the audit?▼

Each ticket's "Done when" embeds a measurable runtime budget, such as at most one external fetch per request. Re-running the same trace audit after the fix objectively confirms whether the budget is met.