Repository navigation
An agent skill and server instructions for using the tools (#175) - #205
Merged
Merged
Conversation
…tructions, and skill install (#175)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agents can now learn how to use the server's tools in three ways: short instructions sent when a client connects, the skill served as MCP resources, or the skill installed into the agent (#175). This also archives the finished tool-descriptions change (#82).
What changed
A
solidworks-mcpskill, shipped in the package atsrc/solidworks_mcp/skills/solidworks-mcp/. It is aSKILL.mdplus four reference files:workflows.md: a part, a revolve, a ring of holes, editing an existing model, an assembly and a drawing.selection-and-units.md: which inputs take metres, plane axes, and choosing faces and edges.errors-and-limits.md: what to do for eacherror_type, the tools that can't run yet, and the known faults with workarounds.vba-fallback.md: when to write VBA instead.I checked every fact against the tool code.
Server instructions are sent in the MCP initialize response (under 1500 characters). They cover:
get_model_infofirst;verify_model;The skill served as resources through FastMCP 3.4.9's
SkillProvider:skill://solidworks-mcp/SKILL.md, a manifest, and the reference files. Reading them needs no SolidWorks connection.solidworks-mcp skill installcopies the skill into~/.claude/skills/solidworks-mcp/.--projectinstalls into the current project and--dirinto any folder;--dry-runshows what it would write. It writes only that folder, keeps files the user added there, reads no client config, and needs no network.setupnow ends with a one-line hint about it.A test keeps the skill true. It fails if any backticked name in the skill or the instructions isn't a registered tool, an input field, an
error_typeor a known response key. It also fails if the skill sends an agent to a tool that can't run yet. It currently checks 127 names.Two description fixes:
batch_process_filesandgenerate_vba_batch_exportpointed agents tobatch_export, which can't run yet. They now point toexport_step.Docs: a README section, a new
docs/agents/agent-skill.mdpage, a link from the COM pitfalls page, the changelog, and a queue note saying that fixing a fault also edits the skill.Checks
mkdocs build --strictpasses.skill install --dry-runlists them.Still to do
Task 5.2: run the demo prompt on real SolidWorks with and without the skill, and record the difference. It needs a live run, and you choose the demo prompt, so it hasn't happened yet. It doesn't block merging.