@smartsoft001/claude-plugins 2.158.0 → 2.160.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.
- package/package.json +1 -1
- package/plugins/smart/.claude-plugin/plugin.json +1 -1
- package/plugins/smart/skills/angular-components-form/SKILL.md +9 -0
- package/plugins/smart/skills/angular-components-sign-in-form/SKILL.md +10 -4
- package/plugins/smart/skills/project-conventions/SKILL.md +10 -0
- package/plugins/smart/skills/scaffold-nx-workspace/SKILL.md +11 -0
- package/plugins/smart/skills/smart-crud/SKILL.md +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartsoft001/claude-plugins",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.160.0",
|
|
4
4
|
"description": "Installs the smart@smartsoft Claude Code plugin into a project: the agents, skills and hooks this workspace develops with.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -177,6 +177,15 @@ providers: [
|
|
|
177
177
|
|
|
178
178
|
Providing only `FORM_STANDARD_COMPONENT_TOKEN` restyles the form layout but leaves the inputs in their default look. The preset keeps the inherited `class` alias, so `<smart-form class="…">` still lands external classes on the form root.
|
|
179
179
|
|
|
180
|
+
## Reference implementation
|
|
181
|
+
|
|
182
|
+
The example application under `docs/examples/app` never places `<smart-form>` by hand: the CRUD item page renders it from the `@Field` metadata, and the pieces below are what the form reads in any application.
|
|
183
|
+
|
|
184
|
+
- `docs/examples/app/libs/model/src/lib/note.model.ts`: the `@Field` decorators the form is generated from, with `create` and `update` flags per mode, `required` repeated per mode and `focused` on the first input.
|
|
185
|
+
- `docs/examples/app/apps/web/src/app/app.config.ts`: `MODEL_VALIDATORS_PROVIDER` registered even though the app adds no validators of its own, because the form factory injects it without a default and the form does not render without it.
|
|
186
|
+
- `docs/examples/app/apps/web/src/app/app.config.spec.ts`: the test that the provider hands the base validators implied by the metadata back to the factory.
|
|
187
|
+
- `docs/examples/app/apps/web/src/app/translations.ts`: the `MODEL.<key>` labels the rendered inputs show.
|
|
188
|
+
|
|
180
189
|
## File Locations
|
|
181
190
|
|
|
182
191
|
- Wrapper: `packages/shared/angular/src/lib/components/form/form.component.ts`
|
|
@@ -57,10 +57,7 @@ Abstract base directive. Exposes:
|
|
|
57
57
|
```typescript
|
|
58
58
|
type SmartSignInFormMode = 'sign-in' | 'sign-up';
|
|
59
59
|
type SmartSignInFormLayout =
|
|
60
|
-
| 'simple'
|
|
61
|
-
| 'simple-no-labels'
|
|
62
|
-
| 'split-screen'
|
|
63
|
-
| 'card';
|
|
60
|
+
'simple' | 'simple-no-labels' | 'split-screen' | 'card';
|
|
64
61
|
|
|
65
62
|
interface ISignInFormOptions {
|
|
66
63
|
socialProviders?: ISocialProvider[];
|
|
@@ -231,6 +228,15 @@ Gaps: `heroImageUrl` renders as a `smart:lg:block` cover image (hidden below the
|
|
|
231
228
|
`lg` breakpoint); `submitLabel`, `emailPlaceholder`, `passwordPlaceholder`, and
|
|
232
229
|
the `extraTpl` slot are all honored.
|
|
233
230
|
|
|
231
|
+
## Reference implementation
|
|
232
|
+
|
|
233
|
+
The example application under `docs/examples/app` signs in through this component against a real API; its login page is the pattern to copy.
|
|
234
|
+
|
|
235
|
+
- `docs/examples/app/apps/web/src/app/auth/login.page.ts`: a login page on `<smart-sign-in-form>` with `ISignInFormOptions`, the `disabled` input bound to a pending signal and the `submit` output handled as `ISignInFormSubmit`.
|
|
236
|
+
- `docs/examples/app/apps/web/src/app/auth/login.service.ts`: what the submit handler calls, the OAuth password grant against `/api/token` with the returned token stored through `AuthService.setToken`.
|
|
237
|
+
- `docs/examples/app/apps/web/src/app/auth/login.page.spec.ts`: a Jest test that drives the rendered form through its `#smart-sign-in-form-email` and `#smart-sign-in-form-password` inputs and the `form` submit event.
|
|
238
|
+
- `docs/examples/app/apps/web-e2e/src/support/app.ts`: the Playwright helper that fills the same form by those ids and clicks the `button.submit` element.
|
|
239
|
+
|
|
234
240
|
## File Locations
|
|
235
241
|
|
|
236
242
|
- Wrapper: `packages/shared/angular/src/lib/components/sign-in-form/sign-in-form.component.ts`
|
|
@@ -88,3 +88,13 @@ Each domain's layers:
|
|
|
88
88
|
- `@nx/jest` for Nx integration
|
|
89
89
|
- `jest-preset-angular` for Angular tests
|
|
90
90
|
- Storybook testing with `@storybook/test-runner`
|
|
91
|
+
|
|
92
|
+
## Reference implementation
|
|
93
|
+
|
|
94
|
+
The example application under `docs/examples/app` is a consumer of these conventions: a NestJS API and an Angular app on the published packages, laid out and tagged like a project of this workspace.
|
|
95
|
+
|
|
96
|
+
- `docs/examples/app/apps/api/src/app/app.module.ts`: the `shell/nestjs` layer of two domains consumed together, `AuthShellNestjsModule` and `CrudShellNestjsModule`, next to the shared `AppExceptionFilter`, with the imports in the enforced order: external, `@smartsoft001/**`, then the app's own alias and the relative paths.
|
|
97
|
+
- `docs/examples/app/apps/api/src/app/users.seed.ts`: the shared libraries in use, `User` from `auth-domain` and `PasswordService` from `utils`.
|
|
98
|
+
- `docs/examples/app/apps/web/src/app/app.config.ts`: the NgRx root store and effects that `NgrxSharedModule` connects, which is where the CRUD shell adds its reducers.
|
|
99
|
+
- `docs/examples/app/apps/web/project.json`: the project tags on a consumer project, `scope:docs` and `type:example-app`, in the same `scope:` and `type:` scheme as the domain tags.
|
|
100
|
+
- `docs/examples/app/apps/web/jest.config.ts`: Jest through `@nx/jest` with `jest-preset-angular`, as listed under Testing.
|
|
@@ -82,3 +82,14 @@ components. Stop at the buildable shell and defer those to the feature-module sk
|
|
|
82
82
|
(`.nvmrc` ← `<NODE_VERSION>`), not fixed by this skill.
|
|
83
83
|
- Bundled `references/` + `scripts/` ship automatically (the whole `src/plugins/**` tree is copied to dist).
|
|
84
84
|
Do NOT hand-edit `plugin.json` version — it is auto-synced at build time.
|
|
85
|
+
|
|
86
|
+
## Reference implementation
|
|
87
|
+
|
|
88
|
+
This skill scaffolds an SSR shell, while the example application under `docs/examples/app` is a non-SSR consumer, so it shows the finished shape of a workspace's apps and libs and not the SSR runtime pieces.
|
|
89
|
+
|
|
90
|
+
- `docs/examples/app/apps/web/project.json`: an Angular application project on `@angular/build:application` with `build`, `serve`, `lint` and `test` targets and `scope` and `type` tags.
|
|
91
|
+
- `docs/examples/app/apps/api/project.json`: the NestJS application beside it, built with `@nx/webpack:webpack` into `dist/` and served from that build.
|
|
92
|
+
- `docs/examples/app/libs/model/project.json`: a shared library project with `build`, `test` and `lint` targets, the role `libs/shared/angular` plays in a scaffolded workspace.
|
|
93
|
+
- `docs/examples/app/libs/model/src/index.ts`: the barrel the workspace alias `@app/model` in `tsconfig.base.json` points at, the same mechanism as the `@<prefix>/angular` alias this skill sets up.
|
|
94
|
+
- `docs/examples/app/apps/web/eslint.config.mjs`: the flat ESLint config of one app, extending the workspace config and giving the app's own alias the position the `@<prefix>/**` path group takes in a scaffolded workspace.
|
|
95
|
+
- `docs/examples/app/apps/web/jest.config.ts`: Jest on `jest-preset-angular` with a `test-setup.ts`, the unit test setup this skill configures.
|
|
@@ -204,6 +204,18 @@ Fields participate in filters via `@Field({ filter: true, fieldType: FieldType.*
|
|
|
204
204
|
the engine renders the matching `smart-crud-filter-*` widget through the `smart-crud-filter`
|
|
205
205
|
dispatcher inside `smart-crud-filters`.
|
|
206
206
|
|
|
207
|
+
## Reference implementation
|
|
208
|
+
|
|
209
|
+
The example application under `docs/examples/app` takes one `Note` entity through the module end to end; copy its shape instead of assembling the pieces from the sections above.
|
|
210
|
+
|
|
211
|
+
- `docs/examples/app/libs/model/src/lib/note.model.ts`: the `@Model` and `@Field` metadata the list columns, the form fields and the details view are generated from, with `required` repeated per mode because the API validates create and update against the mode block.
|
|
212
|
+
- `docs/examples/app/apps/web/src/app/notes/notes.config.ts`: a complete `CrudFullConfig` for one entity, with a relative `apiUrl` so that the dev-server proxy can route it.
|
|
213
|
+
- `docs/examples/app/apps/web/src/app/notes/notes.module.ts`: `CrudModule.forFeature` with `routing: true`, which registers the NgRx slice and the list, add and item routes.
|
|
214
|
+
- `docs/examples/app/apps/web/src/app/app.routes.ts`: the feature module mounted under `/notes` with `loadChildren` behind an auth guard.
|
|
215
|
+
- `docs/examples/app/apps/web/src/app/app.config.ts`: the root providers the generated screens need: `provideStore`, `provideEffects`, `SharedModule`, `NgrxSharedModule`, the translations, an `HTTP_INTERCEPTORS` bearer interceptor and `MODEL_VALIDATORS_PROVIDER`.
|
|
216
|
+
- `docs/examples/app/apps/web/src/app/translations.ts`: the `MODEL.<field>` labels and the page title the generated screens look up through the translate service.
|
|
217
|
+
- `docs/examples/app/apps/api/src/app/app.module.ts`: the matching backend, `CrudShellNestjsModule.forRoot` for the same entity mounted under `/api/notes` with `RouterModule`, next to the auth module that issues the token.
|
|
218
|
+
|
|
207
219
|
## File Locations
|
|
208
220
|
|
|
209
221
|
- Module / config: `packages/crud/shell/angular/src/lib/crud.module.ts`, `crud.config.ts`
|