victorzhuk/skills

z-lean-fix

Smallest-diff fixes for review findings and bugs.

Voir la source

Mode d’emploi

  1. Copiez la commande et examinez le paquet avant de l’installer dans votre environnement agent.
  2. Consultez le document original pour les outils, identifiants et environnements requis.
  3. Décrivez les entrées et le livrable souhaité ; comparez la sortie aux sources.
npx skills add https://github.com/victorzhuk/skills --skill z-lean-fix

Avant de commencer

  • L’installation n’inclut ni abonnement au modèle, ni quota API, ni accès aux fichiers.
  • Étoiles et installations reflètent l’activité, pas un test indépendant de qualité ou de sécurité.
Document Skill original

Rendu depuis le dépôt source en conservant titres, exemples, code, tableaux, liens et images.

Lean fixes

The fix is the whole deliverable. Reviewers read the diff, not your intent. A good fix is one they approve without asking a question.

Before editing

  • Scope = the findings asked for. "Crit and majors" means minors and nits stay untouched, even the easy ones. List them as left alone.
  • Find the root site. Several findings often share one cause, such as three callers funnelling through one helper. Fix that site once. Don't patch every symptom.
  • Check the ground. Make sure the branch builds and the dependencies (vendor, proto, generated code) match what the change expects. A fix on a broken base proves nothing.
  • Look for what already exists. Before writing a filter, mapper, or helper, grep for one. A local helper that already does it wins over a new one.

Choosing the fix

Pick in this order and stop at the first one that works:

  1. Delete. When the defective thing adds no value, remove it. Examples: an index that can't serve the query, a copy of a function, a dead branch.
  2. Reuse. Call the existing helper, the sibling code path, or the pattern the target branch already uses. Examples: copy fields into the existing request type and call the existing encoder; call the selector the other endpoints call.
  3. Inline edit. Change the lines where the bug lives. A guard, a missing field, one more entry in an allowlist, a limit stage.
  4. Local extract. Pull out an unexported helper only when the fix would otherwise duplicate the same logic twice today.

Prefer the mechanism that needs no new infrastructure. A plain range match that works on current data beats a geo index that needs a data migration. A constant cap beats a config knob that no one has asked to tune.

Keep the diff reviewable

  • Don't reformat, rename, or reorder code the fix doesn't touch.
  • When you split a function, arrange it so the unchanged body keeps its place. Put the new signature above it and the remainder below. Then the diff shows a header move, not hundreds of rewritten lines, and new-code linters stay quiet.
  • Collapse repeated literals that the fix introduced, such as a shared projection or a single nearby sub-document. Don't hunt for pre-existing ones.
  • Comments only where the choice is non-obvious (WHY, invariant, assumption). One line.

Decisions you made, not facts

Any number or policy you picked is a decision the user owns: a limit, a TTL, a fallback, a dropped feature. Name each one in the report so it can be overridden. Never present it as a requirement.

Do not

  • Add an interface, option struct, config knob, or feature flag to carry a fix.
  • Write a migration, backfill, or new infra when removing or rescoping the defective part solves it.
  • "While I'm here" cleanups outside the requested severities.
  • Rewrite test fixtures beyond what the fix breaks.
  • Silence a linter on real duplication. nolint is only for literal-by-nature code (field names, wire keys), and it carries a reason.

Prove it

Per [[z-verify-before-done]], with the project wrappers and resource limits:

  • Use the approved commands and scope from [[z-testing-strategy]] and [[z-verify-before-done]]. Preserve existing required checks. Add a lower-layer test only for a named residual risk E2E cannot prove; prove it fails without the fix and passes with it. Runner-specific lint flags belong to the language tooling skill.

Report

Terse. For each finding: one line saying what changed. Then:

  • Decisions: the numbers and policies you picked.
  • Assumptions and limits: what the fix relies on, and what it still doesn't handle.
  • Untouched: the severities out of scope.
  • Proof: command → result.

Nothing is committed unless the user asks.

du même dépôt

Autres Skills

Tous les Skills
victorzhuk
Communauté

z-accessibility

Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

installations
1
GitHub Stars
0
Mis à jour
22 oct.
victorzhuk
Communauté

z-algo-core

DS/algorithm selection judgment for production code, not competitive tricks — hash map for membership/dedup, slice+sort beats a tree until proven, heap for top-k, two-pointer/sliding-window for scans, BFS/DFS/topo-sort for dependency shapes. Triggers on Big-O, hash map vs tree. Does not cover profiling/tuning; see [[z-go-performance]].

installations
1
GitHub Stars
0
Mis à jour
22 oct.
victorzhuk
Communauté

z-bdd

BDD acceptance contracts for humans and agents across UI, API, and CLI products. Use for Gherkin, Given-When-Then, E2E acceptance, or scenario evidence. Define repeatable scenarios with explicit assertions and required outcomes. Test selection belongs to [[z-testing-strategy]]. Go harness wiring belongs to [[z-go-bdd]].

installations
1
GitHub Stars
0
Mis à jour
22 oct.
victorzhuk
Communauté

z-codegraph

Use an existing CodeGraph integration for call graphs, impact analysis, affected tests, or route discovery. Discover installed tools and index freshness; follow host LSP precedence and verify current source. Do not initialize indexes without user authorization.

installations
1
GitHub Stars
0
Mis à jour
22 oct.