skillfit 0.12.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -119
- package/README.zh-CN.md +60 -116
- package/dist/commands/bench-check-report.js +1 -34
- package/dist/commands/bench.js +6 -239
- package/dist/commands/eval-preflight-error.js +9 -0
- package/dist/commands/eval-preflight.js +4 -11
- package/dist/commands/eval-report.js +6 -459
- package/dist/commands/install.js +14 -98
- package/dist/harness/bench-check.js +277 -0
- package/dist/harness/bench-diagnostics.js +34 -0
- package/dist/harness/eval-acceptance.js +1 -1
- package/dist/harness/eval-audit.js +1 -1
- package/dist/harness/eval-manifest.js +456 -0
- package/dist/install/constants.js +1 -0
- package/dist/install/transaction.js +112 -0
- package/docs/README.md +65 -0
- package/docs/architecture.md +86 -0
- package/docs/archive-delivery.md +83 -0
- package/docs/archive-inventory.md +91 -0
- package/docs/evaluation-reports.md +1 -1
- package/docs/first-real-eval.md +12 -10
- package/docs/growth-roadmap-2026-10.md +17 -18
- package/docs/package-contents.md +80 -0
- package/docs/plans/2026-10-20-archive-replay-verification.json +125 -0
- package/docs/plans/2026-10-20-archive-source-verification.json +256 -0
- package/docs/plans/2026-10-20-delivery-verification.json +146 -0
- package/docs/plans/2026-10-20-docs-architecture-cleanup.md +233 -0
- package/docs/plans/2026-10-20-install-transactions-and-archive-delivery.md +233 -0
- package/docs/plans/2026-10-21-npm-0.13.0-release.md +74 -0
- package/docs/plans/2026-10-21-npm-0.13.1-release.md +38 -0
- package/docs/releases/0.12.0-attestation-check.json +22 -0
- package/docs/releases/0.12.0-attestations.json +155 -0
- package/docs/releases/0.12.0-ci-registry-install.json +90 -0
- package/docs/releases/0.12.0-feature-smoke.json +34 -0
- package/docs/releases/0.12.0-foundations-smoke.json +1576 -0
- package/docs/releases/0.12.0-local-registry-install.json +75 -0
- package/docs/releases/0.12.0-preparation-attempt-1.json +22 -0
- package/docs/releases/0.12.0-registry-metadata.json +96 -0
- package/docs/releases/0.12.0-signatures.txt +6 -0
- package/docs/releases/0.12.0-verification.json +99 -0
- package/docs/releases/0.12.0.md +14 -0
- package/docs/releases/0.13.0-archive-replays.json +266 -0
- package/docs/releases/0.13.0-archive-restoration.json +168 -0
- package/docs/releases/0.13.0-attestation-check.json +22 -0
- package/docs/releases/0.13.0-attestations.json +147 -0
- package/docs/releases/0.13.0-ci-registry-install.json +60 -0
- package/docs/releases/0.13.0-feature-smoke.json +41 -0
- package/docs/releases/0.13.0-feature-smoke.mjs +114 -0
- package/docs/releases/0.13.0-foundations-smoke.json +1576 -0
- package/docs/releases/0.13.0-local-registry-install.json +40 -0
- package/docs/releases/0.13.0-preparation.json +102 -0
- package/docs/releases/0.13.0-preview-review.json +16 -0
- package/docs/releases/0.13.0-registry-metadata.json +92 -0
- package/docs/releases/0.13.0-signatures.txt +12 -0
- package/docs/releases/0.13.0-verification.json +136 -0
- package/docs/releases/0.13.0.md +112 -0
- package/docs/releases/0.13.1-feature-smoke.mjs +116 -0
- package/docs/releases/0.13.1-preparation-failure-1.json +25 -0
- package/docs/releases/0.13.1-preparation.json +149 -0
- package/docs/releases/0.13.1.md +62 -0
- package/docs/releases/archive-delivery-smoke.mjs +37 -0
- package/docs/releases/release-docs-smoke.mjs +37 -0
- package/docs/reproducible-offline-example.md +1 -1
- package/evidence/README.md +24 -1
- package/evidence/archive-catalog.v1.json +8044 -0
- package/evidence/fetch-archives.mjs +211 -0
- package/package.json +9 -2
- package/skills/skillfit/SKILL.md +20 -6
- package/dist/cli.test.js +0 -193
- package/dist/commands/bench-calibration.test.js +0 -237
- package/dist/commands/bench-check-json.test.js +0 -242
- package/dist/commands/bench-manage.test.js +0 -87
- package/dist/commands/bench.test.js +0 -1166
- package/dist/commands/bundle.test.js +0 -142
- package/dist/commands/calibration-cli.test.js +0 -145
- package/dist/commands/doctor.test.js +0 -280
- package/dist/commands/eval-agent-preflight.test.js +0 -269
- package/dist/commands/eval-cli-usage.test.js +0 -75
- package/dist/commands/eval-export-modes.test.js +0 -350
- package/dist/commands/eval-export.test.js +0 -279
- package/dist/commands/eval-interruption.test.js +0 -263
- package/dist/commands/eval-preflight.test.js +0 -382
- package/dist/commands/eval-report.test.js +0 -367
- package/dist/commands/eval.test.js +0 -503
- package/dist/commands/evaluation-report.test.js +0 -243
- package/dist/commands/install.test.js +0 -555
- package/dist/commands/npm-first-run.test.js +0 -74
- package/dist/commands/replay-cancellation.test.js +0 -105
- package/dist/commands/report.test.js +0 -110
- package/dist/commands/setup.test.js +0 -150
- package/dist/commands/upstream.test.js +0 -139
- package/dist/commands/workflow-entrypoints.test.js +0 -137
- package/dist/docs.test.js +0 -154
- package/dist/frontmatter.test.js +0 -49
- package/dist/harness/bench.test.js +0 -109
- package/dist/harness/bundle.test.js +0 -71
- package/dist/harness/codex-usage.test.js +0 -87
- package/dist/harness/costs.test.js +0 -92
- package/dist/harness/eval-budget.test.js +0 -237
- package/dist/harness/eval-component.test.js +0 -770
- package/dist/harness/eval-efficiency.test.js +0 -56
- package/dist/harness/execution-timing.test.js +0 -61
- package/dist/harness/executors/api.test.js +0 -175
- package/dist/harness/executors/cli.test.js +0 -541
- package/dist/harness/executors/mock.test.js +0 -43
- package/dist/harness/experiment-session.test.js +0 -317
- package/dist/harness/installed-skill.test.js +0 -162
- package/dist/harness/interruption.test.js +0 -31
- package/dist/harness/judge-accounting.test.js +0 -216
- package/dist/harness/judge.test.js +0 -181
- package/dist/harness/kimi-usage.test.js +0 -62
- package/dist/harness/native-diff.test.js +0 -53
- package/dist/harness/oss-lru-cache.test.js +0 -79
- package/dist/harness/oss-normalize-url.test.js +0 -64
- package/dist/harness/oss-regression-witness.test.js +0 -89
- package/dist/harness/oss-skill-followup.test.js +0 -59
- package/dist/harness/prompt.test.js +0 -48
- package/dist/harness/receipts.test.js +0 -148
- package/dist/harness/report.test.js +0 -297
- package/dist/harness/runner.test.js +0 -635
- package/dist/harness/skill-revision.test.js +0 -148
- package/dist/harness/stats.test.js +0 -124
- package/dist/harness/target.test.js +0 -60
- package/dist/harness/trigger.test.js +0 -261
- package/dist/harness/verifier-summary.test.js +0 -99
- package/dist/harness/verifier.test.js +0 -128
- package/dist/harness/waza-behavior.test.js +0 -139
- package/dist/mcp/probe.test.js +0 -139
- package/evidence/artifacts/2026-10-12-diagnosing-revision/calibration-records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-diagnosing-revision/interrupted-records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-diagnosing-revision/validation-records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-diagnosing-v2/regression-records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-diagnosing-v2/transfer-records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-normalize-url-v2-available/readiness-records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-normalize-url-v2-comparison/records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-normalize-url-v2-recovery/records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-normalize-url-v2-validated/records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-13-debugging-completed-development/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-13-debugging-controls-and-sleep-stop/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-13-debugging-development-stops/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-14-debugging-followup-routing-stop/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-14-debugging-independent-validation/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-14-debugging-reading-pilot-and-cost-review/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-14-debugging-spending-stop/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-15-independent-comparison-regression-stop/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-15-native-diff-mechanism/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-15-receiver-mechanism-stop/package.tar.gz +0 -0
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ then install only what survives the experiment.
|
|
|
17
17
|
|
|
18
18
|
[English](README.md) · [简体中文](README.zh-CN.md)
|
|
19
19
|
|
|
20
|
-
[Quick start](#
|
|
20
|
+
[Documentation](docs/README.md) · [Quick start](#first-run-with-npm) · [Bench guide](benches/README.md) · [Metrics protocol](docs/metrics.md) · [Evidence](evidence/)
|
|
21
21
|
|
|
22
22
|
</div>
|
|
23
23
|
|
|
@@ -31,9 +31,9 @@ then install only what survives the experiment.
|
|
|
31
31
|
|
|
32
32
|
The agent-config ecosystem has solved **distribution** (`npx skills add`, plugin marketplaces, MCP registries) but not **selection**. The evidence says unverified configuration can hurt:
|
|
33
33
|
|
|
34
|
-
- Curated
|
|
35
|
-
- LLM-generated context files
|
|
36
|
-
- 36% of scanned public
|
|
34
|
+
- Curated Skills raised average pass rates by **+16.6pp** across 87 tasks and 18 model–harness configurations; gains varied by configuration ([SkillsBench v4](https://arxiv.org/abs/2602.12670v4)).
|
|
35
|
+
- LLM-generated context files showed no statistically significant success-rate improvement, while increasing average inference cost by **20% on SWE-bench and 23% on CTXbench** ([Evaluating AGENTS.md v3](https://arxiv.org/abs/2602.11988v3)).
|
|
36
|
+
- **36.82% of 3,984 scanned public Skills** had at least one security issue in Snyk’s February 5, 2026 study ([ToxicSkills findings](https://snyk.io/blog/toxicskills-malicious-ai-agent-skills-clawhub/)).
|
|
37
37
|
|
|
38
38
|
skillfit is the missing measurement layer: paired A/B experiments with deterministic verifiers, statistical verdicts, and trigger-rate measurement — packaged as a CLI anyone can run.
|
|
39
39
|
|
|
@@ -65,28 +65,28 @@ The skill fired once in nine in-domain tasks — and the tasks pass 3/3 without
|
|
|
65
65
|
## Install
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
npx skillfit@0.
|
|
69
|
-
npx skillfit@0.
|
|
68
|
+
npx skillfit@0.13.1 --help
|
|
69
|
+
npx skillfit@0.13.1 doctor
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
Requires Node.js 22+. npm may download the package; the case checks and previews below make no model calls.
|
|
73
73
|
|
|
74
74
|
## First run with npm
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
In your project directory, replace `./my-skill` with a directory containing your `SKILL.md`:
|
|
77
77
|
|
|
78
78
|
```bash
|
|
79
|
-
npx skillfit@0.
|
|
80
|
-
npx skillfit@0.
|
|
81
|
-
npx skillfit@0.
|
|
82
|
-
npx skillfit@0.
|
|
79
|
+
npx skillfit@0.13.1 bench init my-bench --kind command --dry-run
|
|
80
|
+
npx skillfit@0.13.1 bench init my-bench --kind command --yes
|
|
81
|
+
npx skillfit@0.13.1 bench check ./my-bench --json
|
|
82
|
+
npx skillfit@0.13.1 eval ./my-skill --bench ./my-bench --mode installed --agent codex --trials 1 --max-calls 2 --runs-root ./runs --run-group first-eval --json --dry-run
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
Replace the teaching fixture, prompt, verifier and oracle before measuring benefit. The preview declares two calls and makes none. Inspect `plan.evaluation.agentPreflight.status`; login remains unknown offline. Keep cases and runs in separate directories. Continue with [your first real evaluation](docs/first-real-eval.md).
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
### Run from source
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
Build a local checkout:
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
92
|
git clone https://github.com/remote-controlled-man/skillfit.git
|
|
@@ -101,23 +101,13 @@ node dist/cli.js eval skills/skillfit --bench code-review --agent codex --dry-ru
|
|
|
101
101
|
node dist/cli.js install --agent codex --dry-run
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
The
|
|
104
|
+
The checks are offline; `doctor` is read-only and both previews only print plans. Supported agents: **Claude Code**, **OpenAI Codex CLI**, **Kimi Code** ([capability matrix](src/matrix/agents.json)).
|
|
105
105
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
For eval and baseline calibration, `--trials` must be an integer from 1 to 20. Fractional, malformed, or out-of-range values are rejected before any run or bench check starts.
|
|
109
|
-
|
|
110
|
-
Use `--max-calls <n>` for eval or baseline calibration to reject plans above a call ceiling (including enabled judges). New runs retain a frozen plan, call ledger, session state and artifact hashes; input/config drift or executor failures stop further calls. Partial runs cannot support an installation recommendation. Follow the [bounded experiment workflow](docs/experiment-workflow.md), including its environment limits.
|
|
111
|
-
|
|
112
|
-
Included in 0.10.1: Ctrl+C stops live evaluation processes and subsequent calls, retains available output/usage and seals a stopped run before exit 130. SIGTERM uses exit 143. Partial or unknown usage stays incomplete; interrupted prefixes cannot authorize an upgrade or retry themselves. See [interruption and retained records](docs/evaluation-interruption.md).
|
|
113
|
-
|
|
114
|
-
Also included in 0.10.1: live `eval` checks selected cases offline before any agent/judge call. Hard failures block execution; warnings and unknown evidence are reported separately and retained with the run. Previews declare these checks pending and execute no verifier/oracle. This adds local checking time and zero model calls. See [case preflight](docs/eval-case-preflight.md).
|
|
115
|
-
|
|
116
|
-
Supported agents: **Claude Code**, **OpenAI Codex CLI**, **Kimi Code** ([capability matrix](src/matrix/agents.json) — machine-readable, dated, doc-linked). Trigger-mode capture is currently verified for Kimi Code and Codex CLI.
|
|
106
|
+
Paired eval defaults to **5 trials per condition**: 8 tasks require 80 agent executions before optional judges. Preview the count and set `--max-calls` before spending. See [bounded experiments](docs/experiment-workflow.md).
|
|
117
107
|
|
|
118
108
|
## Build your own cases
|
|
119
109
|
|
|
120
|
-
|
|
110
|
+
Scaffold a code-editing teaching case, then replace its inputs with your real task:
|
|
121
111
|
|
|
122
112
|
```bash
|
|
123
113
|
node dist/cli.js bench init my-bench --kind command --dry-run
|
|
@@ -127,17 +117,9 @@ node dist/cli.js bench check my-bench --json
|
|
|
127
117
|
node dist/cli.js eval skills/skillfit --bench my-bench --agent codex --input workspace --trials 1 --max-calls 2 --dry-run
|
|
128
118
|
```
|
|
129
119
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
Agent callers can use `bench check --json` for versioned gate identifiers, task IDs, locations, failure reasons, remediation suggestions and bounded verifier evidence. stdout is JSON only; exit codes distinguish passed checks, failed checks and errors. Without `--calibrate`, this remains an offline integrity check; warnings still need review. Version 0.11.0 also supports a separate `--calibrate --json --dry-run` plan, with explicit hash confirmation before JSON execution. See the [JSON contract](docs/bench-check-json.md).
|
|
133
|
-
|
|
134
|
-
Version 0.11.0 supports quoted verifier/oracle arguments, including script paths with spaces. Recognized grader load/runtime errors and explicit infrastructure-error messages block offline gates or become ungraded evaluation errors, preserving agent costs. Normal task failures and assertions remain graded failures. See [verifier commands and error reporting](docs/verifier-contract.md).
|
|
135
|
-
|
|
136
|
-
Version 0.12.0 tightens `bench add --freeze`: Git imports never fall back to ignored files, non-Git imports require `--include`, and selected links or destination-bench files are rejected. `--decompose` confirms before its single drafting call and retains costs and failures; see [drafting records](docs/bench-drafting.md). Each case can set `verifierTimeoutSeconds` for verifier/oracle checks, including preflight and replay; the default stays 120 seconds.
|
|
120
|
+
Use `bench add --freeze` to capture a failure or `--from-commit` to import a fix. Read the [case authoring guide](docs/bench-authoring.md), [JSON check contract](docs/bench-check-json.md), [verifier contract](docs/verifier-contract.md) and [drafting records](docs/bench-drafting.md).
|
|
137
121
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
List and inspect cases, then preview an edit or removal. `--yes` applies a validated manifest change with a backup; removal preserves the case files. Select a smaller paired eval, trigger run or baseline calibration using repeated `--task`, or `taskIds` in a paired JSON request. IDs and order are frozen, budgets count only selected cases, and small samples remain indicative. See [case management](docs/case-management.md).
|
|
122
|
+
List and inspect cases, or preview an edit. `--yes` applies a validated change with a backup; removal keeps case files. Select a smaller run with repeated `--task`:
|
|
141
123
|
|
|
142
124
|
```bash
|
|
143
125
|
node dist/cli.js bench list my-bench --json
|
|
@@ -146,51 +128,32 @@ node dist/cli.js bench edit my-bench example-task --set shouldTrigger=true --jso
|
|
|
146
128
|
node dist/cli.js eval skills/skillfit --bench my-bench --agent codex --task example-task --input workspace --trials 1 --max-calls 2 --dry-run
|
|
147
129
|
```
|
|
148
130
|
|
|
149
|
-
|
|
131
|
+
See [case management](docs/case-management.md). Live evaluation checks [case integrity](docs/eval-case-preflight.md) and the [Agent environment](docs/eval-agent-preflight.md) before calls; a successful preview alone does not establish readiness.
|
|
132
|
+
|
|
133
|
+
### Evaluate a real OSS task
|
|
150
134
|
|
|
151
|
-
Use `--input workspace` for
|
|
152
|
-
without an inline repository snapshot. Keep the same input mode for baseline
|
|
153
|
-
calibration. `snapshot` remains the default; workspace input is unavailable for
|
|
154
|
-
API executors and is separate from `--mode trigger`.
|
|
135
|
+
Use `--input workspace` for CLI runs that inspect and edit files on disk. API executors require the default snapshot mode. Keep calibration and paired input modes consistent:
|
|
155
136
|
|
|
156
137
|
```bash
|
|
157
138
|
node dist/cli.js eval <skill-dir> --bench <bench-dir> --agent codex --input workspace --trials 5 --dry-run
|
|
158
139
|
node dist/cli.js bench check <bench-dir> --calibrate --agent codex --input workspace --trials 3 --dry-run
|
|
159
140
|
```
|
|
160
141
|
|
|
161
|
-
|
|
162
|
-
the issue request instead of revealing the fix message. Reports show per-check
|
|
163
|
-
results, usage coverage and installation evidence gaps. A single task informs
|
|
164
|
-
that task; it does not prove general benefit. Follow the [real OSS workflow](docs/oss-task-evaluation.md)
|
|
165
|
-
or replay the [pinned mcp-use example](benches/contrib/oss-mcp-use-utf8/README.md).
|
|
142
|
+
Import the issue request with `--prompt-file` so the fix message does not reveal the answer. Follow the [real OSS workflow](docs/oss-task-evaluation.md) or inspect the [pinned mcp-use example](benches/contrib/oss-mcp-use-utf8/README.md).
|
|
166
143
|
|
|
167
|
-
|
|
144
|
+
### Compare Skill revisions
|
|
168
145
|
|
|
169
|
-
|
|
146
|
+
Compare two complete versions with the same frontmatter name and different fingerprints. Both arms receive identical natural prompts; revision effects are distinct from installation benefit:
|
|
170
147
|
|
|
171
148
|
```bash
|
|
172
149
|
node dist/cli.js eval ./skill-new --baseline-skill ./skill-old --mode installed --bench ./my-bench --agent codex --trials 5 --dry-run
|
|
173
150
|
```
|
|
174
151
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
New installed evaluations provide the same native untracked-file diff helper in both arms. Use `node _skillfit/native-diff.cjs <file>` to display a patch without output filtering. The plan and evidence pin the helper version and content; a modified helper stops further calls. This corrects the common evaluation environment, not the Skill. Old runs keep their original environment, and delivery does not prove the agent used the helper.
|
|
178
|
-
|
|
179
|
-
Use a version 1 JSON request to call the existing Skill revision engine from an Agent. A read-only preview pins inputs and the policy; execution requires its plan hash. JSON results retain improvements, regressions, all-invocation costs and evidence coverage. A separate policy returns `accept`, `reject` or `inconclusive`; insufficient evidence cannot authorize adoption, and the component never upgrades a Skill. This interface is included in [0.9.0](docs/releases/0.9.0.md), available from npm or a source checkout. See [the input/output and policy contract](docs/eval-component.md).
|
|
180
|
-
|
|
181
|
-
For new cost comparisons, set `pairOrder: "balanced"` in the request to alternate which version runs first. The plan freezes the order and offline assessment verifies the invocation ledger; paired statistical formulas remain unchanged.
|
|
182
|
-
|
|
183
|
-
The default policy requires a demonstrated quality gain. An explicit version-2 `efficiency` policy can accept stable uncached-input savings with no observed correctness regression; a quality tie keeps its `inconclusive` verdict. Both objectives require independent validation, complete evidence and spending coverage. See the [predeclared cost example](docs/examples/eval-request.diagnosing-v2-efficiency.json).
|
|
184
|
-
|
|
185
|
-
Requests can also pin `executorTimeoutSeconds` (default 600) for both versions. A changed deadline requires a new plan and batch; previous timeouts and their available spending remain in the evidence.
|
|
152
|
+
See [revision comparisons](docs/skill-revisions.md) and [installed Skill delivery](docs/installed-skill-evaluation.md).
|
|
186
153
|
|
|
187
|
-
|
|
154
|
+
### Agent evaluation component
|
|
188
155
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
The same source gives baseline calibration and trigger runs JSON previews, frozen task selection, call/spending limits and per-call deadlines. Preview runs no verifier, oracle or agent; hard case/environment failures block live execution. JSON execution needs an explicit fresh group and the exact preview hash (`plan.planSha256` for calibration, `plan.sha256` for eval). Calibration measures baseline difficulty; trigger measures discovery. Neither establishes paired Skill benefit or authorizes adoption.
|
|
192
|
-
|
|
193
|
-
Failed Codex JSON calls can retain identity-bound partial usage from local numeric counters. Private transcript bodies stay out of exports, and partial usage never satisfies the final-cost or adoption gates.
|
|
156
|
+
Agent callers can preview a version-1 JSON request, then execute its pinned plan:
|
|
194
157
|
|
|
195
158
|
```bash
|
|
196
159
|
node dist/cli.js eval --request ./request.json --dry-run
|
|
@@ -198,9 +161,13 @@ node dist/cli.js eval --request ./request.json --plan-sha <plan.sha256>
|
|
|
198
161
|
node dist/cli.js report eval ./runs/revision-validation-001 --json --replay
|
|
199
162
|
```
|
|
200
163
|
|
|
201
|
-
|
|
164
|
+
The [component contract](docs/eval-component.md) defines quality and efficiency policies; `accept`, `reject` and `inconclusive` remain separate from the statistical verdict. Adoption requires complete, independent validation; nothing upgrades automatically.
|
|
165
|
+
|
|
166
|
+
[Shared planning](docs/eval-planning.md) covers ordinary/request plans, `--json`, task selection, balanced pair order, five-field spending stops, deadlines and plan-hash confirmation. Calibration measures baseline difficulty; trigger mode measures discovery. Neither proves paired benefit. Installed evaluations provide the same pinned native diff helper to both arms.
|
|
167
|
+
|
|
168
|
+
### Test rules and MCP setups
|
|
202
169
|
|
|
203
|
-
|
|
170
|
+
Create baseline and treatment project overlays next to `skillfit-experiment.json`:
|
|
204
171
|
|
|
205
172
|
```text
|
|
206
173
|
context7-experiment/
|
|
@@ -214,35 +181,19 @@ node dist/cli.js eval ./context7-experiment --bench ./my-context7-bench --agent
|
|
|
214
181
|
node dist/cli.js eval ./context7-experiment --bench ./my-context7-bench --agent codex --trials 5
|
|
215
182
|
```
|
|
216
183
|
|
|
217
|
-
Start with `skillfit mcp check`
|
|
218
|
-
|
|
219
|
-
For Codex MCP trials, skillfit passes a per-run trust override so the disposable project config loads without changing your Codex user config.
|
|
184
|
+
Start with `skillfit mcp check` for server discovery and catalog auditing; it calls no tool. Then measure outcomes with the [rules and MCP workflow](docs/config-experiments.md). For Codex MCP trials, a per-run trust override loads the disposable project config without changing user config.
|
|
220
185
|
|
|
221
186
|
## Share an evaluation
|
|
222
187
|
|
|
223
|
-
Try
|
|
188
|
+
Try a saved synthetic report, then use the manifest or directory printed by your own run:
|
|
224
189
|
|
|
225
190
|
```bash
|
|
226
191
|
node dist/cli.js report eval docs/examples/eval-manifest.synthetic.json
|
|
227
192
|
```
|
|
228
193
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
Version 0.11.0 also reads calibration directories/`_calibration.json` and trigger manifests in either format. Completed calibration stays completed and shows baseline difficulty; trigger reports show recall, false-trigger rate, precision, F1 and detection coverage. New sealed single-arm runs support native audit, offline delivery replay and portable export; standalone historical summaries stay unverified. These separate reports cannot authorize adoption or use paired acceptance-policy options. See [report types](docs/evaluation-reports.md#calibration-and-trigger-reports-source-after-npm-0101).
|
|
232
|
-
|
|
233
|
-
New reports separate cached and uncached input, output, and elapsed time, with spending per successful task that includes failed runs. They show surviving pairs alongside all agent invocations, and mark partial or missing timeout usage instead of treating it as zero. Chat-completions API responses retain explicit cached-input counts, including zero; missing or invalid counts stay unknown. Older manifests identify these fields as unrecorded. See [cost accounting](docs/eval-costs.md).
|
|
234
|
-
|
|
235
|
-
Version 0.11.0 records `invocationCosts` for primary Agent, judge and total spending, preserving failed/partial/unknown usage. Optional judge spending shares the batch stop lines; an explicitly enabled API judge with missing credentials fails instead of silently turning off. Historical missing judge receipts stay unknown. See [cost accounting](docs/eval-costs.md).
|
|
194
|
+
Markdown and JSON read paired, calibration and trigger records, including incomplete runs. Rendering a report does not authorize adoption. See [sharing](docs/sharing-results.md), [report states](docs/evaluation-reports.md) and [cost coverage](docs/eval-costs.md).
|
|
236
195
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
That source also preserves API-reported usage when an answer has an invalid format or HTTP status. Available response counters stay recorded alongside the raw response; missing fields remain unknown. The call remains an execution error and stops further dispatches, rather than losing its cost evidence.
|
|
240
|
-
|
|
241
|
-
That source can export a supported sealed native paired, calibration or trigger run, including new paired runs with judge receipts, as a portable directory with original receipts, matching inputs, pinned compiled CLI, checksums and a replay entry point. Export previews by default; missing inputs, required receipt/runtime support or an existing destination stop it. The whole package can move to another machine. Replay calls no model, preserves stopped/unknown costs and authorizes no upgrade. Review project data before sharing; see [portable replay packages](docs/replay-packages.md).
|
|
242
|
-
|
|
243
|
-
Version 0.10.1 seals input copies before dispatch: later edits/deletions of the original Skill, bench or request no longer prevent export/replay. The plan records snapshot integrity, local copy time and storage; a damaged declared snapshot is rejected. Historical runs still need matching recovered inputs. See [sealed evaluation inputs](docs/evaluation-input-snapshots.md).
|
|
244
|
-
|
|
245
|
-
Version 0.12.0 supports benches at a Git repository root: hashing and snapshots both exclude Git metadata. Previews reject output inside the bench, Skill/configuration inputs, compiled runtime or Git metadata, including directory aliases. Keep inputs and runs in sibling directories, such as `--bench ./my-bench --runs-root ./runs`.
|
|
196
|
+
Export a sealed run to a fresh portable directory. Preview first; `--yes` writes:
|
|
246
197
|
|
|
247
198
|
```bash
|
|
248
199
|
node dist/cli.js report eval ./runs/my-run --export ./exports/my-run --json
|
|
@@ -251,11 +202,13 @@ node ./exports/my-run/reproduce.mjs --verify-only
|
|
|
251
202
|
node ./exports/my-run/reproduce.mjs
|
|
252
203
|
```
|
|
253
204
|
|
|
254
|
-
|
|
205
|
+
[Portable replay](docs/replay-packages.md) verifies saved observations and runs trusted local verifiers, with zero model calls. [Sealed inputs](docs/evaluation-input-snapshots.md) preserve the original case and target. [Interruption](docs/evaluation-interruption.md) retains available spending; unknown usage stays unknown.
|
|
206
|
+
|
|
207
|
+
Version 0.13.0 adds an explicit [restore tool](docs/archive-delivery.md): fetch pinned bytes once, then replay historical study archives offline. Git originals and frozen reports stay available; normal installation and CLI commands do not fetch archives.
|
|
255
208
|
|
|
256
209
|
## Selectable Codex setup
|
|
257
210
|
|
|
258
|
-
|
|
211
|
+
Inspect 67 installable sources, then choose Skills relevant to your tasks. `--starter` selects 13 unvalidated-as-a-set Skills; `--all` selects all 67. Source hashes verify installation integrity, not efficacy. Selection needs network access; only `--yes` installs:
|
|
259
212
|
|
|
260
213
|
```bash
|
|
261
214
|
node dist/cli.js setup codex --list
|
|
@@ -263,9 +216,11 @@ node dist/cli.js setup codex --skill vibe-coding --skill diagnosing-bugs
|
|
|
263
216
|
node dist/cli.js setup codex --skill vibe-coding --skill diagnosing-bugs --yes
|
|
264
217
|
```
|
|
265
218
|
|
|
266
|
-
|
|
219
|
+
See the [selectable setup guide](docs/selectable-codex.md) for source provenance, retired entries and evidence limits.
|
|
220
|
+
|
|
221
|
+
### Portable Codex setup
|
|
267
222
|
|
|
268
|
-
Export
|
|
223
|
+
Export user-level Skills observed in at least two Codex sessions and your active global guidance:
|
|
269
224
|
|
|
270
225
|
```bash
|
|
271
226
|
node dist/cli.js bundle export ./personal-codex --dry-run
|
|
@@ -275,24 +230,24 @@ node ./personal-codex/setup.mjs --dry-run
|
|
|
275
230
|
node ./personal-codex/setup.mjs --yes
|
|
276
231
|
```
|
|
277
232
|
|
|
278
|
-
|
|
233
|
+
For options, including the full 65-Skill upstream catalog via `--upstream-lock`, see [portable setup](docs/portable-codex.md) and the [source audit](docs/codex-upstream-audit.md).
|
|
279
234
|
|
|
280
235
|
## The eight commands
|
|
281
236
|
|
|
282
237
|
| Command | What it does | Writes? |
|
|
283
238
|
|---|---|---|
|
|
284
239
|
| `doctor` | Detects installed agents, checks rules bloat, skill validity/conflicts, MCP declaration presence and JSON syntax where supported, and silent-failure traps (e.g. AGENTS.md that Claude Code never reads) | Never |
|
|
285
|
-
| `report` | Skill usage receipts from retained local session history: fires per skill, candidates with no observed fire, and raw catalog size before agent-side limits. Absence is a prioritization signal, not proof of uselessness. It also renders an existing evaluation manifest as Markdown with `report eval`. |
|
|
240
|
+
| `report` | Skill usage receipts from retained local session history: fires per skill, candidates with no observed fire, and raw catalog size before agent-side limits. Absence is a prioritization signal, not proof of uselessness. It also renders an existing evaluation manifest as Markdown with `report eval`. | `--export --yes` writes a fresh replay directory; otherwise read-only |
|
|
286
241
|
| `eval <target>` | Paired baseline/treatment runs for a Skill, rules overlay, or MCP overlay; deterministic verifier + optional blind LLM judge, token-cost delta, McNemar exact test, paired bootstrap CI, and graded facet-score CIs. `--mode trigger` installs a Skill and measures trigger recall / false-trigger rate from the agent transcript | `runs/` locally |
|
|
287
242
|
| `mcp check <spec>` | Handshakes with a stdio MCP server or a Streamable HTTP endpoint, requests `tools/list`, and audits tool names, descriptions, input schemas, and annotations. Never calls a tool | Never |
|
|
288
|
-
| `bench` | `init` scaffolds a bench directory with a working example task; `check` validates a bench offline (verifier self-tests, oracle/NOP gates, mock-arm probes, fixture hygiene, trigger-label coverage); `add --freeze` turns a failure you just watched into a permanent bench task, and `--decompose`
|
|
243
|
+
| `bench` | `init` scaffolds a bench directory with a working example task; `check` validates a bench offline (verifier self-tests, oracle/NOP gates, mock-arm probes, fixture hygiene, trigger-label coverage); `add --freeze` turns a failure you just watched into a permanent bench task, and `--decompose` confirms before one agent call to draft the verifier + oracle, admitted only if both gates pass | `init`/`add`/`edit`/`remove` write after confirmation; `check --calibrate` calls an agent and writes runs; plain `check` runs local verifiers |
|
|
289
244
|
| `install` | Managed-block rules (`<!-- SKILLFIT_START/END -->`, idempotent), skill copy with conflict protection, content-hash lockfile, post-install verification. Writes are staged first; if a write or verification fails, the installer rolls back changed target files, including the lockfile. Abrupt termination can still leave a partial install; re-run to reconcile. Your original is kept at `<file>.skillfit-bak` and the first backup wins, so later updates cannot overwrite it. `--dry-run` reports conflicts and exits 0; add `--strict` to make them fail (CI gates) | Only after confirmation |
|
|
290
245
|
| `setup codex` | Lists or installs a chosen set of pinned, verified upstream Skills and repository-owned Skills with global routing guidance; defaults to a dry run | Only with `--yes` |
|
|
291
246
|
| `bundle` | `export` creates a portable Codex profile from used local Skills and active global guidance | Only after confirmation |
|
|
292
247
|
|
|
293
|
-
|
|
248
|
+
### Bring your own bench
|
|
294
249
|
|
|
295
|
-
|
|
250
|
+
A bench is `bench.json`, fixtures and deterministic verifiers. Use the [seven-step authoring guide](docs/bench-authoring.md) and [format reference](benches/README.md); bundled cases teach the format rather than establish model quality.
|
|
296
251
|
|
|
297
252
|
## Our own data
|
|
298
253
|
|
|
@@ -307,7 +262,7 @@ We ran skillfit's harness on 8 popular workflow skills (24 baseline/treatment pa
|
|
|
307
262
|
| `security-and-hardening` | 0.00pp | +27.4% | No measurable gain, highest cost |
|
|
308
263
|
| 3 more | 0.00pp | +14.7~17.0% | No measurable gain |
|
|
309
264
|
|
|
310
|
-
|
|
265
|
+
See the [evidence index](evidence/README.md) and [current debugging study](docs/skill-evaluation-evidence.md) for dated scope and available records.
|
|
311
266
|
|
|
312
267
|
## Design principles
|
|
313
268
|
|
|
@@ -316,34 +271,20 @@ Read the dated reports in [evidence/](evidence/). Some historical raw manifests
|
|
|
316
271
|
- **Dry-run first.** Preview configuration changes before applying them; replacements keep backups and are verified. New bench/run/bundle artifacts preserve existing outputs through collision checks.
|
|
317
272
|
- **Honest numbers.** New efficacy submissions need a pinned, shareable manifest; some older reports lack downloadable raw manifests. Verdict semantics are frozen in [docs/metrics.md](docs/metrics.md): significance comes from an exact McNemar test over discordant pairs, deltas carry paired-bootstrap CIs, and runs below 8 tasks × 5 trials are labeled *indicative* even if their within-bench verdict is statistically significant.
|
|
318
273
|
|
|
319
|
-
|
|
274
|
+
### Disclaimer
|
|
320
275
|
|
|
321
276
|
Not affiliated with Anthropic, OpenAI, Moonshot AI, or any agent vendor. Evaluation results depend on model version, harness, and tasks — treat them as dated evidence, not eternal truth.
|
|
322
277
|
|
|
323
278
|
## Roadmap
|
|
324
279
|
|
|
325
|
-
[October
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
- [x] Paired A/B harness with blind judging
|
|
329
|
-
- [x] Statistical verdicts (McNemar exact + paired bootstrap CI, manifest v4)
|
|
330
|
-
- [x] Trigger rates for one Skill alone (`--mode trigger` on Kimi Code and Codex CLI: recall, false-trigger rate, Wilson CIs). Recall is an upper bound until that Skill competes with a real installed set. Codex detection is a `SKILL.md` read, not a Skill-invocation event.
|
|
331
|
-
- [x] Bench scaffolding (`bench init` + `bench check`), failure freezing (`--freeze`), git-history mining (`--from-commit`), difficulty calibration (`--calibrate`). `bench check` is an offline integrity check, not an agent-quality score.
|
|
332
|
-
- [x] Rules and MCP workspace A/B experiments with identical prompts
|
|
333
|
-
- [x] Read-only stdio MCP handshake and tool-catalog audit
|
|
334
|
-
- [ ] Claude Code trigger capture, machine-verified (blocked: needs working auth)
|
|
335
|
-
- [x] Optional `triggerClass` (`explicit`, `implicit`, `contextual`) on positive tasks. Unlabeled tasks stay in the pooled recall.
|
|
336
|
-
- [x] `--compete-installed` copies other user-level Skills into a trigger trial. System Skills and plugins outside the matrix directories are not copied. `installed` reports a long-body read separately from the task result; that read is not trigger recall.
|
|
337
|
-
- [ ] An installation recommendation. The July 2026 eight-skill study found no robust task-quality gain. The 67-Skill catalog and the 13-Skill starter set are not evaluated as sets.
|
|
338
|
-
- [x] npm distribution through [CLI/OIDC releases](docs/releases/trusted-publishing.md). See the [0.12.0 release record](docs/releases/0.12.0.md) for publication status and verification. Clone, `npm ci`, and `npm run build` remain valid.
|
|
339
|
-
- [x] Community bench and evidence submissions. Benches go in `benches/contrib`; evidence uses the Evidence submission issue template. CI runs the offline gates and does not call an agent.
|
|
340
|
-
- [ ] Cursor / Gemini CLI / OpenCode adapters
|
|
341
|
-
- [x] Streamable HTTP MCP preflight (`mcp check` transport `http`). It does not call a tool.
|
|
280
|
+
See the [October delivery roadmap](docs/growth-roadmap-2026-10.md), [changelog](CHANGELOG.md) and [0.13.1 release record](docs/releases/0.13.1.md).
|
|
281
|
+
|
|
282
|
+
Later work includes verified Claude Code trigger capture and additional agent adapters. The [evidence index](evidence/README.md) and [debugging study status](docs/skill-evaluation-evidence.md) retain the limits of current results. The 67-Skill catalog and 13-Skill starter set are not evaluated as sets.
|
|
342
283
|
|
|
343
284
|
## Contributing
|
|
344
285
|
|
|
345
|
-
|
|
286
|
+
Follow [CONTRIBUTING.md](CONTRIBUTING.md). Useful contributions include real-workflow cases, reproducible evidence and matrix corrections. [Security reports](SECURITY.md) have a separate channel.
|
|
346
287
|
|
|
347
|
-
|
|
288
|
+
### License
|
|
348
289
|
|
|
349
290
|
[MIT](LICENSE)
|