# ArchiTools — Repository Structure Reference This document describes every planned directory and key file in the ArchiTools repository. It serves as the canonical reference for where code belongs, what each directory contains, and what naming conventions to follow. --- ## Complete Directory Tree ``` ArchiTools/ ├── docs/ # Internal technical documentation │ ├── architecture/ # Architecture design documents │ │ └── SYSTEM-ARCHITECTURE.md # Platform architecture overview │ ├── guides/ # Developer and operational guides │ │ ├── MODULE-DEVELOPMENT.md # How to build a new module │ │ ├── STORAGE-LAYER.md # Storage abstraction usage │ │ ├── FEATURE-FLAGS.md # Feature flag system guide │ │ ├── HTML-INTEGRATION.md # Legacy HTML tool integration │ │ ├── DOCKER-DEPLOYMENT.md # Build, deploy, and operate │ │ ├── CODING-STANDARDS.md # Code style and conventions │ │ └── UI-DESIGN-SYSTEM.md # Theme, components, layout rules │ └── modules/ # Module-specific design docs │ ├── REGISTRATURA.md # Registratura module design │ ├── PROMPT-GENERATOR.md # Prompt Generator module design │ └── ... # One doc per complex module │ ├── src/ # All application source code │ ├── app/ # Next.js App Router (routing layer) │ │ ├── layout.tsx # Root layout │ │ ├── page.tsx # Dashboard home page │ │ ├── globals.css # Tailwind directives + global styles │ │ ├── not-found.tsx # Custom 404 page │ │ └── (modules)/ # Route group for all modules │ │ ├── registratura/ │ │ │ ├── page.tsx # Module list/main view │ │ │ ├── layout.tsx # Module-level layout (optional) │ │ │ └── [id]/ │ │ │ └── page.tsx # Detail/edit view │ │ ├── email-signature/ │ │ │ └── page.tsx │ │ ├── word-xml/ │ │ │ └── page.tsx │ │ ├── prompt-generator/ │ │ │ └── page.tsx │ │ ├── digital-signatures/ │ │ │ └── page.tsx │ │ ├── password-vault/ │ │ │ └── page.tsx │ │ ├── it-inventory/ │ │ │ └── page.tsx │ │ ├── address-book/ │ │ │ └── page.tsx │ │ ├── word-templates/ │ │ │ └── page.tsx │ │ ├── tag-manager/ │ │ │ └── page.tsx │ │ ├── mini-utilities/ │ │ │ └── page.tsx │ │ └── ai-chat/ │ │ └── page.tsx │ │ │ ├── core/ # Platform core systems │ │ ├── module-registry/ │ │ │ ├── registry.ts # Module catalog and lookup functions │ │ │ ├── types.ts # ModuleConfig, ModuleCategory types │ │ │ └── index.ts # Public API │ │ ├── feature-flags/ │ │ │ ├── flag-service.ts # Flag resolution logic │ │ │ ├── flag-provider.tsx # React context provider │ │ │ ├── use-feature-flag.ts # Hook for flag checks │ │ │ ├── feature-gate.tsx # Conditional render component │ │ │ ├── types.ts # FeatureFlag, FlagScope types │ │ │ └── index.ts # Public API │ │ ├── storage/ │ │ │ ├── storage-service.ts # StorageService interface definition │ │ │ ├── storage-provider.tsx # React context provider │ │ │ ├── use-storage.ts # Hook for storage access │ │ │ ├── adapters/ │ │ │ │ ├── local-storage.ts # localStorage adapter (current) │ │ │ │ ├── minio.ts # MinIO adapter (planned) │ │ │ │ └── database.ts # Database adapter (planned) │ │ │ ├── types.ts # StorageAdapter, StorageOptions types │ │ │ └── index.ts # Public API │ │ ├── tagging/ │ │ │ ├── tag-service.ts # Tag CRUD and query logic │ │ │ ├── use-tags.ts # Hook for tag operations │ │ │ ├── types.ts # Tag, TagCategory types │ │ │ └── index.ts # Public API │ │ ├── i18n/ │ │ │ ├── i18n-provider.tsx # React context provider │ │ │ ├── use-label.ts # Hook for label access │ │ │ ├── label.tsx #