moicle 2.3.1 → 3.0.1

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 (34) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +43 -49
  3. package/assets/commands/marketing.md +6 -6
  4. package/assets/skills/challenge/SKILL.md +57 -0
  5. package/assets/skills/docs/sync/SKILL.md +195 -157
  6. package/assets/skills/feature/build/SKILL.md +891 -0
  7. package/assets/skills/feature/track/SKILL.md +8 -8
  8. package/assets/skills/fix/bug/SKILL.md +449 -0
  9. package/assets/skills/fix/incident/SKILL.md +6 -6
  10. package/assets/skills/marketing/brand/SKILL.md +304 -0
  11. package/assets/skills/marketing/content/SKILL.md +199 -141
  12. package/assets/skills/research/explore/SKILL.md +392 -0
  13. package/assets/skills/review/code/SKILL.md +622 -0
  14. package/dist/commands/install/usage.js +2 -2
  15. package/dist/commands/install/usage.js.map +1 -1
  16. package/package.json +1 -1
  17. package/assets/skills/docs/write/SKILL.md +0 -274
  18. package/assets/skills/feature/api/SKILL.md +0 -277
  19. package/assets/skills/feature/deprecate/SKILL.md +0 -276
  20. package/assets/skills/feature/new/SKILL.md +0 -273
  21. package/assets/skills/feature/refactor/SKILL.md +0 -269
  22. package/assets/skills/fix/hotfix/SKILL.md +0 -233
  23. package/assets/skills/fix/pr-comment/SKILL.md +0 -186
  24. package/assets/skills/fix/root-cause/SKILL.md +0 -276
  25. package/assets/skills/marketing/logo/SKILL.md +0 -252
  26. package/assets/skills/marketing/seo-blog/SKILL.md +0 -367
  27. package/assets/skills/marketing/video/SKILL.md +0 -258
  28. package/assets/skills/research/onboarding/SKILL.md +0 -225
  29. package/assets/skills/research/spike/SKILL.md +0 -228
  30. package/assets/skills/research/web/SKILL.md +0 -204
  31. package/assets/skills/review/architect/SKILL.md +0 -274
  32. package/assets/skills/review/branch/SKILL.md +0 -277
  33. package/assets/skills/review/pr/SKILL.md +0 -231
  34. package/assets/skills/review/tdd/SKILL.md +0 -245
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Quyền
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -16,7 +16,7 @@ A toolkit to bootstrap and accelerate project development with Claude Code throu
16
16
 
17
17
  - **16 AI Agents** - 6 developer agents + 10 utility agents
18
18
  - **4 Commands** - Wizards for bootstrap, brainstorm, documentation, and marketing
19
- - **22 Skills** - Auto-triggered workflows for the full SDLC (feature, bug, review, release, ops, content)
19
+ - **10 Skills** - Mode-based, auto-triggered workflows for the full SDLC (feature, bug, review, research, docs, marketing) plus a `/challenge` self-critique nudge
20
20
  - **9 Architecture References** - DDD + Hexagonal + stack-specific patterns
21
21
 
22
22
 
@@ -124,82 +124,76 @@ moicle install --target cursor --project
124
124
  | `/brainstorm` | Brainstorm ideas with 6 frameworks |
125
125
  | `/doc` | Scan project and generate documentation |
126
126
 
127
- ### Skills (22)
127
+ ### Skills (10)
128
128
 
129
- Skills are grouped by a `<group>-` prefix. Type `/<group>-` then `Tab` in Claude Code to see all skills in a group.
129
+ Skills are grouped by a `<group>-` prefix. Type `/<group>-` then `Tab` in Claude Code to see all skills in a group. Each skill bundles several related workflows into **modes** chosen at the top of the file — pick a mode (or let Claude pick it from your natural-language phrasing). One skill — `/challenge` — is intentionally standalone (no group, no modes).
130
130
 
131
131
  **`/feature-*` — Build & Change**
132
132
 
133
- | Skill | When to use |
134
- |-------|-------------|
135
- | `/feature-new` | Build a new feature end-to-end following DDD |
136
- | `/feature-refactor` | Restructure existing module to DDD or improve internals |
137
- | `/feature-api` | Add a new endpoint or integrate an external API |
138
- | `/feature-deprecate` | Safely sunset a feature, API, or module |
139
- | `/feature-track` | Plan + approve, then run a tracked loop: branch → checklist → per-item test/implement/verify/commit |
133
+ | Skill | Modes | When to use |
134
+ |-------|-------|-------------|
135
+ | `/feature-build` | NEW · REFACTOR · API · DEPRECATE | Build a new DDD feature, restructure existing code, add/integrate an API, or safely sunset a feature |
136
+ | `/feature-track` | | Plan + approve, then run a tracked loop: branch → checklist → per-item test/implement/verify/commit |
140
137
 
