synthesis-reference-resolution-harness
Build and rerun the Synthesis reference-resolution benchmark workflow for this repository. Use when Codex needs to extract sanitized fixtures from the…
от leike0813★ 17 звёзд на GitHub
Установить synthesis-reference-resolution-harness в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Synthesis Reference Resolution Harness
Use this project-local development skill to repeat the full matcher workflow:
- Extract a sanitized fixture from a Synthesis SQLite DB.
- Build review seeds from trusted citeKeys and production matcher candidates.
- Review reference-to-paper matches in the local review UI.
- Run the policy experiment matrix against reviewed gold labels.
- Write an experiment report.
- Only then change matcher rules and rerun the harness.
Do not place this skill under skills_builtin/ or user-facing skills/. It is a repository development tool under .agents/skills/.
For realtime Synthesis Index inspection against current Zotero SQLite and plugin SQLite state, use the long-lived tools harness instead:
npx tsx tools/synthesis-index-harness/cli.ts serve --zotero-db "<zotero.sqlite>" --plugin-db "<zotero-agents.db>" --debug-db "artifact/synthesis-index-harness/debug.sqlite"
The tools harness runs the cluster-first canonical dedupe experiment and writes only to its debug SQLite database. This skill remains focused on sanitized fixture extraction, gold-label review, and benchmark evaluation.
Boundaries
- Treat
src/modules/synthesis/referenceMatcher.tsas the algorithm SSOT. Do not copy matcher logic into this skill. - Do not use
literature_matching_metadatafor literature-to-literature reference identity resolution. - Keep automatic
matchedprecision-first. Weak but useful evidence belongs insuggested_candidates/ review. - Do not write tokens, absolute local paths, Zotero profile paths, or complete note HTML into fixtures.
Workflow
1. Extract Fixture
Run from the repository root:
uv run --project="$HOME/.ar" --locked -- python .agents/skills/synthesis-reference-resolution-harness/scripts/extract_fixture.py --db "D:/Workspace/Artifact/Zotero-Skills/Zotero_data/zotero-agents/state/zotero-agents.db" --out "test/fixtures/synthesis-reference-resolution/current-library-vN"
This writes:
metadata.jsonlibrary.jsonreferences.jsongold-labels.draft.jsondanger-pairs.json
Rename or promote the reviewed draft to gold-labels.json only after semantic review.
2. Review Gold Labels
Read references/gold-labeling.md before editing gold labels. Every reference instance must receive exactly one label:
matchsuggested_matchambiguousexternal_or_missingignore
Dangerous near-neighbor pairs must stay explicit in danger-pairs.json.
3. Build Trusted CiteKey Review Labels
When the Zotero references notes contain old reference matching workflow citeKeys, use them as trusted positive evidence before semantic review:
uv run --project="$HOME/.ar" --locked -- python .agents/skills/synthesis-reference-resolution-harness/scripts/build_trusted_citekey_gold.py --db "D:/Workspace/Artifact/Zotero-Skills/Zotero_data/zotero-agents/state/zotero-agents.db" --fixture "test/fixtures/synthesis-reference-resolution/current-library-vN" --out-labels "gold-labels.trusted-citekey.review.json" --report "artifact/synthesis_reference_resolution_trusted_citekey_gold_review_YYYYMMDD.md" --summary "artifact/synthesis_reference_resolution_trusted_citekey_gold_review_YYYYMMDD.json"
This script does not overwrite gold-labels.json. It writes a review seed where uniquely mapped trusted citeKeys become match, unmapped citeKeys become suggested_match, ambiguous citeKeys become ambiguous, and rows without trusted citeKeys remain pending semantic review as external_or_missing.
4. Build Interactive Review Seed
Generate review-seed.json before launching the review UI:
npx tsx .agents/skills/synthesis-reference-resolution-harness/scripts/build_review_seed.ts --fixture "test/fixtures/synthesis-reference-resolution/current-library-vN"
The seed contains solid confirmed edges for high-precision evidence and dashed candidate edges for review. It never overwrites gold-labels.json.
5. Launch Review UI
npx tsx .agents/skills/synthesis-reference-resolution-harness/scripts/serve_review.ts --fixture "test/fixtures/synthesis-reference-resolution/current-library-vN"
Open the printed local URL. The UI reads review-seed.json, saves decisions to review-state.json, appends review-log.jsonl, and exports gold-labels.reviewed.json.
6. Validate Fixture
npx tsx .agents/skills/synthesis-reference-resolution-harness/scripts/validate_fixture.ts --fixture "test/fixtures/synthesis-reference-resolution/current-library-vN"
Validation must pass before evaluating policies.
7. Run Experiment Matrix
npx tsx .agents/skills/synthesis-reference-resolution-harness/scripts/evaluate_fixture.ts --fixture "test/fixtures/synthesis-reference-resolution/current-library-vN" --report "artifact/synthesis_reference_resolution_experiment_report_YYYYMMDD.md"
The script prints a single JSON object and optionally writes a Mar
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- agents/openai.yaml
- references/gold-labeling.md
- review-app/app.js
- review-app/index.html
- review-app/styles.css
- scripts/build_review_seed.ts
- scripts/build_trusted_citekey_gold.py
- scripts/evaluate_fixture.ts
- scripts/extract_fixture.py
- scripts/serve_review.ts
- scripts/validate_fixture.ts
FAQ
Что делает скилл synthesis-reference-resolution-harness?
Build and rerun the Synthesis reference-resolution benchmark workflow for this repository. Use when Codex needs to extract sanitized fixtures from the Synthesis DB, draft or review gold labels, run policy experiments against src/modules/synthesis/referenceMatcher.ts, compare precision/recall/candidate recall/danger false positives, or prepare a report before changing the literature-to-literature citation matcher.
Как установить скилл synthesis-reference-resolution-harness?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл synthesis-reference-resolution-harness запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…