@smartsoft001/claude-plugins 2.193.0 → 2.195.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 (149) hide show
  1. package/.claude-plugin/marketplace.json +14 -3
  2. package/README.md +19 -4
  3. package/package.json +3 -3
  4. package/plugins/smart-angular/.claude-plugin/plugin.json +6 -0
  5. package/plugins/{smart → smart-angular}/skills/angular-components-button/SKILL.md +1 -1
  6. package/plugins/{smart → smart-angular}/skills/angular-components-container/SKILL.md +8 -8
  7. package/plugins/{smart → smart-angular}/skills/angular-components-drawer/SKILL.md +5 -9
  8. package/plugins/{smart → smart-angular}/skills/angular-components-list-container/SKILL.md +2 -5
  9. package/plugins/{smart → smart-angular}/skills/angular-components-media-object/SKILL.md +1 -1
  10. package/plugins/{smart → smart-angular}/skills/angular-components-modal/SKILL.md +1 -1
  11. package/plugins/{smart → smart-angular}/skills/scaffold-nx-workspace/SKILL.md +1 -1
  12. package/plugins/{smart → smart-angular}/skills/scaffold-nx-workspace/references/base-claude-config.md +13 -9
  13. package/plugins/{smart → smart-angular}/skills/scaffold-nx-workspace/references/patch-delta.md +1 -1
  14. package/plugins/{smart → smart-core}/.claude-plugin/README.md +31 -16
  15. package/plugins/{smart → smart-core}/.claude-plugin/merge-permissions.js +7 -6
  16. package/plugins/smart-core/.claude-plugin/plugin.json +5 -0
  17. package/plugins/{smart → smart-core}/.claude-plugin/settings.template.json +2 -2
  18. package/plugins/{smart → smart-core}/hooks/README.md +1 -1
  19. package/plugins/{smart → smart-core}/skills/audit-log/SKILL.md +2 -2
  20. package/plugins/{smart → smart-core}/skills/format-code/SKILL.md +1 -1
  21. package/plugins/smart-react/.claude-plugin/plugin.json +6 -0
  22. package/plugins/smart-react/agents/react-components.md +260 -0
  23. package/plugins/smart-react/skills/react-components-accordion/SKILL.md +204 -0
  24. package/plugins/smart-react/skills/react-components-action-panel/SKILL.md +191 -0
  25. package/plugins/smart-react/skills/react-components-alert/SKILL.md +244 -0
  26. package/plugins/smart-react/skills/react-components-app/SKILL.md +236 -0
  27. package/plugins/smart-react/skills/react-components-avatar/SKILL.md +176 -0
  28. package/plugins/smart-react/skills/react-components-badge/SKILL.md +165 -0
  29. package/plugins/smart-react/skills/react-components-breadcrumbs/SKILL.md +183 -0
  30. package/plugins/smart-react/skills/react-components-button/SKILL.md +239 -0
  31. package/plugins/smart-react/skills/react-components-button-group/SKILL.md +187 -0
  32. package/plugins/smart-react/skills/react-components-calendar/SKILL.md +270 -0
  33. package/plugins/smart-react/skills/react-components-card/SKILL.md +201 -0
  34. package/plugins/smart-react/skills/react-components-card-heading/SKILL.md +133 -0
  35. package/plugins/smart-react/skills/react-components-command-palette/SKILL.md +228 -0
  36. package/plugins/smart-react/skills/react-components-container/SKILL.md +134 -0
  37. package/plugins/smart-react/skills/react-components-date-edit/SKILL.md +186 -0
  38. package/plugins/smart-react/skills/react-components-date-range/SKILL.md +259 -0
  39. package/plugins/smart-react/skills/react-components-description-list/SKILL.md +144 -0
  40. package/plugins/smart-react/skills/react-components-detail/SKILL.md +272 -0
  41. package/plugins/smart-react/skills/react-components-details/SKILL.md +250 -0
  42. package/plugins/smart-react/skills/react-components-divider/SKILL.md +128 -0
  43. package/plugins/smart-react/skills/react-components-drawer/SKILL.md +165 -0
  44. package/plugins/smart-react/skills/react-components-dropdown/SKILL.md +194 -0
  45. package/plugins/smart-react/skills/react-components-empty-state/SKILL.md +202 -0
  46. package/plugins/smart-react/skills/react-components-export/SKILL.md +120 -0
  47. package/plugins/smart-react/skills/react-components-feed/SKILL.md +171 -0
  48. package/plugins/smart-react/skills/react-components-form/SKILL.md +319 -0
  49. package/plugins/smart-react/skills/react-components-grid-list/SKILL.md +172 -0
  50. package/plugins/smart-react/skills/react-components-icon/SKILL.md +117 -0
  51. package/plugins/smart-react/skills/react-components-import/SKILL.md +113 -0
  52. package/plugins/smart-react/skills/react-components-info/SKILL.md +147 -0
  53. package/plugins/smart-react/skills/react-components-input/SKILL.md +406 -0
  54. package/plugins/smart-react/skills/react-components-list/SKILL.md +384 -0
  55. package/plugins/smart-react/skills/react-components-list-container/SKILL.md +105 -0
  56. package/plugins/smart-react/skills/react-components-loader/SKILL.md +126 -0
  57. package/plugins/smart-react/skills/react-components-media-object/SKILL.md +130 -0
  58. package/plugins/smart-react/skills/react-components-modal/SKILL.md +266 -0
  59. package/plugins/smart-react/skills/react-components-multi-column-layout/SKILL.md +155 -0
  60. package/plugins/smart-react/skills/react-components-navbar/SKILL.md +211 -0
  61. package/plugins/smart-react/skills/react-components-notification/SKILL.md +223 -0
  62. package/plugins/smart-react/skills/react-components-overlays/SKILL.md +182 -0
  63. package/plugins/smart-react/skills/react-components-page/SKILL.md +224 -0
  64. package/plugins/smart-react/skills/react-components-page-heading/SKILL.md +155 -0
  65. package/plugins/smart-react/skills/react-components-paging/SKILL.md +183 -0
  66. package/plugins/smart-react/skills/react-components-password-strength/SKILL.md +149 -0
  67. package/plugins/smart-react/skills/react-components-progress-bars/SKILL.md +195 -0
  68. package/plugins/smart-react/skills/react-components-searchbar/SKILL.md +150 -0
  69. package/plugins/smart-react/skills/react-components-section-heading/SKILL.md +138 -0
  70. package/plugins/smart-react/skills/react-components-select-menu/SKILL.md +168 -0
  71. package/plugins/smart-react/skills/react-components-sidebar-layout/SKILL.md +155 -0
  72. package/plugins/smart-react/skills/react-components-sidebar-navigation/SKILL.md +277 -0
  73. package/plugins/smart-react/skills/react-components-sign-in-form/SKILL.md +228 -0
  74. package/plugins/smart-react/skills/react-components-stacked-layout/SKILL.md +146 -0
  75. package/plugins/smart-react/skills/react-components-stacked-list/SKILL.md +156 -0
  76. package/plugins/smart-react/skills/react-components-stats/SKILL.md +149 -0
  77. package/plugins/smart-react/skills/react-components-table/SKILL.md +222 -0
  78. package/plugins/smart-react/skills/react-components-tabs/SKILL.md +189 -0
  79. package/plugins/smart-react/skills/react-components-textarea/SKILL.md +202 -0
  80. package/plugins/smart-react/skills/react-components-toggle/SKILL.md +157 -0
  81. package/plugins/smart-react/skills/react-components-vertical-navigation/SKILL.md +212 -0
  82. package/plugins/smart-react/skills/react-forms/SKILL.md +272 -0
  83. package/plugins/smart-react/skills/react-provider/SKILL.md +368 -0
  84. package/plugins/smart-react/skills/smart-crud-react/SKILL.md +410 -0
  85. package/plugins/smart/.claude-plugin/plugin.json +0 -5
  86. /package/plugins/{smart/agents/angular-components/AGENT.md → smart-angular/agents/angular-components.md} +0 -0
  87. /package/plugins/{smart → smart-angular}/skills/angular-components-accordion/SKILL.md +0 -0
  88. /package/plugins/{smart → smart-angular}/skills/angular-components-action-panel/SKILL.md +0 -0
  89. /package/plugins/{smart → smart-angular}/skills/angular-components-alert/SKILL.md +0 -0
  90. /package/plugins/{smart → smart-angular}/skills/angular-components-avatar/SKILL.md +0 -0
  91. /package/plugins/{smart → smart-angular}/skills/angular-components-badge/SKILL.md +0 -0
  92. /package/plugins/{smart → smart-angular}/skills/angular-components-breadcrumbs/SKILL.md +0 -0
  93. /package/plugins/{smart → smart-angular}/skills/angular-components-button-group/SKILL.md +0 -0
  94. /package/plugins/{smart → smart-angular}/skills/angular-components-calendar/SKILL.md +0 -0
  95. /package/plugins/{smart → smart-angular}/skills/angular-components-card/SKILL.md +0 -0
  96. /package/plugins/{smart → smart-angular}/skills/angular-components-card-heading/SKILL.md +0 -0
  97. /package/plugins/{smart → smart-angular}/skills/angular-components-command-palette/SKILL.md +0 -0
  98. /package/plugins/{smart → smart-angular}/skills/angular-components-date-edit/SKILL.md +0 -0
  99. /package/plugins/{smart → smart-angular}/skills/angular-components-date-range/SKILL.md +0 -0
  100. /package/plugins/{smart → smart-angular}/skills/angular-components-description-list/SKILL.md +0 -0
  101. /package/plugins/{smart → smart-angular}/skills/angular-components-detail/SKILL.md +0 -0
  102. /package/plugins/{smart → smart-angular}/skills/angular-components-details/SKILL.md +0 -0
  103. /package/plugins/{smart → smart-angular}/skills/angular-components-divider/SKILL.md +0 -0
  104. /package/plugins/{smart → smart-angular}/skills/angular-components-dropdown/SKILL.md +0 -0
  105. /package/plugins/{smart → smart-angular}/skills/angular-components-empty-state/SKILL.md +0 -0
  106. /package/plugins/{smart → smart-angular}/skills/angular-components-feed/SKILL.md +0 -0
  107. /package/plugins/{smart → smart-angular}/skills/angular-components-form/SKILL.md +0 -0
  108. /package/plugins/{smart → smart-angular}/skills/angular-components-grid-list/SKILL.md +0 -0
  109. /package/plugins/{smart → smart-angular}/skills/angular-components-icon/SKILL.md +0 -0
  110. /package/plugins/{smart → smart-angular}/skills/angular-components-info/SKILL.md +0 -0
  111. /package/plugins/{smart → smart-angular}/skills/angular-components-input/SKILL.md +0 -0
  112. /package/plugins/{smart → smart-angular}/skills/angular-components-list/SKILL.md +0 -0
  113. /package/plugins/{smart → smart-angular}/skills/angular-components-multi-column-layout/SKILL.md +0 -0
  114. /package/plugins/{smart → smart-angular}/skills/angular-components-navbar/SKILL.md +0 -0
  115. /package/plugins/{smart → smart-angular}/skills/angular-components-notification/SKILL.md +0 -0
  116. /package/plugins/{smart → smart-angular}/skills/angular-components-page/SKILL.md +0 -0
  117. /package/plugins/{smart → smart-angular}/skills/angular-components-page-heading/SKILL.md +0 -0
  118. /package/plugins/{smart → smart-angular}/skills/angular-components-paging/SKILL.md +0 -0
  119. /package/plugins/{smart → smart-angular}/skills/angular-components-password-strength/SKILL.md +0 -0
  120. /package/plugins/{smart → smart-angular}/skills/angular-components-progress-bars/SKILL.md +0 -0
  121. /package/plugins/{smart → smart-angular}/skills/angular-components-searchbar/SKILL.md +0 -0
  122. /package/plugins/{smart → smart-angular}/skills/angular-components-section-heading/SKILL.md +0 -0
  123. /package/plugins/{smart → smart-angular}/skills/angular-components-select-menu/SKILL.md +0 -0
  124. /package/plugins/{smart → smart-angular}/skills/angular-components-sidebar-layout/SKILL.md +0 -0
  125. /package/plugins/{smart → smart-angular}/skills/angular-components-sidebar-navigation/SKILL.md +0 -0
  126. /package/plugins/{smart → smart-angular}/skills/angular-components-sign-in-form/SKILL.md +0 -0
  127. /package/plugins/{smart → smart-angular}/skills/angular-components-stacked-layout/SKILL.md +0 -0
  128. /package/plugins/{smart → smart-angular}/skills/angular-components-stacked-list/SKILL.md +0 -0
  129. /package/plugins/{smart → smart-angular}/skills/angular-components-stats/SKILL.md +0 -0
  130. /package/plugins/{smart → smart-angular}/skills/angular-components-table/SKILL.md +0 -0
  131. /package/plugins/{smart → smart-angular}/skills/angular-components-tabs/SKILL.md +0 -0
  132. /package/plugins/{smart → smart-angular}/skills/angular-components-textarea/SKILL.md +0 -0
  133. /package/plugins/{smart → smart-angular}/skills/angular-components-toggle/SKILL.md +0 -0
  134. /package/plugins/{smart → smart-angular}/skills/angular-components-vertical-navigation/SKILL.md +0 -0
  135. /package/plugins/{smart → smart-angular}/skills/scaffold-nx-workspace/references/base-app.md +0 -0
  136. /package/plugins/{smart → smart-angular}/skills/scaffold-nx-workspace/references/base-shared-lib.md +0 -0
  137. /package/plugins/{smart → smart-angular}/skills/scaffold-nx-workspace/references/version-resolution.md +0 -0
  138. /package/plugins/{smart → smart-angular}/skills/scaffold-nx-workspace/scripts/derive-prefix.sh +0 -0
  139. /package/plugins/{smart → smart-angular}/skills/scaffold-nx-workspace/scripts/verify-scaffold.sh +0 -0
  140. /package/plugins/{smart → smart-angular}/skills/smart-crud/SKILL.md +0 -0
  141. /package/plugins/{smart → smart-core}/hooks/CONFIG.md +0 -0
  142. /package/plugins/{smart → smart-core}/hooks/audit_logger.py +0 -0
  143. /package/plugins/{smart → smart-core}/hooks/auto_format.sh +0 -0
  144. /package/plugins/{smart → smart-core}/hooks/hooks.json +0 -0
  145. /package/plugins/{smart → smart-core}/hooks/safety_validator.py +0 -0
  146. /package/plugins/{smart → smart-core}/hooks/sensitive_file_blocker.py +0 -0
  147. /package/plugins/{smart → smart-core}/hooks/skill_validator.py +0 -0
  148. /package/plugins/{smart → smart-core}/skills/project-conventions/SKILL.md +0 -0
  149. /package/plugins/{smart → smart-core}/skills/safety-check/SKILL.md +0 -0
