Skip to content

Refine kotlin-engineer and related skills - #3

Merged
alexander-yevsyukov merged 8 commits into
masterfrom
kotlin-engineer-skill
Jun 2, 2026
Merged

alexander-yevsyukov merged 8 commits into
masterfrom
kotlin-engineer-skill

Conversation

@alexander-yevsyukov

Copy link
Copy Markdown
Contributor

Applies the skill changes from config#676 to this agents repository, which is the new home for shared agent assets after config#677 moved skill delivery to a floating submodule.

Paths were mapped from config's old .agents/skills/…, .claude/agents/…, and .claude/commands/… layout onto this repo's real source tree (skills/, claude/agents/, claude/commands/, guidelines/_TOC.md), preserving this repo's grouped .agents/guidelines/… reference style.

Changes

  • Renamed kotlin-reviewspine-code-review — now a repo-specific reviewer (AGENTS.md filter, safety rules, testing policy, version gate) that defers general Kotlin language/API/coroutine/Flow/null-safety standards to kotlin-engineer.
  • Refined kotlin-engineer — broadened description, added "When to Use" and "Fast Path for Agents" sections, trimmed the Setup Check, and reformatted the reference and anti-pattern tables.
  • Updated cross-references so dependent skills use kotlin-engineer as the Kotlin baseline: gradle-review, java-to-kotlin, raise-coverage, pre-pr (now dispatches both reviewers), and guidelines/_TOC.md.
  • Claude agents/commands — added kotlin-engineer.md and spine-code-review.md, removed kotlin-review.md, and updated review-docs + pre-pr references.

Deliberately excluded

config-specific files from #676 that belong to the #677 delivery mechanism and have no counterpart here: migrate, buildSrc/uber-jar-module.gradle.kts, .github/copilot-instructions.md, config's README.md/AGENTS.md edits, and .agents/tasks/enforce-max-line-length.md (no tasks/ directory in this repo).

🤖 Generated with Claude Code

Also:
 * Rename `kotlin-review` skill to `spine-code-review`.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ports the skill/agent refinements from SpineEventEngine/config#676 into the agents repository, primarily splitting Kotlin general standards (kotlin-engineer) from repo-specific review policy (spine-code-review) and updating all cross-references accordingly.

Changes:

  • Rename and reshape the repo-specific reviewer skill as spine-code-review, explicitly deferring general Kotlin standards to kotlin-engineer.
  • Expand/refine kotlin-engineer (usage guidance, faster workflow, and reformatted reference/anti-pattern tables).
  • Update orchestrators and docs (pre-pr, TOC, Claude agents/commands, and related skills) to reference the new skill split.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
skills/spine-code-review/SKILL.md Renames/redefines repo-specific reviewer and clarifies responsibility split vs kotlin-engineer.
skills/spine-code-review/agents/openai.yaml Adds OpenAI interface metadata for the new spine-code-review skill.
skills/kotlin-engineer/SKILL.md Broadens the Kotlin baseline skill and adds “When to Use” + “Fast Path for Agents”.
skills/kotlin-engineer/references/coroutines.md Reformats/updates the coroutine anti-pattern reference table.
skills/kotlin-engineer/agents/openai.yaml Updates OpenAI interface metadata to match the new Kotlin skill framing.
skills/pre-pr/SKILL.md Dispatches kotlin-engineer + spine-code-review instead of kotlin-review and updates aggregation labels.
skills/raise-coverage/SKILL.md Adds explicit dependency on kotlin-engineer as the baseline for tests.
skills/java-to-kotlin/SKILL.md Anchors conversions to kotlin-engineer as the Kotlin baseline.
skills/gradle-review/SKILL.md Updates “do not duplicate” and output-format references to the new reviewer names.
guidelines/_TOC.md Updates the index to include kotlin-engineer and spine-code-review.
claude/agents/spine-code-review.md Adds Claude agent wrapper for spine-code-review.
claude/agents/kotlin-engineer.md Adds Claude agent wrapper for kotlin-engineer.
claude/agents/review-docs.md Points doc reviewers to spine-code-review instead of the removed Kotlin reviewer.
claude/commands/pre-pr.md Updates reviewer dispatch instructions to use kotlin-engineer + spine-code-review.
claude/commands/review-docs.md Updates fallback pointer from kotlin-review to spine-code-review.
skills/kotlin-review/agents/openai.yaml Removes obsolete OpenAI interface metadata for the retired kotlin-review.
claude/agents/kotlin-review.md Removes obsolete Claude agent wrapper for the retired kotlin-review.
Comments suppressed due to low confidence (1)

