kld-sdd 2.4.7 → 2.4.8
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/lib/init.js +201 -12
- package/package.json +1 -1
- package/skywalk-sdd/index.js +2206 -132
- package/templates/ci/github-actions-sdd.yml +67 -0
- package/templates/ci/gitlab-ci-sdd.yml +44 -0
- package/templates/git-hooks/pre-commit-sdd-check.js +155 -0
- package/templates/git-hooks/pre-push-sdd-check.js +41 -0
- package/templates/hooks/claude/hooks/sdd-post-tool.js +120 -0
- package/templates/hooks/claude/hooks/sdd-pre-tool.js +38 -0
- package/templates/hooks/claude/hooks/sdd-prompt.js +66 -0
- package/templates/hooks/claude/hooks/sdd-stop.js +82 -0
- package/templates/hooks/claude/settings.json +46 -0
- package/templates/opsx-commands/apply.md +70 -4
- package/templates/opsx-commands/archive.md +116 -55
- package/templates/opsx-commands/check.md +123 -4
- package/templates/opsx-commands/design.md +14 -4
- package/templates/opsx-commands/explore.md +14 -4
- package/templates/opsx-commands/propose.md +10 -4
- package/templates/opsx-commands/spec.md +14 -4
- package/templates/opsx-commands/task.md +14 -4
- package/templates/opsx-commands/test.md +41 -4
- package/templates/skills/opsx-apply/SKILL.md +59 -3
- package/templates/skills/opsx-archive/SKILL.md +94 -47
- package/templates/skills/opsx-check/SKILL.md +47 -3
- package/templates/skills/opsx-design/SKILL.md +8 -3
- package/templates/skills/opsx-explore/SKILL.md +8 -3
- package/templates/skills/opsx-propose/SKILL.md +8 -3
- package/templates/skills/opsx-spec/SKILL.md +8 -3
- package/templates/skills/opsx-task/SKILL.md +8 -3
- package/templates/skills/opsx-test/SKILL.md +8 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---
|
|
1
|
+
---
|
|
2
2
|
name: opsx-task
|
|
3
3
|
description: "局部任务拆解技能 - 针对单一 Capability 创建 DAG 任务清单"
|
|
4
4
|
argument-hint: "[change-name] [capability-name] [上下文文件...]"
|
|
@@ -35,9 +35,14 @@ allowed-tools:
|
|
|
35
35
|
> - ⛔ **隔离红线**:绝对禁止跨目录读取同级其他 Capability 的文档
|
|
36
36
|
|
|
37
37
|
|
|
38
|
+
> **🖥️ 跨平台执行规则**
|
|
39
|
+
> - 先确认当前终端工作目录是项目根目录;若不是,先 `cd` 到项目根目录。
|
|
40
|
+
> - Telemetry 命令默认使用 `--project=.`,兼容 Windows、macOS、Linux。
|
|
41
|
+
> - 在 Windows Bash / Git Bash / Claude Bash 中,禁止裸写 Windows 反斜杠绝对路径(如 `D:\project\demo`);如必须使用绝对路径,请写成正斜杠路径或加引号。
|
|
42
|
+
> - 不要省略 `--source=opsx-command` 与 `--session-id=<会话ID>`。
|
|
38
43
|
> **📊 Telemetry(必做,不得跳过)**
|
|
39
|
-
> - 阶段开始:`node skywalk-sdd/log.js start --command=task --project
|
|
40
|
-
> - 阶段结束:`node skywalk-sdd/log.js end --event-id=<event_id> --result=success|failure --summary="摘要"
|
|
44
|
+
> - 阶段开始:`node skywalk-sdd/log.js start --command=task --project=. --change=<变更名称> --agent=<Agent类型> --source=opsx-command --session-id=<会话ID>`(保存 event_id)
|
|
45
|
+
> - 阶段结束:`node skywalk-sdd/log.js end --event-id=<event_id> --command=task --project=. --change=<变更名称> --agent=<Agent类型> --source=opsx-command --session-id=<会话ID> --result=success|failure --summary="摘要"`
|
|
41
46
|
|
|
42
47
|
---
|
|
43
48
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---
|
|
1
|
+
---
|
|
2
2
|
name: opsx-test
|
|
3
3
|
description: "单元测试执行技能 - 自动检测并运行测试用例,输出结构化测试报告"
|
|
4
4
|
argument-hint: "[test-scope] [options]"
|
|
@@ -23,9 +23,14 @@ allowed-tools:
|
|
|
23
23
|
> - 用户可在完成代码实现后主动调用
|
|
24
24
|
> - 输出标准化测试报告,便于质量追踪
|
|
25
25
|
|
|
26
|
+
> **🖥️ 跨平台执行规则**
|
|
27
|
+
> - 先确认当前终端工作目录是项目根目录;若不是,先 `cd` 到项目根目录。
|
|
28
|
+
> - Telemetry 命令默认使用 `--project=.`,兼容 Windows、macOS、Linux。
|
|
29
|
+
> - 在 Windows Bash / Git Bash / Claude Bash 中,禁止裸写 Windows 反斜杠绝对路径(如 `D:\project\demo`);如必须使用绝对路径,请写成正斜杠路径或加引号。
|
|
30
|
+
> - 不要省略 `--source=opsx-command` 与 `--session-id=<会话ID>`。
|
|
26
31
|
> **📊 Telemetry(必做,不得跳过)**
|
|
27
|
-
> - 阶段开始:`node skywalk-sdd/log.js start --command=test --project
|
|
28
|
-
> - 阶段结束:`node skywalk-sdd/log.js end --event-id=<event_id> --result=success|failure --summary="摘要"
|
|
32
|
+
> - 阶段开始:`node skywalk-sdd/log.js start --command=test --project=. --change=<变更名称> --agent=<Agent类型> --source=opsx-command --session-id=<会话ID>`(保存 event_id)
|
|
33
|
+
> - 阶段结束:`node skywalk-sdd/log.js end --event-id=<event_id> --command=test --project=. --change=<变更名称> --agent=<Agent类型> --source=opsx-command --session-id=<会话ID> --result=success|failure --summary="摘要"`
|
|
29
34
|
|
|
30
35
|
---
|
|
31
36
|
|