141
138
  **`/fix-*` — Bugs & Incidents**
142
139
 
143
- | Skill | When to use |
144
- |-------|-------------|
145
- | `/fix-hotfix` | Fix a bug fast with a rollback plan |
146
- | `/fix-root-cause` | Hard-to-trace bug that has been "fixed" multiple times |
147
- | `/fix-incident` | Production outage / on-call workflow |
148
- | `/fix-pr-comment` | Address review comments on an existing PR |
140
+ | Skill | Modes | When to use |
141
+ |-------|-------|-------------|
142
+ | `/fix-bug` | QUICK · DEEP | QUICK: fix fast with rollback plan · DEEP: trace a hard / recurring / intermittent bug |
143
+ | `/fix-incident` | | Production outage / on-call workflow |
149
144
 
150
145
  **`/review-*` — Review & Quality**
151
146
 
152
- | Skill | When to use |
153
- |-------|-------------|
154
- | `/review-branch` | Self-review your branch BEFORE pushing / opening PR |
155
- | `/review-pr` | Review someone else's open PR |
156
- | `/review-architect` | DDD compliance check (called by `/feature-new` / `/feature-refactor`) |
157
- | `/review-tdd` | Drive implementation with test-first discipline |
147
+ | Skill | Modes | When to use |
148
+ |-------|-------|-------------|
149
+ | `/review-code` | SELF · PR · ARCHITECT · TDD · ADDRESS | Self-review a branch, review a teammate's PR, deep DDD audit, test-first development, or address PR comments |
158
150
 
159
151
  **`/research-*` — Explore & Learn**
160
152
 
161
- | Skill | When to use |
162
- |-------|-------------|
163
- | `/research-web` | Search the web for solutions / best practices |
164
- | `/research-spike` | Time-boxed prototype to learn / decide |
165
- | `/research-onboarding` | Get up to speed on a new codebase |
153
+ | Skill | Modes | When to use |
154
+ |-------|-------|-------------|
155
+ | `/research-explore` | WEB · SPIKE · ONBOARDING | Research solutions via docs, validate by building a prototype, or ramp up on a new codebase |
166
156
 
167
157
  **`/docs-*` — Project Documentation**
168
158
 
169
- | Skill | When to use |
170
- |-------|-------------|
171
- | `/docs-write` | Author docs manually (README / API / ARCH / CONTRIB) |
172
- | `/docs-sync` | Auto-generate structured docs from codebase with review loop |
159
+ | Skill | Modes | When to use |
160
+ |-------|-------|-------------|
161
+ | `/docs-sync` | SINGLE · FULL | SINGLE: hand-author one doc · FULL: auto-generate the whole docs site with review loop |
173
162
 
174
163
  **`/marketing-*` — Brand & Content** (wrapped by the `/marketing` command)
175
164
 
176
- | Skill | When to use |
177
- |-------|-------------|
178
- | `/marketing-content` | Multi-post content strategy (pillars, calendar, channels) |
179
- | `/marketing-seo-blog` | Write ONE evergreen blog post optimized for Search + AI tools |
180
- | `/marketing-logo` | Logo + brand identity specification |
181
- | `/marketing-video` | Video script, storyboard, production plan |
165
+ | Skill | Modes | When to use |
166
+ |-------|-------|-------------|
167
+ | `/marketing-content` | STRATEGY · POST | Multi-post content strategy, or write ONE evergreen post optimized for Search + AI |
168
+ | `/marketing-brand` | LOGO · VIDEO | Logo + brand identity spec, or video script/storyboard/production plan |
169
+
170
+ **`/challenge` Self-Critique** (standalone, no group)
171
+
172
+ | Skill | Modes | When to use |
173
+ |-------|-------|-------------|
174
+ | `/challenge` | — | A quick skeptical re-examination of what you just did (or selected code): simpler? duplicated? optimal? edge cases? — reports honest findings without self-congratulating. Lighter than `/review-code` SELF. |
182
175
 
183
176
  ### Skill decision matrix
184
177
 
185
- When more than one skill could fit, use this matrix:
178
+ When more than one skill / mode could fit, use this matrix:
186
179
 
187
180
  | Situation | Use | Not |
188
181
  |-----------|-----|-----|