@@ -7,8 +7,19 @@
7
7
  },
8
8
  "plugins": [
9
9
  {
10
- "name": "smart",
11
- "source": "./plugins/smart"
10
+ "name": "smart-core",
11
+ "source": "./plugins/smart-core"
12
+ },
13
+ {
14
+ "name": "smart-angular",
15
+ "source": "./plugins/smart-angular"
16
+ },
17
+ {
18
+ "name": "smart-react",
19
+ "source": "./plugins/smart-react"
12
20
  }
13
- ]
21
+ ],
22
+ "renames": {
23
+ "smart": "smart-angular"
24
+ }
14
25
  }
package/README.md CHANGED
@@ -16,14 +16,29 @@ claude plugin marketplace add ./node_modules/@smartsoft001/claude-plugins
16
16
 
17
17
  ## Plugins
18
18
 
19
- ### smart
19
+ The `smartsoft` marketplace ships three plugins. A project enables the one of its framework; both
20
+ framework plugins declare `smart-core` as a dependency, so the hooks come with either of them.
20
21
 
21
- Hooks for skill activation, safety validation, formatting, and audit logging.
22
+ | Plugin | Enable in | Contents |
23
+ |--------|-----------|----------|
24
+ | `smart-core` | every project, as a dependency | Hooks (safety validation, sensitive files, audit logging, skill validation, formatting) and the `audit-log`, `format-code`, `project-conventions` and `safety-check` skills |
25
+ | `smart-angular` | Angular projects | The `angular-components-*` skills, the `angular-components` agent, `smart-crud` and `scaffold-nx-workspace` |
26
+ | `smart-react` | React projects | The `react-components-*` skills, the `react-components` agent, `react-provider`, `react-forms` and `smart-crud-react` |
27
+
28
+ ```bash
29
+ claude plugin install smart-angular@smartsoft --scope project # Angular project
30
+ claude plugin install smart-react@smartsoft --scope project # React project
31
+ ```
32
+
33
+ Projects that enabled the former `smart@smartsoft` plugin are moved to `smart-angular@smartsoft` by the
34
+ marketplace's `renames` map; run the `smart-angular` install above once to install it and `smart-core`.
35
+
36
+ ### smart-core hooks
22
37
 
