winter-super-cli 2026.6.26 → 2026.6.27

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 (122) hide show
  1. package/CHANGELOG.md +28 -5
  2. package/README.md +66 -0
  3. package/package.json +5 -1
  4. package/resources/local/gsap-skills/.claude-plugin/marketplace.json +20 -0
  5. package/resources/local/gsap-skills/.claude-plugin/plugin.json +6 -0
  6. package/resources/local/gsap-skills/.cursor-plugin/marketplace.json +13 -0
  7. package/resources/local/gsap-skills/.cursor-plugin/plugin.json +22 -0
  8. package/resources/local/gsap-skills/.github/copilot-instructions.md +17 -0
  9. package/resources/local/gsap-skills/.github/instructions/react.instructions.md +15 -0
  10. package/resources/local/gsap-skills/.github/instructions/scrolltrigger.instructions.md +18 -0
  11. package/resources/local/gsap-skills/AGENTS.md +27 -0
  12. package/resources/local/gsap-skills/CLAUDE.md +1 -0
  13. package/resources/local/gsap-skills/GEMINI.md +1 -0
  14. package/resources/local/gsap-skills/LICENSE +21 -0
  15. package/resources/local/gsap-skills/README.md +163 -0
  16. package/resources/local/gsap-skills/assets/gsap-green.svg +7 -0
  17. package/resources/local/gsap-skills/assets/gsap-icon-inverted.svg +15 -0
  18. package/resources/local/gsap-skills/assets/gsap-icon-square.svg +1 -0
  19. package/resources/local/gsap-skills/assets/gsap-white.svg +7 -0
  20. package/resources/local/gsap-skills/examples/README.md +29 -0
  21. package/resources/local/gsap-skills/examples/nuxt/app/app.vue +3 -0
  22. package/resources/local/gsap-skills/examples/nuxt/app/composables/useGSAP.ts +91 -0
  23. package/resources/local/gsap-skills/examples/nuxt/app/pages/index.vue +55 -0
  24. package/resources/local/gsap-skills/examples/nuxt/nuxt.config.ts +4 -0
  25. package/resources/local/gsap-skills/examples/nuxt/package.json +18 -0
  26. package/resources/local/gsap-skills/examples/react/App.jsx +46 -0
  27. package/resources/local/gsap-skills/examples/react/index.html +12 -0
  28. package/resources/local/gsap-skills/examples/react/main.jsx +9 -0
  29. package/resources/local/gsap-skills/examples/react/package.json +21 -0
  30. package/resources/local/gsap-skills/examples/react/vite.config.js +7 -0
  31. package/resources/local/gsap-skills/examples/vanilla/index.html +33 -0
  32. package/resources/local/gsap-skills/examples/vanilla/main.js +36 -0
  33. package/resources/local/gsap-skills/examples/vue/app.vue +47 -0
  34. package/resources/local/gsap-skills/examples/vue/index.html +15 -0
  35. package/resources/local/gsap-skills/examples/vue/main.js +9 -0
  36. package/resources/local/gsap-skills/examples/vue/package.json +19 -0
  37. package/resources/local/gsap-skills/examples/vue/vite.config.js +7 -0
  38. package/resources/local/gsap-skills/skills/gsap-core/SKILL.md +254 -0
  39. package/resources/local/gsap-skills/skills/gsap-frameworks/SKILL.md +266 -0
  40. package/resources/local/gsap-skills/skills/gsap-performance/SKILL.md +79 -0
  41. package/resources/local/gsap-skills/skills/gsap-plugins/SKILL.md +433 -0
  42. package/resources/local/gsap-skills/skills/gsap-react/SKILL.md +136 -0
  43. package/resources/local/gsap-skills/skills/gsap-scrolltrigger/SKILL.md +296 -0
  44. package/resources/local/gsap-skills/skills/gsap-timeline/SKILL.md +107 -0
  45. package/resources/local/gsap-skills/skills/gsap-utils/SKILL.md +284 -0
  46. package/resources/local/gsap-skills/skills/llms.txt +39 -0
  47. package/resources/local/hermes-agent-core/AGENTS.md +1132 -0
  48. package/resources/local/hermes-agent-core/LICENSE +21 -0
  49. package/resources/local/hermes-agent-core/README.md +215 -0
  50. package/resources/local/hermes-agent-core/docs/2026-05-07-s6-overlay-dynamic-subagent-gateways.md +434 -0
  51. package/resources/local/hermes-agent-core/hermes-already-has-routines.md +160 -0
  52. package/resources/local/hermes-agent-core/skills/autonomous-ai-agents/DESCRIPTION.md +3 -0
  53. package/resources/local/hermes-agent-core/skills/autonomous-ai-agents/claude-code/SKILL.md +745 -0
  54. package/resources/local/hermes-agent-core/skills/autonomous-ai-agents/codex/SKILL.md +130 -0
  55. package/resources/local/hermes-agent-core/skills/autonomous-ai-agents/hermes-agent/SKILL.md +1021 -0
  56. package/resources/local/hermes-agent-core/skills/autonomous-ai-agents/kanban-codex-lane/SKILL.md +277 -0
  57. package/resources/local/hermes-agent-core/skills/autonomous-ai-agents/kanban-codex-lane/templates/pmb-codex-lane-prompt.md +57 -0
  58. package/resources/local/hermes-agent-core/skills/autonomous-ai-agents/opencode/SKILL.md +219 -0
  59. package/resources/local/hermes-agent-core/skills/github/DESCRIPTION.md +3 -0
  60. package/resources/local/hermes-agent-core/skills/github/codebase-inspection/SKILL.md +116 -0
  61. package/resources/local/hermes-agent-core/skills/github/github-auth/SKILL.md +247 -0
  62. package/resources/local/hermes-agent-core/skills/github/github-auth/scripts/gh-env.sh +66 -0
  63. package/resources/local/hermes-agent-core/skills/github/github-code-review/SKILL.md +481 -0
  64. package/resources/local/hermes-agent-core/skills/github/github-code-review/references/review-output-template.md +74 -0
  65. package/resources/local/hermes-agent-core/skills/github/github-issues/SKILL.md +370 -0
  66. package/resources/local/hermes-agent-core/skills/github/github-issues/templates/bug-report.md +35 -0
  67. package/resources/local/hermes-agent-core/skills/github/github-issues/templates/feature-request.md +31 -0
  68. package/resources/local/hermes-agent-core/skills/github/github-pr-workflow/SKILL.md +367 -0
  69. package/resources/local/hermes-agent-core/skills/github/github-pr-workflow/references/ci-troubleshooting.md +183 -0
  70. package/resources/local/hermes-agent-core/skills/github/github-pr-workflow/references/conventional-commits.md +71 -0
  71. package/resources/local/hermes-agent-core/skills/github/github-pr-workflow/templates/pr-body-bugfix.md +35 -0
  72. package/resources/local/hermes-agent-core/skills/github/github-pr-workflow/templates/pr-body-feature.md +33 -0
  73. package/resources/local/hermes-agent-core/skills/github/github-repo-management/SKILL.md +516 -0
  74. package/resources/local/hermes-agent-core/skills/github/github-repo-management/references/github-api-cheatsheet.md +161 -0
  75. package/resources/local/hermes-agent-core/skills/mcp/DESCRIPTION.md +3 -0
  76. package/resources/local/hermes-agent-core/skills/mcp/native-mcp/SKILL.md +357 -0
  77. package/resources/local/hermes-agent-core/skills/software-development/debugging-hermes-tui-commands/SKILL.md +152 -0
  78. package/resources/local/hermes-agent-core/skills/software-development/hermes-agent-skill-authoring/SKILL.md +165 -0
  79. package/resources/local/hermes-agent-core/skills/software-development/hermes-s6-container-supervision/SKILL.md +176 -0
  80. package/resources/local/hermes-agent-core/skills/software-development/node-inspect-debugger/SKILL.md +319 -0
  81. package/resources/local/hermes-agent-core/skills/software-development/plan/SKILL.md +58 -0
  82. package/resources/local/hermes-agent-core/skills/software-development/python-debugpy/SKILL.md +375 -0
  83. package/resources/local/hermes-agent-core/skills/software-development/requesting-code-review/SKILL.md +280 -0
  84. package/resources/local/hermes-agent-core/skills/software-development/spike/SKILL.md +197 -0
  85. package/resources/local/hermes-agent-core/skills/software-development/subagent-driven-development/SKILL.md +352 -0
  86. package/resources/local/hermes-agent-core/skills/software-development/subagent-driven-development/references/context-budget-discipline.md +53 -0
  87. package/resources/local/hermes-agent-core/skills/software-development/subagent-driven-development/references/gates-taxonomy.md +93 -0
  88. package/resources/local/hermes-agent-core/skills/software-development/systematic-debugging/SKILL.md +367 -0
  89. package/resources/local/hermes-agent-core/skills/software-development/test-driven-development/SKILL.md +343 -0
  90. package/resources/local/hermes-agent-core/skills/software-development/writing-plans/SKILL.md +297 -0
  91. package/resources/local/manifest.json +12 -0
  92. package/rule.md +2 -0
  93. package/scripts/audit-pack.js +5 -0
  94. package/scripts/smoke-browser.js +53 -0
  95. package/scripts/smoke-package.js +38 -4
  96. package/skill.md +36 -4
  97. package/skills/gsap.md +26 -0
  98. package/skills/hermes-agent.md +17 -0
  99. package/src/agent/agent-definitions.js +4 -4
  100. package/src/agent/runtime.js +179 -5
  101. package/src/agent/subagent-child.js +44 -0
  102. package/src/ai/capability-scorecard.js +193 -14
  103. package/src/ai/hermes-core.js +77 -0
  104. package/src/ai/model-capabilities.js +42 -2
  105. package/src/ai/prompts/system-prompt.js +16 -2
  106. package/src/ai/small-model-amplifier.js +35 -7
  107. package/src/ai/workflow-selector.js +22 -1
  108. package/src/cli/commands.js +21 -1
  109. package/src/cli/config.js +42 -4
  110. package/src/cli/context-loader.js +253 -9
  111. package/src/cli/conversation-format.js +5 -0
  112. package/src/cli/input-controller.js +79 -10
  113. package/src/cli/prompt-builder.js +45 -8
  114. package/src/cli/repl-commands.js +115 -0
  115. package/src/cli/repl.js +147 -86
  116. package/src/cli/slash-commands.js +3 -1
  117. package/src/cli/tui.js +133 -37
  118. package/src/mcp/client.js +46 -5
  119. package/src/tools/agent.js +316 -25
  120. package/src/tools/executor.js +310 -9
  121. package/src/tools/permission.js +20 -17
  122. package/winter.d.ts +112 -10
