Skip to content

kodflow/kodflow-review

v0.0.0-rba4d9f0187f5MIT

Evidence-bound review and debugging. Findings cite real code and a counterexample; deterministic scanners run for real and their exit codes populate the report; an external non-LLM verifier can invalidate the whole run. Root-cause-first debugging refuses a fix nobody proved.

adr

Capture Architecture Decision Records. Detects decision moments, writes docs/adr/NNNN-title.md from a MADR-style template, maintains the index, and links the decision back to the code/PR. The template captures patterns and contracts but never the *why* — this fills that gap. Use when the moment a decision is made that a future maintainer would ask 'why' about — a technology chosen over an alternative, a boundary drawn, a constraint accepted. Also when reviewing a change whose rationale is not in the code.

debug

Systematic, root-cause-first debugging. Enforces a no-fix-without-root-cause contract: reproduce, isolate, prove the cause, then fix and verify. Stops and questions the architecture after repeated failed fixes instead of thrashing. Use when for a bug whose cause is not obvious — a flaky test, an intermittent failure, a wrong result with no exception. Not for a compile error or a stack trace that already names the line.

improve

Turn the feedback subagents leave on their own instructions into changes to this marketplace's agents, skills and hooks. Collects and dedupes it, judges each need against the current tree (already fixed, open, out of scope), shows a diff per file, asks, then opens one pull request it never merges. Use when subagent feedback has piled up (the Stop hook proposes it, or after a long multi-agent session), or before reworking an agent or skill, to start from what its runs reported. Not for a project's own agents, nor for a defect in the hooks' code (kodflow-workflow:fix).

ktn-issues

Clear a linter's whole open-issue queue (default kodflow/ktn-linter): judge every issue lazy or legitimate against earlier lazy verdicts, close the lazy ones with a rewrite that lints clean, fix the rest red-test-first and narrow, one commit per issue, one PR, then a review round that tries to break every new exemption. Use when the issue queue of ktn-linter, or of another linter run the same way, must be cleared as a batch — "triage and fix all open issues", "go through the false positives". Not for one known defect (kodflow-workflow:fix, then /debug), nor for running the linter on a project (/lint).

learn

Extract reusable patterns from the current session and save them to the local knowledge base. Use when at the end of a session that produced a reusable insight — a pattern worth keeping, a pitfall worth remembering, a convention the project settled on.

lint

Multi-language intelligent linting with RLM decomposition. Auto-detects project language(s) and dispatches to the appropriate workflow. Go projects with ktn-linter: 148 rules across 8 phases with Agent Teams. Other languages: lint-fix-iterate loop with language-specific tools. Makefile-first: uses make lint when available. Use when to run the project's linters and fix what they find. Prefers make lint when a Makefile defines it; otherwise detects the language and picks the right toolchain.

review

Brutally rigorous, evidence-bound AI code review (RLM decomposition) for GitHub PRs, GitLab MRs, or local diffs. Every FILE and every changed FUNCTION/HUNK gets a macro (blast-radius / architecture / placement) and micro (line-level projection-simulation) pass. No finding ships without file:line of real cited code + a category-appropriate counterexample (repro / source->sink / interleaving / benchmark). Severity and confidence are DECOUPLED: a high-severity low-confidence finding is NEVER dropped, only routed to a gating "Needs Verification" tier. Deterministic tiers (linters/SAST/SCA/ secrets/IaC + build+test) run for real with captured exit codes; the tier table is generated from captured output, not narrated. An EXTERNAL, non-LLM manifest verifier recomputes hunks+symbols from git and INVALIDATES the run on mismatch — this is what makes fake-pass mechanically detectable. Tool-absent is distinct from N/A. Cyclic: /review --loop converges on correctness, not tone. Use when to review a GitHub PR, a GitLab MR, or a local diff with evidence-bound findings — every finding cites real code at file:line plus a counterexample, and the deterministic scanners actually run.