skillfit 0.11.0 → 0.13.0
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 +68 -104
- package/README.zh-CN.md +68 -101
- package/benches/README.md +6 -2
- package/dist/cli.js +28 -16
- package/dist/commands/bench-calibration.js +5 -1
- package/dist/commands/bench-check-report.js +1 -34
- package/dist/commands/bench-draft.js +167 -0
- package/dist/commands/bench-draft.test.js +168 -0
- package/dist/commands/bench-manage.js +5 -4
- package/dist/commands/bench-source.js +101 -0
- package/dist/commands/bench-source.test.js +84 -0
- package/dist/commands/bench.js +157 -328
- package/dist/commands/eval-api-failure.test.js +46 -0
- package/dist/commands/eval-layout.test.js +126 -0
- 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/eval.js +7 -32
- package/dist/commands/install.js +14 -98
- package/dist/harness/agent-preflight.js +18 -2
- package/dist/harness/bench-check.js +277 -0
- package/dist/harness/bench-diagnostics.js +34 -0
- package/dist/harness/bench-location.js +29 -0
- package/dist/harness/bench-location.test.js +33 -0
- package/dist/harness/bench.js +8 -3
- package/dist/harness/eval-acceptance.js +1 -1
- package/dist/harness/eval-audit.js +2 -2
- package/dist/harness/eval-manifest.js +456 -0
- package/dist/harness/evaluation-layout.js +30 -0
- package/dist/harness/executors/api.js +20 -7
- package/dist/harness/executors/cli.js +15 -25
- package/dist/harness/experiment-session.js +5 -15
- package/dist/harness/hash.js +3 -1
- package/dist/harness/runner.js +5 -4
- package/dist/harness/single-arm-audit.js +1 -1
- package/dist/harness/trigger.js +1 -1
- package/dist/harness/verifier-timeout.js +8 -0
- package/dist/harness/verifier-timeout.test.js +76 -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/bench-authoring.md +23 -3
- package/docs/bench-drafting.md +75 -0
- package/docs/case-management.md +12 -1
- package/docs/eval-agent-preflight.md +15 -2
- package/docs/eval-costs.md +28 -2
- package/docs/eval-planning.md +14 -0
- package/docs/evaluation-input-snapshots.md +20 -4
- package/docs/evaluation-reports.md +1 -1
- package/docs/first-real-eval.md +28 -3
- package/docs/growth-roadmap-2026-10.md +23 -18
- package/docs/package-contents.md +73 -0
- package/docs/plans/2026-10-17-workflow-foundations.md +37 -2
- 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 +41 -0
- package/docs/releases/0.11.0-ci-registry-install.json +130 -0
- package/docs/releases/0.11.0-feature-smoke.json +1576 -0
- package/docs/releases/0.11.0-local-attempt-1.json +24 -0
- package/docs/releases/0.11.0-local-attempt-1.log +19 -0
- package/docs/releases/0.11.0-local-registry-install.json +25 -0
- package/docs/releases/0.11.0-registry-metadata.json +33 -0
- package/docs/releases/0.11.0-signatures.txt +12 -0
- package/docs/releases/0.11.0-verification.json +95 -0
- package/docs/releases/0.11.0.md +54 -11
- 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-feature-smoke.mjs +73 -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 +82 -0
- package/docs/releases/0.13.0-feature-smoke.mjs +114 -0
- package/docs/releases/0.13.0-preparation.json +102 -0
- package/docs/releases/0.13.0.md +61 -0
- package/docs/releases/archive-delivery-smoke.mjs +37 -0
- package/docs/reproducible-offline-example.md +1 -1
- package/docs/schemas/agent-preflight.schema.json +1 -1
- package/docs/verifier-contract.md +9 -0
- 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 +25 -5
- 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 -1162
- 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 -245
- 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 -238
- 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/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 -136
- package/dist/harness/executors/cli.test.js +0 -510
- 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,13 +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.0 --help
|
|
69
|
+
npx skillfit@0.13.0 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
|
+
|
|
76
|
+
In your project directory, replace `./my-skill` with a directory containing your `SKILL.md`:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
npx skillfit@0.13.0 bench init my-bench --kind command --dry-run
|
|
80
|
+
npx skillfit@0.13.0 bench init my-bench --kind command --yes
|
|
81
|
+
npx skillfit@0.13.0 bench check ./my-bench --json
|
|
82
|
+
npx skillfit@0.13.0 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
|
+
```
|
|
84
|
+
|
|
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
|
+
|
|
87
|
+
### Run from source
|
|
88
|
+
|
|
89
|
+
Build a local checkout:
|
|
75
90
|
|
|
76
91
|
```bash
|
|
77
92
|
git clone https://github.com/remote-controlled-man/skillfit.git
|
|
@@ -86,23 +101,13 @@ node dist/cli.js eval skills/skillfit --bench code-review --agent codex --dry-ru
|
|
|
86
101
|
node dist/cli.js install --agent codex --dry-run
|
|
87
102
|
```
|
|
88
103
|
|
|
89
|
-
The
|
|
90
|
-
|
|
91
|
-
`eval` now defaults to **5 trials per condition**. With 8 tasks, a paired experiment makes 80 agent executions. Five trials are a starting point; representative tasks and a healthy baseline matter as much as repetition. Inspect the dry-run count and follow [your first real evaluation](docs/first-real-eval.md) before making an efficacy claim.
|
|
92
|
-
|
|
93
|
-
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.
|
|
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)).
|
|
94
105
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
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).
|
|
98
|
-
|
|
99
|
-
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).
|
|
100
|
-
|
|
101
|
-
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).
|
|
102
107
|
|
|
103
108
|
## Build your own cases
|
|
104
109
|
|
|
105
|
-
|
|
110
|
+
Scaffold a code-editing teaching case, then replace its inputs with your real task:
|
|
106
111
|
|
|
107
112
|
```bash
|
|
108
113
|
node dist/cli.js bench init my-bench --kind command --dry-run
|
|
@@ -112,15 +117,9 @@ node dist/cli.js bench check my-bench --json
|
|
|
112
117
|
node dist/cli.js eval skills/skillfit --bench my-bench --agent codex --input workspace --trials 1 --max-calls 2 --dry-run
|
|
113
118
|
```
|
|
114
119
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
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).
|
|
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).
|
|
118
121
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
The same source checks the Agent environment in eval and baseline-calibration previews and before dispatch: CLI file availability, matrix capability matching and global same-name Skill conflicts. Known failures block before case probes or model calls; login remains explicitly unknown offline. Checks are sealed with the run and read without probing the current machine during report/replay. See [Agent environment preflight](docs/eval-agent-preflight.md).
|
|
122
|
-
|
|
123
|
-
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`:
|
|
124
123
|
|
|
125
124
|
```bash
|
|
126
125
|
node dist/cli.js bench list my-bench --json
|
|
@@ -129,51 +128,32 @@ node dist/cli.js bench edit my-bench example-task --set shouldTrigger=true --jso
|
|
|
129
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
|
|
130
129
|
```
|
|
131
130
|
|
|
132
|
-
|
|
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.
|
|
133
132
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
API executors and is separate from `--mode trigger`.
|
|
133
|
+
### Evaluate a real OSS task
|
|
134
|
+
|
|
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:
|
|
138
136
|
|
|
139
137
|
```bash
|
|
140
138
|
node dist/cli.js eval <skill-dir> --bench <bench-dir> --agent codex --input workspace --trials 5 --dry-run
|
|
141
139
|
node dist/cli.js bench check <bench-dir> --calibrate --agent codex --input workspace --trials 3 --dry-run
|
|
142
140
|
```
|
|
143
141
|
|
|
144
|
-
|
|
145
|
-
the issue request instead of revealing the fix message. Reports show per-check
|
|
146
|
-
results, usage coverage and installation evidence gaps. A single task informs
|
|
147
|
-
that task; it does not prove general benefit. Follow the [real OSS workflow](docs/oss-task-evaluation.md)
|
|
148
|
-
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).
|
|
149
143
|
|
|
150
|
-
|
|
144
|
+
### Compare Skill revisions
|
|
151
145
|
|
|
152
|
-
|
|
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:
|
|
153
147
|
|
|
154
148
|
```bash
|
|
155
149
|
node dist/cli.js eval ./skill-new --baseline-skill ./skill-old --mode installed --bench ./my-bench --agent codex --trials 5 --dry-run
|
|
156
150
|
```
|
|
157
151
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
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.
|
|
152
|
+
See [revision comparisons](docs/skill-revisions.md) and [installed Skill delivery](docs/installed-skill-evaluation.md).
|
|
161
153
|
|
|
162
|
-
|
|
154
|
+
### Agent evaluation component
|
|
163
155
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
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).
|
|
167
|
-
|
|
168
|
-
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.
|
|
169
|
-
|
|
170
|
-
Available in 0.10.0: optional `spendingBudget` sets five absolute batch stop lines. Reaching a line or losing complete final usage stops subsequent calls and retains spending; an in-flight call may overshoot. See the [guard contract](docs/eval-component.md#input-and-execution).
|
|
171
|
-
|
|
172
|
-
Version 0.11.0 unifies ordinary paired/trigger eval planning and paired Agent request plans. Ordinary eval also accepts `--json`, `--spending-budget <file>`, `--executor-timeout-seconds`, `--runs-root` and `--run-group`, plus `--pair-order` for paired runs; JSON execution requires the preview hash. Requests can set `baselineSkill: null` for no Skill installed by the harness in baseline, matching ordinary installed eval without `--baseline-skill`. This measures installation benefit but cannot authorize revision adoption. See [shared settings and confirmation](docs/eval-planning.md).
|
|
173
|
-
|
|
174
|
-
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.
|
|
175
|
-
|
|
176
|
-
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:
|
|
177
157
|
|
|
178
158
|
```bash
|
|
179
159
|
node dist/cli.js eval --request ./request.json --dry-run
|
|
@@ -181,9 +161,13 @@ node dist/cli.js eval --request ./request.json --plan-sha <plan.sha256>
|
|
|
181
161
|
node dist/cli.js report eval ./runs/revision-validation-001 --json --replay
|
|
182
162
|
```
|
|
183
163
|
|
|
184
|
-
|
|
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
|
|
185
169
|
|
|
186
|
-
|
|
170
|
+
Create baseline and treatment project overlays next to `skillfit-experiment.json`:
|
|
187
171
|
|
|
188
172
|
```text
|
|
189
173
|
context7-experiment/
|
|
@@ -197,29 +181,19 @@ node dist/cli.js eval ./context7-experiment --bench ./my-context7-bench --agent
|
|
|
197
181
|
node dist/cli.js eval ./context7-experiment --bench ./my-context7-bench --agent codex --trials 5
|
|
198
182
|
```
|
|
199
183
|
|
|
200
|
-
Start with `skillfit mcp check`
|
|
201
|
-
|
|
202
|
-
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.
|
|
203
185
|
|
|
204
186
|
## Share an evaluation
|
|
205
187
|
|
|
206
|
-
Try
|
|
188
|
+
Try a saved synthetic report, then use the manifest or directory printed by your own run:
|
|
207
189
|
|
|
208
190
|
```bash
|
|
209
191
|
node dist/cli.js report eval docs/examples/eval-manifest.synthetic.json
|
|
210
192
|
```
|
|
211
193
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
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).
|
|
215
|
-
|
|
216
|
-
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).
|
|
217
|
-
|
|
218
|
-
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).
|
|
219
195
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
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).
|
|
196
|
+
Export a sealed run to a fresh portable directory. Preview first; `--yes` writes:
|
|
223
197
|
|
|
224
198
|
```bash
|
|
225
199
|
node dist/cli.js report eval ./runs/my-run --export ./exports/my-run --json
|
|
@@ -228,11 +202,13 @@ node ./exports/my-run/reproduce.mjs --verify-only
|
|
|
228
202
|
node ./exports/my-run/reproduce.mjs
|
|
229
203
|
```
|
|
230
204
|
|
|
231
|
-
|
|
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.
|
|
232
208
|
|
|
233
209
|
## Selectable Codex setup
|
|
234
210
|
|
|
235
|
-
|
|
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:
|
|
236
212
|
|
|
237
213
|
```bash
|
|
238
214
|
node dist/cli.js setup codex --list
|
|
@@ -240,9 +216,11 @@ node dist/cli.js setup codex --skill vibe-coding --skill diagnosing-bugs
|
|
|
240
216
|
node dist/cli.js setup codex --skill vibe-coding --skill diagnosing-bugs --yes
|
|
241
217
|
```
|
|
242
218
|
|
|
243
|
-
|
|
219
|
+
See the [selectable setup guide](docs/selectable-codex.md) for source provenance, retired entries and evidence limits.
|
|
244
220
|
|
|
245
|
-
|
|
221
|
+
### Portable Codex setup
|
|
222
|
+
|
|
223
|
+
Export user-level Skills observed in at least two Codex sessions and your active global guidance:
|
|
246
224
|
|
|
247
225
|
```bash
|
|
248
226
|
node dist/cli.js bundle export ./personal-codex --dry-run
|
|
@@ -252,24 +230,24 @@ node ./personal-codex/setup.mjs --dry-run
|
|
|
252
230
|
node ./personal-codex/setup.mjs --yes
|
|
253
231
|
```
|
|
254
232
|
|
|
255
|
-
|
|
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).
|
|
256
234
|
|
|
257
235
|
## The eight commands
|
|
258
236
|
|
|
259
237
|
| Command | What it does | Writes? |
|
|
260
238
|
|---|---|---|
|
|
261
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 |
|
|
262
|
-
| `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 |
|
|
263
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 |
|
|
264
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 |
|
|
265
|
-
| `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 |
|
|
266
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 |
|
|
267
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` |
|
|
268
246
|
| `bundle` | `export` creates a portable Codex profile from used local Skills and active global guidance | Only after confirmation |
|
|
269
247
|
|
|
270
|
-
|
|
248
|
+
### Bring your own bench
|
|
271
249
|
|
|
272
|
-
|
|
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.
|
|
273
251
|
|
|
274
252
|
## Our own data
|
|
275
253
|
|
|
@@ -284,7 +262,7 @@ We ran skillfit's harness on 8 popular workflow skills (24 baseline/treatment pa
|
|
|
284
262
|
| `security-and-hardening` | 0.00pp | +27.4% | No measurable gain, highest cost |
|
|
285
263
|
| 3 more | 0.00pp | +14.7~17.0% | No measurable gain |
|
|
286
264
|
|
|
287
|
-
|
|
265
|
+
See the [evidence index](evidence/README.md) and [current debugging study](docs/skill-evaluation-evidence.md) for dated scope and available records.
|
|
288
266
|
|
|
289
267
|
## Design principles
|
|
290
268
|
|
|
@@ -293,34 +271,20 @@ Read the dated reports in [evidence/](evidence/). Some historical raw manifests
|
|
|
293
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.
|
|
294
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.
|
|
295
273
|
|
|
296
|
-
|
|
274
|
+
### Disclaimer
|
|
297
275
|
|
|
298
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.
|
|
299
277
|
|
|
300
278
|
## Roadmap
|
|
301
279
|
|
|
302
|
-
[October
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
- [x] Paired A/B harness with blind judging
|
|
306
|
-
- [x] Statistical verdicts (McNemar exact + paired bootstrap CI, manifest v4)
|
|
307
|
-
- [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.
|
|
308
|
-
- [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.
|
|
309
|
-
- [x] Rules and MCP workspace A/B experiments with identical prompts
|
|
310
|
-
- [x] Read-only stdio MCP handshake and tool-catalog audit
|
|
311
|
-
- [ ] Claude Code trigger capture, machine-verified (blocked: needs working auth)
|
|
312
|
-
- [x] Optional `triggerClass` (`explicit`, `implicit`, `contextual`) on positive tasks. Unlabeled tasks stay in the pooled recall.
|
|
313
|
-
- [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.
|
|
314
|
-
- [ ] 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.
|
|
315
|
-
- [x] npm publication (`skillfit@0.10.1`), with [verified CLI/OIDC publication and registry installation](docs/releases/0.10.1-verification.json). `npx skillfit` installs that release. Clone, `npm ci`, and `npm run build` remain valid.
|
|
316
|
-
- [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.
|
|
317
|
-
- [ ] Cursor / Gemini CLI / OpenCode adapters
|
|
318
|
-
- [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.0 release record](docs/releases/0.13.0.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.
|
|
319
283
|
|
|
320
284
|
## Contributing
|
|
321
285
|
|
|
322
|
-
|
|
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.
|
|
323
287
|
|
|
324
|
-
|
|
288
|
+
### License
|
|
325
289
|
|
|
326
290
|
[MIT](LICENSE)
|