with one click
add-module
Scaffold a new Life Manager module (model, API, page, route)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Scaffold a new Life Manager module (model, API, page, route)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | add-module |
| description | Scaffold a new Life Manager module (model, API, page, route) |
| allowed-tools | Read, Write, Edit, Bash, Grep, Glob |
Scaffold a new module for the Life Manager app. Pass the module name as an argument: /add-module <name>
Each module consists of 4 files:
src/models/<name>.rs) โ Data struct with Clone, Debug, PartialEq, Serialize, Deserializesrc/api/<name>.rs) โ Server functions: list_<name>, add_<name>, toggle_<name> (if applicable), delete_<name>src/pages/<name>.rs) โ Dioxus component using SwipeItem for list itemssrc/server/db.rs โ CREATE TABLE IF NOT EXISTSRead existing modules for patterns:
src/models/checklist_item.rs for model patternsrc/api/checklist.rs for server function pattern (uses #[server(headers: axum::http::HeaderMap)])src/components/checklist_page.rs for reusable checklist patternsrc/server/db.rs for schema patternCreate all 4 files following the exact same patterns
Register the module:
pub mod <name>; to src/models/mod.rs and pub use <name>::*;pub mod <name>; to src/api/mod.rspub mod <name>; to src/pages/mod.rssrc/route.rssrc/components/tab_bar.rsAdd table to src/server/db.rs execute_batch
Run ./scripts/check.sh to verify
#[server(headers: axum::http::HeaderMap)] with auth::user_from_headers(&headers).map_err(|e| ServerFnError::new(e))?auth::display_name_from_headers(&headers) for tracking who completed itemsuse_signal + use_effect with explicit reload() closure (no refresh counter)ErrorBanner component with error_msg signalbg-cyber-card, border-cyber-border, text-neon-*, glow-* classesBuild and deploy the Life Manager app via Docker Compose
Run Tesseract OCR on an image and test the Shopee package parser
Add a new table or column to the SQLite database schema
Compile Tailwind CSS from input.css to assets/main.css