@@ -0,0 +1,343 @@
1
+ ---
2
+ name: test-driven-development
3
+ description: "TDD: enforce RED-GREEN-REFACTOR, tests before code."
4
+ version: 1.1.0
5
+ author: Hermes Agent (adapted from obra/superpowers)
6
+ license: MIT
7
+ platforms: [linux, macos, windows]
8
+ metadata:
9
+ hermes:
10
+ tags: [testing, tdd, development, quality, red-green-refactor]
11
+ related_skills: [systematic-debugging, writing-plans, subagent-driven-development]
12
+ ---
13
+
14
+ # Test-Driven Development (TDD)
15
+
16
+ ## Overview
17
+
18
+ Write the test first. Watch it fail. Write minimal code to pass.
19
+
20
+ **Core principle:** If you didn't watch the test fail, you don't know if it tests the right thing.
21
+
22
+ **Violating the letter of the rules is violating the spirit of the rules.**
23
+
24
+ ## When to Use
25
+
26
+ **Always:**
27
+ - New features
28
+ - Bug fixes
29
+ - Refactoring
30
+ - Behavior changes
31
+
32
+ **Exceptions (ask the user first):**
33
+ - Throwaway prototypes
34
+ - Generated code
35
+ - Configuration files
36
+
37
+ Thinking "skip TDD just this once"? Stop. That's rationalization.
38
+
39
+ ## The Iron Law
40
+
41
+ ```
42
+ NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
43
+ ```
44
+
45
+ Write code before the test? Delete it. Start over.
46
+
47
+ **No exceptions:**
48
+ - Don't keep it as "reference"
49
+ - Don't "adapt" it while writing tests
50
+ - Don't look at it
51
+ - Delete means delete
52
+
53
+ Implement fresh from tests. Period.
54
+
55
+ ## Red-Green-Refactor Cycle
56
+
57
+ ### RED — Write Failing Test
58
+
59
+ Write one minimal test showing what should happen.
60
+
61
+ **Good test:**
62
+ ```python
63
+ def test_retries_failed_operations_3_times():
64
+ attempts = 0
65
+ def operation():
66
+ nonlocal attempts
67
+ attempts += 1
68
+ if attempts < 3:
69
+ raise Exception('fail')
70
+ return 'success'
71
+
72
+ result = retry_operation(operation)
73
+
74
+ assert result == 'success'
75
+ assert attempts == 3
76
+ ```
77
+ Clear name, tests real behavior, one thing.
78
+
79
+ **Bad test:**
80
+ ```python
81
+ def test_retry_works():
82
+ mock = MagicMock()
83
+ mock.side_effect = [Exception(), Exception(), 'success']
84
+ result = retry_operation(mock)
85
+ assert result == 'success' # What about retry count? Timing?
86
+ ```
87
+ Vague name, tests mock not real code.
88
+
89
+ **Requirements:**
90
+ - One behavior per test
91
+ - Clear descriptive name ("and" in name? Split it)
92
+ - Real code, not mocks (unless truly unavoidable)
93
+ - Name describes behavior, not implementation
94
+
95
+ ### Verify RED — Watch It Fail
96
+
97
+ **MANDATORY. Never skip.**
98
+
99
+ ```bash
100
+ # Use terminal tool to run the specific test
101
+ pytest tests/test_feature.py::test_specific_behavior -v
102
+ ```
103
+
104
+ Confirm:
105
+ - Test fails (not errors from typos)
106
+ - Failure message is expected
107
+ - Fails because the feature is missing
108
+
109
+ **Test passes immediately?** You're testing existing behavior. Fix the test.
110
+
111
+ **Test errors?** Fix the error, re-run until it fails correctly.
112
+
113
+ ### GREEN — Minimal Code
114
+
115
+ Write the simplest code to pass the test. Nothing more.
116
+
117
+ **Good:**
118
+ ```python
119
+ def add(a, b):
120
+ return a + b # Nothing extra
121
+ ```
122
+
123
+ **Bad:**
124
+ ```python
125
+ def add(a, b):
126
+ result = a + b
127
+ logging.info(f"Adding {a} + {b} = {result}") # Extra!
128
+ return result
129
+ ```
130
+
131
+ Don't add features, refactor other code, or "improve" beyond the test.
132
+
133
+ **Cheating is OK in GREEN:**
134
+ - Hardcode return values
135
+ - Copy-paste
136
+ - Duplicate code
137
+ - Skip edge cases
138
+
139
+ We'll fix it in REFACTOR.
140
+
141
+ ### Verify GREEN — Watch It Pass
142
+
143
+ **MANDATORY.**
144
+
145
+ ```bash
146
+ # Run the specific test
147
+ pytest tests/test_feature.py::test_specific_behavior -v
148
+
149
+ # Then run ALL tests to check for regressions
150
+ pytest tests/ -q
151
+ ```
152
+
153
+ Confirm:
154
+ - Test passes
155
+ - Other tests still pass
156
+ - Output pristine (no errors, warnings)
157
+
158
+ **Test fails?** Fix the code, not the test.
159
+
160
+ **Other tests fail?** Fix regressions now.
161
+
162
+ ### REFACTOR — Clean Up
163
+
164
+ After green only:
165
+ - Remove duplication
166
+ - Improve names
167
+ - Extract helpers
168
+ - Simplify expressions
169
+
170
+ Keep tests green throughout. Don't add behavior.
171
+
172
+ **If tests fail during refactor:** Undo immediately. Take smaller steps.
173
+
174
+ ### Repeat
175
+
176
+ Next failing test for next behavior. One cycle at a time.
177
+
178
+ ## Why Order Matters
179
+
180
+ **"I'll write tests after to verify it works"**
181
+
182
+ Tests written after code pass immediately. Passing immediately proves nothing:
183
+ - Might test the wrong thing
184
+ - Might test implementation, not behavior
185
+ - Might miss edge cases you forgot
186
+ - You never saw it catch the bug
187
+
188
+ Test-first forces you to see the test fail, proving it actually tests something.
189
+
190
+ **"I already manually tested all the edge cases"**
191
+
192
+ Manual testing is ad-hoc. You think you tested everything but:
193
+ - No record of what you tested
194
+ - Can't re-run when code changes
195
+ - Easy to forget cases under pressure
196
+ - "It worked when I tried it" ≠ comprehensive
197
+
198
+ Automated tests are systematic. They run the same way every time.
199
+
200
+ **"Deleting X hours of work is wasteful"**
201
+
202
+ Sunk cost fallacy. The time is already gone. Your choice now:
203
+ - Delete and rewrite with TDD (high confidence)
204
+ - Keep it and add tests after (low confidence, likely bugs)
205
+
206
+ The "waste" is keeping code you can't trust.
207
+
208
+ **"TDD is dogmatic, being pragmatic means adapting"**
209
+
210
+ TDD IS pragmatic:
211
+ - Finds bugs before commit (faster than debugging after)
212
+ - Prevents regressions (tests catch breaks immediately)
213
+ - Documents behavior (tests show how to use code)
214
+ - Enables refactoring (change freely, tests catch breaks)
215
+
216
+ "Pragmatic" shortcuts = debugging in production = slower.
217
+
218
+ **"Tests after achieve the same goals — it's spirit not ritual"**
219
+
220
+ No. Tests-after answer "What does this do?" Tests-first answer "What should this do?"
221
+
222
+ Tests-after are biased by your implementation. You test what you built, not what's required. Tests-first force edge case discovery before implementing.
223
+
224
+ ## Common Rationalizations
225
+
226
+ | Excuse | Reality |
227
+ |--------|---------|
228
+ | "Too simple to test" | Simple code breaks. Test takes 30 seconds. |
229
+ | "I'll test after" | Tests passing immediately prove nothing. |
230
+ | "Tests after achieve same goals" | Tests-after = "what does this do?" Tests-first = "what should this do?" |
231
+ | "Already manually tested" | Ad-hoc ≠ systematic. No record, can't re-run. |
232
+ | "Deleting X hours is wasteful" | Sunk cost fallacy. Keeping unverified code is technical debt. |
233
+ | "Keep as reference, write tests first" | You'll adapt it. That's testing after. Delete means delete. |
234
+ | "Need to explore first" | Fine. Throw away exploration, start with TDD. |
235
+ | "Test hard = design unclear" | Listen to the test. Hard to test = hard to use. |
236
+ | "TDD will slow me down" | TDD faster than debugging. Pragmatic = test-first. |
237
+ | "Manual test faster" | Manual doesn't prove edge cases. You'll re-test every change. |
238
+ | "Existing code has no tests" | You're improving it. Add tests for the code you touch. |
239
+
240
+ ## Red Flags — STOP and Start Over
241
+
242
+ If you catch yourself doing any of these, delete the code and restart with TDD:
243
+
244
+ - Code before test
245
+ - Test after implementation
246
+ - Test passes immediately on first run
247
+ - Can't explain why test failed
248
+ - Tests added "later"
249
+ - Rationalizing "just this once"
250
+ - "I already manually tested it"
251
+ - "Tests after achieve the same purpose"
252
+ - "Keep as reference" or "adapt existing code"
253
+ - "Already spent X hours, deleting is wasteful"
254
+ - "TDD is dogmatic, I'm being pragmatic"
255
+ - "This is different because..."
256
+
257
+ **All of these mean: Delete code. Start over with TDD.**
258
+
259
+ ## Verification Checklist
260
+
261
+ Before marking work complete:
262
+
263
+ - [ ] Every new function/method has a test
264
+ - [ ] Watched each test fail before implementing
265
+ - [ ] Each test failed for expected reason (feature missing, not typo)
266
+ - [ ] Wrote minimal code to pass each test
267
+ - [ ] All tests pass
268
+ - [ ] Output pristine (no errors, warnings)
269
+ - [ ] Tests use real code (mocks only if unavoidable)
270
+ - [ ] Edge cases and errors covered
271
+
272
+ Can't check all boxes? You skipped TDD. Start over.
273
+
274
+ ## When Stuck
275
+
276
+ | Problem | Solution |
277
+ |---------|----------|
278
+ | Don't know how to test | Write the wished-for API. Write the assertion first. Ask the user. |
279
+ | Test too complicated | Design too complicated. Simplify the interface. |
280
+ | Must mock everything | Code too coupled. Use dependency injection. |
281
+ | Test setup huge | Extract helpers. Still complex? Simplify the design. |
282
+
283
+ ## Hermes Agent Integration
284
+
285
+ ### Running Tests
286
+
287
+ Use the `terminal` tool to run tests at each step:
288
+
289
+ ```python
290
+ # RED — verify failure
291
+ terminal("pytest tests/test_feature.py::test_name -v")
292
+
293
+ # GREEN — verify pass
294
+ terminal("pytest tests/test_feature.py::test_name -v")
295
+
296
+ # Full suite — verify no regressions
297
+ terminal("pytest tests/ -q")
298
+ ```
299
+
300
+ ### With delegate_task
301
+
302
+ When dispatching subagents for implementation, enforce TDD in the goal:
303
+
304
+ ```python
305
+ delegate_task(
306
+ goal="Implement [feature] using strict TDD",
307
+ context="""
308
+ Follow test-driven-development skill:
309
+ 1. Write failing test FIRST
310
+ 2. Run test to verify it fails
311
+ 3. Write minimal code to pass
312
+ 4. Run test to verify it passes
313
+ 5. Refactor if needed
314
+ 6. Commit
315
+
316
+ Project test command: pytest tests/ -q
317
+ Project structure: [describe relevant files]
318
+ """,
319
+ toolsets=['terminal', 'file']
320
+ )
321
+ ```
322
+
323
+ ### With systematic-debugging
324
+
325
+ Bug found? Write failing test reproducing it. Follow TDD cycle. The test proves the fix and prevents regression.
326
+
327
+ Never fix bugs without a test.
328
+
329
+ ## Testing Anti-Patterns
330
+
331
+ - **Testing mock behavior instead of real behavior** — mocks should verify interactions, not replace the system under test
332
+ - **Testing implementation details** — test behavior/results, not internal method calls
333
+ - **Happy path only** — always test edge cases, errors, and boundaries
334
+ - **Brittle tests** — tests should verify behavior, not structure; refactoring shouldn't break them
335
+
336
+ ## Final Rule
337
+
338
+ ```
339
+ Production code → test exists and failed first
340
+ Otherwise → not TDD
341
+ ```
342
+
343
+ No exceptions without the user's explicit permission.
@@ -0,0 +1,297 @@
1
+ ---
2
+ name: writing-plans
3
+ description: "Write implementation plans: bite-sized tasks, paths, code."
4
+ version: 1.1.0
5
+ author: Hermes Agent (adapted from obra/superpowers)
6
+ license: MIT
7
+ platforms: [linux, macos, windows]
8
+ metadata:
9
+ hermes:
10
+ tags: [planning, design, implementation, workflow, documentation]
11
+ related_skills: [subagent-driven-development, test-driven-development, requesting-code-review]
12
+ ---
13
+
14
+ # Writing Implementation Plans
15
+
16
+ ## Overview
17
+
18
+ Write comprehensive implementation plans assuming the implementer has zero context for the codebase and questionable taste. Document everything they need: which files to touch, complete code, testing commands, docs to check, how to verify. Give them bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.
19
+
20
+ Assume the implementer is a skilled developer but knows almost nothing about the toolset or problem domain. Assume they don't know good test design very well.
21
+
22
+ **Core principle:** A good plan makes implementation obvious. If someone has to guess, the plan is incomplete.
23
+
24
+ ## When to Use
25
+
26
+ **Always use before:**
27
+ - Implementing multi-step features
28
+ - Breaking down complex requirements
29
+ - Delegating to subagents via subagent-driven-development
30
+
31
+ **Don't skip when:**
32
+ - Feature seems simple (assumptions cause bugs)
33
+ - You plan to implement it yourself (future you needs guidance)
34
+ - Working alone (documentation matters)
35
+
36
+ ## Bite-Sized Task Granularity
37
+
38
+ **Each task = 2-5 minutes of focused work.**
39
+
40
+ Every step is one action:
41
+ - "Write the failing test" — step
42
+ - "Run it to make sure it fails" — step
43
+ - "Implement the minimal code to make the test pass" — step
44
+ - "Run the tests and make sure they pass" — step
45
+ - "Commit" — step
46
+
47
+ **Too big:**
48
+ ```markdown
49
+ ### Task 1: Build authentication system
50
+ [50 lines of code across 5 files]
51
+ ```
52
+
53
+ **Right size:**
54
+ ```markdown
55
+ ### Task 1: Create User model with email field
56
+ [10 lines, 1 file]
57
+
58
+ ### Task 2: Add password hash field to User
59
+ [8 lines, 1 file]
60
+
61
+ ### Task 3: Create password hashing utility
62
+ [15 lines, 1 file]
63
+ ```
64
+
65
+ ## Plan Document Structure
66
+
67
+ ### Header (Required)
68
+
69
+ Every plan MUST start with:
70
+
71
+ ```markdown
72
+ # [Feature Name] Implementation Plan
73
+
74
+ > **For Hermes:** Use subagent-driven-development skill to implement this plan task-by-task.
75
+
76
+ **Goal:** [One sentence describing what this builds]
77
+
78
+ **Architecture:** [2-3 sentences about approach]
79
+
80
+ **Tech Stack:** [Key technologies/libraries]
81
+
82
+ ---
83
+ ```
84
+
85
+ ### Task Structure
86
+
87
+ Each task follows this format:
88
+
89
+ ````markdown
90
+ ### Task N: [Descriptive Name]
91
+
92
+ **Objective:** What this task accomplishes (one sentence)
93
+
94
+ **Files:**
95
+ - Create: `exact/path/to/new_file.py`
96
+ - Modify: `exact/path/to/existing.py:45-67` (line numbers if known)
97
+ - Test: `tests/path/to/test_file.py`
98
+
99
+ **Step 1: Write failing test**
100
+
101
+ ```python
102
+ def test_specific_behavior():
103
+ result = function(input)
104
+ assert result == expected
105
+ ```
106
+
107
+ **Step 2: Run test to verify failure**
108
+
109
+ Run: `pytest tests/path/test.py::test_specific_behavior -v`
110
+ Expected: FAIL — "function not defined"
111
+
112
+ **Step 3: Write minimal implementation**
113
+
114
+ ```python
115
+ def function(input):
116
+ return expected
117
+ ```
118
+
119
+ **Step 4: Run test to verify pass**
120
+
121
+ Run: `pytest tests/path/test.py::test_specific_behavior -v`
122
+ Expected: PASS
123
+
124
+ **Step 5: Commit**
125
+
126
+ ```bash
127
+ git add tests/path/test.py src/path/file.py
128
+ git commit -m "feat: add specific feature"
129
+ ```
130
+ ````
131
+
132
+ ## Writing Process
133
+
134
+ ### Step 1: Understand Requirements
135
+
136
+ Read and understand:
137
+ - Feature requirements
138
+ - Design documents or user description
139
+ - Acceptance criteria
140
+ - Constraints
141
+
142
+ ### Step 2: Explore the Codebase
143
+
144
+ Use Hermes tools to understand the project:
145
+
146
+ ```python
147
+ # Understand project structure
148
+ search_files("*.py", target="files", path="src/")
149
+
150
+ # Look at similar features
151
+ search_files("similar_pattern", path="src/", file_glob="*.py")
152
+
153
+ # Check existing tests
154
+ search_files("*.py", target="files", path="tests/")
155
+
156
+ # Read key files
157
+ read_file("src/app.py")
158
+ ```
159
+
160
+ ### Step 3: Design Approach
161
+
162
+ Decide:
163
+ - Architecture pattern
164
+ - File organization
165
+ - Dependencies needed
166
+ - Testing strategy
167
+
168
+ ### Step 4: Write Tasks
169
+
170
+ Create tasks in order:
171
+ 1. Setup/infrastructure
172
+ 2. Core functionality (TDD for each)
173
+ 3. Edge cases
174
+ 4. Integration
175
+ 5. Cleanup/documentation
176
+
177
+ ### Step 5: Add Complete Details
178
+
179
+ For each task, include:
180
+ - **Exact file paths** (not "the config file" but `src/config/settings.py`)
181
+ - **Complete code examples** (not "add validation" but the actual code)
182
+ - **Exact commands** with expected output
183
+ - **Verification steps** that prove the task works
184
+
185
+ ### Step 6: Review the Plan
186
+
187
+ Check:
188
+ - [ ] Tasks are sequential and logical
189
+ - [ ] Each task is bite-sized (2-5 min)
190
+ - [ ] File paths are exact
191
+ - [ ] Code examples are complete (copy-pasteable)
192
+ - [ ] Commands are exact with expected output
193
+ - [ ] No missing context
194
+ - [ ] DRY, YAGNI, TDD principles applied
195
+
196
+ ### Step 7: Save the Plan
197
+
198
+ ```bash
199
+ mkdir -p docs/plans
200
+ # Save plan to docs/plans/YYYY-MM-DD-feature-name.md
201
+ git add docs/plans/
202
+ git commit -m "docs: add implementation plan for [feature]"
203
+ ```
204
+
205
+ ## Principles
206
+
207
+ ### DRY (Don't Repeat Yourself)
208
+
209
+ **Bad:** Copy-paste validation in 3 places
210
+ **Good:** Extract validation function, use everywhere
211
+
212
+ ### YAGNI (You Aren't Gonna Need It)
213
+
214
+ **Bad:** Add "flexibility" for future requirements
215
+ **Good:** Implement only what's needed now
216
+
217
+ ```python
218
+ # Bad — YAGNI violation
219
+ class User:
220
+ def __init__(self, name, email):
221
+ self.name = name
222
+ self.email = email
223
+ self.preferences = {} # Not needed yet!
224
+ self.metadata = {} # Not needed yet!
225
+
226
+ # Good — YAGNI
227
+ class User:
228
+ def __init__(self, name, email):
229
+ self.name = name
230
+ self.email = email
231
+ ```
232
+
233
+ ### TDD (Test-Driven Development)
234
+
235
+ Every task that produces code should include the full TDD cycle:
236
+ 1. Write failing test
237
+ 2. Run to verify failure
238
+ 3. Write minimal code
239
+ 4. Run to verify pass
240
+
241
+ See `test-driven-development` skill for details.
242
+
243
+ ### Frequent Commits
244
+
245
+ Commit after every task:
246
+ ```bash
247
+ git add [files]
248
+ git commit -m "type: description"
249
+ ```
250
+
251
+ ## Common Mistakes
252
+
253
+ ### Vague Tasks
254
+
255
+ **Bad:** "Add authentication"
256
+ **Good:** "Create User model with email and password_hash fields"
257
+
258
+ ### Incomplete Code
259
+
260
+ **Bad:** "Step 1: Add validation function"
261
+ **Good:** "Step 1: Add validation function" followed by the complete function code
262
+
263
+ ### Missing Verification
264
+
265
+ **Bad:** "Step 3: Test it works"
266
+ **Good:** "Step 3: Run `pytest tests/test_auth.py -v`, expected: 3 passed"
267
+
268
+ ### Missing File Paths
269
+
270
+ **Bad:** "Create the model file"
271
+ **Good:** "Create: `src/models/user.py`"
272
+
273
+ ## Execution Handoff
274
+
275
+ After saving the plan, offer the execution approach:
276
+
277
+ **"Plan complete and saved. Ready to execute using subagent-driven-development — I'll dispatch a fresh subagent per task with two-stage review (spec compliance then code quality). Shall I proceed?"**
278
+
279
+ When executing, use the `subagent-driven-development` skill:
280
+ - Fresh `delegate_task` per task with full context
281
+ - Spec compliance review after each task
282
+ - Code quality review after spec passes
283
+ - Proceed only when both reviews approve
284
+
285
+ ## Remember
286
+
287
+ ```
288
+ Bite-sized tasks (2-5 min each)
289
+ Exact file paths
290
+ Complete code (copy-pasteable)
291
+ Exact commands with expected output
292
+ Verification steps
293
+ DRY, YAGNI, TDD
294
+ Frequent commits
295
+ ```
296
+
297
+ **A good plan makes implementation obvious.**
@@ -44,6 +44,18 @@
44
44
  "files": 320,
