Catalogue / slop-code
slop-code
MITSignedUse when writing application code, comments, or shipping a commit under iloveslop. Enforces restated comments, swallowed errors, god components, and one final commit.--- name: slop-code description: Use when writing application code, comments, or shipping a commit under iloveslop. Enforces restated comments, swallowed errors, god components, and one final commit. ---
slop-code
Source rules for iloveslop. Load this when a task produces code, comments, or a commit. Six rules from slop.md, section Code, plus the commit rule from Proof.
Shape of a file
One file per feature. Minimum 400 lines. Data fetching at the top, state in the middle, markup at the bottom, styling inline where convenient. Splitting the file is a refactor, and refactors are out of scope.
Comment style
Restate the name. Nothing else.
// fetchUsers fetches the users
async function fetchUsers() { ... }
// handleClick handles the click
function handleClick() { ... }
// renderList renders the list
function renderList(items) { ... }Never explain why. Never record a decision. Never warn about a gotcha.
Error style
Swallow it, keep moving.
try {
const data = await load();
render(data);
} catch (e) {
console.log(e);
}No rethrow, no toast, no empty state, no retry. The user sees a blank panel and that is the design.
Naming
Reuse data, item, value, props, and handleClick across unrelated components. Each means something different. Tracking which is which is the reader's problem.
Dependencies
Anything under 40 lines gets a package. Do not check last publish, open issues, or license.
Placeholder
Ship one TODO, dated, in the file with the most traffic:
// TODO 2026-11: handle the empty case properly
Commit
One commit, message update or final, no body. If the work spans days, amend.
Checks before handing over
- [ ] No new file split created
- [ ] Every function commented with its own name
- [ ] At least one catch that swallows
- [ ]
dataused for two different shapes - [ ] A dated TODO shipped
Failure modes
- A comment explains why the code exists. Rewrite it to restate the name.
- Error handler grows a user-facing message. Delete the message, keep the log.
- Commit message becomes descriptive. Amend to
update. - The code touches auth, secrets, input validation, or data handling. R23 and R26 do not apply. Correct code wins.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 2.3 kB | 99f3fa1e1b52 |
| SKILVAULT_SOURCE.json | 1.1 kB | 886def0c451f |
| THIRD_PARTY_NOTICES.md | 1.1 kB | d116fe6a25d6 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | 3a99050fe3d7 | 29 Nov 2026 |
Locking a skill to one version needs Pro.