spring-boot-team-harness
БесплатноЗапускает вложенные скриптыНе проверенUse when a team wants every developer's coding agent (Claude Code or Codex) to follow the same rules and coding conventions on a Maven or Gradle Spring Boot 4…
от a-pavithraa★ 82 звезды на GitHubОб этом скилле
Spring Boot team harness
The harness steers the agent in three places. AGENTS.md tells it how this repository works before it starts. Hooks check its work before a turn ends, so it fixes its own mistakes. ./mvnw verify (./gradlew build on Gradle) in CI holds the same gates for every developer and every tool. Rules live in the build wherever they can: a gate holds whoever writes the code and costs no context.
Apply it
Run the script from the project root. Preview with
--dry-runfirst:python3 ${CLAUDE_SKILL_DIR}/scripts/apply_harness.py . --dry-run python3 ${CLAUDE_SKILL_DIR}/scripts/apply_harness.py .${CLAUDE_SKILL_DIR}is this skill's folder. Codex doesn't set it, so there use the folder thisSKILL.mdis in. Run it in the folder with thepom.xml, or thebuild.gradleorbuild.gradle.kts. On Gradle, the gates go ingradle/harness.gradle, which the harness owns like its tests, so a rerun updates it while nobody has edited it; the build file gets one line that applies it, and the team'splugins {}block stays as it is. A build's own Spotless stays as it is, as on Maven; the script only narrows it to the session's files for the Stop hook. It stops on a multi-project build, and when the build already applies Error Prone: remove that, or mergeassets/gradle/harness.gradleby hand. Starters are found in the build file andgradle/libs.versions.toml. The rest of this skill names the Maven commands; on Gradle they are./gradlew buildforverify,harnessCheckfor the Stop hook's gates, andspotlessApply(orformat) for the formatter. When that folder is inside a larger repository (for examplebackend/next tofrontend/), the CI workflow,.claude/settings.json, the hooks and.gitattributesgo to the repository root, where GitHub and Claude Code read them, and the rootAGENTS.mdgets a line pointing to the project's own. The Stop hook then reacts only to changes in that folder.The observability pack comes by default: dependencies, safe defaults, a local Grafana stack, Service health and JVM dashboards, a filter that logs and marks every handled 5xx, a test check that fails on logged emails and credentials, and
docs/observability.md. Telemetry stays off in deployments untilOTLP_EXPORT_ENABLED=true. It narrowsmanagement.endpoints.web.exposure.includeto what's safe on the public port, and says so. Pass--no-observabilityto skip it, and do so on an existing service when the task says behaviour must not change: the narrowed exposure and the filter change what the running app does. Say in the setup report that it was skipped and why, so the user can add it later in its own change.Pass
--no-moduleswhen the base package's subpackages are layers (controller,service,domain) rather than modules; Spring Modulith would report them as cycles. Rerunning with--no-modulesafter a run without it removesModuleBoundariesTestsand theadd-moduleskill unless they were edited, and names what to remove fromAGENTS.mdby hand.NullAway checks every class under the base package by default. On an existing codebase with many null findings, offer
--nullaway marked: NullAway then checks only packages whosepackage-info.javahas@NullMarked, so the team adopts null-safety one package at a time instead of marking classes@NullUnmarkedacross the codebase. The script reports how many packages are marked. With none, NullAway checks nothing, so mark at least the packages the team changes most. A rerun keeps the pom's mode unless--nullawayis passed again. Switch to--nullaway allonce every package is marked.It adds only what the project lacks. In the pom, it skips any property, dependency or plugin that is already declared, so an existing Spotless or Spring Modulith setup stays as it is. It adds
CLAUDE.md(one line,@AGENTS.md),.claude/settings.jsonand its two hook scripts,.codex/hooks.json, which registers the same scripts for Codex,.mvn/jvm.config, the three tests, a CI workflow, the CI integrity check, and project skills in both.claude/skills/and.agents/skills/. It merges its permissions, hooks and plugin into an existing.claude/settings.json, and its hooks into an existing.codex/hooks.json, adds its CI workflow only when no workflow runs Maven (asharness-verify.ymlifverify.ymlis taken), appends its gate section to an existingAGENTS.md, addsModuleBoundariesTestseven when a test already callsApplicationModules.of(...)and says whichverify()call to remove, since only its own test honours the violation record and checks unusedallowedDependencies, and never overwrites a file the team has edited. If<build><plugins>already configuresmaven-compiler-plugin, as MapStruct and Lombok projects do, it moves that plugin to<pluginManagement>, where the harness's block appends Error Prone and NullAway to its processor paths and arguments. It stops onl
Установить spring-boot-team-harness в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл spring-boot-team-harness?
Use when a team wants every developer's coding agent (Claude Code or Codex) to follow the same rules and coding conventions on a Maven or Gradle Spring Boot 4 repository: setting up AGENTS.md, coding standards, guardrails, shared agent settings, or build and CI checks that agents must pass before code merges. It adds ./mvnw verify or ./gradlew build gates that fail on null-safety bugs (NullAway with JSpecify), module-boundary breaches (Spring Modulith), unknown or deprecated Boot property keys, Spring mistakes that compile (ArchUnit), design rules from the classic books (dependency direction, hand-built beans, dual writes, parameter counts) and unformatted code, Claude Code and Codex hooks that run those gates before a turn ends, and a CI workflow.
Как установить скилл spring-boot-team-harness?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spring-boot-team-harness запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic