package-json-commenter
Installation
SKILL.md
Package.json Command Commenter
Description
Ensures any new or modified package.json script commands include a paired // comment entry describing the command.
Trigger
Activate when the user asks to add, change, or generate package.json scripts, or when creating new npm commands in any context.
Response Pattern
- Identify each
package.jsonscript command being added or modified. - Add a matching
"<scriptName>//"comment entry with a concise description for every command created. - Keep comments near their associated command and preserve existing ordering/style.
- Validate that every new command has a corresponding comment entry before finishing.