build-dependency-management
Skill1 starsChanged 59 days agoMITView on GitHub
Build files and dependency versions: one central version catalog, bill-of-materials imports, shared build logic, locked reproducible installs, and deliberate dependency admission. Use when you say \"add this dependency\", \"set up the Gradle build\", \"centralise our versions\", \"import the Spring Boot BOM\", or \"why do two modules use different versions of the same library\". Not for Java language style, use `java-coding-standards`.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- agentic-engineeringSkill
- ai-regression-testingSkill
- angularSkill
- ansibleSkill
- api-designSkill
- architecture-decision-recordsSkill
- ascend-memorySkill
- ascend-web-hunterSkill
- audio-scribeSkill
- automation-inventorySkill
- backend-patternsSkill
- bashSkill
- code-formatterSkill
- code-reviewerSkill
- coding-standardsSkill
- dart-flutter-patternsSkill
- database-migrationsSkill
- deployment-patternsSkill
- design-systemSkill
- docker-patternsSkill
- e2e-runbooksSkill
- e2e-testingSkill
- embedded-c-arduinoSkill
- frontend-designSkill
- g-code-3d-printingSkill
- github-opsSkill
- git-workflowSkill
- golang-patternsSkill
- hexagonal-architectureSkill
- home-assistantSkill
- java-coding-standardsSkill
- jetbrains-ide-opsSkill
- jira-integrationSkill
- keycloak-patternsSkill
- kicadSkill
- markdown-writerSkill
- mongodb-patternsSkill
- nextjs-app-router-patternsSkill
- node-backend-patternsSkill
- observability-and-loggingSkill
- obsidianSkill
- performance-optimizationSkill
- postgres-patternsSkill
- powershellSkill
- project-trackingSkill
- python-patternsSkill
- pytorch-patternsSkill
- react-patternsSkill
- researchSkill
- review-duplicationSkill
- security-reviewSkill
- seoSkill
- soap-webservicesSkill
- springboot-patternsSkill
- tdd-workflowSkill
- unitySkill
- web-accessibilitySkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Test libraries and coverage gates, use tdd-workflow, or springboot-patterns in a Spring Boot project.
- Very specific: line 35
Keep every dependency version in one central place, a single version catalog such as a Gradle libs.versions.toml, or the manifest and lock …
- Distinctive: line 114
Put common build configuration in one place, a convention plugin, a shared build file, or a parent definition, rather than repeating it in …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build and Dependency Management
How a project declares versions, shares build logic, and admits new dependencies. The cross-cutting principles hub
is the coding-standards skill, and this skill is the build-layer detail underneath it.
When to activate
- Adding, upgrading, or removing a dependency.
- Setting up or refactoring build files for a new module or project.
- Centralising versions or build configuration across a multi-module repository.
- Reviewing a change that touches build or dependency files.
When not to activate
- Writing the Java inside the modules, use
java-coding-standards. - Wiring Spring Boot beans, starters, and application configuration, use
springboot-patterns. - Test libraries and coverage gates, use
tdd-workflow, orspringboot-patternsin a Spring Boot project. - The pre-merge build, analysis and scan pipeline, use
deployment-patterns, orspringboot-patternsin a Spring Boot project.
One version catalog per project
Keep every dependency version in one central place, a single version catalog such as a Gradle libs.versions.toml,
or the manifest and lock pair the language provides. A module references a catalog alias, so a bump is one edit in
one file.
Pass: the version lives in the catalog and the module names the alias.
[versions]
mapstruct = "1.6.3"
resilience4j = "2.3.0"
[libraries]
mapstruct = { module = "org.mapstruct:mapstruct", version.ref = "mapstruct" }
mapstruct-processor = { module = "org.mapstruct:mapstruct-processor", version.ref = "mapstruct" }
resilience4j-spring-boot3 = { module = "io.github.resilience4j:resilience4j-spring-boot3", version.ref = "resilience4j" }dependencies {
implementation(libs.mapstruct)
annotationProcessor(libs.mapstruct.processor)
implementation(libs.resilience4j.spring.boot3)
}Fail: the version string is typed into the module, so the next bump has to find every copy, and the processor has already drifted away from the library it generates against.
dependencies {
implementation("org.mapstruct:mapstruct:1.6.3")
annotationProcessor("org.mapstruct:mapstruct-processor:1.6.2")
}Pin exact versions so a clean checkout builds the same artifacts tomorrow, and commit the lock file the build tool produces. A range turns every build into a different build.
Import a bill of materials instead of pinning a family by hand
A bill of materials pins a whole family of libraries to versions their maintainers tested together. Import it and declare the members with no version at all. Pinning one member by hand is how version-skew bugs start, because the hand-pinned member and the managed members stop agreeing about a shared transitive dependency.
Pass: import the BOM, name the members without versions.
dependencies {
implementation(platform(libs.jackson.bom))
implementation("com.fasterxml.jackson.core:jackson-databind")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
implementation("com.fasterxml.jackson.module:jackson-module-parameter-names")
}Fail: three members of one family pinned separately, and the databind artifact has already drifted ahead of the other two.
dependencies {
implementation("com.fasterxml.jackson.core:jackson-databind:2.20.0")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2")
implementation("com.fasterxml.jackson.module:jackson-module-parameter-names:2.18.2")
}The BOM coordinate itself is a version like any other, so it belongs in the catalog too.
[libraries]
jackson-bom = { module = "com.fasterxml.jackson:jackson-bom", version.ref = "jackson" }Share build configuration
Put common build configuration in one place, a convention plugin, a shared build file, or a parent definition, rather than repeating it in every module. Module build files drift exactly the way duplicated code drifts.
Pass: one convention plugin sets the toolchain, the compiler arguments, and the test framework, and each module applies it.
Fail: eight module build files each set the same toolchain, and two of them are a release behind.
A build file is code. The naming, structure, and DRY rules in coding-standards apply to it.
Admit dependencies deliberately
Justify every new dependency before adding it, and ask first. A dependency is a permanent maintenance and security liability rather than a free function. Prefer the standard library and boring, well-understood libraries over novelty, because the exciting library is the one abandoned in two years.
Pass: the pull request says what the dependency does, what it replaces, and what its license is.
Fail: a utility library appears in the diff with no mention in the description.
Honor any explicit list of allowed or forbidden libraries for the project, including license constraints such as forbidding copyleft licenses in distributed code. Review and update dependencies on a schedule with a vulnerability scan, and never through an automatic trigger. Enabling a self-scanning bot or auto-merging a version bump is an approval-gated decision.
Never commit generated sources
Regenerate generated sources and build output from their input, and never hand-edit a generated file. Change the input and run the generator. A generated file in version control drifts from its source the first time somebody edits it by hand.
Pass: the generator runs in the build, and the output directory is ignored.
Fail: a generated client is committed, then patched by hand to fix one field.
Related skills
| Skill | What it owns |
coding-standards | The cross-cutting principles this skill sits under. |
java-coding-standards | Java language style, and the static analysis tools the build runs. |
springboot-patterns | Spring Boot structure and starters, and the pipeline that runs the build and its gates. |
tdd-workflow | Test libraries and coverage gates outside a Spring Boot project. |
deployment-patterns | The CI pipeline that runs the build and its gates outside a Spring Boot project. |
Checklist
- Every version lives in one catalog, and no module hardcodes a version string.
- Every managed family comes from an imported bill of materials, with no member pinned by hand.
- The lock file is committed and the build is reproducible from a clean checkout.
- Shared build configuration lives in one convention plugin or parent definition.
- Each new dependency has a stated purpose, a license check, and prior approval.
- No generated source or build output is committed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

