From b188059bd192ef227f76fd0f16e3e2385eea48da Mon Sep 17 00:00:00 2001 From: Jiri Puc Date: Wed, 6 May 2026 14:20:06 +0200 Subject: [PATCH] docs: remove all target_paths references from skill docs and README Update SKILL.md, yaml-schema.md, examples.md, check-format.md, and README.md to reflect the removal of target_paths. Deterministic scripts now use project_root from context.json to find files. Harness judge instructions tell the agent which files to read. Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 10 +--- docs/check-format.md | 48 +++++----------- skills/eval-banana/SKILL.md | 39 ++++--------- skills/eval-banana/references/examples.md | 60 +++++++------------- skills/eval-banana/references/yaml-schema.md | 23 ++------ 5 files changed, 55 insertions(+), 125 deletions(-) diff --git a/README.md b/README.md index d41bf54..4b88539 100644 --- a/README.md +++ b/README.md @@ -36,14 +36,12 @@ schema_version: 1 id: output_file_exists type: deterministic description: Verify that output.json was generated. -target_paths: - - output.json script: | import json, sys from pathlib import Path ctx = json.loads(Path(sys.argv[1]).read_text()) - target = ctx["targets"][0] - assert target["exists"], f"{target['path']} not found" + output = Path(ctx["project_root"]) / "output.json" + assert output.exists(), "output.json not found" ``` ### Harness judge check @@ -53,10 +51,8 @@ schema_version: 1 id: summary_is_accurate type: harness_judge description: The generated summary accurately reflects source data. -target_paths: - - summary.txt - - source_data.json instructions: | + Read summary.txt and source_data.json. Compare the summary against the source data. Score 1 if accurate, 0 if it contains fabricated claims. ``` diff --git a/docs/check-format.md b/docs/check-format.md index eccfba4..2b0cfc4 100644 --- a/docs/check-format.md +++ b/docs/check-format.md @@ -14,12 +14,11 @@ All check types share these fields: | `id` | string | Yes | Unique identifier (`[a-zA-Z0-9_-]` only) | | `type` | string | Yes | One of: `deterministic`, `harness_judge` | | `description` | string | Yes | Human-readable description | -| `target_paths` | list[string] | No | Files/directories the check operates on | | `tags` | list[string] | No | Tags for filtering (future use) | ## Deterministic checks -Run a Python script that asserts conditions about target files. +Run a Python script that asserts conditions about project files. | Field | Type | Required | Description | |---|---|---|---| @@ -30,11 +29,10 @@ Exactly one of `script` or `script_path` must be set. ### How it works -1. Target paths are resolved relative to the project root -2. A `context.json` file is written with check metadata and resolved targets -3. The script runs as `python