# Scout4j **Repository Path**: zhenyulv/Scout4j ## Basic Information - **Project Name**: Scout4j - **Description**: 面向 Java 企业后端项目的 AgentSkill,让 AI 编程助手先读懂仓库约定,再计划、修改和验证代码。 - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2026-06-07 - **Last Updated**: 2026-06-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: Java, AI, Agent, 后端, AgentSkill ## README # Scout4j > 中文简介:Scout4j 是一个面向 Java 企业后端项目的 AgentSkill,帮助 Claude Code、Cursor、Codex 等 AI 编程助手在修改代码前,先调查仓库结构、读取本地约定、参考相邻实现,再制定计划、修改代码和验证结果。测试阶段已在 100+ 个 GitHub 开源企业级 Java 项目上验证,能提升 Agent 的上下文遵循和代码修改质量。 > 主仓库:https://github.com/kyle641320/Scout4j > Gitee 镜像:https://gitee.com/zhenyulv/Scout4j The public repository is named **Scout4j**. The AgentSkill entry inside this repository is named **`java-enterprise-workflow`** in `SKILL.md` so Claude and other coding agent runtimes can route Java enterprise backend tasks to it. Scout4j is an AgentSkill for Java enterprise backend work. It helps coding agents investigate, plan, implement, and verify changes in Java repositories without jumping straight to fragile patches. It is designed for common backend engineering tasks such as feature work, bug fixes, refactors, transaction-boundary changes, mapper/persistence updates, RPC/downstream dependency handling, MQ/CDC consumers, data repair jobs, performance fixes, and targeted verification. ## What Scout4j provides - A structured workflow for Java backend changes: investigate → plan → edit → verify → summarize. - Repository-first guidance: read local conventions and adjacent examples before changing code. - Focused references for common enterprise Java scenarios: - feature and field/API/schema changes; - bug fixes and code reviews; - transactions and consistency boundaries; - RPC/downstream retries, timeouts, and failure propagation; - MQ/CDC consumers and projection updates; - data repair/backfill jobs; - pagination, performance, and mapper/SQL consistency; - testing and verification. - Lightweight helper scripts for stack detection and release-time leakage checks. ## What Scout4j is not - It is not tied to a specific company architecture. - It does not assume Spring Boot, Maven, MyBatis, JPA, Kafka, or DDD unless the target repository shows those patterns. - It is not a benchmark answer key and does not include the local evaluation apparatus, fixtures, harnesses, logs, or benchmark outputs. - It does not authorize destructive production operations, schema/data migrations, PR publication, or external side effects without explicit user confirmation. ## Repository boundary This repository intentionally contains only the reusable AgentSkill package. Included: - `SKILL.md` - public README / license / contribution and security docs - generic workflow references under `references/` - small helper scripts under `scripts/` Not included: - local evaluation apparatus - benchmark fixtures - A/B harnesses - generated logs or outputs - release tarballs or artifacts - provider/model configuration - private agent instructions such as `AGENTS.md` or `CLAUDE.md` ## Repository layout ```text SKILL.md AgentSkill entry point references/*.md Focused workflow references loaded as needed scripts/detect-java-stack.sh Lightweight Java stack detection helper scripts/check_java_skill_deoverfit.py Release guard against benchmark leakage ``` ## Installation Copy this repository folder into your agent's skills directory, or install it using the skill mechanism supported by your agent runtime. The skill name inside `SKILL.md` is: ```text java-enterprise-workflow ``` Use Scout4j when asking an agent to work on Java enterprise backend code. ## Usage When the skill is active, the agent should read `SKILL.md` first, then load the narrowest applicable reference from `references/`. Examples: - RPC/downstream retry issue → `references/rpc-dependency.md` - Data repair/backfill job → `references/data-repair.md` - Cursor pagination/performance issue → `references/performance.md` - Transaction consistency issue → `references/transactions.md` - Testing/verification task → `references/testing.md` - Public API or persisted field change → `references/add-field.md` and `references/compatibility-rollout.md` ## Quality gate Before publishing changes to this standalone skill package, run: ```bash python3 scripts/check_java_skill_deoverfit.py ``` Expected result: ```text de-overfit grep OK ``` This prevents benchmark fixture names and standard-answer patterns from leaking into the reusable skill. You can also run a basic diff hygiene check before committing: ```bash git diff --check ``` ## License MIT. See `LICENSE`.