[All Platforms][CLI&UX] skill install reports a changed source for skill names over 255 characters
Description
nemoclaw <sandbox> skill install accepts a SKILL.md name of any length. A name longer than 255 characters passes validation and then fails with a message about the source changing, which it didn't.
validateSkillName() (src/lib/skill-name.ts:9) checks the characters but not the length. createStatelessSkillSnapshot() uses the name as a directory name (src/lib/skill-install.ts:195-200), and a 256-character directory name fails with ENAMETOOLONG. The catch at skill-install.ts:285 turns every error into source-changed, so the CLI prints "Skill source changed while it was being read; no sandbox add began."
Reproduction Steps
- Use an isolated HOME with one registered sandbox named
mysb, and stubopenshellanddocker. - Create skill directories whose SKILL.md
nameis 64, 255, and 256 lowercaseacharacters. - Run
nemoclaw mysb skill install <dir>for each.
Environment
- macOS 26.5.2 (arm64), Node.js v22.22.3
- NemoClaw
mainat4c44f7cc8; the skill files are unchanged on5f6eb3232 - Real CLI (
node bin/nemoclaw.js) with stubbed OpenShell, so the 64 and 255 cases stop later at the gateway check
Debug Output
-- name length 64
✓ Validated SKILL.md (name: aaaa…, 1 file(s))
Unable to verify sandbox 'mysb' against the live OpenShell gateway.
-- name length 255
✓ Validated SKILL.md (name: aaaa…, 1 file(s))
Unable to verify sandbox 'mysb' against the live OpenShell gateway.
-- name length 256
Skill source changed while it was being read; no sandbox add began.
Logs
This is minor, since nobody is likely to write a 256-character skill name, but the error sends people looking for a file change that never happened. The Agent Skills spec (https://agentskills.io/specification) caps name at 64 characters. Adding that limit to validateSkillName() would give a clear error up front. It would also help to keep filesystem errors separate from real source changes in createStatelessSkillSnapshot().
Checklist
- [x] I confirmed this bug is reproducible
- [x] I searched existing issues and this is not a duplicate