23
38
  | Documentation | Description |
24
39
  |---------------|-------------|
25
- | [README](./src/plugins/smart/hooks/README.md) | Overview of available hooks |
26
- | [CONFIG](./src/plugins/smart/hooks/CONFIG.md) | Configuration and customization guide |
40
+ | [README](./src/plugins/smart-core/hooks/README.md) | Overview of available hooks |
41
+ | [CONFIG](./src/plugins/smart-core/hooks/CONFIG.md) | Configuration and customization guide |
27
42
 
28
43
  ## Contributing
29
44
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@smartsoft001/claude-plugins",
3
- "version": "2.193.0",
4
- "description": "Installs the smart@smartsoft Claude Code plugin into a project: the agents, skills and hooks this workspace develops with.",
3
+ "version": "2.195.0",
4
+ "description": "Installs the smartsoft Claude Code plugins into a project: smart-core (hooks and framework-neutral skills) plus smart-angular or smart-react (the component and CRUD skills and agents of one framework).",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "scripts": {
9
- "postinstall": "claude plugin update smart@smartsoft --scope project || true"
9
+ "postinstall": "node -e \"for (const plugin of ['smart-core', 'smart-angular', 'smart-react']) try { require('child_process').execSync('claude plugin update ' + plugin + '@smartsoft --scope project', { stdio: 'inherit' }) } catch {}\""
10
10
  },
