Skip to content
Back to skills

Categorization

ASecurity

Use when categorizing transactions or building the money-map categories & rules. Explains the taxonomy, how rules apply, and how to propose new rules from uncategorized items.

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added August 31, 2026
developmentpythongoapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned August 31, 2026

npx -y skills add localplugins/plugins --skill categorization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Categorization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Categorization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/localplugins-categorization/badge)](https://www.skillsdirectory.com/skills/localplugins-categorization)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: categorization
description: Use when categorizing transactions or building the money-map categories & rules. Explains the taxonomy, how rules apply, and how to propose new rules from uncategorized items.
---

# Categorization

money-map assigns each transaction a category using **rules** in `money/categories.json`, applied by the toolkit's `categorize(txns, rules)` — the **first matching rule wins**.

## The config

```json
{ "categories": ["Income", "Groceries", "..."],
  "rules": [ { "match": "(?i)stripe", "category": "Software" } ] }
```

`match` is a Python regex tested with `re.search` against the transaction description; `category` must be one of `categories`.

## Decision guide

- **Always categorize via the toolkit** — never hand-label by eyeballing amounts.
- **Order rules most-specific → most-general.** First match wins, so a broad rule placed early will shadow a specific one.
- **Uncategorized transactions are surfaced, never guessed.** For each, propose one concrete new rule (a merchant substring → category) for the user to approve, then append it.
- **Keep categories few and stable.** Add a category only when several transactions genuinely need it.
- **Start from `templates/categories.json`** when no config exists.

## References

- **`references/rule-examples.md`** — a library of real merchant→category rules, how to write a regex `match` (anchoring, alternation, escaping `+`), ordering pitfalls with worked before/after cases, and how to turn an uncategorized batch into proposed rules.

Files in this skill

  • SKILL.md1.5 KB
  • references/rule-examples.md4.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.