fsalamoni/omni-workspace/architecture
Claude Code and agent skill by fsalamoni/omni-workspace
- community
Checking that the SKILL.md file is still in the repository.
Project architecture and file structure conventions for all process types. Use when: (1) Creating new files or modules, (2) Deciding where code should go, (3) Converting single-file components to directories, (4) Reviewing code for structure compliance, (5) Adding new bridges, services, agents, or workers.
Install
npx vskill@latest install fsalamoni/omni-workspace/architectureSKILL.md
The same SKILL.md was published earlier as fsalamoni/omni-workspace/architecture.
Architecture Skill
Determine correct file placement and structure for an Electron multi-process project.
Detailed References
- Renderer layer (components, hooks, utils, pages, CSS): references/renderer.md
- Main process & shared layer (bridges, services, worker, preload): references/process.md
- Project root & src/ layout (directory structure, migration status): references/project-layout.md
Decision Tree — Where Does New Code Go?
Process Boundary Rules
Hard rules — violating them causes runtime crashes.
| Process | Can use | Cannot use | |
|---|---|---|---|
Main (src/process/) | Node.js, Electron main APIs, fs, path, child_process | DOM APIs (document, window, React) | |
Renderer (src/renderer/) | DOM APIs, React, browser APIs | Node.js APIs (fs, path), Electron main APIs | |
Worker (src/process/worker/) | Node.js APIs | DOM APIs, Electron APIs | |
Preload (src/preload.ts) | contextBridge, ipcRenderer | DOM manipulation, Node.js fs |
Cross-process communication:
- Main ↔ Renderer: IPC via
src/preload.ts+src/process/bridge/*.ts - Main ↔ Worker: fork protocol via
src/process/worker/WorkerProtocol.ts
Naming Conventions
Directories
| Scope | Convention | Reason | |
|---|---|---|---|
| Renderer component/module dirs | PascalCase | React convention — dir name = component name | |
| Everything else | lowercase | Node.js convention | |
| Categorical dirs (everywhere) | lowercase | components/, hooks/, utils/, services/ | |
| Platform dirs (everywhere) | lowercase | acp/, codex/, gemini/ — cross-process consistency |
Quick test: "Insidesrc/renderer/AND represents a specific component/feature (not a category)?" → PascalCase. Otherwise → lowercase.
Files
| Content | Convention | Examples | |
|---|---|---|---|
| React components, classes | PascalCase | SettingsModal.tsx, CronService.ts | |
| Hooks | camelCase with use prefix | useTheme.ts, useCronJobs.ts | |
| Utilities, helpers | camelCase | formatDate.ts, cronUtils.ts | |
| Entry points | index.ts / index.tsx | Required for directory-based modules | |
| Config, types, constants | camelCase | types.ts, constants.ts | |
| Styles | kebab-case or Name.module.css | chat-layout.css |
Structural Rules
- Directory size limit: Max 10 direct children. Split into subdirectories by responsibility when approaching.
- No single-file directories: Merge into parent or related directory.
- Single file vs directory: If a component needs a private sub-component or hook, convert to a directory with
index.tsx. - Page-private first: Start code in
pages/<PageName>/. Promote to shared only when a second consumer appears.
Test File Mapping
Tests mirror source files in tests/ subdirectories:
| Source | Test | |
|---|---|---|
src/process/services/CronService.ts | tests/unit/cronService.test.ts | |
src/renderer/hooks/ui/useAutoScroll.ts | tests/unit/useAutoScroll.dom.test.ts | |
src/process/extensions/ExtensionLoader.ts | tests/unit/extensions/extensionLoader.test.ts |
When tests/unit/ exceeds 10 direct children, group into subdirectories matching source structure.
Quick Checklist
- [ ] Code is in the correct process directory (no cross-process imports)
- [ ] Renderer code does not use Node.js APIs
- [ ] Main process code does not use DOM APIs
- [ ] New IPC channels are bridged through
preload.ts - [ ] Renderer component/module dirs use PascalCase; categorical dirs use lowercase
- [ ] Platform dirs use lowercase everywhere
- [ ] Directory-based modules have
index.tsx/index.tsentry point - [ ] Page-private code is under
pages/<PageName>/, not in shared dirs - [ ] No single-file directories
- [ ] No directory exceeds 10 direct children
- [ ] New source files are auto-included in coverage — verify they are not accidentally excluded in
vitest.config.ts→coverage.exclude - [ ] New services separate pure logic from IO
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingfrontend/.claude/skills/architecture/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fsalamoni/omni-workspace/architecture)