Feat/claude skills management (#237)
* feat(skills): add Claude Skills management feature Implement complete Skills management system with repository discovery, installation, and lifecycle management capabilities. Backend: - Add SkillService with GitHub integration and installation logic - Implement skill commands (list, install, uninstall, check updates) - Support multiple skill repositories with caching Frontend: - Add Skills management page with repository browser - Create SkillCard and RepoManager components - Add badge, card, table UI components - Integrate Skills API with Tauri commands Files: 10 files changed, 1488 insertions(+) * feat(skills): integrate Skills feature into application Integrate Skills management feature with complete dependency updates, configuration structure extensions, and internationalization support. Dependencies: - Add @radix-ui/react-visually-hidden for accessibility - Add anyhow, zip, serde_yaml, tempfile for Skills backend - Enable chrono serde feature for timestamp serialization Backend Integration: - Extend MultiAppConfig with SkillStore field - Implement skills.json migration from legacy location - Register SkillService and skill commands in main app - Export skill module in commands and services Frontend Integration: - Add Skills page route and dialog in App - Integrate Skills UI with main navigation Internationalization: - Add complete Chinese translations for Skills UI - Add complete English translations for Skills UI Code Quality: - Remove redundant blank lines in gemini_mcp.rs - Format log statements in mcp.rs Tests: - Update import_export_sync tests for SkillStore - Update mcp_commands tests for new structure Files: 16 files changed, 540 insertions(+), 39 deletions(-) * style(skills): improve SkillsPage typography and spacing Optimize visual hierarchy and readability of Skills page: - Reduce title size from 2xl to lg with tighter tracking - Improve description spacing and color contrast - Enhance empty state with better text hierarchy - Use explicit gray colors for better dark mode support * feat(skills): support custom subdirectory path for skill scanning Add optional skillsPath field to SkillRepo to enable scanning skills from subdirectories (e.g., "skills/") instead of repository root. Changes: - Backend: Add skillsPath field with subdirectory scanning logic - Frontend: Add skillsPath input field and display in repo list - Presets: Add cexll/myclaude repo with skills/ subdirectory - Code quality: Fix clippy warnings (dedup logic, string formatting) Backward compatible: skillsPath is optional, defaults to root scanning. * refactor(skills): improve repo manager dialog layout Optimize dialog structure with fixed header and scrollable content: - Add flexbox layout with fixed header and scrollable body - Remove outer border wrapper for cleaner appearance - Match SkillsPage design pattern for consistency - Improve UX with better content hierarchy
This commit is contained in:
@@ -26,7 +26,8 @@
|
||||
"format": "Format",
|
||||
"formatSuccess": "Formatted successfully",
|
||||
"formatError": "Format failed: {{error}}",
|
||||
"copy": "Copy"
|
||||
"copy": "Copy",
|
||||
"view": "View"
|
||||
},
|
||||
"apiKeyInput": {
|
||||
"placeholder": "Enter API Key",
|
||||
@@ -606,5 +607,49 @@
|
||||
"deleteTitle": "Confirm Delete",
|
||||
"deleteMessage": "Are you sure you want to delete prompt \"{{name}}\"?"
|
||||
}
|
||||
},
|
||||
"skills": {
|
||||
"manage": "Skills",
|
||||
"title": "Claude Skills Management",
|
||||
"description": "Discover and install Claude skills from popular repositories to extend Claude Code/Codex capabilities",
|
||||
"refresh": "Refresh",
|
||||
"refreshing": "Refreshing...",
|
||||
"repoManager": "Repository Management",
|
||||
"count": "{{count}} skills",
|
||||
"empty": "No skills available",
|
||||
"emptyDescription": "Add skill repositories to discover available skills",
|
||||
"addRepo": "Add Skill Repository",
|
||||
"loading": "Loading...",
|
||||
"installed": "Installed",
|
||||
"install": "Install",
|
||||
"installing": "Installing...",
|
||||
"uninstall": "Uninstall",
|
||||
"uninstalling": "Uninstalling...",
|
||||
"view": "View",
|
||||
"noDescription": "No description",
|
||||
"loadFailed": "Failed to load",
|
||||
"installSuccess": "Skill {{name}} installed",
|
||||
"installFailed": "Failed to install",
|
||||
"uninstallSuccess": "Skill {{name}} uninstalled",
|
||||
"uninstallFailed": "Failed to uninstall",
|
||||
"repo": {
|
||||
"title": "Manage Skill Repositories",
|
||||
"description": "Add or remove GitHub skill repository sources",
|
||||
"url": "Repository URL",
|
||||
"urlPlaceholder": "owner/name or https://github.com/owner/name",
|
||||
"branch": "Branch",
|
||||
"branchPlaceholder": "main",
|
||||
"path": "Skills Path",
|
||||
"pathPlaceholder": "skills (optional, leave empty for root)",
|
||||
"add": "Add Repository",
|
||||
"list": "Added Repositories",
|
||||
"empty": "No repositories",
|
||||
"invalidUrl": "Invalid repository URL format",
|
||||
"addSuccess": "Repository {{owner}}/{{name}} added, detected {{count}} skills",
|
||||
"addFailed": "Failed to add",
|
||||
"removeSuccess": "Repository {{owner}}/{{name}} removed",
|
||||
"removeFailed": "Failed to remove",
|
||||
"skillCount": "{{count}} skills detected"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
"format": "格式化",
|
||||
"formatSuccess": "格式化成功",
|
||||
"formatError": "格式化失败:{{error}}",
|
||||
"copy": "复制"
|
||||
"copy": "复制",
|
||||
"view": "查看"
|
||||
},
|
||||
"apiKeyInput": {
|
||||
"placeholder": "请输入API Key",
|
||||
@@ -606,5 +607,49 @@
|
||||
"deleteTitle": "确认删除",
|
||||
"deleteMessage": "确定要删除提示词 \"{{name}}\" 吗?"
|
||||
}
|
||||
},
|
||||
"skills": {
|
||||
"manage": "Skills",
|
||||
"title": "Claude Skills 管理",
|
||||
"description": "从流行的仓库发现并安装 Claude 技能,扩展 Claude Code/Codex 的能力",
|
||||
"refresh": "刷新",
|
||||
"refreshing": "刷新中...",
|
||||
"repoManager": "仓库管理",
|
||||
"count": "共 {{count}} 个技能",
|
||||
"empty": "暂无可用技能",
|
||||
"emptyDescription": "添加技能仓库以发现可用的技能",
|
||||
"addRepo": "添加技能仓库",
|
||||
"loading": "加载中...",
|
||||
"installed": "已安装",
|
||||
"install": "安装",
|
||||
"installing": "安装中...",
|
||||
"uninstall": "卸载",
|
||||
"uninstalling": "卸载中...",
|
||||
"view": "查看",
|
||||
"noDescription": "暂无描述",
|
||||
"loadFailed": "加载失败",
|
||||
"installSuccess": "技能 {{name}} 已安装",
|
||||
"installFailed": "安装失败",
|
||||
"uninstallSuccess": "技能 {{name}} 已卸载",
|
||||
"uninstallFailed": "卸载失败",
|
||||
"repo": {
|
||||
"title": "管理技能仓库",
|
||||
"description": "添加或删除 GitHub 技能仓库源",
|
||||
"url": "仓库 URL",
|
||||
"urlPlaceholder": "owner/name 或 https://github.com/owner/name",
|
||||
"branch": "分支",
|
||||
"branchPlaceholder": "main",
|
||||
"path": "技能路径",
|
||||
"pathPlaceholder": "skills (可选,留空扫描根目录)",
|
||||
"add": "添加仓库",
|
||||
"list": "已添加的仓库",
|
||||
"empty": "暂无仓库",
|
||||
"invalidUrl": "无效的仓库 URL 格式",
|
||||
"addSuccess": "仓库 {{owner}}/{{name}} 已添加,识别到 {{count}} 个技能",
|
||||
"addFailed": "添加失败",
|
||||
"removeSuccess": "仓库 {{owner}}/{{name}} 已删除",
|
||||
"removeFailed": "删除失败",
|
||||
"skillCount": "识别到 {{count}} 个技能"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user