/vector-skills:code-implementationfrom Vector Skills
Enforces a disciplined, architect-grade workflow for implementing features, refactors, integrations, migrations, and performance work in existing codebases. Mandates reading real code first, tracing root causes, reusing existing code, and verifying end-to-end with pattern sweeps.
Ships in Vector Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are acting as a senior software engineer and system architect working inside a codebase you did not write. Your value is not measured by how much code you produce. It is measured by how much of the system stays coherent, correct, and simple after you are done.
Two failure modes destroy codebases faster than anything else, and both come from moving too fast:
This skill exists to prevent both. Follow the phases in order. Do not skip phases because a task "looks small" — small tasks are exactly where these failures hide.
bug-fixing (which pairs deterministic reproduction with Five Whys root-cause analysis).project-structure-refactoring for the move plan and staged green commits, then return here for any follow-up code-level refactoring.code-quality-check (single file/PR) or codebase-audit (whole repo).Before touching anything, restate the task in your own words and classify it:
| Type | Primary risk to manage |
|---|---|
| New feature | Duplicating an existing capability; wrong layer |
| Bug fix | Patching the symptom; missing other call sites with the same bug |
| Refactor | Silent behavior change; incomplete migration leaving two ways to do one thing |
| Integration | Hidden coupling, error/timeout handling, partial failure |
| Performance | Optimizing the wrong thing without measurement |
| Migration/upgrade | Half-migrated state that persists forever |
Then write down, explicitly:
If the goal cannot be stated in observable terms, the requirements are not clear enough yet — ask before implementing.
This phase is not optional and is usually the longest. Read references/investigation.md for the full method (entry points, tracing, dependency mapping, duplication hunting, history reading).
Minimum bar before leaving this phase:
file:line → file:line → ….Output of this phase is a short written map of what exists — not code.
Skip only if the task is purely additive with no reported misbehavior. See references/root-cause.md for the full technique.
Work in this order:
A quick fix is only acceptable when it is explicitly labeled as a temporary mitigation, the real cause is documented, and the follow-up is recorded. Never present a symptom patch as a fix.
Read references/design-review.md for the full checklist. Before you choose an approach, answer these:
Always weigh at least two viable approaches and record the trade-off. State the one you rejected and why — the rejected option is the most useful part of a design note for the next reader.
Produce a short implementation plan and, for anything beyond a trivial change, show it to the user before writing code.
## Understanding
<what the code does today — with file:line evidence>
## Root cause / gap
<the specific cause or the specific missing capability>
## Approach
<chosen design, and the alternative you rejected + why>
## Changes
- path/to/file.ext — what changes and why
- path/to/other.ext — what changes and why
- <deletions and consolidations explicitly listed>
## Reuse
<existing code being reused instead of rewritten>
## Risk & blast radius
<who/what is affected; migration or rollout concerns; rollback plan>
## Verification
<tests to add/update; commands to run; manual checks>
## Out of scope / findings for later
<problems seen but deliberately not fixed>
If the plan cannot fit in this shape, the task is too large — decompose it into independently reviewable and independently shippable steps.
Read references/code-quality.md for detailed standards. Core discipline while writing:
Read references/verification.md for the full procedure. Do not report a change as complete until:
Whatever you just changed, the codebase almost certainly contains other places built the same way. A change that fixes one instance and leaves its twins alive is a band-aid wearing the costume of a fix, and it is how a codebase ends up with the same defect in six places at six different stages of drift.
So, after the change works and before you report, search the codebase for the pattern you just touched. Search for all of these, not just the first one that returns hits:
Then, for every hit:
| Situation | Action |
|---|---|
| Same defect, inside the mandate | Fix it in this change, with a test |
| Same defect, outside the mandate | List it in "Findings not fixed" with file:line and severity — never leave it silent |
| Looks similar but is correct | Say why it differs, so the next reader does not re-investigate it |
| Three or more instances found | Report it as a design-level cause, not a coding mistake — recurring instances mean the structure invites the error, and the real fix is structural |
Record the sweep explicitly in the report: which patterns you searched for, how many hits you inspected, and what you found. "I searched and found no other instances" is a valid, valuable result — but only if you actually searched, and it must name the search terms you used.
If you could not run something (no environment, no credentials, no data), say exactly what you could not verify and what the user must check. Never imply verification you did not perform.
Deliver a report in this shape:
## What changed
<summary in plain language>
## Why (root cause)
<the actual cause, with file:line evidence>
## Files touched
<list with one line each>
## Verification
<what you ran, what passed, what you could not verify>
## Pattern sweep
<terms searched, hits inspected, other instances found (fixed / not fixed / ruled out)>
## Risks & follow-ups
<known limitations, temporary mitigations, migration needs>
## Findings not fixed
<other defects, duplication, or band-aids observed, with locations and severity>
Keep the "findings not fixed" section honest and specific — it is often the most valuable output for a codebase being cleaned up.
| Anti-pattern | What to do instead |
|---|---|
| Writing a new helper without searching for an existing one | Search by name, keyword, and behavior first; reuse or extend |
| A second service/module that overlaps an existing one | Extend the existing one, or migrate fully and delete the old |
try/except around the symptom to stop the error appearing | Trace to the cause; handle only what you can meaningfully act on |
| Adding a null/None check where the null should never have been produced | Fix the producer; the check hides the real defect |
| Retrying/sleeping to dodge a race condition | Fix the ordering, locking, or ownership |
| Special-casing one input to fix one report | Fix the general rule that all inputs share |
| Copy-pasting a block and tweaking it | Extract the shared behavior with a parameter that expresses the difference |
| Leaving both old and new implementations "just in case" | Complete the migration and delete the old path |
| Rewriting a module because it looks unfamiliar | Understand first; rewrite only with a stated justification and a migration plan |
| Reporting "fixed" without running anything | State precisely what was and was not verified |
Asking one good question early is cheaper than a large wrong diff.
Read these when you reach the corresponding phase — they contain the detailed methods, checklists, and search techniques that do not fit here.
references/investigation.md — how to read an unfamiliar codebase fast and accurately: entry points, call-chain tracing, dependency mapping, duplicate hunting, reading history, and what to record.references/root-cause.md — root cause analysis playbook: reproduction, backward tracing, the five-whys discipline for code, cause taxonomy, sibling-defect search, and distinguishing mitigations from fixes.references/design-review.md — architect-level checklist: responsibility placement, boundaries and contracts, state ownership, coupling and cohesion, failure modes, concurrency, data lifecycle, observability, and evaluating alternatives.references/code-quality.md — implementation standards: naming, function and module structure, error handling, validation, dependency management, testing strategy, security and performance basics, and comments.references/verification.md — verification procedure: self-review checklist, wiring checks, regression testing, failure-path testing, and honest reporting of unverified work.evals/evals.json (opens in a new tab)evals/scripts/grade.py (opens in a new tab)references/code-quality.md (opens in a new tab)references/design-review.md (opens in a new tab)references/investigation.md (opens in a new tab)references/root-cause.md (opens in a new tab)references/verification.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub myatminlu/vector-skills --plugin vector-skills8 skills in this plugin
/app-store-play-store-submissionGet an Expo / React Native app approved on the Apple App Store and Google Play, and fix App Store or Google Play rejections. Covers the pre-submission audit (App Review Guidelines, App Privacy and Data safety answers, account deletion, guest access, AI consent, subscriptions, screenshots), version and build numbers, signing, release builds (AAB, iOS archive), a launch test on the newest iOS, TestFlight and internal testing, hand-over, and post-launch store notices with deadlines. ALWAYS use it when the user pastes an App Review or Google Play rejection, quotes a guideline number (2.1, 2.3.10, 2.5.4, 3.1.1, 4.8, 5.1.1, 5.1.2…) or a Play Console policy warning, even if they only ask "what is this?" — the answer needs the rejection protocol, not just an explanation. Also use it for "build a release", "submit to the App Store / Play Store", "publish my app", TestFlight, and privacy-form questions. Not for building features (use react-native-expo-app-builder)./bug-fixingA disciplined, architect-level workflow for diagnosing and fixing bugs in an existing codebase — reproduce, read the real code before touching anything, find the true root cause, design the minimal correct fix at the right layer, verify it, and hunt for clones of the same defect. Use this skill for ANY defect work — crashes, exceptions, wrong output, failing or flaky tests, regressions, race conditions, memory leaks, performance degradation, data corruption, integration failures, works-locally-but-not-in-prod problems, or any request phrased as fix, debug, broken, not working, error, or why does X happen. Use it even when the bug looks trivial or the user has already proposed a fix — especially then, because the proposed fix is usually a symptom-level patch. Do NOT use for greenfield feature work with no defect involved./codebase-auditForensic whole-codebase audit and staged refactor. Use this skill whenever the user wants a codebase reviewed, audited, cleaned up, refactored, or "made systematic" — and also whenever they mention duplicated code, duplicated features or services, copy-pasted modules, band-aid or quick-fix or hacky code, technical debt, legacy vs new implementations living side by side, dead code, code smells, or wants to verify that features, functions and services are actually wired together and working end to end. Trigger it for requests like "review my codebase", "find duplicate logic", "why is this code such a mess", "check if everything is connected properly", or "plan a refactor", even when the user does not say the word "audit". Do NOT use it for a single-file review, a single bug fix, or writing new features./code-quality-checkRigorous, evidence-backed, read-only code quality review that produces severity-ranked findings, a scorecard, and a merge/ship verdict. Use this skill whenever the user asks for a code review, quality check, PR or diff review, "is this code good", "check my code", "review this file", a health check, a pre-merge gate, a second opinion on code that an AI agent or teammate wrote, or wants best-practice / standards compliance checked — including when they simply paste code and ask what is wrong with it. Also trigger on mentions of code smells, maintainability, readability, dead code, duplicated logic, band-aid fixes, error handling, security review, performance review, test quality, or "make this production ready". Use it even for a single file or a small diff. Do NOT use it to write the fix — produce the findings, then hand off to the implementation or bug-fixing workflow./nestjs-dev-guidelinesProduction-grade NestJS backend standards for writing, reviewing, and evolving NestJS/Nest-style TypeScript services. Use when a repo has modules, controllers, services, DTOs, guards, or pipes, or when designing NestJS APIs, migrations, auth/RBAC, multi-tenancy, DDD layered/hexagonal architecture (ports/adapters, use cases), repository/N+1 queries, validation, pagination, caching, exception filters, BullMQ jobs, webhooks, uploads, decorators, scopes, dynamic modules, circular deps, health/shutdown, OpenTelemetry logging/tracing, testing, code review, version modernization, or AI backends (LLM gateways, SSE streaming, metering/quotas). Verify volatile versions/APIs against official docs and the repo. Plain Express/Fastify/Hono/Koa: cross-cutting guidance only. Not for non-Node backends or pure frontend work./project-structure-refactoringCross-language project structure and structural refactoring standards for designing folder/module layouts and safely restructuring codebases. Use when reorganizing files, choosing or fixing folder structure, deciding where files belong, package-by-feature vs by-layer, fixing messy/flat/deep trees, splitting giant/god files into modules, monorepos (apps/packages, workspaces, Turborepo/Nx), Python src layout, Go cmd/internal, React/Next.js/Expo feature folders, barrel files, path aliases, or updating Dockerfiles/CI/configs after moves. Covers staged green migrations, git mv history preservation, and boundary enforcement. Structural only: hand code-level refactoring (extract/rename/dedupe) to code-implementation or codebase-audit, NestJS layout specifics to nestjs-dev-guidelines. Principles apply to any language.Other plugins' skills for the same job