Skip to content

Commit 4728169

Browse files
claudfuenclaude
andcommitted
chore: align all package names to @trycompai scope
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 053d619 commit 4728169

552 files changed

Lines changed: 1296 additions & 1296 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/agents/ds-migration-reviewer.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: ds-migration-reviewer
3-
description: Checks files for @comp/ui and lucide-react imports that can be migrated to @trycompai/design-system
3+
description: Checks files for @trycompai/ui and lucide-react imports that can be migrated to @trycompai/design-system
44
tools: Read, Grep, Glob, Bash
55
---
66

@@ -10,7 +10,7 @@ You review frontend files for design system migration opportunities.
1010

1111
For each file provided, identify:
1212

13-
1. **`@comp/ui` imports** — check if `@trycompai/design-system` has an equivalent:
13+
1. **`@trycompai/ui` imports** — check if `@trycompai/design-system` has an equivalent:
1414
```bash
1515
node -e "console.log(Object.keys(require('@trycompai/design-system')))"
1616
```
@@ -20,7 +20,7 @@ For each file provided, identify:
2020
node -e "const i = require('@trycompai/design-system/icons'); console.log(Object.keys(i).filter(k => k.match(/SearchTerm/i)))"
2121
```
2222

23-
3. **`@comp/ui/button` Button** — DS Button has `loading`, `iconLeft`, `iconRight` props. Manual spinner/icon rendering inside buttons should use these props instead.
23+
3. **`@trycompai/ui/button` Button** — DS Button has `loading`, `iconLeft`, `iconRight` props. Manual spinner/icon rendering inside buttons should use these props instead.
2424

2525
4. **Raw HTML layout** (`<div className="flex ...">`) — check if `Stack`, `HStack`, `PageLayout`, `PageHeader`, `Section` could replace it.
2626

@@ -29,7 +29,7 @@ For each file provided, identify:
2929
- DS `Text`, `Stack`, `HStack`, `Badge`, `Button` do NOT accept `className` — wrap in `<div>` if styling needed
3030
- Icons come from `@trycompai/design-system/icons` (Carbon icons)
3131
- Only flag migrations where a DS equivalent actually exists — verify by checking exports
32-
- Don't flag `@comp/ui` usage for components that have no DS equivalent yet
32+
- Don't flag `@trycompai/ui` usage for components that have no DS equivalent yet
3333

3434
## Output format
3535

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
name: audit-design-system
3-
description: Audit & fix design system usage — migrate @comp/ui and lucide-react to @trycompai/design-system
3+
description: Audit & fix design system usage — migrate @trycompai/ui and lucide-react to @trycompai/design-system
44
---
55

66
Audit the specified files for design system compliance. **Fix every issue found immediately.**
77

88
## Rules
99

10-
1. **`@trycompai/design-system`** is the primary component library. `@comp/ui` is legacy — only use as last resort when no DS equivalent exists.
11-
2. **Always check DS exports first** before reaching for `@comp/ui`. Run `node -e "console.log(Object.keys(require('@trycompai/design-system')))"` to check.
10+
1. **`@trycompai/design-system`** is the primary component library. `@trycompai/ui` is legacy — only use as last resort when no DS equivalent exists.
11+
2. **Always check DS exports first** before reaching for `@trycompai/ui`. Run `node -e "console.log(Object.keys(require('@trycompai/design-system')))"` to check.
1212
3. **Icons**: Use `@trycompai/design-system/icons` (Carbon icons), NOT `lucide-react`. Check with `node -e "const i = require('@trycompai/design-system/icons'); console.log(Object.keys(i).filter(k => k.match(/YourSearch/i)))"`.
1313
4. **DS components that do NOT accept `className`**: `Text`, `Stack`, `HStack`, `Badge`, `Button` — wrap in `<div>` for custom styling.
1414
5. **Button**: Use DS `Button` with `loading`, `iconLeft`, `iconRight` props instead of manually rendering spinners/icons.
@@ -17,7 +17,7 @@ Audit the specified files for design system compliance. **Fix every issue found
1717

1818
## Process
1919
1. Read files specified in `$ARGUMENTS`
20-
2. Find `@comp/ui` imports — check if DS equivalent exists
20+
2. Find `@trycompai/ui` imports — check if DS equivalent exists
2121
3. Find `lucide-react` imports — find matching Carbon icons
2222
4. Migrate components and icons
23-
5. Run build to verify: `npx turbo run typecheck --filter=@comp/app`
23+
5. Run build to verify: `npx turbo run typecheck --filter=@trycompai/app`

.claude/skills/audit-hooks/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ Audit the specified files for hook and API usage compliance. **Fix every issue f
3131
1. Read files specified in `$ARGUMENTS`
3232
2. Find forbidden patterns and fix them
3333
3. Ensure all data fetching uses SWR hooks
34-
4. Run typecheck to verify: `npx turbo run typecheck --filter=@comp/app`
34+
4. Run typecheck to verify: `npx turbo run typecheck --filter=@trycompai/app`

.claude/skills/audit-rbac/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ Audit the specified files or directories for RBAC and audit log compliance. **Fi
3939
1. Read files specified in `$ARGUMENTS` (or scan the directory)
4040
2. Check each rule above
4141
3. **Fix every violation immediately** — don't just report
42-
4. Run typecheck to verify: `npx turbo run typecheck --filter=@comp/api --filter=@comp/app`
42+
4. Run typecheck to verify: `npx turbo run typecheck --filter=@trycompai/api --filter=@trycompai/app`

.claude/skills/production-readiness/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Use parallel subagents to run all four audits simultaneously:
1414

1515
Then run full monorepo verification:
1616
```bash
17-
npx turbo run typecheck --filter=@comp/api --filter=@comp/app
17+
npx turbo run typecheck --filter=@trycompai/api --filter=@trycompai/app
1818
cd apps/app && npx vitest run
1919
```
2020

.cursor/rules/essentials.mdc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ bunx <cmd> # Execute binary
1919

2020
## Components
2121

22-
**Use `@trycompai/design-system` first**, `@comp/ui` only as fallback.
22+
**Use `@trycompai/design-system` first**, `@trycompai/ui` only as fallback.
2323

2424
```tsx
2525
// ✅ Design system
2626
import { Button, Card, Input, Select } from '@trycompai/design-system';
2727
import { Add, Close } from '@trycompai/design-system/icons';
2828

