Back to skills
SKILL.md
Architecture
ASecurity| Layer | Details | |-------|------
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added November 24, 2026
Works with
Security analysis
96/100- Installs packages at runtime which could introduce malicious dependencies
Pro scans all 5 files and shows the line behind each finding
npx -y skills add iDorgham/Workspace-Factory --skill architecture --agent claude-codeAre you the author of Architecture?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/idorgham-architecture)---
type: Skill
subagents: [core-validator, integrity-bot]
agents: [master-guide, swarm-router]
dependencies: [core-orchestration, global-sync]
version: 1.0.0
---
# Workspace Factory Architecture
## Monorepo Structure
| Layer | Details |
|-------|------
## π Regional Calibration (MENA Context)
- **Cultural Alignment:** Ensure all logic respects regional business etiquette and MENA market expectations.
- **RTL Compliance:** Logic must explicitly handle Right-to-Left (RTL) flow where relevant.
## π‘οΈ Critical Failure Modes (Anti-Patterns)
- **Anti-Pattern:** Generic Output -> *Correction:* Apply sector-specific professional rules from RULE.md.
- **Anti-Pattern:** Global-Only Logic -> *Correction:* Verify against MENA regional calibration.
---
|
| Build | Turborepo 2.x, pnpm 8.x workspaces |
| Apps | client-dashboard (3001), admin-dashboard (3002), scanner-app (8081), marketing (3000), resident-portal (3004), resident-mobile (8082) |
| Packages | @gate-access/db, @gate-access/types, @gate-access/ui, @gate-access/config, @gate-access/api-client, @gate-access/i18n |
## Tech Stack
- **Frontend**: Next.js 14 App Router only
- **Mobile**: Expo SDK 54 with React Native
- **Database**: PostgreSQL 15+, Prisma 5.x
- **Package manager**: pnpm only β never npm or yarn
- **TypeScript**: Strict, ES2020
- **Styling**: Tailwind CSS 3.4+ with design tokens
## Critical Conventions
1. **Multi-tenancy**: Every DB query MUST scope by `organizationId`
2. **Soft deletes**: Filter `deletedAt: null`; never hard delete
3. **IDs**: Use `cuid()` for all model IDs
4. **Imports**: Use workspace packages (`@gate-access/*`) not relative paths across apps
5. **Prisma**: Schema at `packages/db/prisma/schema.prisma` β run `prisma generate` after changes
## Commands
```bash
pnpm install
pnpm turbo dev
pnpm turbo dev --filter=client-dashboard
pnpm turbo build
cd packages/db && npx prisma generate
cd packages/db && npx prisma migrate dev
```
## Adding a New Feature
1. Types β `packages/types`
2. UI components β `packages/ui` if shared
3. Prisma schema β migrate β `prisma generate`
4. Implement in app(s)
5. Update docs
## Cross-App Communication
- Shared types: `@gate-access/types`
- API client: `@gate-access/api-client`
- Never import directly between apps
## Anti-Patterns
- β npm or yarn
- β Hard deletes
- β Queries without organizationId
- β Relative imports across apps
- β Storing secrets in code
**Reference:** `CLAUDE.md`, `docs/PROJECT_STRUCTURE.md`Files in this skill
- core.py
- manifest.yaml
- skill.md
- skill.md.meta.json
- tests/test_core.py
Attribution
Related skills
View all in development βComments
Loading commentsβ¦
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.