11
11
  "types": "./src/index.d.ts",
12
12
  "main": "./src/index.js",
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "smart-angular",
3
+ "description": "Smartsoft for Angular projects - the @smartsoft001/angular component skills and their angular-components agent, the Angular CRUD skill and the Nx + Angular SSR workspace scaffold",
4
+ "version": "2.191.0",
5
+ "dependencies": ["smart-core"]
6
+ }
@@ -38,7 +38,7 @@ providers: [
38
38
  ];
39
39
  ```
40
40
 
41
- Because `ButtonComponent` renders the injected component via `NgComponentOutlet`, inputs are passed by **canonical name** — `ButtonPresetComponent` therefore overrides `cssClass` as a plain `input<string>('')` (dropping the inherited `class` alias). Note that `NgComponentOutlet` does not project `<ng-content>`, so a button label set via content only shows when the preset is used directly through `<smart-button-preset>` (not through the token path).
41
+ Because `ButtonComponent` renders the injected component via `NgComponentOutlet`, inputs are passed by **canonical name** — `ButtonPresetComponent` therefore overrides `cssClass` as a plain `input<string>('')` (dropping the inherited `class` alias). The wrapper passes its projected content (the label) to the injected component's `<ng-content>`, so the label shows through the token path as well as with `<smart-button-preset>` used directly.
42
42
 
43
43
  ### ButtonBaseComponent (abstract)
44
44
 
@@ -67,7 +67,7 @@ Three-layer pattern mirroring `<smart-toggle>`:
67
67
 
68
68
  1. **`ContainerBaseComponent`** (`@Directive()`) — shared signals/inputs (`options`, `cssClass` via `class` alias) and the `smartType = 'container'` discriminator. No outputs, no methods.
69
69
  2. **`ContainerStandardComponent`** (selector: `smart-container-standard`) — default concrete implementation extending the base. Renders a single `<div>` with `[class]`, `[attr.data-mode]`, `[attr.data-padding]`, and `<ng-content />`.
70
- 3. **`ContainerComponent`** (selector: `smart-container`) — wrapper. Uses `inject(CONTAINER_STANDARD_COMPONENT_TOKEN, { optional: true })` + `*ngComponentOutlet` to render the injected component, falling back to `<smart-container-standard>` with `<ng-content />` inside it so default-mode projection works.
70
+ 3. **`ContainerComponent`** (selector: `smart-container`) — wrapper. Uses `inject(CONTAINER_STANDARD_COMPONENT_TOKEN, { optional: true })` + `*ngComponentOutlet` to render the injected component, falling back to `<smart-container-standard>`. The projected content is captured once and reaches whichever renders: the standard component, or the injected component's default `<ng-content />`.
71
71
 
72
72
  ## Overriding with Custom Implementation
73
73
 
@@ -81,7 +81,7 @@ import {
81
81
  @Component({
82
82
  selector: 'smart-container-my-variant',
83
83
  template: `<section [class]="cssClass()">
84
- <!-- NOTE: ng-content does NOT work here when injected via the token -->
84
+ <ng-content />
85
85
  </section>`,
86
86
  })
87
87
  export class ContainerMyVariantComponent extends ContainerBaseComponent {}
@@ -95,15 +95,15 @@ providers: [
95
95
  ];
96
96
  ```
97
97
 
98
- ## Content Projection Limitation (IMPORTANT)
98
+ ## Content Projection
99
99
 
100
- The wrapper uses `*ngComponentOutlet` to render any token-provided implementation. **`NgComponentOutlet` does not forward content projection** — children placed between `<smart-container>...</smart-container>` are dropped when an injected component is active.
100
+ The wrapper uses `*ngComponentOutlet` to render any token-provided implementation and passes the children placed between `<smart-container>...</smart-container>` to it as outlet content, so they render in the injected component's default `<ng-content />` slot.
101
101
 
102
102
  Consequences for custom implementations:
103
103
 
104
- - The default `ContainerStandardComponent` works fine because the wrapper places `<ng-content />` directly inside `<smart-container-standard>` in the default branch.
105
- - A custom component provided via `CONTAINER_STANDARD_COMPONENT_TOKEN` **must not rely on `<ng-content />`**. Instead, drive the rendered content through inputs (e.g. `options`, additional input signals on the custom subclass, or a `TemplateRef` input).
106
- - If you genuinely need projected children with a custom variant, expose a `bodyTpl: input<TemplateRef>()` style input and render it with `<ng-container *ngTemplateOutlet="bodyTpl()" />`.
104
+ - The default `ContainerStandardComponent` receives the children through its `<ng-content />` as before.
105
+ - A custom component provided via `CONTAINER_STANDARD_COMPONENT_TOKEN` gets them in its first `<ng-content />` (put the default slot first if it also has `select` slots).
106
+ - The children arrive wrapped in one `display: contents` element. Layout (flex, grid, `gap`) is unaffected, but selectors on the slot's parent that target its direct children (`space-y-*`, `divide-*`, `> *`) do not reach them.
107
107
 
108
108
  ## Preset
109
109
 
@@ -134,7 +134,7 @@ providers: [
134
134
  ];
