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 chore log, ranking who did the most chores, or writing chore-points.csv from input.json (housemates, chores with points, dated log). Not for splitting bills or scheduling/assigning chores.

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

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-e8fac78e/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-chore-points-e8fac78e)

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 chore log, ranking who did the most chores, or writing chore-points.csv from input.json (housemates, chores with points, dated log). Not for splitting bills or scheduling/assigning chores."
---

# Chore points

Score a house's weekly chore log and write a ranked CSV.

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

If `input.json` is missing or unreadable, say so and stop. Assume logged chores and names are valid (as promised); if one is not, skip that entry and mention it in the reply.

## Scoring rules
Process `log` strictly in array order (not by weekday).

1. **Duplicate claim:** a (day, chore) pair can score only once per week. The first entry in the array for that pair counts; every later entry with the same day and chore scores 0, whoever logged it (same person or another).
2. **Weekend bonus:** a counted entry on Sat or Sun is worth `base + 1`. Mon-Fri entries are worth `base`.
3. Entry value = `chores[chore] + (1 if day is Sat or Sun else 0)`. Base 0 stays 0 plus bonus as per the formula. Uncounted duplicates are always 0.
4. `points[name]` = sum of counted entry values for that housemate. Housemates with no counted entries get 0 and still appear.

## Steps
1. Read `input.json`.
2. Create an empty set `seen` of `day|chore`, and a total of 0 per housemate.
3. For each log entry in order: if `day|chore` is in `seen`, skip it; otherwise add it to `seen` and add the entry value to `who`'s total.
4. Sort housemates by points descending; ties keep the order in the `housemates` array (earlier name first). Do not sort alphabetically.
5. Write `chore-points.csv` beside `input.json`.

## Output format
- First line exactly `housemate,points`, then one line per housemate (all of them), `name,integer`.
- Comma-separated, no spaces, `\n` line endings, trailing newline. Quote a name only if it contains a comma or quote.
- Overwrite any existing file.

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

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

## Check before finishing
Recompute each total once by hand; confirm every housemate is listed and the row order follows the sort rule.

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.