feat: add npm installer cli for skill distribution#1
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis pull request introduces a new npm package for StyleKit style-prompts skills, including an MIT license, a Node.js CLI installer tool for managing skill payloads across Codex and Claude integrations, package metadata, and localized Chinese documentation with installation and publishing workflows. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI as CLI Script
participant FS as File System
participant Tool as Tool Directory<br/>(Codex/Claude)
User->>CLI: Run install command<br/>(--tool, --target, --force)
CLI->>CLI: Parse arguments
CLI->>FS: Validate payload files<br/>in root directory
alt Validation fails
CLI->>User: Error: Missing files
else Validation succeeds
CLI->>CLI: Auto-detect tool target<br/>or use --target
alt Dry-run mode
CLI->>User: Report planned changes
else Normal mode
CLI->>FS: Check if target exists
alt Target exists & !--force
CLI->>User: Error: Already installed
else OK to proceed
CLI->>FS: Recursively copy<br/>payload to target
FS->>Tool: Files installed
CLI->>User: Success message
end
end
end
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Documentation