135
135
  ```
136
136
 
137
- Documented gap: because `NgComponentOutlet` does not forward content projection, projected children only render when `<smart-container-preset>` is used directly, not through `<smart-container>` (see the projection limitation above). Story: `container.component.stories.ts` → `Preset`.
137
+ Projected children render both through `<smart-container>` with the preset registered on the token and with `<smart-container-preset>` used directly (see "Content Projection" above). Story: `container.component.stories.ts` → `Preset`.
138
138
 
139
139
  ## File Locations
140
140
 
@@ -29,7 +29,7 @@ Fully-styled variation that extends `DrawerBaseComponent` and is a drop-in repla
29
29
 
30
30
  > Because `DrawerComponent` renders injected components via `NgComponentOutlet` (which passes inputs by canonical name), `DrawerPresetComponent` overrides `cssClass` as `input<string>('')` **without** the `class` alias. Bind it as `[cssClass]` when using the `<smart-drawer-preset>` selector directly, or just pass `class` on `<smart-drawer>` (the wrapper forwards it).
31
31
  >
32
- > The preset uses `<ng-content />` for its body, which works with the `<smart-drawer-preset>` selector directly but is **not** propagated when rendered through `DRAWER_STANDARD_COMPONENT_TOKEN` (see "Content Projection Limitation"). It does not consume `options.stickyFooter` (no footer slot in the base API) or `options.variant` (content-type variants are projected via `<ng-content />`, not built into the offcanvas shell). Top/bottom placements from the Preline reference are not expressible — `IDrawerOptions.position` is `left | right` only.
32
+ > The preset uses `<ng-content />` for its body, which receives the content projected into `<smart-drawer>` when the preset is registered through `DRAWER_STANDARD_COMPONENT_TOKEN`, as well as with the `<smart-drawer-preset>` selector directly (see "Content Projection"). It does not consume `options.stickyFooter` (no footer slot in the base API) or `options.variant` (content-type variants are projected via `<ng-content />`, not built into the offcanvas shell). Top/bottom placements from the Preline reference are not expressible — `IDrawerOptions.position` is `left | right` only.
33
33
 
34
34
  ### DrawerBaseComponent (abstract)
35
35
 
@@ -65,11 +65,7 @@ interface IDrawerOptions {
65
65
  }
66
66
 
67
67
  type SmartDrawerVariant =
68
- | 'empty'
69
- | 'create-form'
70
- | 'user-profile'
71
- | 'contact-list'
72
- | 'file-details';
68
+ 'empty' | 'create-form' | 'user-profile' | 'contact-list' | 'file-details';
73
69
  ```
74
70
 
75
71
  The standard component only consumes `position` (mapped to the `data-position` attribute on the aside, default `'right'`) and `withOverlay` (toggles the backdrop overlay). The remaining properties — `wide`, `brandedHeader`, `stickyFooter`, and `variant` — are reserved for custom implementations registered through `DRAWER_STANDARD_COMPONENT_TOKEN` and are ignored by `DrawerStandardComponent`.
@@ -126,7 +122,7 @@ import { DrawerBaseComponent } from '@smartsoft001/angular';
126
122
  </button>
127
123
  </header>
128
124
  }
129
- <!-- Custom implementations should expose data inputs instead of ng-content -->
125
+ <ng-content />
130
126
  </aside>
131
127
  }
132
128
  `,
@@ -152,9 +148,9 @@ When extending the base directly, remember to:
152
148
  - declare `cssClass = input<string>('')` explicitly (no `class` alias) if the component is used via `NgComponentOutlet` through `DRAWER_STANDARD_COMPONENT_TOKEN`, because `NgComponentOutlet` passes inputs by canonical name (not by alias),
153
149
  - call `this.close()` from your close affordances — it sets `open` to `false` and emits `closed` for you.
154
150
 
155
- ### Content Projection Limitation
151
+ ### Content Projection
156
152
 
157
- `DrawerStandardComponent` uses `<ng-content />` to project arbitrary children, but **`NgComponentOutlet` does not propagate projected content** to dynamically rendered components. When supplying a custom implementation via `DRAWER_STANDARD_COMPONENT_TOKEN`, do **not** rely on `<ng-content />`. Instead, expose data inputs (e.g. additional `input()` properties) on your subclass and render them inside the component template. Consumers then pass structured data to `<smart-drawer>` rather than projected DOM nodes.
153
+ `DrawerStandardComponent` uses `<ng-content />` to project arbitrary children. A custom implementation registered via `DRAWER_STANDARD_COMPONENT_TOKEN` receives the same content in its default `<ng-content />` slot, so it can show or hide the slot with `@if (open())` like the standard drawer, and control flow at the root of the projected content keeps working. The content arrives wrapped in one `display: contents` element: selectors on the slot's parent that target its direct children (`space-y-*`, `divide-*`, `> *`) do not reach the projected nodes.
158
154
 
159
155
  ## Accessibility
160
156
 
@@ -17,7 +17,7 @@ The `<smart-list-container>` component is a presentational layout wrapper that g
17
17
 
18
18
  ### ListContainerComponent (`<smart-list-container>`)
19
19
 
20
- Main wrapper component. Renders `ListContainerStandardComponent` by default. When `LIST_CONTAINER_STANDARD_COMPONENT_TOKEN` is provided, renders the injected component via `NgComponentOutlet`. Supports content projection through `<ng-content />` in the default branch, so children placed inside `<smart-list-container>` are rendered inside the standard list container.
20
+ Main wrapper component. Renders `ListContainerStandardComponent` by default. When `LIST_CONTAINER_STANDARD_COMPONENT_TOKEN` is provided, renders the injected component via `NgComponentOutlet`. Children placed inside `<smart-list-container>` are projected into the standard list container or, when the token is provided, into the injected component's default `<ng-content />`.
21
21
 
22
22
  ### ListContainerStandardComponent (`<smart-list-container-standard>`)
23
23
 
@@ -51,10 +51,7 @@ interface IListContainerOptions {
51
51
  }
52
52
 
53
53
  type SmartListContainerVariant =
54
- | 'simple'
55
- | 'card'
56
- | 'separate-cards'
57
- | 'flat-card-dividers';
54
+ 'simple' | 'card' | 'separate-cards' | 'flat-card-dividers';
58
55
  ```
59
56
 
60
57
  The standard component only consumes `variant` (placeholder behavior — applied as the `data-variant` attribute on the list root). The `fullWidthOnMobile` flag is reserved for custom implementations registered through `LIST_CONTAINER_STANDARD_COMPONENT_TOKEN` and is ignored by `ListContainerStandardComponent`.
@@ -41,7 +41,7 @@ Abstract base directive for extending custom media-object implementations. Decla
41
41
 
