Skip to content

test(skills): Fail the check when a skill cites a hosted tool that does not exist (#5) - #6

Draft
johnxie wants to merge 1 commit into
mainfrom
feat/check-tool-names
Draft

johnxie wants to merge 1 commit into
mainfrom
feat/check-tool-names

Conversation

@johnxie

@johnxie johnxie commented Nov 25, 2026

Copy link
Copy Markdown
Member

Summary

  • hosted-tools.json is a new snapshot of the tool list of the hosted server https://www.taskade.com/mcp. The first snapshot comes from the hosted tool table in the README of taskade/mcp: 58 names, and the read-only or write column of each. That table states no title and no other hint, so the snapshot leaves those fields out.
  • scripts/check.mjs has a new rule. A skill cites a tool as a snake_case word in backticks, for example `list_spaces`. Each such word in a .md file of a skill must be a tool in the snapshot, or a word in NOT_TOOL_NAMES. That list holds the 6 such words that the skills use today and that are not tools: the str_replace command of write_file, and 5 refusal codes. On failure, the check prints the file and the unknown name.
  • scripts/hosted-tools.mjs sync fetches the public tool list file https://www.taskade.com/.well-known/mcp/tools.json and writes the snapshot. Today the file answers 404, so the script stops and changes nothing. --self-test gives the reader a bad list for each case, and CI runs it.
  • CONTRIBUTING.md tells how to run the sync, and how to edit the snapshot by hand until the public file is available.
  • No skill changes, and the plugin version stays 0.7.0. The new files are outside plugins/taskade/.
  • scripts/sync-mcp.sh does not copy hosted-tools.json or scripts/hosted-tools.mjs to taskade/mcp, on purpose. Its list of output paths does not name them, and taskade/mcp keeps its own snapshot. A sync of this branch into a clone of taskade/mcp main changed 0 files.

How to test

node scripts/check.mjs --self-test          # 41 cases, 3 of them new
node scripts/check-triggers.mjs --self-test
./scripts/sync-mcp.sh --self-test
node scripts/hosted-tools.mjs --self-test
node scripts/check.mjs --base origin/main   # Check passed: 14 skills, version 0.7.0.
node scripts/hosted-tools.mjs sync          # exits 1 today: the file answers 404. No file changes.

To see a failure, add Call `list_everything`. to a skill and run node scripts/check.mjs. It exits 1 and prints the path of the skill file and the name list_everything.

What a merge triggers

  • The workflow Check runs on main.
  • The workflow "Sync to taskade/mcp" runs only on a taskade--v* tag, a release or a manual run. A merge starts none of them, so no sync pull request opens in taskade/mcp.
  • No version bump, no release and no tag.

Closes #5

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Approval should be deferred because the 58-tool snapshot and validation rely on manually transcribed external documentation while the hosted sync endpoint returns 404, preventing independent verification against the live server.

No open issues 🎉

What changed in this PR

Adds repository-level validation ensuring Taskade skills only cite hosted MCP tools present in a checked-in snapshot, with tooling to maintain the snapshot and CI coverage.

Changes:

  • Adds hosted-tools.json and scripts/hosted-tools.mjs for validating and synchronizing the hosted tool list.
  • Extends scripts/check.mjs to reject unknown backticked snake_case tool citations.
  • Documents snapshot maintenance and runs the hosted tool reader self-test in CI.
File Description
scripts/​hosted-tools.mjs Validates, formats, self-tests, and synchronizes the hosted MCP tool snapshot.
scripts/​check.mjs Checks cited skill tool names against the hosted snapshot and adds related validation cases.
hosted-tools.json Provides the initial snapshot of 58 hosted MCP tools and their read/write metadata.
CONTRIBUTING.md Documents hosted tool snapshot maintenance and validation procedures.
.github/​workflows/​check.yml Runs the hosted tool reader self-test in CI.

Review effort: Lite

@johnxie

johnxie commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

@deanzaka impact and QA notes for this PR. The PR is open. These notes describe the current head (7f2403a).

Impact

Area Who sees it What changes Risk
scripts/check.mjs Contributors Each snake_case word in backticks in a skill must be a tool in hosted-tools.json or a word in NOT_TOOL_NAMES. Else the check fails and names the file and the word. Low. A skill that cites a new tool now needs a snapshot update in the same PR.
hosted-tools.json Contributors A new snapshot of 58 hosted tool names, with a read or write mark. Low. It drifts when the hosted server adds or renames a tool.
scripts/hosted-tools.mjs, CI Contributors sync reads the public tool list file. CI runs the --self-test. Low. The file answers 404 today, so sync stops and changes nothing.
Skills and plugin Users No change. The version stays 0.7.0. None.

Release order: a merge starts no release, no tag and no sync to taskade/mcp. Rollback is a revert.

Before and after

No visible change for users.

BEFORE                                  AFTER
skill cites `list_everything`           skill cites `list_everything`
   |                                       |
   v                                       v
check.mjs -> pass                       check.mjs -> fail, exit 1
(unknown tool ships)                    "<skill file>: `list_everything` is not
                                         a tool in hosted-tools.json"

How to QA

# Step Expected result
1 gh pr checkout 6 -R taskade/skills, then node scripts/check.mjs Check passed: 14 skills, version 0.7.0.
2 node scripts/check.mjs --self-test and node scripts/hosted-tools.mjs --self-test Self-test passed: 41 cases, ... and Self-test passed: 9 cases.
3 Add Call `list_everything`. to the end of plugins/taskade/skills/taskade-markdown/SKILL.md, run node scripts/check.mjs, then git checkout the file Exit 1. The output names the skill file and list_everything.
4 node scripts/hosted-tools.mjs sync, then git status --short Exit 1, "the file answered HTTP 404, not 200", "hosted-tools.json did not change". No changed file.
5 With a real token: TASKADE_TOKEN=<your token> npx @taskade/cli doctor --verbose, and compare the tool names with jq -r '.tools[].name' hosted-tools.json The two lists hold the same 58 names.

This branch has not been deployed

No deployments
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.

A skill can cite a hosted tool name that does not exist

2 participants