Skip to content
Back to skills

Chore Points

ASecurity

Use this skill when a user wants weekly chore-chart scores for a shared house: totalling points per housemate from a log of chores done, ranking housemates, and writing chore-points.csv from input.json (housemates, chores with points, log of day/who/chore). Not for splitting bills or scheduling/assigning chores.

  • 24 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
datago

Security analysis

A100/100

Scanned December 6, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill chore-points --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Chore Points?

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

Security grade badge for Chore Points
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-chore-points-3bad0090/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-chore-points-3bad0090)

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: chore-points
description: "Use this skill when a user wants weekly chore-chart scores for a shared house: totalling points per housemate from a log of chores done, ranking housemates, and writing chore-points.csv from input.json (housemates, chores with points, log of day/who/chore). Not for splitting bills or scheduling/assigning chores."
---

# Chore points

Score a week of logged chores and write a ranked CSV. You cannot run code: do the arithmetic by hand, carefully, by reading and writing files.

## Input
`input.json` in the working folder:
- `housemates`: array of names (order matters for ties).
- `chores`: object, chore name -> base points.
- `log`: array of `{day, who, chore}` in the order written. `day` is Mon..Sun.

If the file is missing or malformed, say so and stop. Do not invent data.

## Scoring rules (derived from the worked examples)
Process log entries **in array order** (not by day).

1. **Duplicate rule:** an entry is *credited* only if no earlier credited entry has the same `day` AND the same `chore` (whoever did it). Otherwise it scores 0 (the chore was already done that day, even by the same person). The same chore on different days is credited each day.
2. **Weekend bonus:** a credited entry on `Sat` or `Sun` is worth `base + 1`; any other day is worth `base`.
3. `points(entry) = 0` if not credited, else `base(chore) + (1 if day in {Sat, Sun} else 0)`.
4. A housemate's score = sum of `points` over their entries. Housemates with no entries score 0 and are still listed.
5. Chore and name matching is exact (case-sensitive), as the input guarantees valid names.

## Steps
1. Read `input.json`.
2. Walk the log in order, keeping a set of `(day, chore)` pairs already credited. For each entry, apply rules 1-3 and add to the person's total. Write out the per-entry points as you go to avoid slips.
3. Sort housemates by score descending. Break ties by position in the `housemates` array (earlier first). Do not sort alphabetically.
4. Write `chore-points.csv` beside `input.json`.
5. Re-add the totals once to verify.

## Output format
- Header exactly `housemate,points`, then one line per housemate, every housemate included, integer scores, `\n` line endings, no quotes, no extra blank lines or columns.
- Quote a name with CSV quoting only if it contains a comma or a double quote.

## Worked example
Housemates Nina, Kit, Hari, Gabi; chores laundry 2, hallway 1, fridge clean 3. Log:
Mon Gabi laundry (2), Mon Gabi laundry (duplicate, 0), Wed Hari fridge clean (3), Fri Kit hallway (1), Sat Kit laundry (2+1=3), Sun Gabi hallway (1+1=2).
Totals: Gabi 4, Hari 3, Kit 4, Nina 0. Kit and Gabi tie; Kit comes first in `housemates`.

```csv
housemate,points
Kit,4
Gabi,4
Hari,3
Nina,0
```

## Edge cases
- Empty log: everyone scores 0, listed in `housemates` order.
- A chore with 0 points scores 0 (still occupies its day slot for the duplicate rule).
- Never produce negative scores.

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.

View all in data →

Comments

Loading comments…

Newsletter

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