42
42
  ### Content Projection
43
43
 
44
- The wrapper projects body content via `<ng-content />` into the `.smart-media-object-body` slot of the standard component.
44
+ The wrapper projects body content via `<ng-content />` into the `.smart-media-object-body` slot of the standard component, or into the default `<ng-content />` of a component registered through `MEDIA_OBJECT_STANDARD_COMPONENT_TOKEN` (`MediaObjectPresetComponent` renders it in its body).
45
45
 
46
46
  ### IMediaObjectOptions
47
47
 
@@ -97,7 +97,7 @@ providers: [
97
97
 
98
98
  ## Content projection
99
99
 
100
- `ModalStandardComponent` accepts arbitrary body content via `<ng-content>` and the wrapper forwards its own `<ng-content>` into the standard. **However, `NgComponentOutlet` does not propagate projected content** — when a custom component is registered via the token, the wrapper renders the custom component as a sibling and the consumer's `<ng-content>` is dropped. Custom implementations should rely on inputs (`title`, `description`, structured `data` extension) or expose their own template inputs rather than `<ng-content>`.
100
+ `ModalStandardComponent` accepts arbitrary body content via `<ng-content>` and the wrapper forwards its own `<ng-content>` into the standard. When a custom component is registered via the token, the wrapper passes the same content to the custom component's default `<ng-content>` slot (`ModalPresetComponent` renders it in its body), wrapped in one `display: contents` element: selectors on the slot's parent that target its direct children (`space-y-*`, `divide-*`, `> *`) do not reach the projected nodes.
101
101
 
102
102
  ## Extending the Base Class
103
103
 
@@ -45,7 +45,7 @@ components. Stop at the buildable shell and defer those to the feature-module sk
45
45
 
46
46
  - **Use for:** bootstrapping a new smartsoft Nx / Angular-SSR workspace, "podstawowa konfiguracja nx", a no-modules skeleton.
47
47
  - **Not for:** adding a feature lib/module (→ module skills), adding feature deps, reconfiguring an existing
48
- workspace's lint/format (→ `/smart:format-code`), or component API questions (→ `smart:angular-components-*`).
48
+ workspace's lint/format (→ `/smart-core:format-code`), or component API questions (→ `smart-angular:angular-components-*`).
49
49
 
50
50
  ## Steps
51
51
 
@@ -7,7 +7,7 @@ permissions/MCP allow-lists from the reference. Substitute `<WORKSPACE_NAME>`.
7
7
 
8
8
  ## `.claude/settings.json` (create)
9
9
 
10
- The smart-plugin hooks resolve from `node_modules/@smartsoft001/claude-plugins/...`
10
+ The smart-core plugin hooks resolve from `node_modules/@smartsoft001/claude-plugins/...`
11
11
  (added to devDeps in `patch-delta.md`).
12
12
 
13
13
  ```json
@@ -39,7 +39,7 @@ The smart-plugin hooks resolve from `node_modules/@smartsoft001/claude-plugins/.
39
39
  "hooks": [
40
40
  {
41
41
  "type": "command",
42
- "command": "node_modules/@smartsoft001/claude-plugins/plugins/smart/hooks/safety_validator.py"
42
+ "command": "node_modules/@smartsoft001/claude-plugins/plugins/smart-core/hooks/safety_validator.py"
43
43
  }
44
44
  ]
45
45
  },
@@ -57,7 +57,7 @@ The smart-plugin hooks resolve from `node_modules/@smartsoft001/claude-plugins/.
57
57
  "hooks": [
58
58
  {
59
59
  "type": "command",
60
- "command": "node_modules/@smartsoft001/claude-plugins/plugins/smart/hooks/audit_logger.py"
60
+ "command": "node_modules/@smartsoft001/claude-plugins/plugins/smart-core/hooks/audit_logger.py"
61
61
  }
62
62
  ]
63
63
  },
@@ -66,7 +66,7 @@ The smart-plugin hooks resolve from `node_modules/@smartsoft001/claude-plugins/.
66
66
  "hooks": [
67
67
  {
68
68
  "type": "command",
69
- "command": "node_modules/@smartsoft001/claude-plugins/plugins/smart/hooks/skill_validator.py"
69
+ "command": "node_modules/@smartsoft001/claude-plugins/plugins/smart-core/hooks/skill_validator.py"
70
70
  }
71
71
  ]
72
72
  }
@@ -86,7 +86,7 @@ The smart-plugin hooks resolve from `node_modules/@smartsoft001/claude-plugins/.
86
86
  "hooks": [
87
87
  {
88
88
  "type": "command",
89
- "command": "node_modules/@smartsoft001/claude-plugins/plugins/smart/hooks/audit_logger.py"
89
+ "command": "node_modules/@smartsoft001/claude-plugins/plugins/smart-core/hooks/audit_logger.py"
90
90
  }
91
91
  ]
92
92
  }
@@ -96,14 +96,14 @@ The smart-plugin hooks resolve from `node_modules/@smartsoft001/claude-plugins/.
96
96
  "hooks": [
97
97
  {
98
98
  "type": "command",
99
- "command": "node_modules/@smartsoft001/claude-plugins/plugins/smart/hooks/audit_logger.py"
99
+ "command": "node_modules/@smartsoft001/claude-plugins/plugins/smart-core/hooks/audit_logger.py"
100
100
  }
101
101
  ]
102
102
  }
103
103
  ]
104
104
  },
105
105
  "enabledPlugins": {
106
- "smart@smartsoft": true,
106
+ "smart-angular@smartsoft": true,
107
107
  "nx@nx-claude-plugins": true
108
108
  },
