deep-analysis
Skill5 starsChanged 5 months agoMITView on GitHub
Cross-resource deep analysis of a specific distributed trace. Takes an operation ID and correlates telemetry across multiple Application Insights resources to build a unified picture of a distributed operation.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- pfangueiro/claude-code-agentstheir own version, first seen Nov 8, 2026
- Arcadia822/skryatheir own version, first seen Oct 21, 2026
- MaxMiksa/Autonomous-Companytheir own version, first seen Oct 15, 2026
- GregorStocks/mage-benchtheir own version, first seen Oct 8, 2026
- wbh604/UZI-Skilltheir own version, first seen Oct 8, 2026
- MaxMiksa/Auto-Companytheir own version, first seen Oct 2, 2026
Used with
Projects with it also use community-led-growth, ph-community-outreach and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
nicepkgSkillcommunity-led-growth
Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.
Also in 5 projects that use this
nicepkgSkillph-community-outreach
Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.
Also in 5 projects that use this
xfstudioSkillmicro-saas-launcher
Expert in launching small, focused SaaS products fast - the indie hacker approach to building profitable software. Covers idea validation, MVP development, pricing, launch strategies, and growing to sustainable revenue. Ship in weeks, not months. Use when: micro saas, indie hacker, small saas, side project, saas mvp.
Also in 5 projects that use this
mastepanoskiSkillux-audit-rethink
Comprehensive UX audit using IxDF's 7 factors, 5 usability characteristics, and 5 interaction dimensions. Holistic evaluation with redesign proposals based on user-centered design principles.
Also in 5 projects that use this
ncklrsSkillseo-content-strategist
Expert SEO content strategy for SaaS and B2B sites. Use when doing keyword research, planning content clusters, creating pillar pages, optimizing on-page SEO, fixing technical SEO issues, building links, refreshing content, implementing programmatic SEO, mapping search intent, optimizing for SERP features, or measuring content performance. Use for SEO audits, content gap analysis, and organic growth strategy.
Also in 5 projects that use this
hieutrtrSkillcode-review-security
Security-focused code review checklist and automated scanning patterns. Use when reviewing pull requests for security issues, auditing authentication/authorization code, checking for OWASP Top 10 vulnerabilities, or validating input sanitization. Covers SQL injection prevention, XSS protection, CSRF tokens, authentication flow review, secrets detection, dependency vulnerability scanning, and secure coding patterns for Python (FastAPI) and React. Does NOT cover deployment security (use docker-best-practices) or incident handling (use incident-response).
Also in 5 projects that use this
- +6 more from nicepkg
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- wbh604/UZI-Skill★ 7.6ksame name
- MaxMiksa/Auto-Company★ 3.2ksame name
- MaxMiksa/Autonomous-Company★ 3.2ksame name
- nicepkg/auto-company★ 188same name
- GregorStocks/mage-bench★ 69same name
- NikitaDmitrieff/auto-co-meta★ 43same name
- taxueseek/session-digger★ 34same name
- Arcadia822/skrya★ 8same name
- ligenjian001-ai/agent-skills★ 8same name
- pfangueiro/claude-code-agents★ 7same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- agentic-optimizationSkill
- download-profile-traceSkill
- download-snapshotSkill
- enable-profilerSkill
- enable-snapshot-debuggerSkill
- error-explorationSkill
- get-profile-hotpathSkill
- get-snapshot-debug-infoSkill
- perf-optimizationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 11 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Follow the Standard Skill Preamble to check for existing investigation context and gather inputs.
- Very specific: line 30
If the user doesn't have an operation ID, suggest they first run the agentic-optimization or perf-optimization skill to identify …
- Very specific: line 34
Check whether investigation-notes.md has a "Related Resources" section with previously discovered resources.
- Distinctive: line 36
If related resources exist → present them to the user and ask whether to reuse or re-discover.
- Distinctive: line 37
If no related resources → run discover-related-resources.md to find downstream App Insights resources.
- Distinctive: line 41
After discovery, confirm the list of resources with the user.
- Very specific: line 76
If the operation originated from an AI agent analysis (e.g., flagged by the agentic-optimization skill), also run:
- Distinctive: line 119
Run this for each related resource.
- Distinctive: line 187
When the cross-resource analysis identifies a tool call or API call as the dominant bottleneck (e.g., >50% of total operation time), scan …
- Very specific: line 207
Performance optimization: If a downstream resource shows high latency → suggest perf-optimization targeting that resource
- Distinctive: line 208
Code optimizations: If a downstream resource has Code Optimization recommendations → suggest fetching them
- Very specific: line 209
Compare agent versions: If the issue correlates with a specific agent version → suggest aira.exe compare-versions
- Distinctive: line 210
Widen investigation: If the operation ID wasn't found in some related resources → the trace may not propagate there.
- Distinctive: line 214
Start with the primary resource context (step 4) before querying downstream resources — this gives you the dependency call graph to guide …
- Distinctive: line 215
Not all related resources will have telemetry for a given operation.
- Distinctive: line 216
If distributed tracing headers aren't propagated, the operation ID won't match across resources.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deep Analysis
This skill performs cross-resource deep analysis of a specific distributed trace. Given an operation ID (from any skill's output or from the user), it discovers related Application Insights resources, queries each for correlated telemetry, and presents a unified timeline showing where time was spent and what went wrong.
Prerequisites
- The user must be logged in to Azure CLI (
az login) - A primary Application Insights resource must be identified (in
investigation-notes.mdor provided by the user) - An operation ID to investigate (typically surfaced by the
agentic-optimizationorperf-optimizationskill)
Steps
1–2. Check investigation notes and gather inputs
Follow the Standard Skill Preamble to check for existing investigation context and gather inputs.
In addition to the standard App ID and resource identity fields, this skill requires:
- Operation ID: The distributed trace operation ID to investigate. This is typically:
- An operation ID from an anomaly flagged by the
agentic-optimizationskill - A request ID from a slow request surfaced by the
perf-optimizationskill - An operation ID provided directly by the user (e.g., from Application Insights transaction search)
- An operation ID from an anomaly flagged by the
If the user doesn't have an operation ID, suggest they first run the agentic-optimization or perf-optimization skill to identify interesting operations.
3. Discover related resources
Check whether investigation-notes.md has a "Related Resources" section with previously discovered resources.
- If related resources exist → present them to the user and ask whether to reuse or re-discover.
- If no related resources → run discover-related-resources.md to find downstream App Insights resources. This uses 4 targeted strategies (same resource group, dependency IKey correlation, shared workspace, local config scan).
AI agent workloads: For AI agent scenarios, dependency telemetry often has
target=unknown(type=AI), making dependency-based discovery ineffective. The local config scan (strategy 3d) is typically the most reliable — tool endpoints and connection strings are usually in the source code. Also note that downstream resources may be in a different subscription than the agent — the discovery script uses cross-subscription Resource Graph queries to handle this.
After discovery, confirm the list of resources with the user. Each resource should have a role label (e.g., "Agent host", "Tool: SearchAPI").
4. Fetch operation context from primary resource
Query the primary App Insights resource for the full trace of the given operation ID. This establishes the baseline view of the distributed operation.
⚠️ Before running queries, review az CLI query pitfalls.
4a. Query requests, dependencies, and exceptions for the operation
$resourceId = "<PRIMARY_RESOURCE_ID>"
$operationId = "<OPERATION_ID>"
# Fetch all telemetry for this operation: requests, dependencies, exceptions, traces
$query = "union requests, dependencies, exceptions, traces | where operation_Id == '$operationId' | project timestamp, itemType, name, duration, resultCode, target, type, operation_ParentId, id, problemId, message | order by timestamp asc"
$result = az monitor app-insights query `
--apps "$resourceId" `
--analytics-query "$query" `
--offset "P7D" `
--output json 2>&1
if ($LASTEXITCODE -ne 0) {
Write-Host "ERROR: Query failed for primary resource."
Write-Host $result
} else {
$parsed = $result | ConvertFrom-Json
$rows = $parsed.tables[0].rows
Write-Host "Found $($rows.Count) telemetry item(s) for operation $operationId in primary resource"
}4b. If using agentic-optimization — also fetch agent-specific context
If the operation originated from an AI agent analysis (e.g., flagged by the agentic-optimization skill), also run:
# Use aira.exe response-context for richer agent-specific context
$token = (az account get-access-token --resource "https://api.applicationinsights.io" --query accessToken -o tsv)
$scriptDir = "$PSScriptRoot\..\agentic-optimization\scripts"
$exePath = Join-Path $scriptDir "aira.exe"
& $exePath response-context `
-s "$subscriptionId" -g "$resourceGroup" -c "$componentName" `
--access "$token" `
--response-id "$operationId" `
-o jsonThis step is optional — skip it if the operation is not from an AI agent workload or if
aira.exeis not available.
5. Correlate across downstream resources
For each related resource in the investigation notes, query for telemetry correlated to the same operation ID. The Application Insights SDK propagates operation IDs across service boundaries when distributed tracing is enabled.
$relatedResourceId = "<RELATED_RESOURCE_ID>"
$operationId = "<OPERATION_ID>"
$query = "union requests, dependencies, exceptions, traces | where operation_Id == '$operationId' | project timestamp, itemType, name, duration, resultCode, target, type, operation_ParentId, id, problemId, message | order by timestamp asc"
$result = az monitor app-insights query `
--apps "$relatedResourceId" `
--analytics-query "$query" `
--offset "P7D" `
--output json 2>&1
if ($LASTEXITCODE -eq 0) {
$parsed = $result | ConvertFrom-Json
$rows = $parsed.tables[0].rows
Write-Host "Found $($rows.Count) telemetry item(s) in resource: <RESOURCE_NAME>"
} else {
Write-Host "WARNING: Query failed for resource <RESOURCE_NAME>. The operation may not have reached this service."
}Run this for each related resource. Collect all results.
Additionally, for each related resource that has telemetry for this operation:
- Check for profiler traces — query
customEventsforServiceProfilerSampleevents covering the operation's time window. If found, note this for the user — they can useget-profile-hotpathfor method-level analysis. - Check for exceptions — highlight any exceptions correlated to the operation.
$relatedResourceId = "<RELATED_RESOURCE_ID>"
$operationId = "<OPERATION_ID>"
# Derive the operation's time window from the telemetry fetched above.
# Use the min/max timestamps from the operation's events, with a 2-minute buffer
# on each side to account for profiler sampling intervals.
# $operationStart and $operationEnd should be ISO 8601 UTC strings computed from
# the earliest and latest timestamps in the operation's telemetry results.
$operationStart = "<ISO 8601 UTC — earliest event timestamp minus 2 minutes>"
$operationEnd = "<ISO 8601 UTC — latest event timestamp plus 2 minutes>"
# Check for profiler coverage in this time window
$profilerQuery = "customEvents | where name == 'ServiceProfilerSample' | where timestamp between (datetime('$operationStart') .. datetime('$operationEnd')) | take 1"
$profilerResult = az monitor app-insights query `
--apps "$relatedResourceId" `
--analytics-query "$profilerQuery" `
--offset "P7D" `
--output json 2>&1
if ($LASTEXITCODE -eq 0) {
$parsed = $profilerResult | ConvertFrom-Json
$rows = $parsed.tables[0].rows
if ($rows.Count -gt 0) {
Write-Host "Profiler trace available for this time window in resource: <RESOURCE_NAME>"
}
}6. Present cross-resource findings
Merge all telemetry from the primary and related resources into a unified timeline. Present it to the user with:
- Timeline view — All events ordered by timestamp, annotated with which resource they came from and their role label:
[00:00.000] Agent host | REQUEST POST /api/chat (2,450ms) [00:00.050] Agent host | DEPENDENCY SearchAPI.Search (1,200ms) → Tool: SearchAPI [00:00.060] Tool: SearchAPI| REQUEST POST /search (1,180ms) [00:00.070] Tool: SearchAPI| DEPENDENCY Azure Cognitive Search (950ms) [00:01.300] Agent host | DEPENDENCY OpenAI.ChatCompletion (800ms) [00:02.200] Agent host | REQUEST POST /api/chat completed (2,450ms) - Time breakdown — Where was time spent? Show percentage per resource/dependency:
Total: 2,450ms SearchAPI call: 1,200ms (49%) ← profiler available OpenAI call: 800ms (33%) Agent processing: 450ms (18%) - Issues found — Highlight:
- Exceptions or error status codes
- Dependencies with unusually high latency
- Missing telemetry gaps (time unaccounted for)
- Resources where the operation ID was NOT found (possible instrumentation gap)
- Profiler availability — For resources with profiler data covering this time window, note that method-level analysis is available.
6b. Source code analysis for bottleneck tool calls
When the cross-resource analysis identifies a tool call or API call as the dominant bottleneck (e.g., >50% of total operation time), scan the local codebase for the tool's implementation to identify the root cause.
This is especially valuable for AI agent workloads where the agent and its tools are often in the same repository.
- Identify the tool name from the telemetry (e.g.,
execute_tool remote_openapi.GetUserFunc_GetUsers) - Search the codebase for the function implementation — look for matching function names, API route definitions, or OpenAPI operation IDs
- Examine the implementation for common bottlenecks:
- Slow SQL queries (missing indexes, N+1 queries,
WAITFOR DELAY, full table scans) - Unoptimized external API calls (missing caching, sequential instead of parallel calls)
- Large data transfers (returning all rows without pagination)
- Blocking I/O (synchronous calls in async contexts)
- Slow SQL queries (missing indexes, N+1 queries,
- Present findings to the user with the specific code location and a concrete optimization recommendation
If the source code is not available in the working directory, inform the user and suggest they provide the repository path or examine the code manually.
7. Suggest next steps
Based on the findings, offer actionable follow-ups:
- Profiler deep-dive: If a downstream resource has profiler data (detected in step 5's profiler check) → offer to invoke
get-profile-hotpathimmediately, passing the trace location ID from theServiceProfilerSampleevent'scustomDimensions.ServiceProfilerContentfield. This provides method-level call tree analysis without requiring the user to switch skills manually. - Performance optimization: If a downstream resource shows high latency → suggest
perf-optimizationtargeting that resource - Code optimizations: If a downstream resource has Code Optimization recommendations → suggest fetching them
- Compare agent versions: If the issue correlates with a specific agent version → suggest
aira.exe compare-versions - Widen investigation: If the operation ID wasn't found in some related resources → the trace may not propagate there; suggest checking instrumentation or trying a different operation
Tips
- Start with the primary resource context (step 4) before querying downstream resources — this gives you the dependency call graph to guide which resources matter most.
- Not all related resources will have telemetry for a given operation. This is expected — the agent may not call every downstream service on every request.
- If distributed tracing headers aren't propagated, the operation ID won't match across resources. In this case, fall back to time-based correlation (query by timestamp range instead of operation ID).
- The timeline view is most useful when presented as a compact table or tree. Avoid overwhelming the user with raw telemetry — summarize and highlight.
References
- Discover Related Resources
- Investigation Notes
- az CLI Query Pitfalls
- Standard Skill Preamble
- Resolve App ID
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.

