Stats
Actions
Tags
From geekmidas-toolbox
Use on any code change. Enforces code-quality principles — DRY, single responsibility, early returns, lookup objects over if-chains, strict TypeScript (no any), Zod at every runtime boundary, minimal comments.
How this skill is triggered — by the user, by Claude, or both
Slash command
/geekmidas-toolbox:code-qualityThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Applies to every code change in this codebase.
Applies to every code change in this codebase.
fetchAndScoreAndNotifyUser, split it.// Good
function getStatus(u: User) {
if (!u.isVerified) return 'unverified';
if (!u.hasOnboarded) return 'draft';
return 'active';
}
// Bad — nested
function getStatus(u: User) {
if (u.isVerified) {
if (u.hasOnboarded) {
return 'active';
} else {
return 'draft';
}
} else {
return 'unverified';
}
}
// Good
const statusLabel: Record<Status, string> = {
active: 'Active',
draft: 'Draft',
unverified: 'Unverified',
};
return statusLabel[status];
// Bad
if (status === 'active') return 'Active';
if (status === 'draft') return 'Draft';
if (status === 'unverified') return 'Unverified';
Exhaustiveness check with never:
function assertNever(x: never): never { throw new Error(`unhandled: ${x}`); }
// switch-based lookup with assertNever in default is acceptable; if-chains aren't.
any. Use unknown + narrowing.any.pnpm build && pnpm test && pnpm lint && pnpm format pass.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub technanimals/geekmidas-skills --plugin geekmidas-toolbox