109
109
  "extraKnownMarketplaces": {
@@ -121,6 +121,10 @@ The smart-plugin hooks resolve from `node_modules/@smartsoft001/claude-plugins/.
121
121
  }
122
122
  ```
123
123
 
124
+ > The workspace is an Angular one, so it enables `smart-angular@smartsoft`, which brings
125
+ > `smart-core@smartsoft` (the hooks, `format-code`, `project-conventions`) as its dependency.
126
+ > Never enable `smart-react@smartsoft` here.
127
+
124
128
  > The mobilems module skills (the `flow@mobilems` plugin) are added to `enabledPlugins`
125
129
  > and the project-specific permissions are grown when those skills run — not here.
126
130
 
@@ -177,9 +181,9 @@ A base shell only — feature modules are added by the mobilems module skills.
177
181
 
178
182
  - **Node** per `.nvmrc` via nvm; npm package manager.
179
183
  - Run tasks through Nx: `nx build`, `nx test`, `nx lint`, `nx serve web`.
180
- - Format with `/smart:format-code` (Prettier + ESLint flat config, `eslint.config.mjs`).
184
+ - Format with `/smart-core:format-code` (Prettier + ESLint flat config, `eslint.config.mjs`).
181
185
  - Conventional commits (commitlint); husky pre-push runs affected lint/test/build.
182
- - For smartsoft conventions, see the `/smart:project-conventions` skill.
186
+ - For smartsoft conventions, see the `smart-core:project-conventions` skill.
183
187
 
184
188
  ## Boundaries
185
189
 
@@ -362,7 +362,7 @@ npm i
362
362
 
363
363
  > Omit the reference's `"update"` script (project-specific tooling).
364
364
 
365
- ### devDependencies — add the smart plugin + commit tooling
365
+ ### devDependencies — add the smartsoft plugins (smart-angular, smart-core) + commit tooling
366
366
 
367
367
  So the seeded `.claude` hooks and commit hooks resolve. Pin none of these to a literal —
368
368
  resolve each at run time:
@@ -1,6 +1,16 @@
1
- # Smart Plugin for Claude Code
1
+ # smart-core Plugin for Claude Code
2
2
 
3
- Smartsoft integration - safety validation, audit logging, auto-formatting hooks, and project convention skills.
3
+ Smartsoft core - safety validation, audit logging, auto-formatting hooks, and the framework-neutral skills.
4
+
5
+ `smart-core` is one of the three plugins of the `smartsoft` marketplace. A project enables the
6
+ plugin of its framework, `smart-angular` or `smart-react`, and both declare `smart-core` as a
7
+ dependency, so the hooks below come with either of them.
8
+
9
+ | Plugin | Contents |
10
+ | --------------- | --------------------------------------------------------------------------------------------- |
11
+ | `smart-core` | Hooks, `audit-log`, `format-code`, `project-conventions`, `safety-check` |
12
+ | `smart-angular` | `angular-components-*` skills, `angular-components` agent, `smart-crud`, `scaffold-nx-workspace` |
13
+ | `smart-react` | `react-components-*` skills, `react-components` agent, `react-provider`, `react-forms`, `smart-crud-react` |
4
14
 
5
15
  ## Features
6
16
 
@@ -13,22 +23,30 @@ Smartsoft integration - safety validation, audit logging, auto-formatting hooks,
13
23
  | Auto-formatting | Hook | Formats files after Write/Edit operations |
14
24
  | Safety check | Skill (background) | Safety rules knowledge for Claude |
15
25
  | Project conventions | Skill (background) | Monorepo conventions and patterns |
16
- | Audit log viewer | Skill (user-invocable) | `/smart:audit-log` to query audit logs |
17
- | Format code | Skill (user-invocable) | `/smart:format-code` to run formatting |
26
+ | Audit log viewer | Skill (user-invocable) | `/smart-core:audit-log` to query audit logs |
27
+ | Format code | Skill (user-invocable) | `/smart-core:format-code` to run formatting |
18
28
 
19
29
  ## Installation
20
30
 
21
31
  ```bash
22
- claude plugin update smart@smartsoft --scope project
32
+ # Angular project (installs smart-core as a dependency)
33
+ claude plugin install smart-angular@smartsoft --scope project
34
+ # React project (installs smart-core as a dependency)
35
+ claude plugin install smart-react@smartsoft --scope project
23
36
  ```
24
37
 
38
+ Installs of the former `smart@smartsoft` plugin are renamed to `smart-angular@smartsoft` by the
39
+ marketplace's `renames` map.
40
+
25
41
  ## Architecture
26
42
 
27
43
  ```
28
- smart/
44
+ smart-core/
29
45
  ├── .claude-plugin/
30
46
  │ ├── plugin.json # Plugin metadata
31
- │ └── README.md # This file
47
+ │ ├── README.md # This file
48
+ │ ├── settings.template.json # Deprecated settings template
49
+ │ └── merge-permissions.js # Deprecated merge script
32
50
  ├── hooks/
33
51
  │ ├── hooks.json # Hook configuration
34
52
  │ ├── safety_validator.py # Blocks destructive commands
@@ -40,13 +58,9 @@ smart/
40
58
  │ └── README.md # Hook documentation
41
59
  ├── skills/
42
60
  │ ├── safety-check/SKILL.md # Background: safety rules
43
- │ ├── audit-log/SKILL.md # User-invocable: /smart:audit-log
44
- │ ├── format-code/SKILL.md # User-invocable: /smart:format-code
61
+ │ ├── audit-log/SKILL.md # User-invocable: /smart-core:audit-log
62
+ │ ├── format-code/SKILL.md # User-invocable: /smart-core:format-code
45
63
  │ └── project-conventions/SKILL.md # Background: project knowledge
46
- ├── _legacy/
47
- │ ├── settings.template.json # Deprecated settings template
48
- │ └── merge-permissions.js # Deprecated merge script
49
- └── MIGRATION.md # Migration guide from legacy
50
64
  ```
51
65
 
52
66
  ## Skills
@@ -55,8 +69,8 @@ smart/
55
69
 
56
70
  | Skill | Command | Purpose |
57
71
  |-------|---------|---------|
58
- | audit-log | `/smart:audit-log [today\|yesterday\|YYYYMMDD]` | Query audit logs |
59
- | format-code | `/smart:format-code` | Run `npm run format` |
72
+ | audit-log | `/smart-core:audit-log [today\|yesterday\|YYYYMMDD]` | Query audit logs |
73
+ | format-code | `/smart-core:format-code` | Run `npm run format` |
60
74
 
61
75
  ### Background (automatic)
62
76
 
@@ -108,4 +122,5 @@ See `hooks/CONFIG.md` for:
108
122
 
109
123
  ## Migration from Legacy
110
124
 
111
- If upgrading from the old `settings.template.json` approach, see `MIGRATION.md`.
125
+ `settings.template.json` and `merge-permissions.js` are kept for projects that still merge
126
+ settings by hand; installing the plugin replaces both.
@@ -1,16 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * LEGACY: Merge smart plugin settings into project's .claude/settings.json
3
+ * LEGACY: Merge smart-core plugin settings into project's .claude/settings.json
4
4
  *
5
5
  * This script is deprecated. The new plugin architecture uses:
6
6
  * - hooks/hooks.json for hook configuration
7
7
  * - skills/ directory for skill definitions
8
- * - `claude plugin update smart@smartsoft --scope project` for installation
8
+ * - `claude plugin install smart-angular@smartsoft --scope project` (or
9
+ * `smart-react@smartsoft`, both bring smart-core) for installation
9
10
  *
10
11
  * See MIGRATION.md for upgrade instructions.
11
12
  *
12
13
  * Usage (legacy):
13
- * node node_modules/@smartsoft001/claude-plugins/plugins/smart/_legacy/merge-permissions.js
14
+ * node node_modules/@smartsoft001/claude-plugins/plugins/smart-core/.claude-plugin/merge-permissions.js
14
15
  */
15
16
 
16
17
  const fs = require('fs');
@@ -64,7 +65,7 @@ function mergeHooks(existing, template) {
64
65
  function main() {
65
66
  console.log('Smart Plugin - Merge Settings (LEGACY)\n');
66
67
  console.log(
67
- 'WARNING: This script is deprecated. Use `claude plugin update smart@smartsoft --scope project` instead.\n',
68
+ 'WARNING: This script is deprecated. Use `claude plugin install smart-angular@smartsoft --scope project` (or smart-react@smartsoft) instead.\n',
68
69
  );
69
70
 
70
71
  // Load template
@@ -108,7 +109,7 @@ function main() {
108
109
 
109
110
  // Enable plugin
110
111
  settings.enabledPlugins = settings.enabledPlugins || {};
111
- settings.enabledPlugins['smart@smartsoft'] = true;
112
+ settings.enabledPlugins['smart-core@smartsoft'] = true;
112
113
 
113
114
  // Write back
114
115
  fs.writeFileSync(SETTINGS_PATH, JSON.stringify(settings, null, 2) + '\n');
@@ -122,7 +123,7 @@ function main() {
122
123
  ` permissions.allow: ${beforeAllow} -> ${settings.permissions.allow.length} (+${addedAllow})`,
123
124
  );
124
125
  console.log(` hooks events: ${beforeHooks} -> ${afterHooks}`);
125
- console.log(`\nPlugin enabled: smart@smartsoft`);
126
+ console.log(`\nPlugin enabled: smart-core@smartsoft`);
126
127
  console.log(`\nFile updated: ${SETTINGS_PATH}`);
127
128
  }
128
129
 
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "smart-core",
3
+ "description": "Smartsoft core for every project - safety validation, audit logging and auto-formatting hooks, plus the framework-neutral skills (audit-log, format-code, project-conventions, safety-check)",
4
+ "version": "2.191.0"
5
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/anthropics/claude-code/main/schemas/settings.schema.json",
3
- "_description": "Template settings for smart@smartsoft plugin. Hooks are provided by hooks/hooks.json (plugin-relative paths via ${CLAUDE_PLUGIN_ROOT}). See MIGRATION.md for upgrade guide.",
3
+ "_description": "Template settings for the smart-core@smartsoft plugin. Hooks are provided by hooks/hooks.json (plugin-relative paths via ${CLAUDE_PLUGIN_ROOT}). See README.md in this directory.",
4
4
  "permissions": {
5
5
  "allow": [
6
6
  "Bash(source:*)",
@@ -12,6 +12,6 @@
12
12
  "deny": []
13
13
  },
14
14
  "enabledPlugins": {
15
- "smart@smartsoft": true
15
+ "smart-core@smartsoft": true
16
16
  }
17
17
  }
@@ -18,7 +18,7 @@ Hooks are scripts that run at specific points in Claude's workflow:
18
18
 
19
19
  ## Configuration
20
20
 
21
- All hooks are configured in `hooks.json` in this directory. Claude Code reads this file automatically when the plugin is installed.
21
+ All hooks are configured in `hooks.json` in this directory. Claude Code reads this file automatically when the `smart-core` plugin is installed, either directly or as the dependency of `smart-angular` or `smart-react`.
22
22
 
23
23
  ---
24
24
 
@@ -15,7 +15,7 @@ Provide easy access to audit logs that track all Claude Code actions, including
15
15
 
16
16
  ## When to Use
17
17
 
18
- Use `/smart:audit-log` when you need to:
18
+ Use `/smart-core:audit-log` when you need to:
19
19
 
20
20
  - Review what actions Claude took during a session
21
21
  - Debug unexpected behavior by checking the audit trail
@@ -25,7 +25,7 @@ Use `/smart:audit-log` when you need to:
25
25
  ## Arguments
26
26
 
27
27
  ```
28
- /smart:audit-log [today|yesterday|YYYYMMDD]
28
+ /smart-core:audit-log [today|yesterday|YYYYMMDD]
29
29
  ```
30
30
 
31
31
  - **today** (default) — Show today's audit log
@@ -15,7 +15,7 @@ Execute the standard formatting command (`npm run format`) which runs Nx format
15
15
 
16
16
  ## When to Use
17
17
 
18
- Use `/smart:format-code` when you need to:
18
+ Use `/smart-core:format-code` when you need to:
19
19
 
20
20
  - Format code after making changes across multiple files
21
21
  - Fix lint issues before committing
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "smart-react",
3
+ "description": "Smartsoft for React projects - the @smartsoft001/react component, provider and forms skills, their react-components agent, and the React CRUD skill (@smartsoft001/crud-shell-react)",
4
+ "version": "2.191.0",
5
+ "dependencies": ["smart-core"]
6
+ }