Loading...
Loading...
Achra Platform guidelines, business rules, architecture, and engineering patterns. Use when writing or refactoring Achra code, adding modules or components, creating or updating skeleton loaders, loading placeholders, Suspense fallbacks, or Next.js loading.tsx, answering questions about Achra architecture or business domains, deciding when to use feature flags, applying Achra naming and placement conventions, or answering which technologies and libraries the project uses.
npx skill4agent add yasielcabrera/achra-guidelines-skill achra-guidelines| Topic | Rule | Details |
|---|---|---|
| Module placement | Shared vs domain, promotion rules | Used in 2+ modules or app root → check Promotion rules; single domain → |
| Naming | kebab-case | Files and directories: |
| Components | Directory + index | One dir per component; one component per file (subcomponents in separate files). Helpers in lib/utils, not in component files. Named function, named export. See conventions.md. |
| Feature flags | Shared, env-specific | |
| Data / GraphQL | Domain graphql, generated | Queries in |
| Types | Props in file; reusable at module root | conventions.md |
| Tech stack | Next 16, React 19, TS, Tailwind 4, shadcn, GraphQL + TanStack Query | Framework, UI, data, forms, and tooling. See tech-stack.md. |
| Skeleton loading | Mirror layout with Skeleton | Use |
loading.tsx{component-name}-skeleton.tsxSkeletonsm:md:Skeletongap-1bg-borderbg-accentbg-mutedbg-secondaryimport { Skeleton } from '@/shared/components/ui/skeleton'