Skip to content

fix(corsair): write the upload commands in the skills instead of running the server's (0.1.9) - #16

Merged
PranayHaldiya merged 1 commit into
mainfrom
fix/no-server-commands
Nov 24, 2026
Merged

PranayHaldiya merged 1 commit into
mainfrom
fix/no-server-commands

Conversation

@PranayHaldiya

Copy link
Copy Markdown
Collaborator

The Claude plugin directory refused 0.1.8 (91e3bc4) with one blocking finding, DP_TAG_BAN "Runs script text returned by a server":

A skill, command or agent in your plugin tells Claude to run, exactly as given, shell or script text that a server returns at run time ... An upload or download command written out in the plugin's own text is allowed where the server fills in only an address, a token or a file name, each in single quotes.

The finding doesn't name a file, so this changes every place that matches. The same text was in 0.1.7; the check is newer than that scan.

Changes

  • corsair-files. The curl command is now written out in the skill. upload_file with path already returns url on its own. The skill takes only that from the reply, says not to run any command the reply contains, and shows how to keep the attachment's name (;filename= inside the same quotes).
  • corsair-skills. The tar | curl folder upload is written out in the skill. From the reply it takes only the upload link: the https:// address at the end of the reply's command.
  • corsair-data. Search's read_data example for an app it can't search, and a job's read/cancel, are now hints to write your own call from, not snippets to run as given.
  • README. Says the commands live in the skills and Corsair only fills in the link.
  • Version 0.1.9.

Evidence

  • node scripts/check.mjs: ok: 2 plugins, 9 skills
  • claude plugin validate --profile directory --strict plugins/corsair: passed
  • Live run of the skill's command against production. I called upload_file with a path and took only url from the reply, then ran:
    curl -sS --fail-with-body -F 'file=@<path>;filename=plugin-upload-check-0.1.9.txt' '<url>'
    It printed Saved plugin-upload-check-0.1.9.txt as fil_EHS_Ehd8JFA (47 bytes), exit 0, so the renamed upload worked. The file stays in Pranay's Files under tests/.
  • I didn't run the folder upload live, because it would add a test skill to the library. Its command matches the server's own (apps/cloud-runtime/src/tools/skill-sentences.mjs on hub main) character for character, apart from how the folder path is quoted.

After merge

The directory scans the new commit (or press "Submit latest version"). Then request publishing.

…ing the server's; 0.1.9

The Claude directory refused 0.1.8 (DP_TAG_BAN): a skill told Claude to run
shell or script text the connector returns. The rule allows an upload
command written out in the plugin's own text when the server fills in only
an address, token or file name in single quotes.

- corsair-files: the curl command is in the skill; upload_file's reply
  gives only the url
- corsair-skills: the tar | curl command is in the skill; the reply gives
  only the upload link
- corsair-data: search's read_data example and a job's read/cancel are
  hints to write your own call from, not code to run as given
@PranayHaldiya
PranayHaldiya merged commit 3dbe534 into main Nov 24, 2026
4 checks passed
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