Skip to content

fix: align cypher node labels and improve skill routing reliability#71

Merged
sonesuke merged 3 commits intomainfrom
fix/cypher-label-and-skill-routing
Mar 30, 2026
Merged

fix: align cypher node labels and improve skill routing reliability#71
sonesuke merged 3 commits intomainfrom
fix/cypher-label-and-skill-routing

Conversation

@sonesuke
Copy link
Copy Markdown
Owner

Summary

  • Rename patentsPatent in SearchResult JSON key, serde, and JS extractor so cypher-rs derives :Patent label from the array key
  • Add total_results, top_assignees, top_cpcs to SearchResultSummary MCP response — models no longer need to read JSON files for metadata
  • Update all 3 skill descriptions with explicit "Always use this skill" routing to prevent models from calling MCP tools directly
  • Fix test assertions: tool-usetool-param for parameter value checks (requires skill-bench PR build: setup ci, devcontainer and task runner #21)
  • Change assignee-check tests from Google/Toyota to Salesforce to reduce unnecessary follow-up searches

Dependencies

  • Requires sonesuke/skill-bench#21 for tool-param assertion fix
  • Updates cypher-rs dependency to include array-key-as-label fix

Test plan

  • cargo test passes
  • mise run skill-test: 10/11 pass (functional-filing is flaky due to model non-determinism)

🤖 Generated with Claude Code

sonesuke and others added 3 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>
- Rename patents array key to "Patent" in SearchResult/JS/serde to
  match cypher-rs label derivation from array key
- Add total_results, top_assignees, top_cpcs to SearchResultSummary
  so models receive metadata without reading JSON files
- Update skill descriptions with "Always use this skill" phrasing to
  prevent models from bypassing skills to call MCP tools directly
- Fix test assertions from tool-use to tool-param for parameter checks
- Change assignee-check test company from Google/Toyota to Salesforce
  to reduce unnecessary follow-up searches

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonesuke sonesuke merged commit 0c14c69 into main Mar 30, 2026
4 checks passed
@sonesuke sonesuke deleted the fix/cypher-label-and-skill-routing branch March 30, 2026 10:49
sonesuke added a commit that referenced this pull request Mar 30, 2026
Breaking changes (from #71):
- SearchResult.patents JSON key renamed from "patents" to "Patent"
- SearchResultSummary adds new fields (total_results, top_assignees, top_cpcs)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
sonesuke added a commit that referenced this pull request Mar 30, 2026
Breaking changes (from #71):
- SearchResult.patents JSON key renamed from "patents" to "Patent"
- SearchResultSummary adds new fields (total_results, top_assignees, top_cpcs)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
sonesuke added a commit that referenced this pull request Mar 30, 2026
Breaking changes (from #71):
- SearchResult.patents JSON key renamed from "patents" to "Patent"
- SearchResultSummary adds new fields (total_results, top_assignees, top_cpcs)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
sonesuke added a commit that referenced this pull request Mar 30, 2026
Breaking changes (from #71):
- SearchResult.patents JSON key renamed from "patents" to "Patent"
- SearchResultSummary adds new fields (total_results, top_assignees, top_cpcs)

Co-authored-by: sonesuke <sonesuke@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant