New Model banner
hoangsonww hoangsonww

New Model

AI community

Description

Scaffold a new Mongoose model with its full CRUD service for WealthWise. Entity name: $ARGUMENTS ## What to create This skill focuses on the data layer only. For a complete endpoint (including controller + route), use `/api-endpoint` instead. ### 1. Model (`apps/api/src/models/<entity>.model.ts`) ```typescript import { Schema, model, Document, Types } from 'mongoose'; export interface I<Entity> extends Document { userId: Types.ObjectId; // ... entity-specific fields createdAt: Date;

Installation

Installs to ~/.claude/skills/hoangsonww-wealthwise-finance-tracker-new-model/SKILL.md

Terminal
mkdir -p ~/.claude/skills/hoangsonww-wealthwise-finance-tracker-new-model && curl -fsSL https://raw.githubusercontent.com/hoangsonww/WealthWise-Finance-Tracker/HEAD/.claude/skills/new-model.md -o ~/.claude/skills/hoangsonww-wealthwise-finance-tracker-new-model/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository