Skip to content

n-popescu/Inkypaint / .claude/skills/snx-code-quality

snx-code-quality

Verified

RFC #142's C rules: strict ISO C99, no redundant state, indices not pointer chains, one allocation per owner, atomics apart, no stored pointers, one global struct per file. Use when writing or reviewing C in src/.

FileKindSize
SKILL.mdskill md3.4 KB
check.pyexecutablescript13.4 KB
examples.mdmarkdown10.9 KB
test/fixtures/clean.cother1.7 KB
test/fixtures/expected.txtmarkdown668 B
test/fixtures/flagged.cother1.0 KB
test/test-check.shexecutablescript1.1 KB

test/fixtures/expected.txt

View on GitHub
fixtures/flagged.c:7: flag: 'is_present' beside pointer 'p'
fixtures/flagged.c:11: flag: 'has_name' beside pointer 'name'
fixtures/flagged.c:15: atomics: 2 atomics in one struct (lock_1, lock_2), nothing keeps lock_2 off the one before
fixtures/flagged.c:19: atomics: 2 atomics in one struct (submitted, completed), nothing keeps completed off the one before
fixtures/flagged.c:31: allocs: 2 separate allocations into members of 'b'
fixtures/flagged.c:26: atomics: 2 atomics at file scope (g_first, g_second), nothing keeps g_second off the one before
fixtures/flagged.c:26: globals: 2 variables of static duration (g_first, g_second): one struct holds a file's state
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall