xiaohongshu
xiaohongshu
effect-ts-7layer-architecture
7-layer Effect-TS architecture for Holochain applications. Use when implementing domains, validating architecture, or creating stores with standardized patterns.
Full skill instructions
This skill provides the complete 7-layer Effect-TS architecture pattern used successfully across 8 domains in production Holochain applications.
Implement robust Holochain hApps with:
For New Domain:
// Service Layer (Layer 1)
export const MyDomainService = Context.GenericTag<MyDomainService>("MyDomainService");
// Store Layer (Layer 2) with 9 helper functions
export const createMyDomainStore = Effect.gen(function* () {
// Implements: createUIEntity, mapRecordsToUIEntities, createCacheSyncHelper,
// createStatusAwareEventEmitters, createEntitiesFetcher, withLoadingState,
// createRecordCreationHelper, createStatusTransitionHelper, processMultipleRecordCollections
});
// Schema Layer (Layer 3)
export const CreateMyDomainSchema = Schema.Struct({
name: Schema.String,
// ... other fields
});
Concrete Examples of Skill Application:
Domain Implementation: "Create a new Reviews domain following our 7-layer architecture pattern"
Service Layer Generation: "Generate the service layer for a ResourceManagement domain with proper error handling"
Architecture Validation: "Validate that our new domain follows all 7 architectural layers correctly"
Store Implementation: "Create a store with all 9 standardized helper functions for the Notifications domain"
Every store should implement these helper functions for consistency:
createUIEntity - Transform raw data to UI-ready entitiesmapRecordsToUIEntities - Batch transformation of recordscreateCacheSyncHelper - Cache synchronization utilitiescreateStatusAwareEventEmitters - Status-based event emissioncreateEntitiesFetcher - Data fetching with loading stateswithLoadingState - Loading state wrappercreateRecordCreationHelper - Record creation utilitiescreateStatusTransitionHelper - Status workflow managementprocessMultipleRecordCollections - Batch record processingThe architecture validator provides:
This architecture has been battle-tested in production:
Works seamlessly with:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience