feat: import skills from url - #107
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughA new CLI subcommand Changes
Sequence DiagramsequenceDiagram
actor User as CLI User
participant cli.js
participant cmdImportSkills as CLI Command Handler
participant urlHandler as URL Resolver
participant fs as File System
participant http as HTTP Client
participant importFunc as importSkillsFromZipFile()
User->>cli.js: $ cli import-skills --url <url>
cli.js->>cmdImportSkills: cmdImportSkills(argv)
cmdImportSkills->>urlHandler: Parse & validate arguments
alt GitHub URL detected
urlHandler->>urlHandler: Transform to archive URL
end
cmdImportSkills->>fs: Create temp directory
cmdImportSkills->>http: Stream download ZIP
http-->>fs: Write skills.zip
cmdImportSkills->>importFunc: importSkillsFromZipFile(tempDir, ...)
importFunc-->>cmdImportSkills: Return skill data (JSON)
cmdImportSkills->>User: Output JSON to stdout
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 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
Tests
Summary by CodeRabbit
New Features
Tests