189
- | Bug just happened in prod, need fix in <1h | `/fix-hotfix` | `/fix-root-cause` (too slow) |
190
- | Bug keeps coming back after "fixes" | `/fix-root-cause` | `/fix-hotfix` (will repeat) |
191
- | About to push / open PR | `/review-branch` | `/review-pr` (that's for others') |
192
- | Reviewing teammate's PR | `/review-pr` | `/review-branch` (that's for own branch) |
193
- | Want to verify DDD compliance only | `/review-architect` | `/review-pr` (broader scope) |
194
- | Don't know the right solution yet | `/research-web` | `/research-spike` (skip if you can decide from docs) |
195
- | Need to validate an idea by building | `/research-spike` | `/feature-new` (commit only after spike) |
196
- | Driving a multi-step task as a checklist with commit-per-step | `/feature-track` | `/feature-new` (single full DDD feature), `/review-tdd` (one unit, no branch/commit) |
197
- | Writing README / API docs by hand | `/docs-write` | `/docs-sync` (overkill for single file) |
198
- | Generating full docs site from codebase | `/docs-sync` | `/docs-write` (manual is slower) |
182
+ | Bug just happened in prod, need fix in <1h | `/fix-bug` (QUICK) | `/fix-bug` DEEP (too slow) |
183
+ | Bug keeps coming back after "fixes" | `/fix-bug` (DEEP) | `/fix-bug` QUICK (will repeat) |
184
+ | About to push / open PR | `/review-code` (SELF) | `/review-code` PR (that's for others') |
185
+ | Reviewing teammate's PR | `/review-code` (PR) | `/review-code` SELF (that's for own branch) |
186
+ | Want to verify DDD compliance only | `/review-code` (ARCHITECT) | `/review-code` PR (broader scope) |
187
+ | Don't know the right solution yet | `/research-explore` (WEB) | SPIKE (skip if you can decide from docs) |
188
+ | Need to validate an idea by building | `/research-explore` (SPIKE) | `/feature-build` NEW (commit only after spike) |
189
+ | Driving a multi-step task as a checklist with commit-per-step | `/feature-track` | `/feature-build` NEW (single full DDD feature), `/review-code` TDD (one unit, no branch/commit) |
190
+ | Writing README / API docs by hand | `/docs-sync` (SINGLE) | `/docs-sync` FULL (overkill for single file) |
191
+ | Generating full docs site from codebase | `/docs-sync` (FULL) | `/docs-sync` SINGLE (manual is slower) |
192
+ | Quick "did I overcomplicate this?" gut-check on fresh code | `/challenge` | `/review-code` ARCHITECT (heavier, scored audit) |
199
193
 
200
194
  ### Backward compatibility
201
195
 
202
- Old trigger phrases still work — they're kept in the skill `description` so Claude auto-invokes the right skill when the user says e.g. "deep debug", "hotfix", "review changes". The flattened name `/group-action` is the explicit invocation form.
196
+ The 22 original skills were consolidated into 9 mode-based skills. Old trigger phrases still work — they're kept in each skill's `description` so Claude auto-invokes the right skill **and the right mode** when the user says e.g. "deep debug" (→ `/fix-bug` DEEP), "hotfix" (→ `/fix-bug` QUICK), "review changes" (→ `/review-code` SELF). The flattened name `/group-action` is the explicit invocation form.
203
197
 
204
198
  ## Architecture-First Approach
205
199
 
@@ -30,10 +30,10 @@ Let the user choose which areas to focus on:
30
30
  Which marketing areas do you want to plan?
31
31
 
32
32
  1. Logo & Brand Identity — Design logo, colors, typography, brand guidelines
33
- Triggers skill: /marketing-logo
33
+ Triggers skill: /marketing-brand (LOGO mode)
34
34
 
35
35
  2. Video Content Strategy — Plan video series, scripts, production, publishing
36
- Triggers skill: /marketing-video
36
+ Triggers skill: /marketing-brand (VIDEO mode)
37
37
 
38
38
  3. Content Writing Strategy — Blog posts, social media, SEO, newsletter
39
39
  Triggers skill: /marketing-content
@@ -55,19 +55,19 @@ MARKETING PLAN WORKFLOW
55
55
 
56
56
  Phase 1: Brand Foundation
57
57
 
58
- ├── Execute: /marketing-logo skill
58
+ ├── Execute: /marketing-brand (LOGO mode)
59
59
  │ └── Output: Brand guidelines, color palette, typography
60
60
 
61
61
 
62
62
  Phase 2: Content Strategy
63
63
 
64
- ├── Execute: /marketing-content skill
64
+ ├── Execute: /marketing-content (STRATEGY mode)
65
65
  │ └── Output: Content pillars, blog plan, social media plan, newsletter
66
66
 
67
67
 
68
68
  Phase 3: Video Content
69
69
 
