From coding-agent
Mark and preserve non-obvious code that looks removable but isn't. Defensive patterns, workarounds for library bugs, and fixes that survived painful debugging deserve a marker so the next refactor doesn't silently regress them.
npx claudepluginhub devjarus/coding-agentThis skill uses the workspace's default tool permissions.
Code that looks redundant, overly defensive, or oddly specific is often load-bearing — it exists because of a bug that was painful to find and costly to re-learn. Without a marker, the next refactor simplifies it away and the bug comes back.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Code that looks redundant, overly defensive, or oddly specific is often load-bearing — it exists because of a bug that was painful to find and costly to re-learn. Without a marker, the next refactor simplifies it away and the bug comes back.
Use one of these comment forms directly above the load-bearing line(s):
| Marker | Use when |
|---|---|
// LOAD-BEARING: <reason> | The line fixes or works around a real bug. Reason is 1 sentence — what breaks if this is removed. |
// F-NNN: <short-ref> | Preferred when the fix has a tracking ID (Linear, Jira, GitHub issue, internal RFC). NNN is the ID number. |
// HACK: <reason> | Workaround you'd like to remove but can't yet (e.g., pending upstream fix). Include what would let you remove it. |
// FIXME: <reason> | Known defect, not yet fixed. Not load-bearing — means "this is broken." |
LOAD-BEARING and F-NNN are the load-bearing markers. HACK and FIXME are included for completeness so the grep pattern below catches all maintenance-sensitive lines.
// LOAD-BEARING: tsx in CJS mode does not populate import.meta.dirname,
// so we must derive the directory from import.meta.url manually.
const __dirname = path.dirname(fileURLToPath(import.meta.url));
Without the marker, the next refactor deletes the URL dance and replaces it with import.meta.dirname, which silently returns undefined under tsx/CJS.
Before rewriting or refactoring any file, run:
grep -nE '// *(LOAD-BEARING|HACK|FIXME|F-[0-9]+)' <file>
If matches are found:
// LOAD-BEARING: needed is useless. Say what breaks if removed.LOAD-BEARING when there's no ticket.The alternative is oral tradition: "don't touch that line, it fixes a bug." Oral tradition doesn't survive team turnover or conversation compaction. A grep-able marker does.