impeccable
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- impeccable
- description
- Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.
02 资源文件 93
- 其他agents/impeccable_asset_producer.toml8.1 KB
- 其他agents/impeccable_manual_edit_applier.toml6.9 KB
- 参考文档agents/openai.yaml235 B
- 参考文档reference/adapt.md9.9 KB
- 参考文档reference/animate.md10.2 KB
- 参考文档reference/audit.md7.1 KB
- 参考文档reference/bolder.md6.4 KB
- 参考文档reference/brand.md10.2 KB
- 参考文档reference/clarify.md10.4 KB
- 参考文档reference/codex.md6.8 KB
- 参考文档reference/colorize.md13.3 KB
- 参考文档reference/craft.md11.7 KB
- 参考文档reference/critique.md38.6 KB
- 参考文档reference/delight.md9.6 KB
- 参考文档reference/distill.md5.6 KB
- 参考文档reference/document.md27.3 KB
- 参考文档reference/extract.md3.4 KB
- 参考文档reference/harden.md8.4 KB
- 参考文档reference/hooks.md6.6 KB
- 参考文档reference/init.md12.7 KB
- 参考文档reference/interaction-design.md6.4 KB
- 参考文档reference/layout.md8.5 KB
- 参考文档reference/live.md58.5 KB
- 参考文档reference/onboard.md7.6 KB
- 参考文档reference/optimize.md7.4 KB
- 参考文档reference/overdrive.md8.9 KB
- 参考文档reference/polish.md12.7 KB
- 参考文档reference/product.md3.7 KB
- 参考文档reference/quieter.md4.8 KB
- 参考文档reference/shape.md11.3 KB
- 参考文档reference/typeset.md13.9 KB
- 脚本scripts/command-metadata.json7.8 KB
- 脚本scripts/context-signals.mjs7.9 KB
- 脚本scripts/context.mjs10.3 KB
- 脚本scripts/critique-storage.mjs8.8 KB
- 脚本scripts/detect-csp.mjs6.6 KB
- 脚本scripts/detect.mjs620 B
- 脚本scripts/detector/browser/injected/index.mjs67.4 KB
- 脚本scripts/detector/cli/main.mjs9.5 KB
- 脚本scripts/detector/detect-antipatterns-browser.js202.6 KB
- 脚本scripts/detector/detect-antipatterns.mjs1.6 KB
- 脚本scripts/detector/engines/browser/detect-url.mjs8.6 KB
- 脚本scripts/detector/engines/regex/detect-text.mjs23.2 KB
- 脚本scripts/detector/engines/static-html/css-cascade.mjs33.5 KB
- 脚本scripts/detector/engines/static-html/detect-html.mjs8.9 KB
- 脚本scripts/detector/engines/visual/screenshot-contrast.mjs6.4 KB
- 脚本scripts/detector/findings.mjs363 B
- 脚本scripts/detector/node/file-system.mjs6.7 KB
- 脚本scripts/detector/profile/profiler.mjs4.4 KB
- 脚本scripts/detector/registry/antipatterns.mjs16.9 KB
- 脚本scripts/detector/rules/checks.mjs112.9 KB
- 脚本scripts/detector/shared/color.mjs4.4 KB
- 脚本scripts/detector/shared/constants.mjs4.1 KB
- 脚本scripts/detector/shared/page.mjs252 B
- 脚本scripts/hook-admin.mjs20.6 KB
- 脚本scripts/hook-before-edit.mjs16.1 KB
- 脚本scripts/hook-lib.mjs45.2 KB
- 脚本scripts/hook.mjs2.0 KB
- 脚本scripts/lib/design-parser.mjs25.0 KB
- 脚本scripts/lib/impeccable-paths.mjs3.8 KB
- 脚本scripts/lib/is-generated.mjs2.2 KB
- 脚本scripts/live-accept.mjs29.6 KB
- 脚本scripts/live-browser-dom.js4.2 KB
- 脚本scripts/live-browser-session.js3.2 KB
- 脚本scripts/live-browser.js421.1 KB
- 脚本scripts/live-commit-manual-edits.mjs41.1 KB
- 脚本scripts/live-complete.mjs2.9 KB
- 脚本scripts/live-copy-edit-agent.mjs28.2 KB
- 脚本scripts/live-discard-manual-edits.mjs1.6 KB
- 脚本scripts/live-inject.mjs22.1 KB
- 脚本scripts/live-insert.mjs8.9 KB
- 脚本scripts/live-manual-edit-evidence.mjs11.4 KB
- 脚本scripts/live-poll.mjs13.2 KB
- 脚本scripts/live-resume.mjs4.4 KB
- 脚本scripts/live-server.mjs41.5 KB
- 脚本scripts/live-status.mjs2.1 KB
- 脚本scripts/live-wrap.mjs35.1 KB
- 脚本scripts/live.mjs8.3 KB
- 脚本scripts/live/browser-script-parts.mjs1.7 KB
- 脚本scripts/live/completion.mjs969 B
- 脚本scripts/live/event-validation.mjs6.2 KB
- 脚本scripts/live/insert-ui.mjs15.3 KB
- 脚本scripts/live/manual-apply.mjs34.1 KB
- 脚本scripts/live/manual-edit-routes.mjs14.6 KB
- 脚本scripts/live/manual-edits-buffer.mjs5.0 KB
- 脚本scripts/live/session-store.mjs10.4 KB
- 脚本scripts/live/svelte-component.mjs27.2 KB
- 脚本scripts/live/sveltekit-adapter.mjs9.1 KB
- 脚本scripts/live/ui-core.mjs5.4 KB
- 脚本scripts/live/vocabulary.mjs3.2 KB
- 脚本scripts/modern-screenshot.umd.js28.6 KB
- 脚本scripts/palette.mjs56.9 KB
- 脚本scripts/pin.mjs6.0 KB
03 SKILL.md 正文
Designs and iterates production-grade frontend interfaces. Real working code, committed design choices, exceptional craft.
Setup
You MUST do these steps before proceeding:
- Run
node .agents/skills/impeccable/scripts/context.mjsonce per session. If you've already seen its output in this conversation, do not re-run it. The script either prints the project's PRODUCT.md (and DESIGN.md when present) as a markdown block, or tells you it's missing. Follow whatever it prints. If it reportsNO_PRODUCT_MD, stop and followreference/init.mdbefore doing anything else. If the output ends with anUPDATE_AVAILABLEdirective, follow it (ask the user once about updating, then continue). It never blocks the current task. - If the user invoked a sub-command (
craft,shape,audit,polish, ...), you MUST readreference/<command>.mdnext. Non-optional. The reference defines the command's flow; without it you will skip steps the user expects. - Familiarize yourself with any existing design system, conventions, and components in the code. Read at least one project file (CSS / tokens / theme / a representative component or page). Required even when you've loaded a sub-command reference in step 2. Don't reinvent the wheel; use what's there when it works, branch out when the UX wins.
- Read the matching register reference. This is non-optional; skipping it produces generic output. If the project is marketing, a landing page, a campaign, long-form content, or a portfolio (design IS the product), read
reference/brand.md. If it is app UI, admin, a dashboard, or a tool (design SERVES the product), readreference/product.md. Pick by first match: (1) task cue ("landing page" vs "dashboard"); (2) surface in focus (the page, file, or route being worked on); (3)registerfield in PRODUCT.md. - If the project is brand-new (no existing CSS tokens / theme / committed brand colors found in step 3), run
node .agents/skills/impeccable/scripts/palette.mjsto receive a brand seed color and composition guidance. This is the anchor for your primary brand color. Compose the rest of the palette (bg, surface, ink, accent, muted) around it per the script's instructions. Use OKLCH throughout. Skip this step only if step 3 found committed brand colors in existing tokens; in that case identity-preservation wins.
Design guidance
Produce ready-to-ship, production-grade code, not prototypes or starting points. Take no shortcuts unless the user asks for them (when in doubt, ask). Don't stop until arriving at a complete implementation (beautiful, responsive, fast, precise, bug-free, on brand). You take attention to detail seriously: every page, section or component crafted is battle tested using the tools available to you (browser screenshotting, computer use, etc). GPT is capable of extraordinary work. Don't hold back.
General rules
Color
- Verify contrast. Body text must hit ≥4.5:1 against its background; large text (≥18px or bold ≥14px) needs ≥3:1. Placeholder text needs the same 4.5:1, not the muted-gray default. The most common failure: muted gray body text on a tinted near-white. If the contrast is even close, bump the body color toward the ink end of the ramp; light gray "for elegance" is the single biggest reason AI designs feel hard to read.
- Gray text on a colored background looks washed out. Use a darker shade of the background's own hue, or a transparency of the text color.
Typography
- Cap body line length at 65–75ch.
- Don't pair fonts that are similar but not identical (two geometric sans-serifs, two humanist sans-serifs). Pair on a contrast axis (serif + sans, geometric + humanist) or use one family in multiple weights.
- Hero / display heading ceiling: clamp() max ≤ 6rem (~96px). Above that the page is shouting, not designing.
- Display heading letter-spacing floor: ≥ -0.04em. Anything tighter and letters touch; cramped, not "designed".
- Use
text-wrap: balanceon h1–h3 for even line lengths;text-wrap: prettyon long prose to reduce orphans.
One hard typographic ceiling you currently miss:
- Display letter-spacing ≥ -0.04em. Your default of -0.05 to -0.085em on display H1s makes the letters touch and reads as cramped. -0.02 to -0.03em is plenty for tight grotesque display; -0.04em is the floor.
Layout
- Vary spacing for rhythm.
- Cards are the lazy answer. Use them only when they're truly the best affordance. Nested cards are always wrong.
- Flexbox for 1D, Grid for 2D. Don't default to Grid when
flex-wrapwould be simpler. - For responsive grids without breakpoints:
repeat(auto-fit, minmax(280px, 1fr)). - Build a semantic z-index scale (dropdown → sticky → modal-backdrop → modal → toast → tooltip). Never arbitrary values like 999 or 9999.
Motion
- Motion should be intentional, and not be an afterthought. consider it as part of the build.
- Don't animate CSS layout properties unless truly needed.
- Ease out with exponential curves (ease-out-quart / quint / expo). No bounce, no elastic.
- Use libraries for more advanced motion needs (e.g. motion, gsap, anime.js, lenis etc)
- Reduced motion is not optional. Every animation needs a
@media (prefers-reduced-motion: reduce)alternative: typically a crossfade or instant transition. - Staggering the items within one list is legitimate. The tell is the uniform reflex (one identical entrance applied to every section), not motion itself; each reveal should fit what it reveals. Suppressing the reflex is never a reason to ship a page with no motion at all.
- Reveal animations must enhance an already-visible default. Don't gate content visibility on a class-triggered transition; transitions pause on hidden tabs and headless renderers, so the reveal never fires and the section ships blank.
- Premium motion materials are not just transform/opacity. Blur, backdrop-filter, clip-path, mask, and shadow/glow are part of the palette when they materially improve the effect and stay smooth.
Interaction
- Dropdowns rendered with
position: absoluteinside anoverflow: hiddenoroverflow: autocontainer will be clipped. Use the native<dialog>/ popover API,position: fixed, or a portal to escape the stacking context.
New projects only (when no prior work exists)
Color & Theme
- Use OKLCH.
- The cream / sand / beige body bg is the saturated AI default of 2026. The whole warm-neutral band (OKLCH L 0.84-0.97, C < 0.06, hue 40-100) reads as cream/sand/paper/parchment regardless of what you call it. Token names like
--paper,--cream,--sand,--bone,--flour,--linen,--parchment,--wheat,--biscuit,--ivoryare tells in themselves. If the brief is "warm, traditional, family-coastal-Italian" or "magazine-warm" or "editorial-restraint", DO NOT translate that into a near-white warm-tinted bg; that's the AI move. Pick: (a) a saturated brand color as the body (terracotta, oxblood, deep ochre, near-black), (b) a true off-white at chroma 0 (or chroma toward the brand's own hue, not toward warmth-by-default), or (c) a darker mid-tone tinted neutral that's clearly the brand's own. "Warmth" in the brand is carried by accent + typography + imagery, not by body bg. - Tinted neutrals: add 0.005–0.015 chroma toward the brand's hue. Don't default-tint toward warm or cool "because the brand feels that way"; that's the cross-project monoculture move.
- When picking a theme: Dark vs. light is never a default. Not dark "because tools look cool dark." Not light "to be safe.".Before choosing, write one sentence of physical scene: who uses this, where, under what ambient light, in what mood. If the sentence doesn't force the answer, it's not concrete enough. Add detail until it does.
- Pick a color strategy before picking colors. Four steps on the commitment axis:
- Restrained: tinted neutrals + one accent ≤10%. Product default; brand minimalism.
- Committed: one saturated color carries 30–60% of the surface. Brand default for identity-driven pages.
- Full palette: 3–4 named roles, each used deliberately. Brand campaigns; product data viz.
- Drenched: the surface IS the color. Brand heroes, campaign pages.
Absolute bans
Match-and-refuse. If you're about to write any of these, rewrite the element with different structure.
- Side-stripe borders.
border-leftorborder-rightgreater than 1px as a colored accent on cards, list items, callouts, or alerts. Never intentional. Rewrite with full borders, background tints, leading numbers/icons, or nothing. - Gradient text.
background-clip: textcombined with a gradient background. Decorative, never meaningful. Use a single solid color. Emphasis via weight or size. - Glassmorphism as default. Blurs and glass cards used decoratively. Rare and purposeful, or nothing.
- The hero-metric template. Big number, small label, supporting stats, gradient accent. SaaS cliché.
- Identical card grids. Same-sized cards with icon + heading + text, repeated endlessly.
- Tiny uppercase tracked eyebrow above every section. The 2023-era kicker (small all-caps text with wide tracking, "ABOUT" "PROCESS" "PRICING" above each heading) is now the saturated AI scaffold; it appears on 55-95% of generations regardless of brief, which is the definition of a tell. One named kicker as a deliberate brand system is voice; an eyebrow on every section is AI grammar. Choose a different cadence.
- Numbered section markers as default scaffolding (01 / 02 / 03). Putting
01 · About / 02 · Process / 03 · Pricingabove every section is the eyebrow trope one tier deeper: reach for it because "landing pages do this" and you're scaffolding by reflex. Numbers earn their place when the section actually IS a sequence (a real 3-step process, an ordered flow, a typed timeline) and the order carries information the reader needs. One deliberate numbered sequence on one page is voice; numbered eyebrows on every section across the site is AI grammar. - Text that overflows its container. Long heading words plus large clamp scales plus narrow grids cause headline overflow on tablet/mobile. Test the heading copy at every breakpoint; if it overflows, reduce the clamp max or rewrite the copy. The viewport is part of the design.
Codex-specific defects (your most-frequent giveaways; refuse-and-rewrite):
border: 1px solid X+box-shadow: 0 Npx Mpx ...with M ≥ 16px on the same element. The "ghost-card" pattern: 1px border plus soft wide drop shadow on buttons and cards. Don't pair them. Pick one (a single solid border at the brand color, OR a defined shadow at no more than 8px blur), never both as decoration.border-radius: 32px+on cards / sections / inputs. You over-round. Cards top out at 12–16px; full-pill is fine for tags/buttons. Picking 24/28/32/40px on a card is the codex tell; no brand wants "insanely rounded".- Hand-drawn / sketchy SVG illustrations. Class names like
loose-sketch,*-sketch,doodle,wavy;feTurbulence/feDisplacementMap"paper grain" filters; 5-to-30 path crude scenes meant to depict a tangible subject (an otter, a table-and-fork, an album cover). All of these read as amateurish, not whimsical. If you can't render the scene with real assets, ship no illustration. Don't attempt sketchy SVG as a fallback. repeating-linear-gradient(...)stripe backgrounds. Diagonal stripes inbody:beforeor section backgrounds are pure codex decoration. Don't.- Meta-criticism copy. Naming a concept then layering an ironic modifier, or staging a strawman to "correct" it. Make the specific claim instead.
The AI slop test
If someone could look at this interface and say "AI made that" without doubt, it's failed. Cross-register failures are the absolute bans above. Register-specific failures live in each reference.
Category-reflex check. Run at two altitudes; the second one catches what the first one misses.
- First-order: if someone could guess the theme + palette from the category alone, it's the first training-data reflex. Rework the scene sentence and color strategy until the answer isn't obvious from the domain.
- Second-order: if someone could guess the aesthetic family from category-plus-anti-references ("AI workflow tool that's not SaaS-cream → editorial-typographic", "fintech that's not navy-and-gold → terminal-native dark mode"), it's the trap one tier deeper. The first reflex was avoided; the second wasn't. Rework until both answers are not obvious. The brand register's reflex-reject aesthetic lanes list catches the currently-saturated families.
Commands
| Command | Category | Description | Reference |
|---|---|---|---|
craft [feature] |
Build | Shape, then build a feature end-to-end | reference/craft.md |
shape [feature] |
Build | Plan UX/UI before writing code | reference/shape.md |
init |
Build | Set up project context: PRODUCT.md, DESIGN.md, live config, next steps | reference/init.md |
document |
Build | Generate DESIGN.md from existing project code | reference/document.md |
extract [target] |
Build | Pull reusable tokens and components into design system | reference/extract.md |
critique [target] |
Evaluate | UX design review with heuristic scoring | reference/critique.md |
audit [target] |
Evaluate | Technical quality checks (a11y, perf, responsive) | reference/audit.md |
polish [target] |
Refine | Final quality pass before shipping | reference/polish.md |
bolder [target] |
Refine | Amplify safe or bland designs | reference/bolder.md |
quieter [target] |
Refine | Tone down aggressive or overstimulating designs | reference/quieter.md |
distill [target] |
Refine | Strip to essence, remove complexity | reference/distill.md |
harden [target] |
Refine | Production-ready: errors, i18n, edge cases | reference/harden.md |
onboard [target] |
Refine | Design first-run flows, empty states, activation | reference/onboard.md |
animate [target] |
Enhance | Add purposeful animations and motion | reference/animate.md |
colorize [target] |
Enhance | Add strategic color to monochromatic UIs | reference/colorize.md |
typeset [target] |
Enhance | Improve typography hierarchy and fonts | reference/typeset.md |
layout [target] |
Enhance | Fix spacing, rhythm, and visual hierarchy | reference/layout.md |
delight [target] |
Enhance | Add personality and memorable touches | reference/delight.md |
overdrive [target] |
Enhance | Push past conventional limits | reference/overdrive.md |
clarify [target] |
Fix | Improve UX copy, labels, and error messages | reference/clarify.md |
adapt [target] |
Fix | Adapt for different devices and screen sizes | reference/adapt.md |
optimize [target] |
Fix | Diagnose and fix UI performance | reference/optimize.md |
live |
Iterate | Visual variant mode: pick elements in the browser, generate alternatives | reference/live.md |
Plus three management commands: pin <command>, unpin <command>, and hooks <on|off|status|...>, detailed below.
Routing rules
-
No argument: the user is asking "what should I do?" Make the menu context-aware instead of static. Setup has already run
context.mjs; if that reportedNO_PRODUCT_MDyou are already in init (setup), so finish that and skip this. Otherwise runnode .agents/skills/impeccable/scripts/context-signals.mjsonce and read its JSON, then lead with the 2-3 highest-value next commands, each with a one-line reason pulled from the signals, followed by the full menu (the table above, grouped by category). Never auto-run a command; the recommendation is a suggestion the user confirms.Reason over the signals; there is no score to obey:
setup.hasDesignfalse whilesetup.hasCodetrue →document(capture the visual system).critique.latestisnull→ the project has never been critiqued; for a set-up project with a real surface, offering$impeccable critique <surface>is a strong default.critique.latestwith a lowscoreor non-zerop0/p1→polish(it reads that snapshot as its backlog), or re-runcritiqueif the snapshot looks stale.git.changedFilespointing at one surface → scopeauditorpolishto those files specifically, naming them.devServer.runningtrue →liveis available for in-browser iteration; if false, don't lead withlive.- Otherwise group by intent exactly as init's "Recommend starting points" step does (build new / improve what's there / iterate visually), tailored to
setup.register.
If
scan.targetsis non-empty, runnode .agents/skills/impeccable/scripts/detect.mjs --json <scan.targets joined by spaces>once (the bundled detector over local files: no network, no npx).scan.viatells you what they are:git-changes(the markup/style files in your dirty tree, the most relevant set),source-dir(e.g.src,app),html, orroot. Fold the hits into your picks: many quality / contrast hits →auditorpolish; a specific slop family → the matching command (gradient text or eyebrows →quieter/typeset, flat or gray palette →colorize, and so on). It's a real, current signal that beats guessing. If detect errors or the tree is large and slow, skip it and recommend the user runauditthemselves; never block the suggestion on it.Keep it to 2-3 pointed picks with the exact command to type. The menu stays the fallback; the recommendation is the lede.
-
First word matches a command (table above OR
pin/unpin/hooks): load its reference file and follow its instructions. Everything after the command name is the target. -
First word doesn't match, but the intent clearly maps to one command (e.g. "fix the spacing" →
layout, "rewrite this error message" →clarify, "the colors feel flat" →colorize): load that command's reference and proceed as if invoked. If two commands could fit, ask once which. -
No clear command match: general design invocation. Apply the setup steps, the General rules, and the loaded register reference, using the full argument as context.
Setup (context gathering, register) is already loaded by then; sub-commands don't re-invoke $impeccable.
If the first word is craft, setup still runs first, but reference/craft.md owns the rest of the flow. If setup invokes init as a blocker, finish init, refresh context, then resume the original command and target.
teach is a deprecated alias for init: if the user types it, load reference/init.md and proceed as if they ran init.
Pin / Unpin
Pin creates a standalone shortcut so $<command> invokes $impeccable <command> directly. Unpin removes it. The script writes to every harness directory present in the project.
node .agents/skills/impeccable/scripts/pin.mjs <pin|unpin> <command>
Valid <command> is any command from the table above. Report the script's result concisely. Confirm the new shortcut on success, relay stderr verbatim on error.
Hooks
$impeccable hooks <on|off|status|ignore-rule|ignore-file|ignore-value|reset> manages the design detector hook for this project. The hook auto-runs the detector after direct UI file edits and surfaces findings as system reminders. Full flow is in reference/hooks.md; load it when the user invokes $impeccable hooks with any argument.
04 同仓库更多 Skills
type-strictness
Enforce strict type compliance by eliminating `Any` types and `# type: ignore` comments. Use when: (1) Editing code that contains `Any` as a type annotation (2) Code has `# type: ignore` or `# pyright: ignore` comments (3) User requests type fixes or type strictness enforcement (4) Importing from untyped third-party libraries (5) User asks to "fix types", "remove Any", or "add proper typing" (6) Pyrefly or mypy reports type errors that need resolution (7) Code review reveals weak typing patterns Follows hierarchical resolution: codebase inference → type stubs → library inspection → type guards → casting (last resort).
slopgate-test-extender
Extend Python test suites with parametrization, fixture reuse, and quality enforcement. Use when asked to add tests, extend existing tests, improve test coverage, consolidate duplicate tests, fix test quality issues, or when Slopgate reports untested-production-code, missing test references, or coverage gaps. Triggers on requests like "add tests for X", "extend these tests", "parametrize tests", "consolidate tests", "fix test quality", "improve test coverage", "write tests for this function", "test this module", "behavior tests", "integration tests", "missing tests", "coverage holes", "untested code", or when a hook denies with test-related findings.
slopgate-intelligent-coding-patterns
Pattern-selection playbook for agents editing code with complex branching, stateful parsers/workflows, duplicated skeletons, policy checks, or ordered transforms. Load before refactoring if/elif dispatch chains, boolean-flag state machines, repeated validation predicates, parallel provider/language implementations, or regex/content transformation pipelines. Also load when asked to "apply a design pattern", "which pattern should I use here", "refactor this switch statement", "replace if-elif chain", "state machine pattern", "strategy pattern", "template method", "pipeline pattern", "specification pattern", "dispatch table", "guard clause refactor", "reduce cyclomatic complexity", or when Slopgate fires PY-CODE-014, PY-CODE-017, PY-CODE-018, QUALITY-LINT-001, or PY-QUALITY-010. Use with behavior-locking tests and avoid pattern theater for simple one-off code.
slopgate-hygiene-orchestrator
Orchestrate systematic elimination of linter warnings and errors across Python, TypeScript, and Rust codebases. Use when asked to "clean up lints", "fix all warnings", "run hygiene", "eliminate type errors", "orchestrate code quality fixes", "fix lint errors", "resolve quality gate failures", "pass CI checks", "reduce tech debt", "refactor to pass hooks", or when a Slopgate hook denies with QUALITY-LINT-001, PY-CODE-017, PY-CODE-018, or any collector finding. This skill coordinates multiple code-hygiene-enforcer agents working in parallel on non-conflicting file groupings, tracks progress persistently via JSON exports, and loops until all issues are resolved. CRITICAL: Never run linters directly—always use `slopgate lint check` as the primary gate, discover project-specific tools from config files, and export findings to JSON for tracking.
slopgate-code-smell-utility-locator
Autoactivate when code-smell hooks or reviews mention feature envy, thin wrappers, duplicate helpers, duplicate code, scattered helpers, builders/factories/config/constants/dataclass reuse, PY-CODE-012, PY-CODE-013, QUALITY-LINT-001, or repeated slopgate code-quality denials. Also load when asked to "find existing helpers", "consolidate utilities", "search for duplicate code", "where is this already implemented", "reuse existing logic", "don't duplicate this", "find similar functions", "utility inventory", "code smell radar", or before adding new helpers/wrappers so agents can find existing shared utilities and consolidate instead of duplicating.
slopgate-code-hygiene-refactor
Recovery playbook for Slopgate and project quality failures. Load after hook/lint denials such as PY-CODE-017 flat sibling modules, PY-CODE-018 oversized modules, QUALITY-LINT-001 post-edit quality backstops, PY-QUALITY-010 magic numbers / repeated literals, PY-CODE-012/PY-CODE-013 smell findings, type-suppression bans, duplicate helpers, or repeated hygiene retry loops. Also load when asked to "refactor this module", "split this file", "extract a class", "reduce complexity", "fix god class", "flatten module hierarchy", "move code to a package", "extract helpers", "consolidate duplicates", "replace magic numbers with constants", or when a hook blocks an edit with structural complaints. Focuses on preserving public APIs while refactoring toward packages, cohesive modules, typed seams, and focused tests.