Skip to content

fix: document cypher patterns and forbid direct JSON file access#70

Merged
sonesuke merged 4 commits intomainfrom
fix/use-cypher-not-json
Mar 30, 2026
Merged

fix: document cypher patterns and forbid direct JSON file access#70
sonesuke merged 4 commits intomainfrom
fix/use-cypher-not-json

Conversation

@sonesuke
Copy link
Copy Markdown
Owner

Summary

  • Add explicit execute_cypher query patterns to patent-search and patent-assignee-check skills
  • Add CRITICAL instruction: "Do NOT read the output JSON file directly"
  • Add Patent node field reference table to patent-search
  • Brings patent-assignee-check in line with patent-fetch which already had this guard

Context

Models were bypassing execute_cypher and reading /tmp/patent-search-*.json files
directly with cat | python3, causing 9+ redundant file reads per test run.
This reduced targeting/functional-with-spec test from 323s to 146s (55% faster).

Test plan

  • npx prettier --write and claude plugin validate . pass
  • patent-kit targeting test: JSON reads dropped from 9 to 0, execute_cypher usage increased

🤖 Generated with Claude Code

sonesuke and others added 4 commits March 30, 2026 06:00
Add explicit cypher query examples and a CRITICAL instruction to use
execute_cypher for all result retrieval. Models were bypassing cypher
and reading /tmp/patent-search-*.json with python3, causing redundant
file reads and wasted time.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace runner.sh and tools/*.sh with skill-bench CLI native TOML format.
Move test cases from agents/skill-bench/cases/ to tests/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Resolve conflicts:
- Update test files to use 'tool-param' instead of 'tool-use'
- Keep HEAD versions of test prompts (Google/Toyota) for consistency
- Accept main branch updates to Cargo.lock, models.rs, and other core files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonesuke sonesuke merged commit 6c9397a into main Mar 30, 2026
4 checks passed
@sonesuke sonesuke deleted the fix/use-cypher-not-json branch March 30, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants