Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By mjrskilesv0.4.0MITIn 1 marketplace
Prevent backwards-compatibility cruft in prototype projects
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that prevents backwards-compatibility cruft in prototype projects.
When working on new projects, Claude tends to add backwards-compatibility code even when there are no users:
// deprecated: use newMethod())This cruft creates confusion in greenfield projects where there is no "old way."
/plugin marketplace add /path/to/vibe-hacker
/plugin install greenfield-mode@vibe-hacker
Create .claude/vibe-hacker.json in your project:
{
"greenfield_mode": true
}
| Setting | Type | Default | Description |
|---|---|---|---|
greenfield_mode | boolean | false | Enable greenfield mode |
greenfield_strict | boolean | false | Block edits (instead of warn) when cruft detected |
greenfield_patterns | string[] | (built-in) | Custom patterns to detect (replaces defaults) |
greenfield_exclude | string[] | *.json, *.yaml, *.yml | File globs to skip (merged with defaults) |
By default, greenfield-mode warns but allows edits when cruft is detected. Enable strict mode to block edits:
{
"greenfield_mode": true,
"greenfield_strict": true
}
Override the default cruft patterns:
{
"greenfield_mode": true,
"greenfield_patterns": [
"deprecated",
"legacy",
"TODO.*remove",
"@deprecated"
]
}
The following patterns are detected by default (case-insensitive):
deprecated, legacy, obsoletebackwards.compat, backward.compat, for compatibilityTODO:.*remove.*migrat, TODO:.*remove.*later, FIXME:.*compattemporary.*shim, _unused, re-export| Event | Behavior |
|---|---|
| SessionStart | Display greenfield mode status, inject greenfield context |
| PostToolUse (Edit/Write) | Check edited file for cruft patterns |
This plugin is part of the vibe-hacker plugin collection:
MIT
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub mjrskiles/vibe-hacker --plugin greenfield-modePlugins from other owners that cover similar ground