mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-07 02:57:51 +00:00
Add a validate-only endpoint (POST /api/cli/v1/skills/{namespace}/publish/validate)
that runs the full pre-publish validation chain without persisting anything.
This allows developers to check their package locally before actual publishing.
The validation covers:
- SKILL.md existence and frontmatter parsing (name, description required)
- File extension whitelist and size limits
- Credential leak scanning with line-number precision
- Slug generation and name conflict detection
CLI usage: `skillhub publish <path> --dry-run`
Closes #429
|
||
|---|---|---|
| .. | ||
| auth-commands.test.ts | ||
| doctor-command.test.ts | ||
| error-output.test.ts | ||
| help-command.test.ts | ||
| install-command.test.ts | ||
| list-command.test.ts | ||
| publish-command.test.ts | ||
| publish-dry-run.test.ts | ||
| remove-command.test.ts | ||
| search-command.test.ts | ||
| update-command.test.ts | ||
| version-command.test.ts | ||
| whoami-command.test.ts | ||