45
45
  "bytes": 12488896
46
46
  },
47
+ {
48
+ "name": "gsap-skills",
49
+ "path": "resources/local/gsap-skills",
50
+ "files": 44,
51
+ "bytes": 148324
52
+ },
53
+ {
54
+ "name": "hermes-agent-core",
55
+ "path": "resources/local/hermes-agent-core",
56
+ "files": 44,
57
+ "bytes": 425718
58
+ },
47
59
  {
48
60
  "name": "manifest.json",
49
61
  "path": "resources/local/manifest.json",
package/rule.md CHANGED
@@ -30,6 +30,8 @@ File này là contract vận hành cho Winter trong project này.
30
30
  - **karpathy-tools**: 2 files, 5.9 KB
31
31
  - **page-agent**: 238 files, 1.3 MB
32
32
  - **ecc**: 320 files, 11.9 MB
33
+ - **gsap-skills**: 44 files, 144.8 KB
34
+ - **hermes-agent-core**: 44 files, 415.7 KB
33
35
  - **manifest.json**: 1 files, 2.9 KB
34
36
 
35
37
  ## Extra Rule Files
@@ -30,6 +30,8 @@ const blockedPrefixes = [
30
30
  'resources/local/claude/tasks/',
31
31
  'resources/local/claude/todos/',
32
32
  'resources/local/ecc/node_modules/',
33
+ 'resources/local/gsap-skills/.git/',
34
+ 'resources/local/hermes-agent-core/.git/',
33
35
  ];
34
36
  const blockedPatterns = [
35
37
  /(^|\/)src\/.*\.test\.js$/,
@@ -57,8 +59,11 @@ const requiredPrefixes = [
57
59
  'resources/local/karpathy-tools/',
58
60
  'resources/local/page-agent/',
59
61
  'resources/local/ecc/',
62
+ 'resources/local/gsap-skills/',
63
+ 'resources/local/hermes-agent-core/',
60
64
  'docs/',
61
65
  'rules/',
66
+ 'scripts/smoke-browser.js',
62
67
  'extensions/vscode/',
63
68
  'skills/',
64
69
  'memories/',