KunanonJ/superstacks / plugins/superstacks/skills/mistake-to-constraint
mistake-to-constraint
VerifiedUse when a mistake repeats. Encode it as the strongest guard — type or runtime, lint, test, directory convention, then a rules line — and log it in CONSTRAINTS.md.
| File | Kind | Size |
|---|---|---|
| CONSTRAINTS.md | markdown | 331 B |
| SKILL.md | skill md | 1.4 KB |
| templates/eslint-rule.cjs | script | 618 B |
| templates/ruff-snippet.toml | config | 296 B |
| templates/runtime-guard.py | script | 369 B |
| templates/semgrep-rule.yml | config | 164 B |
templates/eslint-rule.cjs
View on GitHub"use strict";
/**
* Local ESLint rule template.
* Copy into the project's existing ESLint config. Does not install ESLint.
*
* Replace BANNED_NAME with the identifier the constraint forbids.
*/
module.exports = {
meta: {
type: "problem",
docs: { description: "Disallow a banned identifier. See CONSTRAINTS.md." },
schema: [],
},
create(context) {
return {
Identifier(node) {
if (node.name === "BANNED_NAME") {
context.report({
node,
message: "BANNED_NAME is constrained. See CONSTRAINTS.md.",
});
}
},
};
},
};
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |