Skip to main content

Repo workflow and code intelligence

These skills operate on local repositories, code search, cleanup, external source inspection, and evidence-gated public research.

k-code-qualityโ€‹

FieldValue
Use whenediting, reviewing, or refactoring implementation code or repository artifacts
Sourceexact_k-code-quality
Boundaryimplementation-quality details, including minimal edit-scope detail, artifact necessity, and semantic dedupe

k-code-quality routes to narrower skills when the surface is present: k-code-quality-react for React/JSX/TSX/hooks, k-code-quality-tests for tests/fixtures/assertions, and k-code-quality-web for HTML/CSS/accessibility/browser UI. Non-code artifacts (config keys, template variables, generated files, instruction sentences, completions, docs) have readers too; the skill requires identifying them and their generated or rendered outputs before editing and updating them in the same change.

k-code-quality-reactโ€‹

FieldValue
Use whenediting React, JSX, TSX, hooks, components, props, state, effects, or client-side UI behavior
Sourceexact_k-code-quality-react

k-code-quality-testsโ€‹

FieldValue
Use whenadding, editing, reviewing, or debugging tests, fixtures, mocks, snapshots, assertions, or coverage
Sourceexact_k-code-quality-tests

k-code-quality-webโ€‹

FieldValue
Use whenediting HTML, CSS, DOM markup, layout, responsive styles, accessibility, or browser UI
Sourceexact_k-code-quality-web

k-codebase-designโ€‹

FieldValue
Use whendesigning a module interface, deciding a seam, deepening a module, or making code testable
Sourceexact_k-codebase-design
Boundarydesign vocabulary only; SOP owns compatibility/scope; k-code-quality owns implementation style
Pivotsresolves necessary in-scope diagnostic seam/design questions; k-code-quality-tests owns test mechanics once settled

k-diagnosing-bugsโ€‹

FieldValue
Use whendiagnosing a hard bug, failure, flake, or performance regression from source and observed failure evidence
Sourceexact_k-diagnosing-bugs
Boundaryroutes into SOP ยง3.5 plus SOP State-Machine Verification; not the runtime-truth chain for "is X set up right"
Pivotsnecessary in-scope seam/design question โ†’ k-codebase-design; authorized regression cases โ†’ k-code-quality-tests; no automatic post-fix architecture pass

Reuse existing failure evidence. Source investigation does not require a runnable reproduction first. New probes must resolve a material uncertainty; minimization and competing hypotheses are evidence-driven, not mandatory quotas. Production workers return artifacts without private QA; the root owns one integrated final verification.

Failure assessment identifies product, test, infrastructure, mixed, or unresolved causes. A green retry or a test-only patch does not establish a test-only defect; the original product behavior stays in the acceptance criteria.

k-prototypeโ€‹

FieldValue
Use whenbuilding throwaway code to answer a design question (logic/state model, or what a UI should be)
Sourceexact_k-prototype
Boundaryexplicit throwaway exception to artifact necessity; delete or absorb when done
Pivotscloses k-spec empirical forks โ€” the verdict returns to the packet's Context line

k-gitโ€‹

FieldValue
Use whenlocal git operations: status/diff/log, branching, committing, pushing, rebasing, conflicts
Sourceexact_k-git
Boundaryno GitHub side effects; no worktree management; no commit without an explicit current-conversation request; configured remote URLs are never printed verbatim because URL userinfo may contain credentials

k-worktreesโ€‹

FieldValue
Use when,w, ,gh-worktree, PR/issue worktrees, listing/pruning/removing worktrees
Sourceexact_k-worktrees
Preferenceprefer ,w / ,gh-worktree over raw git worktree

k-tmuxโ€‹

FieldValue
Use whenrunning, probing, or automating tmux commands, panes, sessions, sockets, or interactive CLIs
Sourceexact_k-tmux
Boundarynever mutate the default tmux server unless the current target is verified or user-requested
FieldValue
Use whennontrivial diagnosis/implementation impact, review base context, or SCSI index selection
Sourceexact_k-semantic-code-search
Boundarynot durable memory; use Agent memory for that

Discover and justify the index before querying it, then trace relevant symbols, callers, and consumers. Confirm snapshot findings against the exact local code. An unavailable or absent index, or an explicit opt-out, uses local rg/symbol evidence with a recorded reason; indexed ,sem queries are not part of that fallback. Which repositories a SCSI server indexes is domain-overlay policy. Simple filename lookup and mechanical edits do not require semantic search.

k-sem skill (,sem CLI)โ€‹

FieldValue
Use whenentity history across moves, per-entity blame, entity diff classification
Sourceexact_k-sem
Tool,sem CLI

Index-free diff, log, and blame are the default surface: diff --format json proves a mechanical-only change (renames, moves, structuralChange: false), and log <entity> follows an entity across file moves where git log -L stops. Indexed queries (impact, context, find, callers, refs, grep, entities) build a multi-gigabyte per-worktree index and do not resolve @kbn/* package specifiers, so the skill forbids them unless the user explicitly asks.

k-weaveโ€‹

FieldValue
Use whenpreparing merges, previewing/resolving conflicts at function/class granularity
Sourceexact_k-weave
Toolweave CLI

Setup omits dedicated patterns for .vue, .svelte, .erb, and .hs. Compound names such as .svelte.ts can still match *.ts; preview and direct-driver calls can also attempt entity merging.

k-public-sourcesโ€‹

FieldValue
Use wheninspecting public source, or synthesizing factual claims across multiple public sources
Sourceexact_k-public-sources
Boundaryexplicit repo URLs stay source-first; multi-source synthesis carries primary evidence for one batched final judgment

The multi-source branch collects and drafts the requested synthesis in one research assignment, retaining exact source identity, supporting passages and uncertainty. The final Verify stage judges material claims together using those artifacts. Unsupported claims are omitted or qualified; there are no per-claim verifiers, post-verification deepening loops or duplicate source fetches for independence. Final judgment preserves the required capability and reports reduced independence when applicable. Verified reusable insights enter the root's final ,ai-kb learning batch, not leaf memory workflows.

k-jscpdโ€‹

FieldValue
Use whenduplicate-code detection during refactor or cleanup
Sourceexact_k-jscpd
Tooljscpd

k-knipโ€‹

FieldValue
Use whenunused files, dependencies, and exports in JS/TS projects
Sourceexact_k-knip
Toolknip

k-cli-skillsโ€‹

FieldValue
Use whencreating or upgrading CLI tool skills
Sourceexact_k-cli-skills
BoundaryCLI-tool skill mechanics; general skill craft lives in k-writing-great-skills

k-instruction-boundariesโ€‹

FieldValue
Use whenwriting or refactoring AI-facing instructions that need hard prohibition boundaries
Sourceexact_k-instruction-boundaries
Routinguser-invoked (disable-model-invocation: true); referenced by k-writing-great-skills
Boundaryhard prohibitions by default; affirmative wording only where it sharpens execution

k-writing-great-skillsโ€‹

FieldValue
Use whenauthoring or refactoring any skill: invocation choice, information hierarchy, leading words, pruning
Sourceexact_k-writing-great-skills
Routingmodel-invoked; auto-loads when authoring/refactoring a skill
Boundarygeneral skill craft; k-cli-skills owns CLI-tool-specific mechanics

k-walkthroughโ€‹

FieldValue
Use wheninteractive codebase exploration, architecture tracing, diagrams
Sourceexact_k-walkthrough
Routingmanual