本文へ移動
cccskills
無料GitHub で公開

java-vs-go-decision

Use when starting a backend task that could be built in either language - decide Go vs Java (Quarkus/Spring) from the task's shape and the repository's existing stack

インストール方法を見る

含まれるファイル(1)

  • SKILL.md3.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Java vs Go Decision

Overview

You write both Go and Java. The wrong choice is not a style preference — it fights the grain of the problem and the repository for the life of the code. Decide deliberately, at the start of the task, before writing anything.

Core principle: The repository's existing language wins by default. Only greenfield services or the analiz task's explicit direction open the choice.

The Decision

digraph decide {
    "Repo already single-stack?" [shape=diamond];
    "Follow the repo's language" [shape=box];
    "Analiz task names a language?" [shape=diamond];
    "Use it" [shape=box];
    "Task shape?" [shape=diamond];
    "Go" [shape=box];
    "Java (Quarkus first)" [shape=box];

    "Repo already single-stack?" -> "Follow the repo's language" [label="yes"];
    "Repo already single-stack?" -> "Analiz task names a language?" [label="no / greenfield"];
    "Analiz task names a language?" -> "Use it" [label="yes"];
    "Analiz task names a language?" -> "Task shape?" [label="no"];
    "Task shape?" -> "Go" [label="perf / concurrency / latency / simple service"];
    "Task shape?" -> "Java (Quarkus first)" [label="rich domain / OOP / heavy business rules"];
}

Choose Go when

  • The task is performance-, throughput-, latency-, or concurrency-sensitive (high-QPS API, streaming, fan-out, background workers).
  • The service is small and mostly I/O plumbing over a datastore.
  • The repository is already Go — always.

Choose Java when

  • The domain is rich: many entities, invariants, and business rules that benefit from OOP modelling and a mature type/framework ecosystem.
  • The repository is already Java — always.
  • The analiz task specifies Java.

Within Java: Quarkus first. Reach for Spring Boot only when Quarkus does not fit (a required library has no Quarkus extension, the team/repo standard is Spring, or the deployment target expects a Spring app). See quarkus-service-architecture and spring-boot-fallback.

Hard Rule

Never introduce a second language into a single-stack repository. If a Go repo needs a capability that "would be nicer in Java," that is a signal for the architect's analysis, not a unilateral stack addition — flag it in a task comment, don't create a polyglot repo on your own.

Common Mistakes

  • Picking your favourite language instead of the repo's.
  • Choosing Java for a thin CRUD proxy (Go is faster to write and run there).
  • Choosing Go for a domain with dozens of interacting business rules (you will hand-roll what a Java framework gives you).
  • Adding a Java module to a Go repo because one endpoint felt object-oriented.

Red Flags

  • You are about to go mod init inside a repo full of pom.xml (or vice versa).
  • Your language choice has no reason beyond preference.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use when writing acceptance criteria for a task - express each as an observable Given/When/Then that QA can execute, including negative cases

日本語の概要は準備中です。原文の説明を表示しています。

makifbaysal/tasktrooper1122026年10月10日 更新

Use when the diff adds or changes an endpoint, resolver, RPC, job or query that takes an object id, a role check, a request binding or a tenant filter - BOLA/IDOR, function-level authorization, mass assignment and tenant scoping

日本語の概要は準備中です。原文の説明を表示しています。

makifbaysal/tasktrooper1122026年10月10日 更新

Use on every UI change - semantic HTML, labels for controls, keyboard-navigable dialogs/menus, visible focus, and never color as the only signal

日本語の概要は準備中です。原文の説明を表示しています。

makifbaysal/tasktrooper1122026年10月10日 更新

Use when a task changes any screen, form, dialog, menu or control - Lighthouse/axe scan of the changed screens, a keyboard walk, and the thresholds that fail a task

日本語の概要は準備中です。原文の説明を表示しています。

makifbaysal/tasktrooper1122026年10月10日 更新

How to work a task returned with review, QA or UAT findings. Use when a task is in need_revision or PR review comments are in your context.

日本語の概要は準備中です。原文の説明を表示しています。

makifbaysal/tasktrooper1122026年10月10日 更新

Use when deciding whether a request needs an analiz task before implementation - the conditions that require the architect's analysis versus going straight to implementation

日本語の概要は準備中です。原文の説明を表示しています。

makifbaysal/tasktrooper1122026年10月10日 更新

makifbaysal のスキルをすべて見る

このスキルの問題を報告する