@liangjie559567/ultrapower 5.1.0 → 5.2.0

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.
Files changed (78) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/__tests__/skills.test.js +3 -2
  3. package/dist/__tests__/skills.test.js.map +1 -1
  4. package/dist/hooks/nexus/__tests__/config.test.d.ts +2 -0
  5. package/dist/hooks/nexus/__tests__/config.test.d.ts.map +1 -0
  6. package/dist/hooks/nexus/__tests__/config.test.js +38 -0
  7. package/dist/hooks/nexus/__tests__/config.test.js.map +1 -0
  8. package/dist/hooks/nexus/__tests__/consciousness-sync.test.d.ts +2 -0
  9. package/dist/hooks/nexus/__tests__/consciousness-sync.test.d.ts.map +1 -0
  10. package/dist/hooks/nexus/__tests__/consciousness-sync.test.js +28 -0
  11. package/dist/hooks/nexus/__tests__/consciousness-sync.test.js.map +1 -0
  12. package/dist/hooks/nexus/__tests__/data-collector.test.d.ts +2 -0
  13. package/dist/hooks/nexus/__tests__/data-collector.test.d.ts.map +1 -0
  14. package/dist/hooks/nexus/__tests__/data-collector.test.js +61 -0
  15. package/dist/hooks/nexus/__tests__/data-collector.test.js.map +1 -0
  16. package/dist/hooks/nexus/__tests__/improvement-puller.test.d.ts +2 -0
  17. package/dist/hooks/nexus/__tests__/improvement-puller.test.d.ts.map +1 -0
  18. package/dist/hooks/nexus/__tests__/improvement-puller.test.js +49 -0
  19. package/dist/hooks/nexus/__tests__/improvement-puller.test.js.map +1 -0
  20. package/dist/hooks/nexus/__tests__/session-end-hook.test.d.ts +2 -0
  21. package/dist/hooks/nexus/__tests__/session-end-hook.test.d.ts.map +1 -0
  22. package/dist/hooks/nexus/__tests__/session-end-hook.test.js +39 -0
  23. package/dist/hooks/nexus/__tests__/session-end-hook.test.js.map +1 -0
  24. package/dist/hooks/nexus/config.d.ts +5 -0
  25. package/dist/hooks/nexus/config.d.ts.map +1 -0
  26. package/dist/hooks/nexus/config.js +35 -0
  27. package/dist/hooks/nexus/config.js.map +1 -0
  28. package/dist/hooks/nexus/consciousness-sync.d.ts +8 -0
  29. package/dist/hooks/nexus/consciousness-sync.d.ts.map +1 -0
  30. package/dist/hooks/nexus/consciousness-sync.js +57 -0
  31. package/dist/hooks/nexus/consciousness-sync.js.map +1 -0
  32. package/dist/hooks/nexus/data-collector.d.ts +4 -0
  33. package/dist/hooks/nexus/data-collector.d.ts.map +1 -0
  34. package/dist/hooks/nexus/data-collector.js +23 -0
  35. package/dist/hooks/nexus/data-collector.js.map +1 -0
  36. package/dist/hooks/nexus/improvement-puller.d.ts +9 -0
  37. package/dist/hooks/nexus/improvement-puller.d.ts.map +1 -0
  38. package/dist/hooks/nexus/improvement-puller.js +42 -0
  39. package/dist/hooks/nexus/improvement-puller.js.map +1 -0
  40. package/dist/hooks/nexus/session-end-hook.d.ts +16 -0
  41. package/dist/hooks/nexus/session-end-hook.d.ts.map +1 -0
  42. package/dist/hooks/nexus/session-end-hook.js +49 -0
  43. package/dist/hooks/nexus/session-end-hook.js.map +1 -0
  44. package/dist/hooks/nexus/types.d.ts +54 -0
  45. package/dist/hooks/nexus/types.d.ts.map +1 -0
  46. package/dist/hooks/nexus/types.js +2 -0
  47. package/dist/hooks/nexus/types.js.map +1 -0
  48. package/dist/hooks/session-end/__tests__/nexus-integration.test.d.ts +2 -0
  49. package/dist/hooks/session-end/__tests__/nexus-integration.test.d.ts.map +1 -0
  50. package/dist/hooks/session-end/__tests__/nexus-integration.test.js +30 -0
  51. package/dist/hooks/session-end/__tests__/nexus-integration.test.js.map +1 -0
  52. package/dist/hooks/session-end/index.d.ts.map +1 -1
  53. package/dist/hooks/session-end/index.js +15 -0
  54. package/dist/hooks/session-end/index.js.map +1 -1
  55. package/docs/CLAUDE.md +1 -1
  56. package/docs/README.codex.md +6 -0
  57. package/docs/plans/2026-01-17-visual-brainstorming.md +571 -0
  58. package/docs/plans/2026-02-26-nexus-design.md +354 -0
  59. package/docs/plans/2026-02-26-nexus-implementation-plan.md +2538 -0
  60. package/docs/plans/2026-02-26-phase2-active-learning-design.md +377 -0
  61. package/docs/standards/contribution-guide.md +52 -1
  62. package/docs/superpowers/plans/2026-01-22-document-review-system.md +301 -0
  63. package/docs/superpowers/plans/2026-02-19-visual-brainstorming-refactor.md +523 -0
  64. package/docs/superpowers/specs/2026-01-22-document-review-system-design.md +136 -0
  65. package/docs/superpowers/specs/2026-02-19-visual-brainstorming-refactor-design.md +162 -0
  66. package/hooks/run-hook.cmd +32 -29
  67. package/package.json +4 -2
  68. package/skills/brainstorming/spec-document-reviewer-prompt.md +50 -0
  69. package/skills/brainstorming/visual-companion.md +249 -0
  70. package/skills/nexus/SKILL.md +35 -0
  71. package/skills/nexus/nexus-evolve/SKILL.md +31 -0
  72. package/skills/nexus/nexus-review/SKILL.md +39 -0
  73. package/skills/nexus/nexus-status/SKILL.md +31 -0
  74. package/skills/release/SKILL.md +3 -0
  75. package/skills/requesting-code-review/SKILL.md +1 -1
  76. package/skills/using-superpowers/references/codex-tools.md +25 -0
  77. package/skills/writing-plans/plan-document-reviewer-prompt.md +52 -0
  78. /package/hooks/{session-start.sh → session-start} +0 -0
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: nexus-status
3
+ description: 查看 nexus 系统状态
4
+ triggers:
5
+ - nexus status
6
+ - nexus-status
7
+ - nexus health
8
+ ---
9
+
10
+ # nexus Status
11
+
12
+ 显示 nexus 系统当前状态。
13
+
14
+ ## 执行步骤
15
+
16
+ 1. 读取 `.omc/nexus/config.json`,检查 `enabled` 字段(若字段缺失则默认为 false)确认 nexus 是否启用
17
+ 2. 检查 `.omc/nexus/events/` 目录,统计待推送事件数量。如果该目录不存在,将计数视为 0。
18
+ 3. 检查 `.omc/nexus/improvements/` 目录,统计待审批改进数量。如果该目录不存在,将计数视为 0。
19
+ 4. 读取 `.omc/nexus/config.json` 中的 `last_sync` 字段作为最后同步时间;若该字段不存在则显示 'never'。
20
+ 5. 输出状态摘要:
21
+
22
+ ```
23
+ nexus Status
24
+ ============
25
+ Enabled: true/false
26
+ Pending events: N
27
+ Pending improvements: N
28
+ Last sync: <timestamp or "never">
29
+ ```
30
+
31
+ 如果 nexus 未启用,提示用户配置 `.omc/nexus/config.json`。
@@ -27,10 +27,12 @@ description: ultrapower 的自动化发布工作流
27
27
  - `.claude-plugin/plugin.json`
