Skip to content

fix(skills): reject whitespace-only title and instructions in POST /skills - #377

Merged
davidmckayv merged 2 commits into
CopilotKit:mainfrom
Ayush7614:fix/skills-whitespace-validation
Sep 5, 2026
Merged

fix(skills): reject whitespace-only title and instructions in POST /skills#377
davidmckayv merged 2 commits into
CopilotKit:mainfrom
Ayush7614:fix/skills-whitespace-validation

Conversation

@Ayush7614

Copy link
Copy Markdown
Contributor

POST /skills only rejected missing title/instructions, so ' ' created empty-looking skills stored verbatim by installSkill. Only slug had a shape check.

Change: require trimmed non-empty title/instructions (400 otherwise) and store trimmed values.

Verified: tsc clean; bun test server/tests/plugin-catalogue.test.ts + config.test.ts 130 pass. plugin-store integration failures are pre-existing Postgres-connection failures, identical on clean upstream/main.

@davidmckayv davidmckayv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed diff against current main; resolved CHANGELOG keep-both; validated locally (format + composed test run). CI green.

@davidmckayv
davidmckayv merged commit d0cbe81 into CopilotKit:main Sep 5, 2026
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