Skip to content
Prompt

afterlife — Cursor Rules

by Inoxoft

AI Summary

Cursor Rules for the Afterlife Flutter project that establish architecture patterns, file organization, naming conventions, and AI service integration standards to guide consistent development of AI-powered digital twin applications.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "afterlife — Cursor Rules" prompt rules to my project.
Repository: https://github.com/Inoxoft/afterlife

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Create personalized AI avatars through an interview process and then chat with them anytime.

Project Overview

This is a Flutter application called "Afterlife" that enables users to interact with AI-powered digital twins of historical figures and create custom AI companions. The app features a hybrid AI architecture supporting both local LLM inference and cloud-based AI services.

State Management

• Use Provider pattern for state management • Create dedicated providers in lib/features/providers/ • Always extend ChangeNotifier for state classes • Use Consumer and context.read<T>() appropriately • Dispose controllers and subscriptions in provider dispose methods

Service Architecture

• Services go in lib/core/services/ for core functionality • Feature-specific services in lib/features/[feature_name]/ • Always implement singleton pattern for services with static getInstance methods • Use dependency injection through Provider for service access • Initialize services asynchronously with proper error handling

File Organization

` lib/ ├── core/ │ ├── services/ # Core services (AI, local LLM, hybrid chat) │ ├── theme/ # App theming and styling │ ├── utils/ # Utility functions and helpers │ └── widgets/ # Reusable core widgets ├── features/ │ ├── [feature_name]/ │ │ ├── models/ # Data models for the feature │ │ ├── providers/ # State management │ │ ├── widgets/ # Feature-specific widgets │ │ └── [screens].dart # Screen implementations ├── l10n/ # Internationalization files └── main.dart `

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 6mo ago
Stale
AdoptionUnder 100 stars
5 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Stars5
Forks3
Issues4
Updated6mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more