agentleFS
ss2codess2code/nanoclaw-ops/.claude/skills/reflect/SKILL.md

reflect

Skill1 starsChanged 41 days agoMITView on GitHub

Run NanoClaw's read-only execution-health digest. Use when the operator says "reflect", "self-improve", "review how the agents are doing", "where are we wasting tokens", or asks about agent cost, failures, cache efficiency, compactions, tool loops, or skill reliability. On-demand only; never schedule it and never change config or code as part of this skill.

172 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use poteto-help, setup-pstack 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.
  • ianclearySkill

    poteto-help

    Guides users through pstack setup, /poteto-mode, and picking the skill, playbook, or principle for a task. Type /poteto-help with a question.

    Also in 14 projects that use this

  • bnemaSkill

    setup-pstack

    Configure which Pi models pstack uses per role. Detects available provider/model specs and writes pstack's user configuration. Use for /setup-pstack, "configure pstack models", or changing pstack model choices.

    Also in 24 projects that use this

  • eryzerzSkill

    make-bot-ui

    Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.

    Also in 19 projects that use this

  • ianclearySkill

    principle-explain-the-number

    Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.

    Also in 26 projects that use this

  • jaydubya818Skill

    automate-me

    Use when the user wants working preferences captured in a reusable mode skill.

    Also in 39 projects that use this

  • jaydubya818Skill

    poteto-mode

    Use when non-trivial work should follow the smallest rigorous Jstack workflow.

    Also in 27 projects that use this

  • +6 more from jaydubya818

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 163 edited versions we read keep these.

  • 6

    Distinctive

    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. Distinctive:

    Read existing traces and Ops Center data only.

    line 13
  2. Distinctive:

    Do not edit instructions, skills, config, or source.

    line 14
  3. Distinctive:

    Do not create proposals, schedules, reminders, or background jobs.

    line 15
  4. Very specific:

    Do not write data/reflect-improvements.json.

    line 16
  5. Distinctive:

    Treat "no action indicated" as a successful result.

    line 19
  6. Distinctive:

    Do not turn the inspection step into an implementation plan unless the operator separately asks for one.

    line 96
  7. Distinctive:

    Do not update it during diagnosis.

    line 107

“Common” is measured: kept by at least 6 in 10 of the 163 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.

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

Reflect — read-only execution health

This skill diagnoses. It does not propose a change merely because a metric was printed, and it never applies one.

Contract

  • Read existing traces and Ops Center data only.
  • Do not edit instructions, skills, config, or source.
  • Do not create proposals, schedules, reminders, or background jobs.
  • Do not write data/reflect-improvements.json. The digest reads that history, but only a separately approved repair workflow may update it with scripts/reflect-ledger.ts.
  • Treat "no action indicated" as a successful result.
  • Distinguish complete evidence from missing evidence. An empty report with partial evidence is inconclusive, not healthy.

Run

pnpm run reflect digest --days 7

Optional:

pnpm run reflect digest --days 14
pnpm run reflect digest --group <agent-group-id>
pnpm run reflect digest --json

The command itself makes no model calls and opens ops.db read-only.

Ops Center's Reflect and System tabs have a Run /reflect control that invokes the same digest engine with an authenticated, user-triggered request. It keeps the latest bounded result in data/reflect-latest.json and shows a compact summary there after reloads. The request does not write an ops.db event or change config.

Interpret

Start with EVIDENCE.

  • complete: an empty signal list means no conservative threshold fired.
  • partial: report the missing source and stop short of a health conclusion.

Then summarize:

  1. Outcomes: ok, degraded, failed, idle.
  2. Observed cost per priced working workflow and per successful result.
  3. High and medium signals, with the arithmetic already provided.
  4. The smallest set of exhibits that explains those signals.
  5. Any matching improvement-history entry, especially one already verified or later marked regressed.

Reflect reports workflows, not raw provider prompt phases. One workflow starts with the operator's request and may include provider-injected skill prompts and context-compaction resumes. The Runs page retains those raw turns for debugging.

Tool health distinguishes:

  • unresolved errors, which can indicate real breakage; and
  • recovered errors, where a later successful tool call and visible workflow response conservatively indicate recovery. These are retry tax, not proof that the integration failed.

Recovery is a deterministic correlation, not semantic proof. Use the linked signal-specific exhibits and source traces before assigning a root cause.

The digest looks for:

  • failed workflows that consumed work but produced no visible response, while treating successfully acknowledged outbound actions as response evidence;
  • low prompt-cache hit ratio;
  • frequent compaction or rising context;
  • scheduled/wake work costing much more than chat;
  • repeated identical tool calls;
  • tool errors or latency degradation;
  • skills repeatedly associated with degraded/failed workflows;
  • enabled skills not observed in active groups, reported only as candidates for inspection.

Report

Give the operator:

  • whether the evidence was complete;
  • the two or three most important findings, or "no action indicated";
  • the relevant group, metric, and exhibit;
  • what to inspect next.

Do not turn the inspection step into an implementation plan unless the operator separately asks for one. If a real breakage is found, follow the repository's root-cause and approval rules before any fix.

Improvement history handoff

The durable history is data/reflect-improvements.json. Reflect reads it and links current signal ids to prior diagnoses, repairs, verification, or regressions. This prevents a future investigation from rediscovering the same issue without context.

Do not update it during diagnosis. After the operator separately approves a repair and the repair has been verified, the implementation workflow may create a validated entry JSON and explicitly run:

pnpm exec tsx scripts/reflect-ledger.ts record --entry /tmp/reflect-improvement-entry.json

Record the stable signal ids, root cause, introducing commit when known, changed files, verification, and before/after metrics. Use status: "regressed" when a previously verified issue returns rather than creating a duplicate diagnosis.

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.