claudify-agent 1.0.3 β 1.0.5
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.
|
@@ -29,9 +29,9 @@ npm run typecheck # After TypeScript changes
|
|
|
29
29
|
## Canonical Examples
|
|
30
30
|
|
|
31
31
|
```
|
|
32
|
-
Component pattern:
|
|
33
|
-
API route pattern:
|
|
34
|
-
Test pattern:
|
|
32
|
+
Component pattern: `components/Button.tsx`
|
|
33
|
+
API route pattern: `app/api/users/route.ts`
|
|
34
|
+
Test pattern: `__tests__/auth.test.ts`
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
---
|
|
@@ -33,9 +33,9 @@ npm run test:coverage # With coverage report
|
|
|
33
33
|
npm run test -- path/to # Specific file
|
|
34
34
|
|
|
35
35
|
## Test Examples
|
|
36
|
-
- Unit test:
|
|
37
|
-
- Integration:
|
|
38
|
-
- E2E:
|
|
36
|
+
- Unit test: `__tests__/auth.test.ts`
|
|
37
|
+
- Integration: `__tests__/api/users.test.ts`
|
|
38
|
+
- E2E: `e2e/checkout.spec.ts`
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
---
|
|
@@ -55,7 +55,7 @@ npm run test -- path/to # Specific file
|
|
|
55
55
|
- Export GET, POST, PUT, DELETE handlers
|
|
56
56
|
|
|
57
57
|
## Authentication
|
|
58
|
-
- Validate JWT with
|
|
58
|
+
- Validate JWT with `src/auth/validateToken.ts`
|
|
59
59
|
- Extract user from token claims
|
|
60
60
|
- Return 401 for unauthorized, 403 for forbidden
|
|
61
61
|
|
|
@@ -78,9 +78,9 @@ try {
|
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
## API Examples
|
|
81
|
-
- REST pattern:
|
|
82
|
-
- Error handling:
|
|
83
|
-
- Validation:
|
|
81
|
+
- REST pattern: `app/api/users/route.ts`
|
|
82
|
+
- Error handling: `app/api/orders/route.ts`
|
|
83
|
+
- Validation: `src/validators/orderSchema.ts`
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
---
|
|
@@ -124,9 +124,9 @@ export function Button({ variant = 'primary', children }: Props) {
|
|
|
124
124
|
- Test on multiple screen sizes
|
|
125
125
|
|
|
126
126
|
## UI Examples
|
|
127
|
-
- Button:
|
|
128
|
-
- Form:
|
|
129
|
-
- Layout:
|
|
127
|
+
- Button: `components/Button.tsx`
|
|
128
|
+
- Form: `components/forms/TextInput.tsx`
|
|
129
|
+
- Layout: `components/Layout.tsx`
|
|
130
130
|
```
|
|
131
131
|
|
|
132
132
|
---
|
|
@@ -152,9 +152,9 @@ export function Button({ variant = 'primary', children }: Props) {
|
|
|
152
152
|
- Lighthouse Performance: >90
|
|
153
153
|
|
|
154
154
|
## Performance Examples
|
|
155
|
-
- Memoization:
|
|
156
|
-
- Code splitting:
|
|
157
|
-
- Caching:
|
|
155
|
+
- Memoization: `components/ExpensiveList.tsx`
|
|
156
|
+
- Code splitting: `app/dashboard/page.tsx`
|
|
157
|
+
- Caching: `lib/react-query.ts`
|
|
158
158
|
```
|
|
159
159
|
|
|
160
160
|
---
|
|
@@ -179,9 +179,9 @@ export function Button({ variant = 'primary', children }: Props) {
|
|
|
179
179
|
- Index frequently queried fields
|
|
180
180
|
|
|
181
181
|
## Database Examples
|
|
182
|
-
- Schema:
|
|
183
|
-
- Query pattern:
|
|
184
|
-
- Migration:
|
|
182
|
+
- Schema: `prisma/schema.prisma`
|
|
183
|
+
- Query pattern: `src/db/queries/users.ts`
|
|
184
|
+
- Migration: `prisma/migrations/[latest]`
|
|
185
185
|
```
|
|
186
186
|
|
|
187
187
|
---
|
|
@@ -212,9 +212,9 @@ export function Button({ variant = 'primary', children }: Props) {
|
|
|
212
212
|
- Escape output to prevent XSS
|
|
213
213
|
|
|
214
214
|
## Security Examples
|
|
215
|
-
- Auth middleware:
|
|
216
|
-
- Password hashing:
|
|
217
|
-
- Input validation:
|
|
215
|
+
- Auth middleware: `src/middleware/auth.ts`
|
|
216
|
+
- Password hashing: `src/lib/password.ts`
|
|
217
|
+
- Input validation: `src/validators/userSchema.ts`
|
|
218
218
|
```
|
|
219
219
|
|
|
220
220
|
---
|
|
@@ -240,9 +240,9 @@ export function Button({ variant = 'primary', children }: Props) {
|
|
|
240
240
|
- Manual approval for production
|
|
241
241
|
|
|
242
242
|
## Deployment Examples
|
|
243
|
-
- CI config:
|
|
244
|
-
- Build script:
|
|
245
|
-
- Deploy:
|
|
243
|
+
- CI config: `.github/workflows/ci.yml`
|
|
244
|
+
- Build script: `scripts/build.ts`
|
|
245
|
+
- Deploy: `scripts/deploy.ts`
|
|
246
246
|
```
|
|
247
247
|
|
|
248
248
|
---
|
package/.claude/rules/general.md
CHANGED
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
- [ ] Tests passing (auto-run)
|
|
23
23
|
- [ ] Cost within budget (check `.claude/cost-dashboard.md`)
|
|
24
24
|
|
|
25
|
-
**Note**: See
|
|
25
|
+
**Note**: See `.claude/rules/` for task-specific rules. Anti-patterns: `.claude/rules/anti-patterns.md`
|
|
@@ -85,7 +85,7 @@ Add login button to header navigation following existing button patterns.
|
|
|
85
85
|
|
|
86
86
|
## Files to Modify
|
|
87
87
|
- `components/Header.tsx` - Add login button to nav
|
|
88
|
-
- Pattern: Follow
|
|
88
|
+
- Pattern: Follow `components/Button.tsx`
|
|
89
89
|
- Tools: Edit for edit, Lint check for validation
|
|
90
90
|
|
|
91
91
|
## Implementation Steps
|
|
@@ -119,13 +119,13 @@ Create user dashboard with stats, activity feed, and settings panel.
|
|
|
119
119
|
|
|
120
120
|
## Files to Create
|
|
121
121
|
- `app/dashboard/page.tsx` - Main dashboard page
|
|
122
|
-
- Pattern: Follow
|
|
122
|
+
- Pattern: Follow `app/profile/page.tsx`
|
|
123
123
|
- Tools: Write for new file
|
|
124
124
|
- `components/dashboard/StatsCard.tsx` - Stats component
|
|
125
|
-
- Pattern: Follow
|
|
125
|
+
- Pattern: Follow `components/Card.tsx`
|
|
126
126
|
- Tools: Write for new file
|
|
127
127
|
- `app/api/dashboard/stats/route.ts` - Stats API
|
|
128
|
-
- Pattern: Follow
|
|
128
|
+
- Pattern: Follow `app/api/users/route.ts`
|
|
129
129
|
- Tools: Write for new file
|
|
130
130
|
|
|
131
131
|
## Implementation Steps
|
package/CLAUDE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# CLAUDE CORE OPERATING SYSTEM
|
|
2
2
|
|
|
3
|
-
> **Universal Directive:** You are an autonomous Senior Software Engineer operating via Claude Code / Anthropic Agent loop. Follow these concise, modular instructions. Do not load all guidelines into context;
|
|
3
|
+
> **Universal Directive:** You are an autonomous Senior Software Engineer operating via Claude Code / Anthropic Agent loop. Follow these concise, modular instructions. Do not load all guidelines into context; Read the referenced files only when the task needs them.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -8,43 +8,43 @@
|
|
|
8
8
|
- Keep responses concise and targeted. Never dump entire files when diffs suffice.
|
|
9
9
|
- Do NOT read whole directory trees. Inspect shallow structure first.
|
|
10
10
|
- Context Tiers (Inspect when prompted):
|
|
11
|
-
- **Tier 1 (Base):**
|
|
12
|
-
- **Tier 2 (Deep Task):**
|
|
13
|
-
- **Anti-Patterns:**
|
|
11
|
+
- **Tier 1 (Base):** `.claude/rules/context-tier-1.md`
|
|
12
|
+
- **Tier 2 (Deep Task):** `.claude/rules/context-tier-2.md`
|
|
13
|
+
- **Anti-Patterns:** `.claude/rules/anti-patterns.md`
|
|
14
14
|
|
|
15
15
|
## 2. π Plan First Protocol (Anti-Drift)
|
|
16
16
|
- For tasks touching **>= 2 files** or core architecture:
|
|
17
17
|
- Generate a concise Plan before modifying files.
|
|
18
|
-
- Research protocol:
|
|
19
|
-
- Execution checklist:
|
|
20
|
-
- Validation steps:
|
|
21
|
-
- Plan structure guide:
|
|
18
|
+
- Research protocol: `.claude/rules/plan-mode-research.md`
|
|
19
|
+
- Execution checklist: `.claude/rules/plan-mode-execution.md`
|
|
20
|
+
- Validation steps: `.claude/rules/plan-mode-validation.md`
|
|
21
|
+
- Plan structure guide: `.claude/rules/plan-mode-structure.md`
|
|
22
22
|
|
|
23
23
|
## 3. π§ͺ Zero-Token Local Verification Loop
|
|
24
24
|
After modifying code, execute local verification based on project stack:
|
|
25
25
|
- **Node/TS/NestJS:** `npm run lint:fix && npm run typecheck`
|
|
26
26
|
- **Go Backend:** `go vet ./... && go test -race ./...`
|
|
27
27
|
- **Solidity (SMC):** `forge test -vvv` hoαΊ·c `npx hardhat test`
|
|
28
|
-
- Core standards:
|
|
28
|
+
- Core standards: `.claude/rules/general.md` & `.claude/rules/security-critical.md`
|
|
29
29
|
|
|
30
30
|
## 4. π On-Demand Skills Index (Load ONLY When Tech Is Used)
|
|
31
|
-
- **Backend Concurrency & Locking:**
|
|
32
|
-
- **NestJS Enterprise:**
|
|
33
|
-
- **Golang Backend:**
|
|
34
|
-
- **Solidity (Smart Contracts):**
|
|
35
|
-
- **Next.js:**
|
|
36
|
-
- **React:**
|
|
37
|
-
- **Python:**
|
|
38
|
-
- **Security (OWASP):**
|
|
39
|
-
- **Vite:**
|
|
40
|
-
- **MCP Mastery:**
|
|
41
|
-
- **Tool Selection:**
|
|
42
|
-
- **Debug Optimizer:**
|
|
43
|
-
- **Parallel Exploration:**
|
|
44
|
-
- **Learning Loop:**
|
|
31
|
+
- **Backend Concurrency & Locking:** `.claude/skills/backend-concurrency/SKILL.md`
|
|
32
|
+
- **NestJS Enterprise:** `.claude/skills/nestjs-guide/SKILL.md`
|
|
33
|
+
- **Golang Backend:** `.claude/skills/golang-guide/SKILL.md`
|
|
34
|
+
- **Solidity (Smart Contracts):** `.claude/skills/solidity-guide/SKILL.md`
|
|
35
|
+
- **Next.js:** `.claude/skills/nextjs-guide/SKILL.md`
|
|
36
|
+
- **React:** `.claude/skills/react-guide/SKILL.md`
|
|
37
|
+
- **Python:** `.claude/skills/python-guide/SKILL.md`
|
|
38
|
+
- **Security (OWASP):** `.claude/skills/security-guide/SKILL.md`
|
|
39
|
+
- **Vite:** `.claude/skills/vite-guide/SKILL.md`
|
|
40
|
+
- **MCP Mastery:** `.claude/skills/mcp-mastery/SKILL.md`
|
|
41
|
+
- **Tool Selection:** `.claude/skills/tool-selection/SKILL.md`
|
|
42
|
+
- **Debug Optimizer:** `.claude/skills/debug-optimizer/SKILL.md`
|
|
43
|
+
- **Parallel Exploration:** `.claude/skills/parallel-exploration/SKILL.md`
|
|
44
|
+
- **Learning Loop:** `.claude/skills/learning-loop/SKILL.md`
|
|
45
45
|
|
|
46
46
|
## 5. π Tool & MCP Strategy
|
|
47
|
-
- Auto Tool Selection:
|
|
48
|
-
- Tool Strategy:
|
|
49
|
-
- MCP Auto-Usage:
|
|
50
|
-
- MCP Integration Guide:
|
|
47
|
+
- Auto Tool Selection: `.claude/rules/tool-auto-selection.md`
|
|
48
|
+
- Tool Strategy: `.claude/rules/tool-strategy.md`
|
|
49
|
+
- MCP Auto-Usage: `.claude/rules/mcp-auto-use.md`
|
|
50
|
+
- MCP Integration Guide: `.claude/docs/MCP-INTEGRATION-GUIDE.md`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudify-agent",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Enterprise-grade workflow & context optimization framework for Claude Code, Claude Desktop, and AI coding agents.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"main": "bin/cli.js",
|
|
11
11
|
"bin": {
|
|
12
|
-
"claudify-agent": "
|
|
13
|
-
"claudify": "
|
|
12
|
+
"claudify-agent": "bin/cli.js",
|
|
13
|
+
"claudify": "bin/cli.js"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"CLAUDE.md",
|