@smartsoft001/claude-plugins 2.112.0 → 2.114.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.
@@ -0,0 +1,90 @@
1
+ ---
2
+ name: project-conventions
3
+ description: Smartsoft001 monorepo conventions and architecture knowledge
4
+ user-invocable: false
5
+ ---
6
+
7
+ # Project Conventions
8
+
9
+ Background skill providing knowledge about the Smartsoft001 monorepo structure, conventions, and patterns.
10
+
11
+ ## Purpose
12
+
13
+ Ensure Claude follows project conventions when generating or modifying code in this Nx monorepo.
14
+
15
+ ## When to Use
16
+
17
+ This skill is applied automatically when working within the Smartsoft001 codebase.
18
+
19
+ ## Monorepo Structure
20
+
21
+ This is an **Nx monorepo** using **pnpm** workspaces. Projects are organized under:
22
+
23
+ - `packages/` — shared libraries and integrations
24
+ - `apps/` — applications (if any)
25
+
26
+ ### Domain Architecture
27
+
28
+ Three main domains, each following the same layered pattern:
29
+
30
+ | Domain | Purpose |
31
+ | ------- | --------------------------------- |
32
+ | `auth` | Authentication and authorization |
33
+ | `crud` | CRUD operations and UI components |
34
+ | `trans` | Translation/internationalization |
35
+
36
+ Each domain's layers:
37
+
38
+ - `domain/` — core business logic and models
39
+ - `shell/app-services/` — application services
40
+ - `shell/dtos/` — data transfer objects
41
+ - `shell/nestjs/` — NestJS implementations
42
+ - `shell/angular/` — Angular UI components (crud only)
43
+
44
+ ### Shared Libraries (`packages/shared/`)
45
+
46
+ `domain-core`, `models`, `angular`, `nestjs`, `users`, `utils`, `mongo`, and payment/third-party integrations (`paypal`, `payu`, `paynow`, `revolut`, `fb`, `google`).
47
+
48
+ ## Code Conventions
49
+
50
+ ### Component Prefixes
51
+
52
+ - `smart` prefix for CRUD shell Angular components
53
+ - `lib` prefix for shared Angular library components
54
+
55
+ ### Project Tags
56
+
57
+ - `scope:crud`, `scope:auth`, `scope:trans` — domain separation
58
+ - `type:shell`, `type:domain` — architectural layers
59
+
60
+ ### ESLint / Import Ordering
61
+
62
+ - Flat ESLint configuration (`eslint.config.mjs`)
63
+ - Alphabetical import sorting
64
+ - Special handling for `@smartsoft001/**` imports
65
+ - Newlines required between import groups
66
+
67
+ ### State Management (NgRx)
68
+
69
+ - Standard NgRx patterns: effects, actions, reducers, selectors
70
+ - Facade pattern for component interaction
71
+ - Error handling via shared error effects and services
72
+
73
+ ### Styling
74
+
75
+ - **Tailwind CSS** for styling
76
+ - **SCSS** for component-level styles
77
+ - PostCSS processing for optimization
78
+
79
+ ### Git Conventions
80
+
81
+ - Conventional commits (enforced by Commitlint + Husky)
82
+ - Main branch: `main`
83
+ - Auto-versioning via GitHub Actions
84
+
85
+ ### Testing
86
+
87
+ - **Jest** as primary test framework
88
+ - `@nx/jest` for Nx integration
89
+ - `jest-preset-angular` for Angular tests
90
+ - Storybook testing with `@storybook/test-runner`
@@ -0,0 +1,76 @@
1
+ ---
2
+ name: safety-check
3
+ description: Safety validation rules for blocking destructive operations
4
+ user-invocable: false
5
+ ---
6
+
7
+ # Safety Check
8
+
9
+ Background skill that provides safety validation knowledge. Claude uses these rules automatically when evaluating tool calls.
10
+
11
+ ## Purpose
12
+
13
+ Prevent destructive operations from executing by defining blocked patterns for bash commands, file operations, and sensitive file access.
14
+
15
+ ## Blocked Bash Patterns
16
+
17
+ The following command patterns are blocked when detected in Bash tool calls:
18
+
19
+ ### Recursive Deletion
20
+
21
+ - `rm -rf /` — recursive delete root filesystem
22
+ - `rm -rf /*` — recursive delete root contents
23
+ - `rm -rf ~` — recursive delete home directory
24
+ - `rm -rf $HOME` — recursive delete home directory
25
+ - `rm -rf *` — recursive delete all files
26
+ - Covers variations: `-rf`, `-r -f`, `--recursive --force`, `-fr`, etc.
27
+
28
+ ### Disk Operations
29
+
30
+ - `dd if=/dev/zero of=/dev/...` — disk wiping
31
+ - `dd of=/dev/...` — writing to raw devices
32
+ - `> /dev/sda` — overwrite disk via redirect
33
+ - `mkfs.*` — formatting filesystems
34
+
35
+ ### System Attacks
36
+
37
+ - `:(){ :|:& };:` — fork bomb
38
+
39
+ ### Sensitive File Access via Bash
40
+
41
+ Commands like `cat`, `head`, `tail`, `cp` targeting:
42
+
43
+ - `.env` files
44
+ - `.secret` files
45
+ - `id_rsa`, `id_ed25519` SSH keys
46
+ - `.pem` certificate files
47
+ - `credentials` files
48
+
49
+ ## Sensitive File Patterns
50
+
51
+ Direct file access (Read/Write/Edit tools) is blocked for paths containing:
52
+
53
+ | Pattern | Description |
54
+ | ------------- | -------------------------- |
55
+ | `.env` | Environment variable files |
56
+ | `.secret` | Secret configuration files |
57
+ | `id_rsa` | RSA SSH private keys |
58
+ | `id_ed25519` | Ed25519 SSH private keys |
59
+ | `id_ecdsa` | ECDSA SSH private keys |
60
+ | `.pem` | Certificate/key files |
61
+ | `credentials` | Credential files |
62
+
63
+ ## Exception: `.example` Files
64
+
65
+ Files ending with `.example` are **always allowed**. These are safe template files without actual secrets:
66
+
67
+ - `.env.example` — safe to read for structure reference
68
+ - `.secret.example` — safe to read for structure reference
69
+
70
+ ## When to Use
71
+
72
+ This skill is applied automatically. Claude should be aware of these safety rules when:
73
+
74
+ - Executing bash commands
75
+ - Reading, writing, or editing files
76
+ - Suggesting commands to users
package/src/index.js CHANGED
@@ -1,10 +1,7 @@
1
- "use strict";
2
1
  /**
3
2
  * @smartsoft001-mobilems/claude-plugins
4
3
  *
5
4
  * This library contains Claude Code plugin configuration files (MD/JSON).
6
5
  */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.CLAUDE_PLUGINS_VERSION = void 0;
9
- exports.CLAUDE_PLUGINS_VERSION = '1.0.0';
6
+ export const CLAUDE_PLUGINS_VERSION = '1.0.0';
10
7
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/shared/claude-plugins/src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEU,QAAA,sBAAsB,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/shared/claude-plugins/src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAC"}