70
- ├── Execute: /marketing-video skill
70
+ ├── Execute: /marketing-brand (VIDEO mode)
71
71
  │ └── Output: Video series, scripts, production specs, calendar
72
72
 
73
73
 
@@ -85,7 +85,7 @@ Phase 5: Launch Plan
85
85
 
86
86
  ### Execution Notes:
87
87
  - Run skills sequentially — brand identity informs content and video decisions
88
- - Pass brand guidelines (colors, voice, tone) from /marketing-logo into /marketing-content and /marketing-video
88
+ - Pass brand guidelines (colors, voice, tone) from /marketing-brand (LOGO) into /marketing-content and /marketing-brand (VIDEO)
89
89
  - Ensure consistency across all outputs
90
90
 
91
91
  ## Step 4: Create Unified Calendar
@@ -0,0 +1,57 @@
1
+ ---
2
+ name: challenge
3
+ description: A fast self-critique nudge — re-examine the thing you just did (or the selected/named code) with a skeptical eye and report what could be better, WITHOUT self-congratulating. Lighter than /review-code SELF; it is a single pass, not a full review process. Use when the user says "challenge", "rethink", "check kĩ hơn", "soi lại", "phản biện", "tối ưu chưa", "is this optimal", "double check this", "any duplication", "có lặp code không", "did I overengineer", "second-guess this", "review what you just did".
4
+ ---
5
+
6
+ # Challenge — Self-Critique Pass
7
+
8
+ A short, honest re-examination of the work in scope. The whole point is to **push back on your own output** instead of accepting it. You are the skeptic reviewing your own code, not the author defending it.
9
+
10
+ ## What's in scope
11
+
12
+ Pick the target in this order:
13
+
14
+ 1. **Selected / named code** — if the user selected lines or named a file/function/change, critique exactly that.
15
+ 2. **The change you just made** — otherwise, critique the code you produced or edited most recently in this session (check the working diff if unsure).
16
+
17
+ If neither is clear, ask one line: "Soi cái gì — thay đổi vừa rồi hay chỗ nào cụ thể?" — then proceed.
18
+
19
+ ## The one rule
20
+
21
+ > **Do not conclude "it's fine / already optimal" without evidence.** Assume something can be better and go find it. If after a genuine pass nothing real turns up, say so plainly and state what you checked — do not pad with fake concerns, and do not praise the code.
22
+
23
+ No sycophancy. No "great job, but…". Just: here is what I'd change and why.
24
+
25
+ ## Pass — run every lens, keep only real hits
26
+
27
+ Go through each lens on the in-scope code. For each, either cite a concrete spot or move on silently.
28
+
29
+ | Lens | Ask |
30
+ |------|-----|
31
+ | **Simpler** | Is there a shorter / more direct way? Am I solving a problem I don't have? Any premature abstraction, needless layer, config, or generality? |
32
+ | **Duplication (DRY)** | Is this logic already implemented elsewhere in the codebase? Did I repeat a block that should be one helper? (Search before claiming "no dup".) |
33
+ | **Optimal** | Redundant work, N+1, re-fetch, re-compute in a loop, unnecessary allocation? Is the data structure the right one? |
34
+ | **Correctness edges** | Null / empty / boundary / large input / concurrent access / partial failure — which path did I not handle? |
35
+ | **Error handling** | Any swallowed error (empty catch, ignored return)? Failures must surface clearly and be logged, not muffled. |
36
+ | **Naming & footprint** | Misleading names? Did I rename/move things I didn't need to? Is any file getting too big / doing too much? |
37
+ | **Tests** | Is the risky path actually covered, or just the happy one? |
38
+
39
+ ## Output
40
+
41
+ Keep it tight. For each real finding:
42
+
43
+ ```
44
+ ⚠️ <one-line problem> · <file:line>
45
+ → <concrete fix>
46
+ ```
47
+
48
+ Then end with exactly one of:
49
+
50
+ - **Findings exist** → list them worst-first, then ask: "Áp dụng mấy cái này không?" (do not auto-edit).
51
+ - **Genuinely nothing** → "Đã soi <các lens> trên <scope>, không thấy vấn đề thực sự. Điểm cần lưu ý nếu mở rộng sau: <1 dòng, nếu có>." State what you searched so the "clean" verdict is earned, not assumed.
52
+
53
+ ## Boundaries
54
+
55
+ - ❌ Full architecture / DDD audit with scoring → use `/review-code` (ARCHITECT mode).
56
+ - ❌ Reviewing a whole PR / branch to post to GitHub → use `/review-code` (PR mode).
57
+ - ❌ Actually implementing the fixes now → this skill *proposes*; apply only after the user says go.