agentleFS
btraceiobtraceio/btrace/.agents/skills/qe-explore/SKILL.md

qe-explore

Skill6k starsChanged 5 days agoApache-2.0View on GitHub

Use when asked to explore BTrace for new misuse or spec-conformance gaps, to grow the btrace-qe abuse corpus, to find novel ways to break BTrace, or when invoked as /qe-explore or /skill:qe-explore (optionally with a surface name and a case count).

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Inventory: Read btrace-qe/EXPLORATION.md (ideas already tried, rejected, blocked, leads), list btrace-qe/cases/, and read the schema + …

    line 16
  2. Very specific:

    Pick a surface: Use the argument, or the least-covered surface in the log.

    line 17
  3. Distinctive:

    Never edit harness code, build files, or existing cases' expectations to make a verdict come out.

    line 40
  4. Distinctive:

    Never commit or push. The batch is for review.

    line 41
  5. Distinctive:

    All cases in the batch use the same lens or the same option

    line 65

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

QE Explore

Overview

btrace-qe is deterministic: it only runs committed YAML cases. This skill is where new ideas come from. You read code and docs, invent abuse cases, prove each one against real JVMs, and hand over a batch for human review. A case is worth committing only if it is grounded, novel, portable, and its verdict was checked against its own evidence.

Arguments: [surface] [count] — /qe-explore cli 2 in Claude Code, /skill:qe-explore cli 2 in Pi. Default: next surface in rotation (see log), 3 cases kept.

Workflow

  1. Inventory. Read btrace-qe/EXPLORATION.md (ideas already tried, rejected, blocked, leads), list btrace-qe/cases/**, and read the schema + pitfalls in reference.md (this directory).
  2. Pick a surface. Use the argument, or the least-covered surface in the log. Spread the batch over at least two mutation lenses (reference.md). Don't re-use an idea already in the corpus or the log under a new id.
  3. Ground each idea before writing YAML. Record one of:
    • code: the file:line where BTrace uses the value (parses it, branches on it, opens it). A key constant in Args.java names the option; it is not grounding. If you can't find the use site, the input may never reach code — find it or drop the idea. Copy option names from btrace-core/src/main/java/io/btrace/core/Args.java or the client's Main arg loop; never type one from memory.
    • doc: a verbatim claim from docs/*.md, for a conformance case.
  4. Decide the expectation from the grounding, not from intuition.
    • Input invalid per code/docs → messageMustMention = what the user must fix: the option or flag they typed, plus the offending value when it's distinctive (e.g. ["port", "70000"]). Tokens come from the user's input, decided before you run the case — never from BTrace's current output. If BTrace's message would miss your tokens, that miss is the finding; keep the tokens.
    • Input valid-but-odd, or you can't tell → no messageMustMention (resilience only). A guessed token creates a false S4.
    • Documented behavior → intent: conformance, spec.doc + verbatim spec.claim, exitCode if the doc implies one.
  5. Write the case using only schema keys and step verbs from reference.md. Inputs must be portable: paths under ${runDir} or ${probeClassesDir}, never host paths like /etc/hosts.
  6. Run each case alone: GRADLE_USER_HOME=$(pwd)/.gradle-user ./gradlew :btrace-qe:qe -Pqe.case=<id> > <log> 2>&1. Read btrace-qe/build/qe-report/runs/<id>/steps.log and stderr.log — not just the report summary.
  7. Classify the outcome and act:

    ClassificationEvidence looks likeAction
    Product findingEvidence shows BTrace misbehaving as the case claimsKeep case as is
    Clean behaviorNo finding; BTrace rejects/ignores correctlyKeep (it guards against regressions)
    Case defectWrong token, wrong key, input never reached the code pathFix the YAML, re-run
    Harness limitationNeeds a step verb, mode, or fixture that doesn't exist; or harness errorDelete the case, log it as blocked
  8. Log and hand over. Append every idea (kept, rejected, blocked) to btrace-qe/EXPLORATION.md. Leave files uncommitted.

Boundaries

  • Never edit harness code, build files, or existing cases' expectations to make a verdict come out.
  • Never commit or push. The batch is for review.
  • A verdict you didn't check against runs/<id>/ is not a result.

Hand-off report (this exact shape)

| id | idea | grounding | verdict (R/C/G + severities) | key evidence line | classification |

followed by: blocked ideas (one line each, what the harness would need), and the command to re-run the batch (-Pqe.case= per id, or -Pqe.surface=).

Rationalizations seen in testing

ThoughtReality
"The message says Usage, so Usage is the token"Then guidance can never fail. Use what the user typed (-p, notaport).
"The message names the option but not the value, so I'll drop the value"Same loophole. The value goes in; a message that omits it is an S4.
"The key is in Args.java, that's my grounding"That's the name. Ground on the line that uses the value.

Red flags — stop and fix

  • An option name you didn't find in Args.java / the client arg loop
  • A messageMustMention token chosen or changed after reading BTrace's output
  • Grounding that is only a key constant, not a use site
  • A verdict quoted from report.md without opening runs/<id>/
  • All cases in the batch use the same lens or the same option
  • A host-specific path, or an idea already listed in EXPLORATION.md

Download now (ZIP)

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 3 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the btraceio/btrace repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about btraceio/btrace

The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 22

Talked about on GitHub and Stack Overflow (22 times).

On GitHub · 16

11 more on GitHub

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.