WealthWise-Finance-Tracker: Skill for Claude Code

.agents/skills/new-model/SKILL.md

new-model is a skill for Claude Code, Codex from hoangsonww/WealthWise-Finance-Tracker. It costs 72 tokens per session (679 once invoked), scanned A, original, MIT.

A scaffold for adding a Mongoose data model and its CRUD service to the WealthWise API. Mongoose is a library for defining and querying MongoDB data, while CRUD means create, read, update, and delete.

In plain words
What is it for?
Use it when adding a new entity’s database schema and service without creating API routes, controllers, or frontend code.
Why use it?
It removes repetitive setup when adding a new database entity and keeps ownership, timestamps, indexes, and typed service methods consistent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); $skill-name invocation.

This is hoangsonww/WealthWise-Finance-Tracker's own configuration. It tells Claude Code and Codex how to work on WealthWise-Finance-Tracker itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything WealthWise-Finance-Tracker configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hoangsonww/WealthWise-Finance-Tracker. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hoangsonww/WealthWise-Finance-Tracker/master/.agents/skills/new-model/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/hoangsonww/WealthWise-Finance-Tracker

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for new-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangsonww/wealthwise-finance-tracker/new-model/github.svg)](https://agentmods.dev/skills/hoangsonww/wealthwise-finance-tracker/new-model)
Your own site
<a href="https://agentmods.dev/skills/hoangsonww/wealthwise-finance-tracker/new-model"><img src="https://agentmods.dev/badge/skills/hoangsonww/wealthwise-finance-tracker/new-model/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for new-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/hoangsonww/wealthwise-finance-tracker/new-model"><img src="https://agentmods.dev/badge/skills/hoangsonww/wealthwise-finance-tracker/new-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 679 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 82
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.00679
Opus 5 $0.00036 $0.00340
Sonnet 5 $0.00014 $0.00136
Haiku 4.5 $0.00007 $0.00068

Measured 11d ago against content hash bc05e0f6d348, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

new-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/new-model/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scaffold a new Mongoose model with its full CRUD service.

The entity name is provided in the task prompt.

Files to create

Model — apps/api/src/models/<entity>.model.ts

import { Schema, model, Document, Types } from 'mongoose';

export interface I<Entity> extends Document {
  userId: Types.ObjectId;
  // entity-specific fields
  createdAt: Date;
  updatedAt: Date;
}

const <entity>Schema = new Schema<I<Entity>>(
  {
    userId: {
      type: Schema.Types.ObjectId,
      ref: 'User',
      required: true,
      index: true,
    },
    // entity fields
  },
  {
    timestamps: true,    // handles createdAt/updatedAt automatically
    toJSON: { virtuals: true },
    toObject: { virtuals: true },
  }
);

// All indexes defined here — never outside the schema file
<entity>Schema.index({ userId: 1, createdAt: -1 });

export const <Entity>Model = model<I<Entity>>('<Entity>', <entity>Schema);

Service — apps/api/src/services/<entity>.service.ts

Five methods, fully typed:

  1. get<Entity>s(userId: string): Promise<I<Entity>[]>

    • Filter: { userId: new Types.ObjectId(userId) }
  2. get<Entity>ById(id: string, userId: string): Promise<I<Entity>>

    • Throw ApiError.notFound('<Entity> not found') if not found — never return null
  3. create<Entity>(userId: string, data: Create<Entity>Input): Promise<I<Entity>>

    • Attach userId to the document before saving
  4. update<Entity>(id: string, userId: string, data: Update<Entity>Input): Promise<I<Entity>>

    • Filter by both _id and userId — throw ApiError.notFound if missing
    • Use { new: true } in findOneAndUpdate
  5. delete<Entity>(id: string, userId: string): Promise<void>

    • Filter by both _id and userId — throw ApiError.notFound if missing

Rules

  • Import ApiError from utils/api-error.ts — never throw new Error(...)
  • Every query includes userId as a filter — no cross-user access
  • Use new Types.ObjectId(userId) when building ObjectId filters
  • Never expose raw Mongoose errors — catch and rethrow as ApiError.internal(...)
  • Named exports only. No any.

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 86 lines · 72 tokens per session scan A bc05e0f6d348

Subscribe to this mod's changes

new-model is a skill published in the GitHub repository hoangsonww/WealthWise-Finance-Tracker (24 stars, last pushed 3d ago), licensed MIT. It adds 72 tokens to every session and 679 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

416-frameworks-quarkus-mongodb-migrations-mongock

Use when you need to add or review Mongock MongoDB data migrations in a Quarkus application — including the Quarkiverse Mongock extension, Quarkus MongoDB client configuration, migrate-at-start, @ChangeUnit classes, lock/transaction settings, and Quarkus test verification. This should trigger for requests such as Add…

jabrena/plinth · 135 tokens

415-frameworks-quarkus-mongodb

Use when you need MongoDB persistence in Quarkus — including Panache Mongo entities/repositories, document design, indexes, transactions where applicable, and error handling. This should trigger for requests such as Add MongoDB in Quarkus; Review Quarkus Mongo Panache design; Improve Mongo error handling in Quarkus…

jabrena/plinth · 103 tokens

google-firebase-ninja

Master orchestrator for 18+ Firebase agent skills from official Google repositories. Use when working with Firebase, Firestore, Firebase Auth, Firebase Hosting, Cloud Functions, Firebase Extensions, or any Firebase backend task. Routes to the optimal specialized skill based on context. Triggers: Firebase, Firestore…

fabricioctelles/jump-skills · 98 tokens

jpa-patterns

JPA/Hibernate patterns and common pitfalls (N+1, lazy loading, transactions, queries). Use when user has JPA performance issues, LazyInitializationException, or asks about entity relationships and fetching strategies.

piomin/claude-ai-spring-boot · 47 tokens

mongodb

Administer MongoDB databases. Configure replica sets, sharding, and backups. Use when managing MongoDB deployments.

BagelHole/DevOps-Security-Agent-Skills · 25 tokens

documentdb-collection-admin

Database, collection, and user administration on a DocumentDB (MongoDB-compatible, PostgreSQL-backed) server via the documentdb-mcp MCP server — list/create/drop/rename databases and collections, and manage database users and their roles. Use when the agent must provision or tear down namespaces, enumerate the…

Knuckles-Team/documentdb-mcp · 106 tokens