agentleFS
ZenRowsZenRows/cli/skills/trace-debug/SKILL.md

trace-debug

Skill15 starsChanged 4 months agoMITView on GitHub

Read run traces and choose the next action when a fetch/extract fails.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. thecoderpanda/fde-starter-kit★ 2same name

    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 repository7 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every fetch/extract writes a trace under .zenrows/runs/<run-id>/ and .zenrows/traces/<run-id>/ (secret-free).

    line 10

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Trace & debug

Every fetch/extract writes a trace under .zenrows/runs/<run-id>/ and .zenrows/traces/<run-id>/ (secret-free).

Commands

zenrows trace inspect <run-id>    # raw run record
zenrows trace explain <run-id>    # what happened + likely cause + next action + exact command
zenrows trace replay <run-id>     # reconstruct the command line
zenrows trace export <run-id>     # JSON for sharing

Failure → action map

  • FETCH_FAILED / empty content → first retry in auto mode (mode=auto), which escalates for you and bills only for what succeeds. For slow pages add --wait-for <selector>. Only when auto mode has failed on its own, take manual control with --manual --js-render, then --premium-proxy. Each step multiplies the cost of the request, and both together are the most expensive configuration available ([[cost-control]]).
  • REQUEST_TIMEOUT → the CLI stopped waiting; the API was reached. Raise --timeout (default 120000ms, above the API's own 90s budget), or drop --wait-for so the request finishes inside that budget and the API returns its own error. Not a connectivity problem — do not chase the network.
  • BACKEND_UNAVAILABLE → a genuine transport failure (DNS/TCP/TLS). Check connectivity and zenrows config show.
  • AUTH_INVALID → re-check the key, zenrows login --api-key ….
  • KEY_CREDIT_CAP_REACHED → this API key hit one of its own credit caps (HTTP 402, gateway code AUTH014, Batch api_key_cap_reached). The account still has credits and its other keys keep working. Do not retry and do not escalate: zenrows usage shows the cap and when it resets. Wait for the reset, or have the account owner raise or remove the cap at https://app.zenrows.com/settings/api-keys.
  • POLICY_MAX_CREDITS_EXCEEDED → the account itself is out of credits (or a local policy credit limit was hit). Do not retry-loop; zenrows usage shows when credits renew. Top up or upgrade, or claim the account if it is an auto-created Free plan.
  • BATCH_FAILED → the batch run ended failed; failure_reason and failure_detail in zenrows batch status <id> --json say why.
  • PARAM_CONFLICT_AUTO_MANUAL → drop the managed flags or add --manual.
  • CAPABILITY_UNAVAILABLE → the primitive is not available on this account (e.g. beta/invite-only); use the local-spec path where offered.

Escalate only with evidence from the trace. See [[cost-control]].

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.