28
28
  - `.claude-plugin/marketplace.json`(`"version"` 和 `"source.version"` 两处)
29
29
  - `docs/CLAUDE.md`(`<!-- OMC:VERSION:X.Y.Z -->`)
30
+ - `CLAUDE.md`(`ultrapower vX.Y.Z 规范体系位于 \`docs/standards/\``)
30
31
  - `README.md`(版本徽章和标题)
31
32
 
32
33
  > ⚠️ `marketplace.json` 是安装器读取的入口,版本不同步会导致用户始终安装旧版本。
33
34
  > ⚠️ `docs/CLAUDE.md` 是 `/ultrapower:omc-setup` 下载的模板,版本不同步会导致用户安装后显示旧版本号。
35
+ > ⚠️ `CLAUDE.md` 是开发规范文档,版本引用不同步会导致开发者参考错误的规范版本。
34
36
 
35
37
  ### 2. 运行测试
36
38
  ```bash
@@ -82,6 +84,7 @@ gh release create v<version> --title "v<version> - <title>" --notes "<release no
82
84
  | `.claude-plugin/plugin.json` | `"version": "X.Y.Z"` |
83
85
  | `.claude-plugin/marketplace.json` | `"version": "X.Y.Z"` 和 `"source": { "version": "X.Y.Z" }` |
84
86
  | `docs/CLAUDE.md` | `<!-- OMC:VERSION:X.Y.Z -->` |
87
+ | `CLAUDE.md` | `ultrapower vX.Y.Z 规范体系位于 \`docs/standards/\`` |
85
88
  | `README.md` | 标题 + 版本徽章 |