skills/spine-code-review/SKILL.md:6

  • This skill states it enforces the "AGENTS.md code-review filter" / "AGENTS.md § Code review" filter, but this repository's AGENTS.md does not contain a "Code review" section. As written, the procedure points reviewers at a non-existent source of truth; either add the missing section to AGENTS.md or make the skill treat the filter as optional when the section is absent (while still supporting consumer repos that do have it).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread guidelines/_TOC.md Outdated
Comment thread skills/kotlin-engineer/SKILL.md Outdated
- Remove stale `Team memory` and `Task plans` TOC entries that pointed to
  `.agents/memory/MEMORY.md` and `.agents/tasks/README.md`, which do not
  exist in this repo (it uses the built-in auto-memory dir).
- Rename `kotlin-engineer` "Setup Check (run first)" to "Setup Check" and
  align its intro with the Fast Path guidance to run it only for non-trivial
  changes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 17 out of 18 changed files in this pull request and generated 4 comments.

Comment thread guidelines/_TOC.md Outdated
Comment thread guidelines/_TOC.md Outdated
Comment thread guidelines/_TOC.md Outdated
Comment thread .claude/scheduled_tasks.lock Outdated
- TOC skill links used `.agents/skills/...`, which Markdown resolves relative
  to `guidelines/` (→ `guidelines/.agents/...`, broken). Switch to
  `../skills/...`, which resolves correctly from both `guidelines/` and the
  mirrored `.agents/guidelines/` mount.
- Stop tracking `.claude/scheduled_tasks.lock` (a machine-local runtime lock)
  and add it to `.gitignore` alongside `.claude/worktrees/`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 17 out of 18 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

skills/spine-code-review/SKILL.md:16

  • The intro paragraph says this reviewer covers “both Kotlin and Java changes”, but the skill description explicitly includes build changes and the procedure includes build-logic checks (e.g., “No mixing Groovy/Kotlin DSL in build logic”). Align this paragraph with the stated scope so users don’t miss build-related review expectations.

Comment thread skills/spine-code-review/agents/openai.yaml Outdated
Comment thread claude/agents/spine-code-review.md Outdated
Align the OpenAI skill metadata and the Claude agent description with the
`spine-code-review` skill's own scope, which already lists "Kotlin, Java, and
build changes". Ensures build-only diffs route to this reviewer.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 17 out of 18 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

skills/spine-code-review/SKILL.md:8

  • The skill description calls out an “AGENTS.md code-review filter”, but this repo’s AGENTS.md doesn’t define any "Code review" section or filter; the filter rules are actually spelled out later in this skill. Consider rewording the description to avoid pointing readers at a non-existent reference (or, alternatively, add the missing section to AGENTS.md, but that’s outside this PR’s changed files).

Comment thread skills/pre-pr/SKILL.md Outdated
`spine-code-review`'s scope now includes build changes, but pre-pr only
dispatched it under the **code** classifier (.kt/.kts/.java). Add a **build**
classifier for non-`.kts` build files (`*.gradle`, `settings.gradle`,
`gradle.properties`, `*.versions.toml`) and dispatch `spine-code-review` for
it so repo-specific safety and version-gate rules cover build-only diffs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 17 out of 18 changed files in this pull request and generated no new comments.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f7645afe21

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread skills/pre-pr/SKILL.md Outdated
Comment thread claude/commands/pre-pr.md Outdated
…e-pr

