Loading...
Loading...
Analyze and optimize Xano workspace performance. Use when the user wants to find slow endpoints, trace execution bottlenecks, deep-dive request stacks, or understand why their Xano API is slow. Also use when the user mentions "performance," "slow endpoint," "bottleneck," "stack trace," or "optimization."
npx skill4agent add statechange/xano-cli performance-analysissc-xanosc-xanonpx @statechange/xano-cli performance top-endpoints --lookback 24 --format yamlnpx @statechange/xano-cli performance trace endpoint <query-id> --samples 10 --format yaml
npx @statechange/xano-cli performance trace task <task-id> --samples 10 --format yaml
npx @statechange/xano-cli performance trace trigger <trigger-id> --samples 10 --format yaml_xsidoccurrencessamplesnpx @statechange/xano-cli performance deep-dive <request-id> --format yamlnpx @statechange/xano-cli xray function --id <function-id> --format yamlnpx @statechange/xano-cli xanoscript generate function <function-id># 1. Find requests with error status codes
npx @statechange/xano-cli history requests --format yaml
# 2. Deep-dive the error request to see which step failed
npx @statechange/xano-cli performance deep-dive <error-request-id> --format yaml
# 3. X-Ray the failing function for structural issues
npx @statechange/xano-cli xray function --id <failing-function-id> --format yaml# 1. Get endpoint ranking
npx @statechange/xano-cli performance top-endpoints --lookback 24 --format yaml
# 2. Trace the top 3-5 endpoints
npx @statechange/xano-cli performance trace endpoint <id1> --format yaml
npx @statechange/xano-cli performance trace endpoint <id2> --format yaml
npx @statechange/xano-cli performance trace endpoint <id3> --format yaml
# 3. Look at functions_called across all traces
# Rank by: avg_seconds_per_call x total_calls x number_of_callers
# This gives "optimization ROI" — fixing one function improves many endpointsstack_truncated: truedirect_seconds# 1. Check current retention settings
npx @statechange/xano-cli logs show endpoint <id>
# 2. Set to unlimited to capture full stacks
npx @statechange/xano-cli logs set endpoint <id> --limit -1
# 3. Watch for new executions
npx @statechange/xano-cli logs watch endpoint <id>
# 4. Deep-dive the new (untruncated) execution
npx @statechange/xano-cli performance deep-dive <new-request-id> --format yaml
# 5. Restore the default limit when done
npx @statechange/xano-cli logs set endpoint <id> --limit 100direct_secondsdirect_secondsrollup_seconds_xsidoccurrencesavg_rollup_secondslimit: 100limit: -1limit: 0inherit: trueenabled: false