Skip to content
Skills Library
AI & agents · Testing

agent-behavior-baseline

/agent-behavior-baseline

Establish an observable baseline for an AI agent before changing it: a minimal SQLite trace store, a fixed eval suite with stable IDs, real-task wiring, a memory retrieval baseline, and an adherence eval with constraint cards. Use when adding observability, measuring whether a change improved behaviour, or deciding between an index and a knowledge graph. Tool-agnostic; stdlib only.

Licence
MIT
Last repository change
07.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
8
Scripts
2
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 07.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 2 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/eval_suite.py, scripts/trace_store.py

What it does and when to use it

Establish an observable baseline for an AI agent before changing it: a minimal SQLite trace store, a fixed eval suite with stable IDs, real-task wiring, a memory retrieval baseline, and an adherence eval with constraint cards. Use when adding observability, measuring whether a change improved behaviour, or deciding between an index and a knowledge graph. Tool-agnostic; stdlib only.

Original author description

Establish an observable baseline for an AI agent before changing it: a minimal SQLite trace store, a fixed eval suite with stable IDs, real-task wiring, a memory retrieval baseline, and an adherence eval with constraint cards. Use when adding observability, measuring whether a change improved behaviour, or deciding between an index and a knowledge graph. Tool-agnostic; stdlib only.

How it works

  1. Applicability
  2. Boundary
  3. Step 1 — Trace store
  4. Step 2 — Fixed eval suite
  5. Step 3 — Wire one real task
  6. Step 4 — Memory retrieval baseline
  7. Step 5 — Adherence eval
  8. Step 6 — Change log
  9. Decision rules
  10. Discipline
Original SKILL.md headings · 110 lines, 790 words
SKILL.md preview
---
name: agent-behavior-baseline
description: "Establish an observable baseline for an AI agent before changing it: a minimal SQLite trace store, a fixed eval suite with stable IDs, real-task wiring, a memory retrieval baseline, and an adherence eval with constraint cards. Use when adding observability, measuring whether a change improved behaviour, or deciding between an index and a knowledge graph. Tool-agnostic; stdlib only."
license: MIT
---

# Agent Behavior Baseline

Without a baseline, every change is judged by impression. This skill builds the smallest measurement set that can answer “did it get better?”, and it separates the two things that are constantly confused: **environment smoke** and **model quality**.

> Developed through agent operation and corrected against real failures, not hand-authored as a prompt template.

## Applicability

**Use for**
- Before changing a system prompt, rule file, tool policy, or retrieval setup.
- When someone asks “is the agent still working correctly?” and there is no data.
- When deciding whether to add a knowledge graph, a new index, or more tools.

**Do not use for**
- Benchmarking across models. This is a local regression baseline, not a leaderboard.
- Proving safety. Adherence checks reduce uncertainty; they do not certify.
- Short-lived experiments where no baseline will be used again.

## Boundary

Required: local execution, file system access, Python standard library.

Known limits:
- A pass on an environment check says nothing about answer quality. Label every result as `smoke` or `quality`.
- Fixed suites overfit: once checks are added to fix failures, the suite measures itself. Keep original IDs stable and add new ones separately.
- Memory retrieval baselines measure top-k hit, not answer correctness.
- Adherence samples under 10 are anecdotes, not statistics.

## Step 1 — Trace store

One table, stdlib only:

```
task_id TEXT PRIMARY KEY, type TEXT, source TEXT, started_at TEXT,
duration_ms INTEGER, tools TEXT, retries INTEGER,
tokens_in INTEGER, tokens_out INTEGER, outcome TEXT,
error_class TEXT, artifact TEXT, notes TEXT, constraint_fail INTEGER DEFAULT 0
```

`scripts/trace_store.py init | add | summary --since N`.

**Completion criterion:** a row exists for the run you just did, and `summary` can aggregate by type.

## Step 2 — Fixed eval suite

Put checks in `state/evals/tasks.json`. Each has an `id`, `name`, `kind` (`file_exists` or `command`), and either `path` or `cmd` with optional `expect_contains`.

Rules:
- Mix kinds; a suite of only file checks measures installation, not behaviour.
- IDs are permanent. Fixing a stale check means updating its expectation, not deleting the ID.
- A failing check is a finding. Do not relabel it as “known”.

**Completion criterion:** pass count, failed IDs, and duration reported for every run.

