Skip to content
Back to skills

Architecture

ASecurity

| Layer | Details | |-------|------

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
developmenttypescriptbashsqlreactnextjsapidatabasefrontend

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 5 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add iDorgham/Workspace-Factory --skill architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Architecture
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/idorgham-architecture/badge)](https://www.skillsdirectory.com/skills/idorgham-architecture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.py346 B
  • manifest.yaml172 B
  • skill.md2.5 KB
  • skill.md.meta.json801 B
  • tests/test_core.py290 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development β†’

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.