@shendu-sdt/sdt-dev-agent 0.1.1 → 0.1.3-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -31
- package/dist/catalog.d.ts +16 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/catalog.js +98 -0
- package/dist/catalog.js.map +1 -0
- package/dist/cli/index.js +72 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/add.d.ts +7 -0
- package/dist/commands/add.d.ts.map +1 -0
- package/dist/commands/add.js +267 -0
- package/dist/commands/add.js.map +1 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +31 -5
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/list.d.ts +4 -0
- package/dist/commands/list.d.ts.map +1 -0
- package/dist/commands/list.js +20 -0
- package/dist/commands/list.js.map +1 -0
- package/dist/commands/status.d.ts +2 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +66 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/core/capability-discovery.d.ts +23 -0
- package/dist/core/capability-discovery.d.ts.map +1 -0
- package/dist/core/capability-discovery.js +49 -0
- package/dist/core/capability-discovery.js.map +1 -0
- package/dist/core/init-options.d.ts +7 -1
- package/dist/core/init-options.d.ts.map +1 -1
- package/dist/core/init-options.js +64 -34
- package/dist/core/init-options.js.map +1 -1
- package/dist/core/init-plan.d.ts +25 -1
- package/dist/core/init-plan.d.ts.map +1 -1
- package/dist/core/init-plan.js +211 -37
- package/dist/core/init-plan.js.map +1 -1
- package/dist/core/init-writer.d.ts +17 -1
- package/dist/core/init-writer.d.ts.map +1 -1
- package/dist/core/init-writer.js +72 -19
- package/dist/core/init-writer.js.map +1 -1
- package/dist/core/manifest.d.ts +8 -0
- package/dist/core/manifest.d.ts.map +1 -0
- package/dist/core/manifest.js +16 -0
- package/dist/core/manifest.js.map +1 -0
- package/dist/core/mcp-config.d.ts +12 -0
- package/dist/core/mcp-config.d.ts.map +1 -0
- package/dist/core/mcp-config.js +60 -0
- package/dist/core/mcp-config.js.map +1 -0
- package/dist/core/project-inspector.d.ts +1 -0
- package/dist/core/project-inspector.d.ts.map +1 -1
- package/dist/core/project-inspector.js +4 -0
- package/dist/core/project-inspector.js.map +1 -1
- package/dist/core/remote-skill-installer.d.ts +16 -0
- package/dist/core/remote-skill-installer.d.ts.map +1 -0
- package/dist/core/remote-skill-installer.js +104 -0
- package/dist/core/remote-skill-installer.js.map +1 -0
- package/dist/core/workflow-installer.d.ts +22 -0
- package/dist/core/workflow-installer.d.ts.map +1 -0
- package/dist/core/workflow-installer.js +103 -0
- package/dist/core/workflow-installer.js.map +1 -0
- package/dist/types.d.ts +103 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +10 -2
- package/dist/types.js.map +1 -1
- package/dist/utils/follow-up-notice.d.ts +7 -0
- package/dist/utils/follow-up-notice.d.ts.map +1 -0
- package/dist/utils/follow-up-notice.js +29 -0
- package/dist/utils/follow-up-notice.js.map +1 -0
- package/dist/utils/init-welcome.d.ts.map +1 -1
- package/dist/utils/init-welcome.js +20 -33
- package/dist/utils/init-welcome.js.map +1 -1
- package/dist/utils/mastergo-notice.d.ts +7 -0
- package/dist/utils/mastergo-notice.d.ts.map +1 -0
- package/dist/utils/mastergo-notice.js +14 -0
- package/dist/utils/mastergo-notice.js.map +1 -0
- package/dist/utils/searchable-multi-select.js +5 -6
- package/dist/utils/searchable-multi-select.js.map +1 -1
- package/dist/utils/styled-select.d.ts.map +1 -1
- package/dist/utils/styled-select.js.map +1 -1
- package/dist/utils/terminal-theme.d.ts +4 -0
- package/dist/utils/terminal-theme.d.ts.map +1 -0
- package/dist/utils/terminal-theme.js +25 -0
- package/dist/utils/terminal-theme.js.map +1 -0
- package/package.json +6 -3
- package/templates/bootstrap/project-entry.md +17 -0
- package/templates/mcp/context7/claude-code/server.json +6 -0
- package/templates/mcp/context7/codex/config.toml +3 -0
- package/templates/mcp/mastergo/claude-code/server.json +6 -0
- package/templates/mcp/mastergo/codex/config.toml +4 -0
- package/templates/skills/builtin/bootstrap-project-docs/SKILL.md +16 -0
- package/templates/skills/builtin/bootstrap-project-docs/references/architecture-first.md +7 -0
- package/templates/skills/builtin/bootstrap-project-docs/references/tool-rules-follow-up.md +8 -0
- package/templates/skills/remote/catalog.json +68 -0
- package/templates/workflows/openspec/README.md +7 -0
- package/templates/workflows/openspec/claude-code/README.md +7 -0
- package/templates/workflows/openspec/codex/README.md +7 -0
- package/templates/AGENTS.md +0 -24
- package/templates/ARCHITECTURE.md +0 -26
- package/templates/capabilities/mcp/README.md +0 -8
- package/templates/capabilities/skills/README.md +0 -8
- package/templates/docs/ai-collaboration/README.md +0 -16
- package/templates/tools/claude-code/README.md +0 -8
- package/templates/tools/codex/README.md +0 -8
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# bootstrap-project-docs
|
|
2
|
+
|
|
3
|
+
用于初始化项目文档链路的必装 bootstrap skill。
|
|
4
|
+
|
|
5
|
+
执行顺序:
|
|
6
|
+
|
|
7
|
+
1. 先读取真实代码、目录结构、构建与测试入口。
|
|
8
|
+
2. 如果缺少 `ARCHITECTURE.md`,先生成或刷新它,并把无法确认的信息标记为“待确认”。
|
|
9
|
+
3. `ARCHITECTURE.md` 就绪后,再生成目标工具规则文档。
|
|
10
|
+
4. `Codex` 目标规则文档是 `AGENTS.md`;`Claude Code` 目标规则文档是 `CLAUDE.md`。
|
|
11
|
+
|
|
12
|
+
禁止事项:
|
|
13
|
+
|
|
14
|
+
- 不要把未确认信息写成事实。
|
|
15
|
+
- 不要跳过 `ARCHITECTURE.md` 直接生成规则文档。
|
|
16
|
+
- 不要把 bootstrap 入口文案当作最终项目规则文档。
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "code-review-expert",
|
|
4
|
+
"displayName": "code-review-expert",
|
|
5
|
+
"description": "默认安装的高质量代码审查 skill。",
|
|
6
|
+
"selection": "default",
|
|
7
|
+
"detectionMode": "single",
|
|
8
|
+
"supportedTools": ["codex", "claude-code"],
|
|
9
|
+
"source": "https://github.com/sanyuan0704/sanyuan-skills",
|
|
10
|
+
"installCommand": "npx -y skills add https://github.com/sanyuan0704/sanyuan-skills --yes --skill code-review-expert -a <tool> --copy"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "superpowers",
|
|
14
|
+
"displayName": "superpowers",
|
|
15
|
+
"description": "默认安装的 superpowers 核心工作流集合,仅包含 brainstorm、write-plan、execute-plan 和 using-superpowers。",
|
|
16
|
+
"selection": "default",
|
|
17
|
+
"detectionMode": "bundle",
|
|
18
|
+
"supportedTools": ["codex", "claude-code"],
|
|
19
|
+
"source": "https://github.com/obra/superpowers",
|
|
20
|
+
"installTargets": [
|
|
21
|
+
{ "skillName": "brainstorming", "targetDirName": "brainstorming" },
|
|
22
|
+
{ "skillName": "writing-plans", "targetDirName": "writing-plans" },
|
|
23
|
+
{ "skillName": "executing-plans", "targetDirName": "executing-plans" },
|
|
24
|
+
{ "skillName": "using-superpowers", "targetDirName": "using-superpowers" }
|
|
25
|
+
],
|
|
26
|
+
"installCommand": "npx -y skills add https://github.com/obra/superpowers --yes --skill brainstorming writing-plans executing-plans using-superpowers -a <tool> --copy"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "frontend-design",
|
|
30
|
+
"displayName": "frontend-design",
|
|
31
|
+
"description": "默认安装的高质量前端设计 skill。",
|
|
32
|
+
"selection": "default",
|
|
33
|
+
"detectionMode": "single",
|
|
34
|
+
"supportedTools": ["codex", "claude-code"],
|
|
35
|
+
"source": "https://github.com/anthropics/skills",
|
|
36
|
+
"installCommand": "npx -y skills add https://github.com/anthropics/skills --yes --skill frontend-design -a <tool> --copy"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "agent-browser",
|
|
40
|
+
"displayName": "agent-browser",
|
|
41
|
+
"description": "默认安装的浏览器自动化 skill。",
|
|
42
|
+
"selection": "default",
|
|
43
|
+
"detectionMode": "single",
|
|
44
|
+
"supportedTools": ["codex", "claude-code"],
|
|
45
|
+
"source": "https://github.com/vercel-labs/agent-browser",
|
|
46
|
+
"installCommand": "npx -y skills add https://github.com/vercel-labs/agent-browser --yes --skill agent-browser -a <tool> --copy"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "find-skills",
|
|
50
|
+
"displayName": "find-skills",
|
|
51
|
+
"description": "选装的 skills 发现辅助工具。",
|
|
52
|
+
"selection": "optional",
|
|
53
|
+
"detectionMode": "single",
|
|
54
|
+
"supportedTools": ["codex", "claude-code"],
|
|
55
|
+
"source": "https://github.com/vercel-labs/skills",
|
|
56
|
+
"installCommand": "npx -y skills add https://github.com/vercel-labs/skills --yes --skill find-skills -a <tool> --copy"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "skill-creator",
|
|
60
|
+
"displayName": "skill-creator",
|
|
61
|
+
"description": "选装的 skill 编写辅助工具。",
|
|
62
|
+
"selection": "optional",
|
|
63
|
+
"detectionMode": "single",
|
|
64
|
+
"supportedTools": ["codex", "claude-code"],
|
|
65
|
+
"source": "https://github.com/anthropics/skills",
|
|
66
|
+
"installCommand": "npx -y skills add https://github.com/anthropics/skills --yes --skill skill-creator -a <tool> --copy"
|
|
67
|
+
}
|
|
68
|
+
]
|
package/templates/AGENTS.md
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# AGENTS.md
|
|
2
|
-
|
|
3
|
-
## 用途
|
|
4
|
-
|
|
5
|
-
此文件由 `sdt-dev-agent init` 生成,作为项目级 AI 协作入口。
|
|
6
|
-
|
|
7
|
-
## 已知事实
|
|
8
|
-
|
|
9
|
-
- 项目名称:{{projectName}}
|
|
10
|
-
- 包管理器:{{packageManager}}
|
|
11
|
-
- 源码目录:{{sourceRoot}}
|
|
12
|
-
- 测试目录:{{testRoot}}
|
|
13
|
-
- 已选择工具:{{selectedTools}}
|
|
14
|
-
|
|
15
|
-
## 协作边界
|
|
16
|
-
|
|
17
|
-
- 修改前优先阅读现有架构文档和源码。
|
|
18
|
-
- 保持最小改动,并且改动必须直接对应当前任务。
|
|
19
|
-
- 优先遵循项目已有约定,不要用通用 AI 默认做法覆盖项目规则。
|
|
20
|
-
|
|
21
|
-
## 待补充
|
|
22
|
-
|
|
23
|
-
- 补充业务边界、关键模块和部署注意事项。
|
|
24
|
-
- 补充项目级评审规则和常见陷阱。
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# ARCHITECTURE.md
|
|
2
|
-
|
|
3
|
-
## 项目快照
|
|
4
|
-
|
|
5
|
-
- 项目名称:{{projectName}}
|
|
6
|
-
- 包管理器:{{packageManager}}
|
|
7
|
-
- 源码目录:{{sourceRoot}}
|
|
8
|
-
- 测试目录:{{testRoot}}
|
|
9
|
-
|
|
10
|
-
## 建议章节
|
|
11
|
-
|
|
12
|
-
### 运行入口
|
|
13
|
-
|
|
14
|
-
说明应用如何启动,以及主要运行入口位于哪些目录。
|
|
15
|
-
|
|
16
|
-
### 模块边界
|
|
17
|
-
|
|
18
|
-
列出主要业务模块,以及每个模块负责的范围。
|
|
19
|
-
|
|
20
|
-
### 外部依赖
|
|
21
|
-
|
|
22
|
-
记录关键第三方服务、MCP 工具和项目特有集成。
|
|
23
|
-
|
|
24
|
-
### 高风险区域
|
|
25
|
-
|
|
26
|
-
列出需要 AI 谨慎处理的文件、链路或业务域。
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# AI 协作
|
|
2
|
-
|
|
3
|
-
此目录由 `sdt-dev-agent init` 生成。
|
|
4
|
-
|
|
5
|
-
## 已安装概况
|
|
6
|
-
|
|
7
|
-
- 已选择工具:{{selectedTools}}
|
|
8
|
-
- 安装模式:{{installMode}}
|
|
9
|
-
- 能力包:{{capabilities}}
|
|
10
|
-
|
|
11
|
-
## 下一步建议
|
|
12
|
-
|
|
13
|
-
1. 检查 `AGENTS.md`,将占位内容替换为项目实际规则。
|
|
14
|
-
2. 检查 `ARCHITECTURE.md`,补充真实运行链路和模块边界。
|
|
15
|
-
3. 确认各工具目录下生成的工具专属文件。
|
|
16
|
-
4. 后续可在此目录继续补充 Bug 分析、Review 和 PR 协作模板。
|