agentleFS
yalishevantyalishevant/kotlin-backend-agent-skills/.agents/skills/spring-kotlin-code-review/SKILL.md

spring-kotlin-code-review

Skill18 starsChanged 9 months agoMITView on GitHub

Review Kotlin + Spring changes for behavioral regressions, transaction and proxy bugs, API and serialization mistakes, persistence risks, security issues, configuration drift, and missing tests. Use when reviewing a PR, diff, patch, or design change where generic style-focused review would miss Spring-specific correctness and operational risks.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. About 0 are common, 22 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈22

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check every relevant change for:

    line 25
  2. Distinctive:

    test adequacy and missing failure-path coverage

    line 35
  3. Distinctive:

    If no material findings exist, say so explicitly and still note residual risk or testing gaps.

    line 47
  4. Distinctive:

    Prefer a smaller number of well-supported findings over a long list of weak suspicions.

    line 61
  5. Distinctive:

    Verify whether the repository's existing conventions intentionally justify an unusual pattern before flagging it.

    line 63
  6. Distinctive:

    Check deploy-order safety.

    line 68
  7. Distinctive:

    Check backward compatibility of JSON contracts, event schemas, database writes, and feature flags.

    line 69
  8. Distinctive:

    Check cache invalidation, deduplication, retry semantics, and idempotency whenever writes or integrations change.

    line 70
  9. Distinctive:

    Check whether observability changed with the behavior.

    line 71
  10. Distinctive:

    Check whether new repository queries need supporting indexes or whether an innocuous loop creates N+1 behavior.

    line 72
  11. Distinctive:

    Check whether any new async, scheduled, or concurrent path changes transaction scope, MDC propagation, or security context.

    line 73
  12. Distinctive:

    Check build and dependency changes for BOM drift, plugin mismatches, or silent classpath changes.

    line 74
  13. Distinctive:

    Check what was removed, not only what was added.

    line 75
  14. Distinctive:

    Read the change as a workflow, not as isolated files.

    line 79
  15. Distinctive:

    If a finding depends on an assumption, state the assumption and the fastest way to confirm it.

    line 80
  16. Distinctive:

    Prefer findings that are expensive for the team to rediscover in production.

    line 81
  17. Distinctive:

    Use style comments only when they prevent future correctness bugs or materially improve maintainability.

    line 82
  18. Distinctive:

    Do not nitpick naming or formatting when the change contains higher-severity risk.

    line 86
  19. Distinctive:

    Do not invent risks without code evidence.

    line 87
  20. Distinctive:

    Do not praise or summarize before surfacing findings.

    line 88
  21. Distinctive:

    Do not ignore missing tests just because the code "looks straightforward."

    line 89
  22. Distinctive:

    Do not apply generic Java advice without checking Kotlin and Spring specifics.

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Spring Kotlin Code Review

Source mapping: Tier 1 critical skill derived from Kotlin_Spring_Developer_Pipeline.md (SK-21).

Mission

Review changes the way a strong Kotlin plus Spring teammate would review them: behavior first, risk first, evidence first. Optimize for catching bugs, regressions, and missing tests, not for polishing style.

Read In This Order

  • Diff or changed files.
  • Related tests.
  • Configuration or build file changes.
  • Impacted controllers, services, repositories, security config, and migrations.
  • Project conventions from project-context-ingestion if available.

Review Dimensions

Check every relevant change for:

  • transaction boundaries and rollback behavior
  • proxy compatibility and self-invocation traps
  • bean wiring and configuration safety
  • API contract, validation, and serialization correctness
  • JPA or repository correctness and performance
  • security exposure and authorization drift
  • concurrency, retries, and idempotency risks
  • observability regressions
  • test adequacy and missing failure-path coverage
  • Kotlin-specific problems such as !!, unsafe platform types, and misuse of lateinit

Output Contract

Return findings first and order them by severity. Use this structure:

  • Findings: each finding should name the risk, explain the consequence, and point to the relevant file and line when available.
  • Open questions or assumptions: only where uncertainty changes the review outcome.
  • Summary: only after findings, and only briefly.

If no material findings exist, say so explicitly and still note residual risk or testing gaps.

What Counts As A Real Finding

  • A correctness bug.
  • A production-risking design choice.
  • A likely regression.
  • A security or data-consistency hole.
  • Missing coverage for a meaningful failure path.

Minor style suggestions are secondary and should never drown out real risk.

Review Heuristics

  • Prefer a smaller number of well-supported findings over a long list of weak suspicions.
  • Tie every finding to behavior, not only to taste.
  • Verify whether the repository's existing conventions intentionally justify an unusual pattern before flagging it.
  • Distinguish must fix concerns from consider improving concerns.

Advanced Review Checklist

  • Check deploy-order safety. A code change, config change, and migration may each be correct alone but unsafe in rolling deployment order.
  • Check backward compatibility of JSON contracts, event schemas, database writes, and feature flags. Additive changes are safer than semantic changes hidden behind the same shape.
  • Check cache invalidation, deduplication, retry semantics, and idempotency whenever writes or integrations change.
  • Check whether observability changed with the behavior. A new critical path without metrics, logs, or trace propagation is a real operational regression.
  • Check whether new repository queries need supporting indexes or whether an innocuous loop creates N+1 behavior.
  • Check whether any new async, scheduled, or concurrent path changes transaction scope, MDC propagation, or security context.
  • Check build and dependency changes for BOM drift, plugin mismatches, or silent classpath changes.
  • Check what was removed, not only what was added. Missing validation, logging, or authorization is often the real regression.

Expert Heuristics

  • Read the change as a workflow, not as isolated files. Many Spring bugs live in the seam between controller, service, repository, and config.
  • If a finding depends on an assumption, state the assumption and the fastest way to confirm it.
  • Prefer findings that are expensive for the team to rediscover in production.
  • Use style comments only when they prevent future correctness bugs or materially improve maintainability.

Guardrails

  • Do not nitpick naming or formatting when the change contains higher-severity risk.
  • Do not invent risks without code evidence.
  • Do not praise or summarize before surfacing findings.
  • Do not ignore missing tests just because the code "looks straightforward."
  • Do not apply generic Java advice without checking Kotlin and Spring specifics.

Quality Bar

A good run of this skill gives the author a short list of concrete, high-signal risks to address. A bad run reads like a generic lint pass and misses the transactional, proxy, security, or persistence behavior that actually matters.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.