Skip to content

feat: add batch commands and codex install - #95

Open
liuxy0551 wants to merge 2 commits into
masterfrom
feat_skill_batch_codex
Open

feat: add batch commands and codex install#95
liuxy0551 wants to merge 2 commits into
masterfrom
feat_skill_batch_codex

Conversation

@liuxy0551

Copy link
Copy Markdown
Collaborator

Summary

扩展 dt-skill CLI 的批量能力,并修复 Codex 全局安装的软链接 bug。

Changes

  • 批量上传upload/publish 接受多个路径参数,逐项通过 /api/v1/skills 发布,按 slug 去重、失败汇总;单路径容器目录仍走 package 打包(import-file),交互勾选默认全选。
  • 批量更新update 接受多个 slug 或路径(aaa/bbb-skillbbb-skill),去重后共用一次 scope,逐项处理,失败不阻断后续项。
  • Codex 安装修复:修正 getAgentSkillsDir/linkOrCopyToAgent 的 universal 判定,--global --agent codex~/.codex/skills 创建软链接(cursor / gemini-cli / github-copilot / opencode 一并修复),卸载时同步清理。
  • 文档与测试:README 补充安装位置与批量命令示例;新增 publish.test.ts / skills.test.ts / installer.test.ts 覆盖。

Test plan

  • cd dt-skill && npm run test:src → 24 files / 228 tests 全部通过
  • 设计文档见 docs/superpowers/specs/2026-08-13-dt-skill-batch-commands-codex-install-design.md

🤖 Generated with Claude Code

liuxy0551 and others added 2 commits August 13, 2026 15:02
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…cases

- keep amp/universal/replit global install on canonical ~/.agents/skills
- fail fast on invalid --category/--version in multi-path publish
- reject path args containing .. in update

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant