claude-everything-workflow 0.1.4 → 0.1.6

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 (35) hide show
  1. package/README.md +50 -19
  2. package/hooks/check-code-size.js +111 -0
  3. package/package.json +1 -1
  4. package/rules/02-code-size.md +11 -2
  5. package/rules/common/hooks.md +2 -1
  6. package/rules/common/skills-learning.md +7 -0
  7. package/scripts/install.ps1 +80 -43
  8. package/scripts/install.sh +56 -3
  9. package/scripts/verify-harness.js +156 -26
  10. package/settings.json +8 -40
  11. package/skills/brainstorming/scripts/frame-template.html +25 -26
  12. package/skills/brainstorming/scripts/helper.js +101 -22
  13. package/skills/brainstorming/scripts/server.cjs +399 -30
  14. package/skills/brainstorming/scripts/start-server.sh +70 -9
  15. package/skills/brainstorming/scripts/stop-server.sh +66 -2
  16. package/skills/brainstorming/visual-companion.md +33 -22
  17. package/skills/learn/.gitkeep +0 -0
  18. package/skills/learn/README.md +15 -0
  19. package/skills/learn/debugging/.gitkeep +0 -0
  20. package/skills/learn/pr/.gitkeep +0 -0
  21. package/skills/learn/testing/.gitkeep +0 -0
  22. package/skills/subagent-driven-development/SKILL.md +425 -0
  23. package/skills/subagent-driven-development/implementer-prompt.md +139 -0
  24. package/skills/subagent-driven-development/scripts/review-package +44 -0
  25. package/skills/subagent-driven-development/scripts/sdd-workspace +22 -0
  26. package/skills/subagent-driven-development/scripts/task-brief +40 -0
  27. package/skills/subagent-driven-development/task-reviewer-prompt.md +188 -0
  28. package/skills/using-superpowers/SKILL.md +75 -0
  29. package/skills/writing-plans/SKILL.md +25 -2
  30. package/commands/acceptance.md +0 -73
  31. package/hooks/evaluate-session.js +0 -59
  32. package/hooks/pre-compact.js +0 -92
  33. package/hooks/runtime/session-utils.js +0 -45
  34. package/hooks/session-end.js +0 -62
  35. package/hooks/session-start.js +0 -60
@@ -1,60 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Session Start Hook
4
- *
5
- * 会话启动时加载上次上下文
6
- * 用于 SessionStart 或手动调用
7
- */
8
-
9
- 'use strict'
10
-
11
- const fs = require('fs')
12
- const path = require('path')
13
-
14
- function getSessionDir() {
15
- const utils = require('./runtime/session-utils')
16
- return path.join(utils.getClaudeDir(), 'session-data')
17
- }
18
-
19
- function run() {
20
- const sessionDir = getSessionDir()
21
- const stateFile = path.join(sessionDir, 'last-state.json')
22
-
23
- if (!fs.existsSync(stateFile)) {
24
- process.stderr.write(
25
- '[Session] 无上次会话状态,以全新会话启动\n'
26
- )
27
- return
28
- }
29
-
30
- try {
31
- const state = JSON.parse(fs.readFileSync(stateFile, 'utf8'))
32
- const parts = []
33
-
34
- if (state.project) {
35
- parts.push(`项目: ${state.project}`)
36
- }
37
- if (state.lastActive) {
38
- parts.push(`上次活动: ${state.lastActive}`)
39
- }
40
- if (state.pendingTasks && state.pendingTasks.length > 0) {
41
- parts.push(`待处理: ${state.pendingTasks.join(', ')}`)
42
- }
43
-
44
- if (parts.length > 0) {
45
- process.stderr.write(
46
- `[Session] 恢复上下文 - ${parts.join(' | ')}\n`
47
- )
48
- }
49
- } catch (err) {
50
- process.stderr.write(
51
- `[Session] 加载上次状态失败: ${err.message}\n`
52
- )
53
- }
54
- }
55
-
56
- module.exports = { run }
57
-
58
- if (require.main === module) {
59
- run()
60
- }