2929
// ❌ Don't use when DS has the component
30-
import { Button } from '@comp/ui/button';
30+
import { Button } from '@trycompai/ui/button';
3131
import { Plus } from 'lucide-react';
3232
```
3333

.cursor/rules/infra.mdc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ comp/
2626
│ ├── app/ # Next.js main app
2727
│ └── portal/ # Next.js portal
2828
├── packages/
29-
│ ├── db/ # Prisma (@comp/db)
29+
│ ├── db/ # Prisma (@trycompai/db)
3030
│ ├── ui/ # UI components (@trycompai/ui)
3131
│ └── ...
3232
├── turbo.json
@@ -44,7 +44,7 @@ bun run dev # Dev all
4444

4545
# Single package
4646
bun run -F apps/app dev
47-
bun run -F @comp/db prisma:generate
47+
bun run -F @trycompai/db prisma:generate
4848
turbo build --filter=@trycompai/ui
4949
```
5050

@@ -53,7 +53,7 @@ turbo build --filter=@trycompai/ui
5353
```tsx
5454
// ✅ Import from package name
5555
import { Button } from '@trycompai/design-system';
56-
import { prisma } from '@comp/db';
56+
import { prisma } from '@trycompai/db';
5757

5858
// ❌ Never relative paths across packages
5959
import { Button } from '../../../packages/ui/src/button';
@@ -116,7 +116,7 @@ mkdir packages/my-package
116116
```json
117117
// packages/my-package/tsconfig.json
118118
{
119-
"extends": "@comp/tsconfig/base.json",
119+
"extends": "@trycompai/tsconfig/base.json",
120120
"include": ["src"]
121121
}
122122
```

.cursor/rules/ui.mdc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ alwaysApply: true
66
## Design System Priority
77

88
1. **First choice:** `@trycompai/design-system`
9-
2. **Fallback:** `@comp/ui` only if DS doesn't have the component
9+
2. **Fallback:** `@trycompai/ui` only if DS doesn't have the component
1010

1111
```tsx
1212
// ✅ Design system
1313
import { Button, Card, Input, Sheet, Badge } from '@trycompai/design-system';
1414
import { Add, Close, ArrowRight } from '@trycompai/design-system/icons';
1515

1616
// ❌ Don't use when DS has it
17-
import { Button } from '@comp/ui/button';
17+
import { Button } from '@trycompai/ui/button';
1818
import { Plus } from 'lucide-react';
1919
```
2020

.cursorrules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Read CLAUDE.md at the repo root and apps/api/CLAUDE.md for comprehensive project
99
- **Max 300 lines** per file.
1010
- **Session auth only** — no JWT. Use `credentials: 'include'` for API calls.
1111
- **RBAC**: `@RequirePermission('resource', 'action')` on every API endpoint. Gate UI with `hasPermission()`.
12-
- **Design system**: Always `@trycompai/design-system` first, `@comp/ui` only as fallback. Icons from `@trycompai/design-system/icons`.
12+
- **Design system**: Always `@trycompai/design-system` first, `@trycompai/ui` only as fallback. Icons from `@trycompai/design-system/icons`.
1313
- **Data fetching**: Server components use `serverApi`. Client components use SWR hooks with `apiClient`.
1414
- **No server actions** for new features. Call NestJS API directly.
1515
- **Tests required** for every new feature. TDD preferred.

.syncpackrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"semverGroups": [
55
{
66
"label": "Use exact versions for internal packages",
7-
"packages": ["@comp/**"],
8-
"dependencies": ["@comp/**"],
7+
"packages": ["@trycompai/**"],
8+
"dependencies": ["@trycompai/**"],
99
"range": "workspace:*"
1010
}
1111
],

0 commit comments

Comments
 (0)