86
89
 
87
90
  ## 语义化版本
@@ -58,7 +58,7 @@ HEAD_SHA=$(git rev-parse HEAD)
58
58
 
59
59
  [Dispatch superpowers:code-reviewer subagent]
60
60
  WHAT_WAS_IMPLEMENTED: Verification and repair functions for conversation index
61
- PLAN_OR_REQUIREMENTS: Task 2 from docs/plans/deployment-plan.md
61
+ PLAN_OR_REQUIREMENTS: Task 2 from docs/superpowers/plans/deployment-plan.md
62
62
  BASE_SHA: a7981ec
63
63
  HEAD_SHA: 3df7661
64
64
  DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
@@ -0,0 +1,25 @@
1
+ # Codex Tool Mapping
2
+
3
+ Skills use Claude Code tool names. When you encounter these in a skill, use your platform equivalent:
4
+
5
+ | Skill references | Codex equivalent |
6
+ |-----------------|------------------|
7
+ | `Task` tool (dispatch subagent) | `spawn_agent` |
8
+ | Multiple `Task` calls (parallel) | Multiple `spawn_agent` calls |
9
+ | Task returns result | `wait` |
10
+ | Task completes automatically | `close_agent` to free slot |
11
+ | `TodoWrite` (task tracking) | `update_plan` |
12
+ | `Skill` tool (invoke a skill) | Skills load natively — just follow the instructions |
13
+ | `Read`, `Write`, `Edit` (files) | Use your native file tools |
14
+ | `Bash` (run commands) | Use your native shell tools |
15
+
16
+ ## Subagent dispatch requires collab
17
+
18
+ Add to your Codex config (`~/.codex/config.toml`):
19
+
20
+ ```toml
21
+ [features]
22
+ collab = true
23
+ ```
24
+
25
+ This enables `spawn_agent`, `wait`, and `close_agent` for skills like `dispatching-parallel-agents` and `subagent-driven-development`.
@@ -0,0 +1,52 @@
1
+ # Plan Document Reviewer Prompt Template
2
+
3
+ Use this template when dispatching a plan document reviewer subagent.
4
+
5
+ **Purpose:** Verify the plan chunk is complete, matches the spec, and has proper task decomposition.
6
+
7
+ **Dispatch after:** Each plan chunk is written
8
+
9
+ ```
10
+ Task tool (general-purpose):
11
+ description: "Review plan chunk N"
12
+ prompt: |
13
+ You are a plan document reviewer. Verify this plan chunk is complete and ready for implementation.
14
+
15
+ **Plan chunk to review:** [PLAN_FILE_PATH] - Chunk N only
16
+ **Spec for reference:** [SPEC_FILE_PATH]
17
+
18
+ ## What to Check
19
+
20
+ | Category | What to Look For |
21
+ |----------|------------------|
22
+ | Completeness | TODOs, placeholders, incomplete tasks, missing steps |
23
+ | Spec Alignment | Chunk covers relevant spec requirements, no scope creep |
24
+ | Task Decomposition | Tasks atomic, clear boundaries, steps actionable |
25
+ | File Structure | Files have clear single responsibilities, split by responsibility not layer |
26
+ | File Size | Would any new or modified file likely grow large enough to be hard to reason about as a whole? |
27
+ | Task Syntax | Checkbox syntax (`- [ ]`) on steps for tracking |
28
+ | Chunk Size | Each chunk under 1000 lines |
29
+
30
+ ## CRITICAL
31
+
32
+ Look especially hard for:
33
+ - Any TODO markers or placeholder text
34
+ - Steps that say "similar to X" without actual content
35
+ - Incomplete task definitions
36
+ - Missing verification steps or expected outputs
37
+ - Files planned to hold multiple responsibilities or likely to grow unwieldy
38
+
39
+ ## Output Format
40
+
41
+ ## Plan Review - Chunk N
42
+
43
+ **Status:** Approved | Issues Found
44
+
45
+ **Issues (if any):**
46
+ - [Task X, Step Y]: [specific issue] - [why it matters]
47
+
48
+ **Recommendations (advisory):**
49
+ - [suggestions that don't block approval]
50
+ ```
51
+
52
+ **Reviewer returns:** Status, Issues (if any), Recommendations
File without changes