vc-extras 0.1.0 → 0.1.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.
- package/README.md +128 -71
- package/agent-install.mjs +159 -0
- package/agents/tester.md +23 -23
- package/install-extras.mjs +41 -109
- package/install-menu.mjs +22 -43
- package/install-skills.mjs +112 -112
- package/package.json +72 -28
- package/plugin-registry.mjs +73 -0
- package/plugins/config-ui/index.ts +159 -159
- package/plugins/config-ui/lib/arguments.mjs +24 -24
- package/plugins/config-ui/lib/documents.mjs +67 -67
- package/plugins/config-ui/lib/frontmatter.mjs +91 -91
- package/plugins/config-ui/lib/open.mjs +16 -16
- package/plugins/config-ui/lib/ownership.mjs +99 -99
- package/plugins/config-ui/lib/page.mjs +11 -11
- package/plugins/config-ui/lib/patch.mjs +35 -35
- package/plugins/config-ui/lib/paths.mjs +14 -14
- package/plugins/config-ui/lib/plugin-fields.mjs +86 -86
- package/plugins/config-ui/lib/plugin-validation.mjs +28 -28
- package/plugins/config-ui/lib/redaction.mjs +8 -8
- package/plugins/config-ui/lib/registry.mjs +282 -282
- package/plugins/config-ui/lib/secrets.mjs +44 -44
- package/plugins/config-ui/lib/server.mjs +250 -250
- package/plugins/config-ui/lib/sources.mjs +96 -96
- package/plugins/config-ui/lib/state.mjs +156 -156
- package/plugins/config-ui/lib/themes.mjs +113 -113
- package/plugins/config-ui/lib/writer.mjs +690 -690
- package/plugins/config-ui/project-local-owner.ts +106 -106
- package/plugins/config-ui/vc-extras.plugin.json +13 -0
- package/plugins/config-ui/web/app.mjs +997 -997
- package/plugins/config-ui/web/index.html +342 -342
- package/plugins/pi-blackhole/vc-extras.plugin.json +12 -0
- package/plugins/pi-btw/vc-extras.plugin.json +12 -0
- package/plugins/pi-claude-code/vc-extras.plugin.json +12 -0
- package/plugins/pi-fff/vc-extras.plugin.json +12 -0
- package/plugins/pi-jev-auto-mode/vc-extras.plugin.json +12 -0
- package/plugins/pi-mcp-adapter/vc-extras.plugin.json +12 -0
- package/plugins/pi-web-access/vc-extras.plugin.json +12 -0
- package/plugins/vc-ask/claude-hook.mjs +37 -0
- package/plugins/vc-ask/codex-native.mjs +28 -0
- package/plugins/vc-ask/host-channel.mjs +75 -0
- package/plugins/vc-ask/index.ts +57 -0
- package/plugins/vc-ask/native-questions.mjs +33 -0
- package/plugins/vc-ask/package.json +10 -0
- package/plugins/vc-ask/payload.ts +170 -0
- package/plugins/vc-ask/questionnaire/LICENSE.ask-user-question +21 -0
- package/plugins/vc-ask/questionnaire/UPSTREAM.md +104 -0
- package/plugins/vc-ask/questionnaire/answer-channel.ts +135 -0
- package/plugins/vc-ask/questionnaire/config.ts +180 -0
- package/plugins/vc-ask/questionnaire/events.ts +154 -0
- package/plugins/vc-ask/questionnaire/execute.ts +688 -0
- package/plugins/vc-ask/questionnaire/i18n.ts +73 -0
- package/plugins/vc-ask/questionnaire/inline-entry.ts +312 -0
- package/plugins/vc-ask/questionnaire/locales/de.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/en.json +42 -0
- package/plugins/vc-ask/questionnaire/locales/es.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/fr.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/pt-BR.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/pt.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/ru.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/uk.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/zh.json +46 -0
- package/plugins/vc-ask/questionnaire/presentation.ts +11 -0
- package/plugins/vc-ask/questionnaire/question-preview.ts +6 -0
- package/plugins/vc-ask/questionnaire/rpc.ts +221 -0
- package/plugins/vc-ask/questionnaire/session-timeout.ts +67 -0
- package/plugins/vc-ask/questionnaire/state/build-questionnaire.ts +144 -0
- package/plugins/vc-ask/questionnaire/state/external-editor.ts +62 -0
- package/plugins/vc-ask/questionnaire/state/geometry.ts +131 -0
- package/plugins/vc-ask/questionnaire/state/key-router.ts +382 -0
- package/plugins/vc-ask/questionnaire/state/panel-router.ts +32 -0
- package/plugins/vc-ask/questionnaire/state/questionnaire-session.ts +642 -0
- package/plugins/vc-ask/questionnaire/state/row-intent.ts +143 -0
- package/plugins/vc-ask/questionnaire/state/selectors/contract.ts +24 -0
- package/plugins/vc-ask/questionnaire/state/selectors/derivations.ts +40 -0
- package/plugins/vc-ask/questionnaire/state/selectors/focus.ts +17 -0
- package/plugins/vc-ask/questionnaire/state/selectors/projections.ts +99 -0
- package/plugins/vc-ask/questionnaire/state/state-reducer.ts +455 -0
- package/plugins/vc-ask/questionnaire/state/state.ts +90 -0
- package/plugins/vc-ask/questionnaire/state/vertical.ts +158 -0
- package/plugins/vc-ask/questionnaire/timeout.ts +59 -0
- package/plugins/vc-ask/questionnaire/tool/external-answer.ts +103 -0
- package/plugins/vc-ask/questionnaire/tool/format-answer.ts +24 -0
- package/plugins/vc-ask/questionnaire/tool/normalize-params.ts +37 -0
- package/plugins/vc-ask/questionnaire/tool/response-envelope.ts +75 -0
- package/plugins/vc-ask/questionnaire/tool/types.ts +74 -0
- package/plugins/vc-ask/questionnaire/tool/validate-questionnaire.ts +75 -0
- package/plugins/vc-ask/questionnaire/view/card-theme.ts +245 -0
- package/plugins/vc-ask/questionnaire/view/components/inline-input.ts +66 -0
- package/plugins/vc-ask/questionnaire/view/components/multi-select-view.ts +177 -0
- package/plugins/vc-ask/questionnaire/view/components/option-list-view.ts +65 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/markdown-content-cache.ts +101 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-block-renderer.ts +130 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-box-renderer.ts +86 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-layout-decider.ts +204 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-pane.ts +257 -0
- package/plugins/vc-ask/questionnaire/view/components/submit-picker.ts +65 -0
- package/plugins/vc-ask/questionnaire/view/components/tab-bar.ts +57 -0
- package/plugins/vc-ask/questionnaire/view/components/wrapping-select.ts +269 -0
- package/plugins/vc-ask/questionnaire/view/dialog-builder.ts +319 -0
- package/plugins/vc-ask/questionnaire/view/document-theme.ts +53 -0
- package/plugins/vc-ask/questionnaire/view/document-view.ts +306 -0
- package/plugins/vc-ask/questionnaire/view/panel-chrome.ts +133 -0
- package/plugins/vc-ask/questionnaire/view/props-adapter.ts +77 -0
- package/plugins/vc-ask/questionnaire/view/stateful-view.ts +24 -0
- package/plugins/vc-ask/questionnaire/view/tab-components.ts +16 -0
- package/plugins/vc-ask/questionnaire/view/tab-content-strategy.ts +280 -0
- package/plugins/vc-ask/questionnaire/view/vertical-view.ts +218 -0
- package/plugins/vc-ask/user-input-events.ts +34 -0
- package/plugins/vc-ask/vc-extras.plugin.json +18 -0
- package/plugins/vc-footer/agents/claude-code/adapter.mjs +29 -0
- package/plugins/vc-footer/agents/claude-code/cli.mjs +23 -0
- package/plugins/vc-footer/agents/claude-code/renderer.mjs +1 -0
- package/plugins/vc-footer/agents/claude-code/types.d.ts +38 -0
- package/plugins/vc-footer/agents/codex/adapter.mjs +13 -0
- package/plugins/vc-footer/agents/codex/mcp.mjs +45 -0
- package/plugins/vc-footer/agents/codex/native.mjs +19 -0
- package/plugins/vc-footer/agents/codex/renderer.mjs +2 -0
- package/plugins/vc-footer/agents/pi/adapter.mjs +23 -0
- package/plugins/vc-footer/agents/pi/index.js +84 -0
- package/plugins/vc-footer/agents/pi/project-local-owner.mjs +97 -0
- package/plugins/vc-footer/agents/pi/renderer.mjs +5 -0
- package/plugins/vc-footer/core/data.mjs +218 -0
- package/plugins/vc-footer/core/render.mjs +291 -0
- package/plugins/vc-footer/core/types.d.ts +29 -0
- package/plugins/vc-footer/package.json +22 -0
- package/plugins/vc-footer/vc-extras.plugin.json +32 -0
- package/skills/animate/LICENSE +21 -21
- package/skills/animate/RECIPES.md +324 -324
- package/skills/animate/SKILL.md +208 -208
- package/skills/animate/UPSTREAM.md +19 -19
- package/skills/animation-performance/LICENSE +21 -21
- package/skills/animation-performance/SKILL.md +223 -223
- package/skills/animation-performance/UPSTREAM.md +19 -19
- package/skills/answer-me-with-html/SKILL.md +174 -174
- package/skills/answer-me-with-html/scripts/am.mjs +12896 -12896
- package/skills/apple-design/LICENSE +21 -21
- package/skills/apple-design/SKILL.md +291 -291
- package/skills/apple-design/UPSTREAM.md +19 -19
- package/skills/bad-smell/SKILL.md +44 -44
- package/skills/commit/SKILL.md +90 -90
- package/skills/emil-design-eng/LICENSE +21 -21
- package/skills/emil-design-eng/SKILL.md +677 -677
- package/skills/emil-design-eng/UPSTREAM.md +19 -19
- package/skills/find-the-truth/SKILL.md +38 -38
- package/skills/find-the-truth/references/trace-method.md +48 -48
- package/skills/find-the-truth/references/truth-method.md +39 -39
- package/skills/gestures/LICENSE +21 -21
- package/skills/gestures/SKILL.md +107 -107
- package/skills/gestures/UPSTREAM.md +19 -19
- package/skills/humanizer-zh/LICENSE +21 -21
- package/skills/humanizer-zh/SKILL.md +409 -409
- package/skills/humanizer-zh/UPSTREAM.md +7 -7
- package/skills/impeccable/LICENSE +191 -191
- package/skills/impeccable/NOTICE.md +11 -11
- package/skills/impeccable/SKILL.md +89 -89
- package/skills/impeccable/licenses/modern-screenshot-MIT.txt +8 -8
- package/skills/impeccable/licenses/platform-design-skills-MIT.txt +21 -21
- package/skills/impeccable/reference/adapt.md +318 -318
- package/skills/impeccable/reference/adapt.native.md +58 -58
- package/skills/impeccable/reference/android.md +46 -46
- package/skills/impeccable/reference/animate.md +89 -89
- package/skills/impeccable/reference/audit.md +139 -139
- package/skills/impeccable/reference/audit.native.md +139 -139
- package/skills/impeccable/reference/bolder.md +33 -33
- package/skills/impeccable/reference/clarify.md +94 -94
- package/skills/impeccable/reference/colorize.md +86 -86
- package/skills/impeccable/reference/component-review.md +63 -63
- package/skills/impeccable/reference/craft-floor.md +44 -44
- package/skills/impeccable/reference/craft.md +5 -5
- package/skills/impeccable/reference/critique.md +819 -819
- package/skills/impeccable/reference/degraded/asset-producer.md +41 -41
- package/skills/impeccable/reference/degraded/documenter.md +23 -23
- package/skills/impeccable/reference/degraded/finish-reviewer.md +37 -37
- package/skills/impeccable/reference/degraded/manual-edit-applier.md +92 -92
- package/skills/impeccable/reference/delight.md +70 -70
- package/skills/impeccable/reference/distill.md +111 -111
- package/skills/impeccable/reference/doctor.md +54 -54
- package/skills/impeccable/reference/document.md +416 -416
- package/skills/impeccable/reference/extract.md +69 -69
- package/skills/impeccable/reference/generate.md +101 -101
- package/skills/impeccable/reference/harden.md +362 -362
- package/skills/impeccable/reference/hooks.md +114 -114
- package/skills/impeccable/reference/init.md +131 -131
- package/skills/impeccable/reference/ios.md +51 -51
- package/skills/impeccable/reference/layout.md +84 -84
- package/skills/impeccable/reference/live-setup.md +104 -104
- package/skills/impeccable/reference/live.md +327 -327
- package/skills/impeccable/reference/mode-operate.md +21 -21
- package/skills/impeccable/reference/mode-persuade.md +19 -19
- package/skills/impeccable/reference/mode-read.md +21 -21
- package/skills/impeccable/reference/new-work.md +152 -152
- package/skills/impeccable/reference/onboard.md +234 -234
- package/skills/impeccable/reference/operate.md +61 -61
- package/skills/impeccable/reference/optimize.md +257 -257
- package/skills/impeccable/reference/overdrive.md +127 -127
- package/skills/impeccable/reference/polish.md +105 -105
- package/skills/impeccable/reference/quieter.md +99 -99
- package/skills/impeccable/reference/region-map.md +26 -26
- package/skills/impeccable/reference/routing.md +24 -24
- package/skills/impeccable/reference/shape.md +59 -59
- package/skills/impeccable/reference/typeset.md +90 -90
- package/skills/impeccable/reference/visualize.md +47 -47
- package/skills/impeccable/scripts/VERSION +1 -1
- package/skills/impeccable/scripts/command-metadata.json +98 -98
- package/skills/impeccable/scripts/data/font-index-failures.json +120 -120
- package/skills/impeccable/scripts/engine-checksums.txt +9 -9
- package/skills/impeccable/scripts/impeccable +249 -249
- package/skills/impeccable/scripts/impeccable.cmd +278 -278
- package/skills/impeccable/scripts/live-browser-dom.js +320 -320
- package/skills/impeccable/scripts/live-browser-ignores.js +246 -246
- package/skills/impeccable/scripts/live-browser-session.js +183 -183
- package/skills/impeccable/scripts/live-browser.js +13862 -13862
- package/skills/impeccable/scripts/modern-screenshot.umd.js +14 -14
- package/skills/improve-animations/AUDIT.md +115 -115
- package/skills/improve-animations/LICENSE +21 -21
- package/skills/improve-animations/PLAN-TEMPLATE.md +73 -73
- package/skills/improve-animations/SKILL.md +110 -110
- package/skills/improve-animations/UPSTREAM.md +19 -19
- package/skills/pick-ui-library/LICENSE +21 -21
- package/skills/pick-ui-library/SKILL.md +85 -85
- package/skills/pick-ui-library/UPSTREAM.md +19 -19
- package/skills/review-animations/LICENSE +21 -21
- package/skills/review-animations/SKILL.md +120 -120
- package/skills/review-animations/STANDARDS.md +187 -187
- package/skills/review-animations/UPSTREAM.md +19 -19
- package/skills/test/SKILL.md +29 -29
- package/skills/test/references/test-method.md +60 -60
- package/skills/write-doc/SKILL.md +115 -115
- package/skills/write-doc/examples/result-report.md +53 -53
- package/skills/write-doc/examples/task-summary.md +45 -45
- package/skills/write-doc/references/terminology.md +147 -147
- package/specs/ask-host-protocol-v1.md +58 -0
- package/specs/design-demo.md +1102 -1102
- package/specs/frontend-immersive.md +28 -28
- package/specs/plugin-install-v2.md +123 -0
- package/specs/plugin-install.md +38 -0
- package/specs/web-modes/explore.md +31 -31
- package/specs/web-modes/risk.md +15 -15
- package/specs/web-modes/verify.md +16 -16
- package/vc-extras.mjs +46 -62
- package/plugins/essrj/context.ts +0 -47
- package/plugins/essrj/data.ts +0 -190
- package/plugins/essrj/index.ts +0 -139
- package/plugins/essrj/package.json +0 -12
- package/plugins/essrj/project-local-owner.ts +0 -106
- package/plugins/essrj/render.ts +0 -217
- package/plugins/essrj/types.ts +0 -40
- package/plugins.json +0 -38
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# Upstream
|
|
2
|
-
|
|
3
|
-
- Repository: https://github.com/emilkowalski/skills
|
|
4
|
-
- Commit: f7ce8c02d6e3c8f0d980a44c57bcc41a40254349 (2026-11-12)
|
|
5
|
-
- Upstream path: `skills/apple-design/`
|
|
6
|
-
- License: MIT (see `LICENSE` in this directory)
|
|
7
|
-
|
|
8
|
-
Files copied verbatim: `SKILL.md`.
|
|
9
|
-
|
|
10
|
-
The only local adaptation is the frontmatter `disable-model-invocation: true` added by
|
|
11
|
-
`npm run sync:skills`, so the model sees this skill only through the
|
|
12
|
-
`emma/skills/skills-router/SKILL.md` row and loads it on demand.
|
|
13
|
-
|
|
14
|
-
## Resync
|
|
15
|
-
|
|
16
|
-
1. Check out the recorded commit of the upstream repository.
|
|
17
|
-
2. Replace the upstream files here with `skills/apple-design/` from that commit; keep `LICENSE` and this file.
|
|
18
|
-
3. Run `npm run sync:skills` to restore the hidden frontmatter and the router row.
|
|
19
|
-
4. Keep the frontmatter `description` a single-line plain scalar; the router generator rejects block and folded scalars.
|
|
1
|
+
# Upstream
|
|
2
|
+
|
|
3
|
+
- Repository: https://github.com/emilkowalski/skills
|
|
4
|
+
- Commit: f7ce8c02d6e3c8f0d980a44c57bcc41a40254349 (2026-11-12)
|
|
5
|
+
- Upstream path: `skills/apple-design/`
|
|
6
|
+
- License: MIT (see `LICENSE` in this directory)
|
|
7
|
+
|
|
8
|
+
Files copied verbatim: `SKILL.md`.
|
|
9
|
+
|
|
10
|
+
The only local adaptation is the frontmatter `disable-model-invocation: true` added by
|
|
11
|
+
`npm run sync:skills`, so the model sees this skill only through the
|
|
12
|
+
`emma/skills/skills-router/SKILL.md` row and loads it on demand.
|
|
13
|
+
|
|
14
|
+
## Resync
|
|
15
|
+
|
|
16
|
+
1. Check out the recorded commit of the upstream repository.
|
|
17
|
+
2. Replace the upstream files here with `skills/apple-design/` from that commit; keep `LICENSE` and this file.
|
|
18
|
+
3. Run `npm run sync:skills` to restore the hidden frontmatter and the router row.
|
|
19
|
+
4. Keep the frontmatter `description` a single-line plain scalar; the router generator rejects block and folded scalars.
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
---
|
|
2
|
-
disable-model-invocation: true
|
|
3
|
-
name: bad-smell
|
|
4
|
-
description: Use when code may contain a refactoring smell or structural design problem.
|
|
5
|
-
user-invocable: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# bad-smell
|
|
9
|
-
|
|
10
|
-
Check the code for the following code smells:
|
|
11
|
-
|
|
12
|
-
- Bloated code
|
|
13
|
-
|
|
14
|
-
- Duplicated Code: Structurally similar code appears in multiple places; copy-paste makes it easy to miss updates when modifying.
|
|
15
|
-
|
|
16
|
-
- Long Method: A function spans hundreds or thousands of lines, with complex logic that is hard to understand.
|
|
17
|
-
|
|
18
|
-
- Large Class: A class takes on too many responsibilities and has poor cohesion.
|
|
19
|
-
|
|
20
|
-
- Long Parameter List: A function has too many parameters (usually more than 5), making it hard to call and read.
|
|
21
|
-
|
|
22
|
-
- Data Clumps: Several data items that always appear together (e.g., fields that consistently appear together across different classes or methods) should be encapsulated into an object.
|
|
23
|
-
|
|
24
|
-
- Object-oriented abuse
|
|
25
|
-
|
|
26
|
-
- Feature Envy: A function is far more interested in another class than in the class it belongs to, frequently calling other classes' data.
|
|
27
|
-
|
|
28
|
-
- Primitive Obsession: Overuse of primitive data types (e.g., using strings or integers to represent complex business concepts instead of encapsulating them into objects).
|
|
29
|
-
|
|
30
|
-
- Repeated Switches: The same switch-case or if-else conditional branches appear everywhere; adding a new type requires modifying multiple places.
|
|
31
|
-
|
|
32
|
-
- Refused Bequest: A subclass inherits from a parent class but does not implement or need the parent class's methods and data.
|
|
33
|
-
|
|
34
|
-
- Obstacles to change
|
|
35
|
-
|
|
36
|
-
- Divergent Change: A class is frequently modified for different reasons in different directions (indicating mixed responsibilities).
|
|
37
|
-
|
|
38
|
-
- Shotgun Surgery: Every minor change requires modifying many different classes in many places.
|
|
39
|
-
|
|
40
|
-
The project is currently in the early development stage. Architectural debt should be addressed as early as possible.
|
|
41
|
-
|
|
42
|
-
If you can "smell" a clearly better design and the scope is controllable and risk-free, optimize and refactor immediately along the way.
|
|
43
|
-
|
|
44
|
-
If the refactoring scope is large, high-risk, or requires further planning, briefly record the code smells you found in {project_root}/docs/freeform/yymmdd-{summary}.smell.md, then return to the original task.
|
|
1
|
+
---
|
|
2
|
+
disable-model-invocation: true
|
|
3
|
+
name: bad-smell
|
|
4
|
+
description: Use when code may contain a refactoring smell or structural design problem.
|
|
5
|
+
user-invocable: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# bad-smell
|
|
9
|
+
|
|
10
|
+
Check the code for the following code smells:
|
|
11
|
+
|
|
12
|
+
- Bloated code
|
|
13
|
+
|
|
14
|
+
- Duplicated Code: Structurally similar code appears in multiple places; copy-paste makes it easy to miss updates when modifying.
|
|
15
|
+
|
|
16
|
+
- Long Method: A function spans hundreds or thousands of lines, with complex logic that is hard to understand.
|
|
17
|
+
|
|
18
|
+
- Large Class: A class takes on too many responsibilities and has poor cohesion.
|
|
19
|
+
|
|
20
|
+
- Long Parameter List: A function has too many parameters (usually more than 5), making it hard to call and read.
|
|
21
|
+
|
|
22
|
+
- Data Clumps: Several data items that always appear together (e.g., fields that consistently appear together across different classes or methods) should be encapsulated into an object.
|
|
23
|
+
|
|
24
|
+
- Object-oriented abuse
|
|
25
|
+
|
|
26
|
+
- Feature Envy: A function is far more interested in another class than in the class it belongs to, frequently calling other classes' data.
|
|
27
|
+
|
|
28
|
+
- Primitive Obsession: Overuse of primitive data types (e.g., using strings or integers to represent complex business concepts instead of encapsulating them into objects).
|
|
29
|
+
|
|
30
|
+
- Repeated Switches: The same switch-case or if-else conditional branches appear everywhere; adding a new type requires modifying multiple places.
|
|
31
|
+
|
|
32
|
+
- Refused Bequest: A subclass inherits from a parent class but does not implement or need the parent class's methods and data.
|
|
33
|
+
|
|
34
|
+
- Obstacles to change
|
|
35
|
+
|
|
36
|
+
- Divergent Change: A class is frequently modified for different reasons in different directions (indicating mixed responsibilities).
|
|
37
|
+
|
|
38
|
+
- Shotgun Surgery: Every minor change requires modifying many different classes in many places.
|
|
39
|
+
|
|
40
|
+
The project is currently in the early development stage. Architectural debt should be addressed as early as possible.
|
|
41
|
+
|
|
42
|
+
If you can "smell" a clearly better design and the scope is controllable and risk-free, optimize and refactor immediately along the way.
|
|
43
|
+
|
|
44
|
+
If the refactoring scope is large, high-risk, or requires further planning, briefly record the code smells you found in {project_root}/docs/freeform/yymmdd-{summary}.smell.md, then return to the original task.
|
package/skills/commit/SKILL.md
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
---
|
|
2
|
-
disable-model-invocation: true
|
|
3
|
-
name: commit
|
|
4
|
-
description: Use when the user asks to commit code or changes.
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Turn the changes approved for this round into a local commit.
|
|
8
|
-
|
|
9
|
-
## Commit message format
|
|
10
|
-
|
|
11
|
-
Follow Conventional Commits:
|
|
12
|
-
|
|
13
|
-
```text
|
|
14
|
-
<type>[optional scope]: <description>
|
|
15
|
-
|
|
16
|
-
[optional body]
|
|
17
|
-
|
|
18
|
-
[optional footer(s)]
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Types
|
|
23
|
-
|
|
24
|
-
| Type | Purpose |
|
|
25
|
-
| -------- | ------------------------------ |
|
|
26
|
-
| feat | New feature |
|
|
27
|
-
| fix | Bug fix |
|
|
28
|
-
| docs | Documentation only |
|
|
29
|
-
| style | Formatting/style (no logic) |
|
|
30
|
-
| refactor | Code refactor (no feature/fix) |
|
|
31
|
-
| perf | Performance improvement |
|
|
32
|
-
| test | Add/update tests |
|
|
33
|
-
| chore | Maintenance/misc |
|
|
34
|
-
| revert | Revert commit |
|
|
35
|
-
|
|
36
|
-
## Breaking changes
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
# Exclamation mark after type/scope
|
|
40
|
-
feat!: remove deprecated endpoint
|
|
41
|
-
|
|
42
|
-
# BREAKING CHANGE footer
|
|
43
|
-
feat: allow config to extend other configs
|
|
44
|
-
|
|
45
|
-
BREAKING CHANGE: `extends` key behavior changed
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## Rules
|
|
49
|
-
|
|
50
|
-
- Follow the repo's git log conventions for language. If there's no history, use the user's current language.
|
|
51
|
-
|
|
52
|
-
- Subject line: <type>(<scope>): <subject> or <type>: <subject>. Use imperative mood, no period, ≤50 characters (about 25 Chinese characters).
|
|
53
|
-
|
|
54
|
-
- Body (optional): after a blank line, explain why and what changed. Don't just repeat logs or file lists.
|
|
55
|
-
|
|
56
|
-
- Breaking changes: after a blank line, start a line with BREAKING CHANGE:.
|
|
57
|
-
|
|
58
|
-
## Scope
|
|
59
|
-
|
|
60
|
-
1. Check git status, git diff, git diff --cached, and untracked files.
|
|
61
|
-
|
|
62
|
-
2. Go through each path and decide: include (this round's changes, new files, deletions/renames — use git add -u or git rm for deletions); exclude (out-of-scope changes, secrets/credentials, temp files, build artifacts); if it's unclear whether it belongs, ask the user — don't guess.
|
|
63
|
-
|
|
64
|
-
3. If git diff --cached already has out-of-scope content, stop and ask the user. Don't clear it by default, and don't commit it by default.
|
|
65
|
-
|
|
66
|
-
4. If you're in the middle of a merge/rebase/cherry-pick, stop and report it.
|
|
67
|
-
|
|
68
|
-
## Stage and double-check
|
|
69
|
-
|
|
70
|
-
1. Stage by path with git add <path>. Don't use -A or ..
|
|
71
|
-
|
|
72
|
-
2. Run git diff --cached --name-status and make sure it matches your list.
|
|
73
|
-
|
|
74
|
-
3. If you see anything that looks like a secret or token, stop and report only the file and location.
|
|
75
|
-
|
|
76
|
-
4. If git diff --cached --check flags conflict markers or whitespace errors, fix those first.
|
|
77
|
-
|
|
78
|
-
## Commit
|
|
79
|
-
|
|
80
|
-
- Default to one commit. Only split when there are truly separate concerns — stage in batches, check each batch, and explain each commit.
|
|
81
|
-
|
|
82
|
-
- If the pre-commit hook fails: if this round's changes caused it, fix and retry; if the hook modified files, re-check and re-stage; if it's unrelated, report why; --no-verify requires explicit user approval.
|
|
83
|
-
|
|
84
|
-
- After committing, report the hash and a one-line summary. If there's nothing to commit or the commit fails, say why — don't pretend it worked.
|
|
85
|
-
|
|
86
|
-
## Don't
|
|
87
|
-
|
|
88
|
-
Don't push. Don't run git reset/checkout/clean/stash or anything else that changes the working tree or index unless the user explicitly approves. Only amend/rebase when the user explicitly asks. If the commit fails, leave everything as-is.
|
|
89
|
-
|
|
90
|
-
Never update git config. Never run destructive commands (--force, hard reset) without explicit request. Never force push to main/master.
|
|
1
|
+
---
|
|
2
|
+
disable-model-invocation: true
|
|
3
|
+
name: commit
|
|
4
|
+
description: Use when the user asks to commit code or changes.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Turn the changes approved for this round into a local commit.
|
|
8
|
+
|
|
9
|
+
## Commit message format
|
|
10
|
+
|
|
11
|
+
Follow Conventional Commits:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
<type>[optional scope]: <description>
|
|
15
|
+
|
|
16
|
+
[optional body]
|
|
17
|
+
|
|
18
|
+
[optional footer(s)]
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Types
|
|
23
|
+
|
|
24
|
+
| Type | Purpose |
|
|
25
|
+
| -------- | ------------------------------ |
|
|
26
|
+
| feat | New feature |
|
|
27
|
+
| fix | Bug fix |
|
|
28
|
+
| docs | Documentation only |
|
|
29
|
+
| style | Formatting/style (no logic) |
|
|
30
|
+
| refactor | Code refactor (no feature/fix) |
|
|
31
|
+
| perf | Performance improvement |
|
|
32
|
+
| test | Add/update tests |
|
|
33
|
+
| chore | Maintenance/misc |
|
|
34
|
+
| revert | Revert commit |
|
|
35
|
+
|
|
36
|
+
## Breaking changes
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
# Exclamation mark after type/scope
|
|
40
|
+
feat!: remove deprecated endpoint
|
|
41
|
+
|
|
42
|
+
# BREAKING CHANGE footer
|
|
43
|
+
feat: allow config to extend other configs
|
|
44
|
+
|
|
45
|
+
BREAKING CHANGE: `extends` key behavior changed
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Rules
|
|
49
|
+
|
|
50
|
+
- Follow the repo's git log conventions for language. If there's no history, use the user's current language.
|
|
51
|
+
|
|
52
|
+
- Subject line: <type>(<scope>): <subject> or <type>: <subject>. Use imperative mood, no period, ≤50 characters (about 25 Chinese characters).
|
|
53
|
+
|
|
54
|
+
- Body (optional): after a blank line, explain why and what changed. Don't just repeat logs or file lists.
|
|
55
|
+
|
|
56
|
+
- Breaking changes: after a blank line, start a line with BREAKING CHANGE:.
|
|
57
|
+
|
|
58
|
+
## Scope
|
|
59
|
+
|
|
60
|
+
1. Check git status, git diff, git diff --cached, and untracked files.
|
|
61
|
+
|
|
62
|
+
2. Go through each path and decide: include (this round's changes, new files, deletions/renames — use git add -u or git rm for deletions); exclude (out-of-scope changes, secrets/credentials, temp files, build artifacts); if it's unclear whether it belongs, ask the user — don't guess.
|
|
63
|
+
|
|
64
|
+
3. If git diff --cached already has out-of-scope content, stop and ask the user. Don't clear it by default, and don't commit it by default.
|
|
65
|
+
|
|
66
|
+
4. If you're in the middle of a merge/rebase/cherry-pick, stop and report it.
|
|
67
|
+
|
|
68
|
+
## Stage and double-check
|
|
69
|
+
|
|
70
|
+
1. Stage by path with git add <path>. Don't use -A or ..
|
|
71
|
+
|
|
72
|
+
2. Run git diff --cached --name-status and make sure it matches your list.
|
|
73
|
+
|
|
74
|
+
3. If you see anything that looks like a secret or token, stop and report only the file and location.
|
|
75
|
+
|
|
76
|
+
4. If git diff --cached --check flags conflict markers or whitespace errors, fix those first.
|
|
77
|
+
|
|
78
|
+
## Commit
|
|
79
|
+
|
|
80
|
+
- Default to one commit. Only split when there are truly separate concerns — stage in batches, check each batch, and explain each commit.
|
|
81
|
+
|
|
82
|
+
- If the pre-commit hook fails: if this round's changes caused it, fix and retry; if the hook modified files, re-check and re-stage; if it's unrelated, report why; --no-verify requires explicit user approval.
|
|
83
|
+
|
|
84
|
+
- After committing, report the hash and a one-line summary. If there's nothing to commit or the commit fails, say why — don't pretend it worked.
|
|
85
|
+
|
|
86
|
+
## Don't
|
|
87
|
+
|
|
88
|
+
Don't push. Don't run git reset/checkout/clean/stash or anything else that changes the working tree or index unless the user explicitly approves. Only amend/rebase when the user explicitly asks. If the commit fails, leave everything as-is.
|
|
89
|
+
|
|
90
|
+
Never update git config. Never run destructive commands (--force, hard reset) without explicit request. Never force push to main/master.
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Emil Kowalski
|
|
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.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Emil Kowalski
|
|
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.
|