- kotlin-engineer is dispatched as a pre-PR reviewer, but its review output
  defined no verdict, so a clean Kotlin run had nothing for pre-pr's PASS
  aggregation to read. Add the same one-line verdict contract (APPROVE /
  APPROVE WITH CHANGES / REQUEST CHANGES) used by the other reviewers.
- The Claude /pre-pr wrapper only dispatched spine-code-review for
  .kt/.kts/.java; align it with the skill's new build classifier so build-only
  diffs (*.gradle, settings.gradle, gradle.properties, *.versions.toml) also
  route to spine-code-review.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@alexander-yevsyukov

Copy link
Copy Markdown
Contributor Author

@codex review — both review comments are addressed in b12ff42:

  • P1 kotlin-engineer now emits a one-line verdict (APPROVE / APPROVE WITH CHANGES / REQUEST CHANGES) so pre-pr can aggregate a clean Kotlin-only run.
  • P2 the Claude /pre-pr wrapper now dispatches spine-code-review for build-only files (*.gradle, settings.gradle, gradle.properties, *.versions.toml), matching the skill's build classifier.

Please re-review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 17 out of 18 changed files in this pull request and generated 2 comments.

Comment thread skills/pre-pr/SKILL.md Outdated
Comment thread claude/commands/pre-pr.md Outdated
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

kotlin-engineer is Kotlin-only, but the reviewer-dispatch wording read as if it
ran for any **code** change (which includes .java). Reword both the pre-pr skill
and the Claude /pre-pr wrapper: dispatch by file type — spine-code-review for
.kt/.kts/.java, kotlin-engineer only for .kt/.kts — so a Java-only diff routes to
spine-code-review alone.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 17 out of 18 changed files in this pull request and generated 4 comments.

Comments suppressed due to low confidence (1)

skills/spine-code-review/SKILL.md:16

  • The skill’s intro says it covers Kotlin/Java only, but this skill is explicitly scoped to build changes as well (front-matter description and procedure mention build/version-gate). Update this sentence so the scope is consistent within the document.

Comment thread claude/agents/spine-code-review.md Outdated
Comment thread skills/pre-pr/SKILL.md
Comment thread guidelines/_TOC.md Outdated
Comment thread claude/agents/kotlin-engineer.md Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: efc90b7cca

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread skills/pre-pr/SKILL.md
- pre-pr Step 3: run `./gradlew build` for **build**-only changes too, so
  build-file edits aren't recorded as skipped while still PASSing (Codex P2).
- pre-pr Step 4: add a de-duplication note — a diff matching both **code** and
  **build** must dispatch `spine-code-review` only once.
- spine-code-review agent: "Stay in scope: code and build files" instead of
  "code only", matching the skill's Kotlin/Java/build scope.
- kotlin-engineer TOC label: "Kotlin, Java, and build review".
- kotlin-engineer agent: it is a read-only review agent (tools: Read/Grep/Glob/
  Bash); drop the "refactoring"/"read-only in review mode" wording and point
  refactoring use at the skill.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@alexander-yevsyukov

Copy link
Copy Markdown
Contributor Author

@codex review — addressed your P2 in 9200f4e: pre-pr Step 3 now runs ./gradlew build for build-only changes (settings.gradle, gradle.properties, libs.versions.toml, Groovy build.gradle) instead of recording the build as skipped. Also tightened build-scope wording across the agents and TOC. Please re-review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 17 out of 18 changed files in this pull request and generated no new comments.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@alexander-yevsyukov
alexander-yevsyukov merged commit 22a801a into master Jun 2, 2026
1 check passed
@alexander-yevsyukov
alexander-yevsyukov deleted the kotlin-engineer-skill branch June 3, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants