@smartsoft001/claude-plugins 2.194.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/scaffold-nx-workspace/SKILL.md +1 -1
  6. package/plugins/{smart → smart-angular}/skills/scaffold-nx-workspace/references/base-claude-config.md +13 -9
  7. package/plugins/{smart → smart-angular}/skills/scaffold-nx-workspace/references/patch-delta.md +1 -1
  8. package/plugins/{smart → smart-core}/.claude-plugin/README.md +31 -16
  9. package/plugins/{smart → smart-core}/.claude-plugin/merge-permissions.js +7 -6
  10. package/plugins/smart-core/.claude-plugin/plugin.json +5 -0
  11. package/plugins/{smart → smart-core}/.claude-plugin/settings.template.json +2 -2
  12. package/plugins/{smart → smart-core}/hooks/README.md +1 -1
  13. package/plugins/{smart → smart-core}/skills/audit-log/SKILL.md +2 -2
  14. package/plugins/{smart → smart-core}/skills/format-code/SKILL.md +1 -1
  15. package/plugins/smart-react/.claude-plugin/plugin.json +6 -0
  16. package/plugins/smart-react/agents/react-components.md +260 -0
  17. package/plugins/smart-react/skills/react-components-accordion/SKILL.md +204 -0
  18. package/plugins/smart-react/skills/react-components-action-panel/SKILL.md +191 -0
  19. package/plugins/smart-react/skills/react-components-alert/SKILL.md +244 -0
  20. package/plugins/smart-react/skills/react-components-app/SKILL.md +236 -0
  21. package/plugins/smart-react/skills/react-components-avatar/SKILL.md +176 -0
  22. package/plugins/smart-react/skills/react-components-badge/SKILL.md +165 -0
  23. package/plugins/smart-react/skills/react-components-breadcrumbs/SKILL.md +183 -0
  24. package/plugins/smart-react/skills/react-components-button/SKILL.md +239 -0
  25. package/plugins/smart-react/skills/react-components-button-group/SKILL.md +187 -0
  26. package/plugins/smart-react/skills/react-components-calendar/SKILL.md +270 -0
  27. package/plugins/smart-react/skills/react-components-card/SKILL.md +201 -0
  28. package/plugins/smart-react/skills/react-components-card-heading/SKILL.md +133 -0
  29. package/plugins/smart-react/skills/react-components-command-palette/SKILL.md +228 -0
  30. package/plugins/smart-react/skills/react-components-container/SKILL.md +134 -0
  31. package/plugins/smart-react/skills/react-components-date-edit/SKILL.md +186 -0
  32. package/plugins/smart-react/skills/react-components-date-range/SKILL.md +259 -0
  33. package/plugins/smart-react/skills/react-components-description-list/SKILL.md +144 -0
  34. package/plugins/smart-react/skills/react-components-detail/SKILL.md +272 -0
  35. package/plugins/smart-react/skills/react-components-details/SKILL.md +250 -0
  36. package/plugins/smart-react/skills/react-components-divider/SKILL.md +128 -0
  37. package/plugins/smart-react/skills/react-components-drawer/SKILL.md +165 -0
  38. package/plugins/smart-react/skills/react-components-dropdown/SKILL.md +194 -0
  39. package/plugins/smart-react/skills/react-components-empty-state/SKILL.md +202 -0
  40. package/plugins/smart-react/skills/react-components-export/SKILL.md +120 -0
  41. package/plugins/smart-react/skills/react-components-feed/SKILL.md +171 -0
  42. package/plugins/smart-react/skills/react-components-form/SKILL.md +319 -0
  43. package/plugins/smart-react/skills/react-components-grid-list/SKILL.md +172 -0
  44. package/plugins/smart-react/skills/react-components-icon/SKILL.md +117 -0
  45. package/plugins/smart-react/skills/react-components-import/SKILL.md +113 -0
  46. package/plugins/smart-react/skills/react-components-info/SKILL.md +147 -0
  47. package/plugins/smart-react/skills/react-components-input/SKILL.md +406 -0
  48. package/plugins/smart-react/skills/react-components-list/SKILL.md +384 -0
  49. package/plugins/smart-react/skills/react-components-list-container/SKILL.md +105 -0
  50. package/plugins/smart-react/skills/react-components-loader/SKILL.md +126 -0
  51. package/plugins/smart-react/skills/react-components-media-object/SKILL.md +130 -0
  52. package/plugins/smart-react/skills/react-components-modal/SKILL.md +266 -0
  53. package/plugins/smart-react/skills/react-components-multi-column-layout/SKILL.md +155 -0
  54. package/plugins/smart-react/skills/react-components-navbar/SKILL.md +211 -0
  55. package/plugins/smart-react/skills/react-components-notification/SKILL.md +223 -0
  56. package/plugins/smart-react/skills/react-components-overlays/SKILL.md +182 -0
  57. package/plugins/smart-react/skills/react-components-page/SKILL.md +224 -0
  58. package/plugins/smart-react/skills/react-components-page-heading/SKILL.md +155 -0
  59. package/plugins/smart-react/skills/react-components-paging/SKILL.md +183 -0
  60. package/plugins/smart-react/skills/react-components-password-strength/SKILL.md +149 -0
  61. package/plugins/smart-react/skills/react-components-progress-bars/SKILL.md +195 -0
  62. package/plugins/smart-react/skills/react-components-searchbar/SKILL.md +150 -0
  63. package/plugins/smart-react/skills/react-components-section-heading/SKILL.md +138 -0
  64. package/plugins/smart-react/skills/react-components-select-menu/SKILL.md +168 -0
  65. package/plugins/smart-react/skills/react-components-sidebar-layout/SKILL.md +155 -0
  66. package/plugins/smart-react/skills/react-components-sidebar-navigation/SKILL.md +277 -0
  67. package/plugins/smart-react/skills/react-components-sign-in-form/SKILL.md +228 -0
  68. package/plugins/smart-react/skills/react-components-stacked-layout/SKILL.md +146 -0
  69. package/plugins/smart-react/skills/react-components-stacked-list/SKILL.md +156 -0
  70. package/plugins/smart-react/skills/react-components-stats/SKILL.md +149 -0
  71. package/plugins/smart-react/skills/react-components-table/SKILL.md +222 -0
  72. package/plugins/smart-react/skills/react-components-tabs/SKILL.md +189 -0
  73. package/plugins/smart-react/skills/react-components-textarea/SKILL.md +202 -0
  74. package/plugins/smart-react/skills/react-components-toggle/SKILL.md +157 -0
  75. package/plugins/smart-react/skills/react-components-vertical-navigation/SKILL.md +212 -0
  76. package/plugins/smart-react/skills/react-forms/SKILL.md +272 -0
  77. package/plugins/smart-react/skills/react-provider/SKILL.md +368 -0
  78. package/plugins/smart-react/skills/smart-crud-react/SKILL.md +410 -0
  79. package/plugins/smart/.claude-plugin/plugin.json +0 -5
  80. /package/plugins/{smart/agents/angular-components/AGENT.md → smart-angular/agents/angular-components.md} +0 -0
  81. /package/plugins/{smart → smart-angular}/skills/angular-components-accordion/SKILL.md +0 -0
  82. /package/plugins/{smart → smart-angular}/skills/angular-components-action-panel/SKILL.md +0 -0
  83. /package/plugins/{smart → smart-angular}/skills/angular-components-alert/SKILL.md +0 -0
  84. /package/plugins/{smart → smart-angular}/skills/angular-components-avatar/SKILL.md +0 -0
  85. /package/plugins/{smart → smart-angular}/skills/angular-components-badge/SKILL.md +0 -0
  86. /package/plugins/{smart → smart-angular}/skills/angular-components-breadcrumbs/SKILL.md +0 -0
  87. /package/plugins/{smart → smart-angular}/skills/angular-components-button/SKILL.md +0 -0
  88. /package/plugins/{smart → smart-angular}/skills/angular-components-button-group/SKILL.md +0 -0
  89. /package/plugins/{smart → smart-angular}/skills/angular-components-calendar/SKILL.md +0 -0
  90. /package/plugins/{smart → smart-angular}/skills/angular-components-card/SKILL.md +0 -0
  91. /package/plugins/{smart → smart-angular}/skills/angular-components-card-heading/SKILL.md +0 -0
  92. /package/plugins/{smart → smart-angular}/skills/angular-components-command-palette/SKILL.md +0 -0
  93. /package/plugins/{smart → smart-angular}/skills/angular-components-container/SKILL.md +0 -0
  94. /package/plugins/{smart → smart-angular}/skills/angular-components-date-edit/SKILL.md +0 -0
  95. /package/plugins/{smart → smart-angular}/skills/angular-components-date-range/SKILL.md +0 -0
  96. /package/plugins/{smart → smart-angular}/skills/angular-components-description-list/SKILL.md +0 -0
  97. /package/plugins/{smart → smart-angular}/skills/angular-components-detail/SKILL.md +0 -0
  98. /package/plugins/{smart → smart-angular}/skills/angular-components-details/SKILL.md +0 -0
  99. /package/plugins/{smart → smart-angular}/skills/angular-components-divider/SKILL.md +0 -0
  100. /package/plugins/{smart → smart-angular}/skills/angular-components-drawer/SKILL.md +0 -0
  101. /package/plugins/{smart → smart-angular}/skills/angular-components-dropdown/SKILL.md +0 -0
  102. /package/plugins/{smart → smart-angular}/skills/angular-components-empty-state/SKILL.md +0 -0
  103. /package/plugins/{smart → smart-angular}/skills/angular-components-feed/SKILL.md +0 -0
  104. /package/plugins/{smart → smart-angular}/skills/angular-components-form/SKILL.md +0 -0
  105. /package/plugins/{smart → smart-angular}/skills/angular-components-grid-list/SKILL.md +0 -0
  106. /package/plugins/{smart → smart-angular}/skills/angular-components-icon/SKILL.md +0 -0
  107. /package/plugins/{smart → smart-angular}/skills/angular-components-info/SKILL.md +0 -0
  108. /package/plugins/{smart → smart-angular}/skills/angular-components-input/SKILL.md +0 -0
  109. /package/plugins/{smart → smart-angular}/skills/angular-components-list/SKILL.md +0 -0
  110. /package/plugins/{smart → smart-angular}/skills/angular-components-list-container/SKILL.md +0 -0
  111. /package/plugins/{smart → smart-angular}/skills/angular-components-media-object/SKILL.md +0 -0
  112. /package/plugins/{smart → smart-angular}/skills/angular-components-modal/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.194.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
+ }
@@ -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
+ }