Files
MyAiConfiguration/shared/skills/research/semantic-search/evals/evals.json
T
Julian LechnerandClaude Opus 5.5 79694fbaa2 fix(config): resolve Python reliably, add command-safety hook, harden CI
- Resolve Python 3.11+ through shared Resolve-Python.ps1/resolve-python.sh,
  which probe python, python3 and py -3 and skip the Windows Store alias.
  Build and capability checks fail early with an actionable message; doctor
  reports missing Python and the skipped hooks.
- Fix check-capabilities.sh comparing only the major version.
- Register Validate-CommandSafety as a PreToolUse hook for Claude and Codex;
  shared logic in command-safety.py catches rm -rf variants, git reset --hard,
  git clean -f, Remove-Item -Recurse, del/rd /s /q and nested shells.
- Replace duplicated placeholder chains in both builds with
  adapters/placeholders.tsv.
- Restore shell parity: add test-capabilities.sh, rename credentials.ps1 to
  with-credential.ps1 and qmd-warm.sh to start-qmd-warm.sh.
- CI: build once and pass generated/ as an artifact, lint Python with ruff
  and JavaScript modules with node --check, require SHA pins for all actions.
- Add evals for all own skills and update documentation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 09:34:54 +01:00

44 lines
2.5 KiB
JSON

{
"skill_name": "semantic-search",
"evals": [
{
"id": 1,
"prompt": "Somewhere in this repo we throttle outgoing emails so a user doesn't get more than a few notifications per hour. Where is that implemented?",
"expected_output": "Unknown identifier and behavior question, so semantic retrieval comes first. Should run the qmd-search command with a full behavior question (not a keyword list) and --top-k 5. Should open the top hits and verify them against current files before answering. Should continue with repository-research from verified hits (callers, tests, conventions).",
"assertions": [
"Runs node \"$HOME/.my-ai-configuration/qmd/qmd-search.mjs\" before any rg keyword search",
"Phrases the --query as a full question about behavior rather than a keyword list",
"Passes --top-k 5",
"Opens the top hits and verifies them against current files",
"Follows up with callers or tests of the verified implementation",
"Cites the verified file path and line"
],
"files": []
},
{
"id": 2,
"prompt": "Find every usage of the exact string `X-Correlation-Id` in the repo.",
"expected_output": "This is a known exact string. Should use rg directly without running semantic retrieval or loading research, repository-research, or semantic-search.",
"assertions": [
"Uses rg or a direct exact-string search for X-Correlation-Id",
"Does not run the qmd-search semantic retrieval command",
"Reports the matching paths"
],
"files": []
},
{
"id": 3,
"prompt": "How does the app decide which tenant database to connect to for a request? (Note: when you run the semantic search tool here it exits with code 1: \"daemon not running\".)",
"expected_output": "Should attempt the semantic search first with a full behavior question. On a non-zero exit, should continue with rg and state the limitation in one sentence. Should not stop or silently skip the step. Should verify results against current files and cite evidence.",
"assertions": [
"Attempts the qmd-search command first with a behavior question",
"After the non-zero exit, continues with rg-based searching",
"States the semantic search limitation in a single sentence",
"Does not abandon the investigation because of the tool failure",
"Verifies findings against current files and cites paths"
],
"files": []
}
]
}