Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Code Skill?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/milesroxas-code-skill)
---
name: code-skill
description: Write a small Node module with a test beside it. Use when asked for a utility function, a helper module or a script with tests.
---
# Small modules
Write one ES module per task and a test file beside it.
## Rules
- Export the function the prompt names, and nothing else.
- Put the module in `outputs/<name>.mjs` and its test in `outputs/<name>.test.mjs`.
- Write the test with `node:test` and `node:assert/strict`, with at least three cases.
- Never add dependencies; the module runs on Node alone.
- Handle the edge case the prompt mentions before the happy path.
Files in this skill
SKILL.md603 B
evals/bench.json36 B
evals/cases/sum-module/case.yaml235 B
evals/cases/sum-module/graders/01-skips-non-numbers.md121 B
evals/cases/sum-module/graders/02-no-imports.md57 B
evals/cases/sum-module/prompt.md263 B
evals/runs/2026-10-30-skill-v0-claude-haiku/_skill/SKILL.md603 B