## Step 3 — Wire one real task

- Wrap one high-frequency task (a scheduled job, a watchdog) with the tracer.
- The wrapper must emit nothing on success; otherwise every run looks like an alert.
- Verify the wrapper: run it against a no-op and confirm zero bytes of output.

**Completion criterion:** one scheduled task produces a trace row without producing output.

## Step 4 — Memory retrieval baseline

Choose 10 real queries spanning rules, versions, configuration, recent reports, and procedures. Run each, take top 3, and judge hit / partial / miss by hand.

If misses cluster on coverage (a path is not indexed), fix coverage first. Only if misses cluster on relationships or time should you consider a graph or entity index.

**Completion criterion:** 10 judged queries and one decision: coverage fix, index card, or graph evaluation.

## Step 5 — Adherence eval

Turn each critical rule into a constraint card: trigger, must, must-not, failure criterion, source. Then define tasks that exercise them.

- Record `constraint_fail` per run.
- Rules must exist in the prompt or system context; a constraint only present in the eval file is invisible to the agent and the test is invalid.
- Destructive or outbound tests run in a mock or sandbox, never against real targets.
- Report x/y over repeated samples. One pass is not a fix.

**Completion criterion:** at least 10 samples, per-task PASS/FAIL/PARTIAL, and invalid tests counted separately.

## Step 6 — Change log

Every measurement change gets a line: item, path, purpose, rollback command, review date. If nothing was added, write “no new dependencies”.

**Completion criterion:** rollback is possible without reconstructing from memory.

## Decision rules

- Memory baseline ≥ 8/10 → do not build a knowledge graph.
- Failures concentrated in coverage → add paths or index cards, then re-run.
- Only persistent relationship/time failures justify evaluating a graph.
- A single passing sample never justifies “fixed”.

## Discipline

- Separate smoke from quality in every report. Merging them is the most common way a dashboard lies.
- Keep the baseline frozen; do not tune checks to current output.
- Report the denominator. “3 failures” means nothing without “out of 20”.

## Final self-check

1. Trace row written and aggregation works.
2. Eval suite has mixed kinds and stable IDs.
3. One real task is wrapped and silent on success.
4. Memory baseline has 10 judged queries and a decision.
5. Adherence eval has ≥10 samples, with invalid tests separated.
6. Every result labelled `smoke` or `quality`.
Files in this package (8)
  • .gitignore 1 KB
  • LICENSE 1 KB
  • README.md 2 KB
  • SKILL.md 5 KB
  • examples/tasks.json 1 KB
  • references/adherence-eval.md 2 KB
  • scripts/eval_suite.py 3 KB
  • scripts/trace_store.py 4 KB

Versions

The database has no other skills named agent-behavior-baseline.

Database snapshot: 13.11.2026 · package version cc732e2b31a9 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100capture-evidence
    Use when a developer wants to build an eval from their real LLM app before changing anything — "measure how my app is doing today", "build an eval from my workload", "we have no baseline", "is my current model actually good". Turns the workload into auditable local artifacts…
  • 100kelly-agent-eval
    Review board (Busabase App-in-Skill) that runs a fixed suite of mock test cases against a baseline vs candidate agent version and surfaces rubric-scored regressions before a release. Use when the user invokes $kelly-agent-eval or /kelly-agent-eval, wants to review agent-version…
  • 100agent-regression-evals
    Use when an agent, prompt, model or tool change needs proof it did not make the agent worse — setting up a regression eval suite, deciding whether a pass-rate drop is real or noise, grading tool-call trajectories, finding flaky eval cases, or wiring an eval gate into CI that…
  • 100agent-evaluation
    Evaluate an AI agent workflow for task success, tool use, boundary compliance, and repeatability. Use when comparing or improving agent behavior across representative tasks.
  • 100run
    Run the agent-config eval suite locally and compare with the stored baseline; explain why a case went red. Use when the user says "run the evals", "run config-drift-checker", "did the Claude Code update break my setup", "why is the eval red", or "compare against baseline". Do…
  • 100add-eval
    Add or edit a plugin eval case under plugin/evals (claude plugin eval) — prompt, graders, MCP mocks — and run, compare and re-baseline the suite. Use when writing a new eval, changing a grader or mock, checking a skill/agent/tool-description change for regressions, or when…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.