← スキル一覧に戻る

java-repo-bootstrap
by HZeroxium
⭐ 0🍴 0📅 2026年1月21日
SKILL.md
name: java-repo-bootstrap description: Standardize repository layout, module boundaries, naming conventions, and baseline docs for Java backend projects. Use when starting a new project, restructuring an existing repo, or migrating to a mono-repo. license: Apache-2.0 compatibility: "Any OS; Git required; Java projects (framework-agnostic)." metadata: version: "0.1.0" tags: ["java", "backend", "repo-layout", "architecture", "docs"]
Java Repo Bootstrap
Scope
In scope:
- Propose and apply a repository layout (mono-repo or multi-module).
- Define module boundaries and dependency direction (allowed imports, ownership).
- Standardize naming conventions (modules, packages, docs).
- Add baseline documentation: README, CONTRIBUTING, ADR template, architecture notes.
- Add minimal CI entrypoints (scripts/commands) but do NOT implement a full CI system.
Out of scope:
- Framework-specific scaffolding (Spring/Quarkus/Micronaut) beyond optional examples.
- Deep refactors across many packages without a phased plan.
- Changing external API contracts unless explicitly requested.
When to use
- Starting a new Java backend codebase.
- Refactoring repo structure (messy src/, unclear modules).
- Converting to mono-repo or multi-module.
- Onboarding a new team and needing consistent conventions.
Inputs (required context)
- Current repo tree (top-level files + modules).
- Build tool status: Gradle/Maven/Other (or unknown).
- Existing CI constraints (if any): required commands, existing pipelines.
- Public API surfaces (if any): REST endpoints, libraries, shared modules.
Procedure (plan-first, small diffs)
-
Discovery
- Enumerate current top-level layout and key modules.
- Identify build entrypoints (gradlew/mvnw, build files).
- Identify public surfaces (API modules, docs, published artifacts).
-
Choose a target layout (justify with trade-offs)
- Option A: Single service repo (single module).
- Option B: Multi-module repo (domain/application/infra or feature modules).
- Option C: Mono-repo with multiple services + shared libraries. Provide a file impact map and a migration strategy if restructuring.
-
Define module boundaries + dependency rules
- Define allowed dependency direction (e.g., domain <- application <- infra).
- Define shared modules policy (who can depend on what).
- Define package naming conventions and "no cycles" guardrails.
-
Apply structure using git-safe moves
- Use
git mvfor moves. - Update imports and build configs incrementally.
- Ensure each commit builds.
- Use
-
Add baseline docs (templates allowed)
- README: purpose, how to build/test/run, local dev, troubleshooting.
- CONTRIBUTING: branch strategy, code style, tests required, commit guidelines.
- ADR: add template + index.
- Architecture notes: a minimal C4-style overview (context/container).
-
Verify (Definition of Done)
- Repo tree matches target layout.
- Build commands are documented and reproducible.
- Minimal docs exist and are discoverable.
Outputs / Artifacts
- Updated folder layout + module boundaries documented.
README.md,CONTRIBUTING.md,docs/architecture/,docs/adr/(or similar).- A short "Repo Conventions" section with:
- module naming
- package naming
- dependency rules
- how to run build/tests
Definition of Done (DoD)
- Repo builds locally using a documented command.
- Tests run using a documented command (even if minimal).
- Docs added: README + ADR template + architecture overview.
- No broken imports; compilation succeeds.
- Module dependencies are acyclic (or explicitly justified).
Guardrails (What NOT to do)
- Do not perform a big-bang rewrite. Use phased migration.
- Do not rename public APIs without an explicit migration plan.
- Do not move files without
git mvunless unavoidable. - Do not invent architecture rules that contradict existing constraints.
Common failure modes & fixes
- Symptom: "Everything depends on everything"
- Cause: missing dependency direction
- Fix: introduce domain/core module and enforce one-way dependencies.
- Symptom: "CI breaks after moves"
- Cause: scripts/paths hardcoded
- Fix: update build entrypoints + document canonical commands.
- Symptom: "Endless bikeshedding on layout"
- Fix: pick a default layout and codify in docs; revisit via ADR later.
References
- See
templates/for README/ADR/Contributing stubs. - See
references/for deeper layout and module-boundary guidelines.
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です