plugins CLAUDE.md

A project reference for IHub Plugins, a collection of Gradle build plugins for Java, Groovy, Kotlin, and Spring projects. It documents the project layout, supported tools, and common build commands.

In plain words
What is it for?
Use it when developing, testing, linting, or publishing IHub Gradle plugins and their build infrastructure.
Why use it?
It gives an agent the project’s structure and compatibility requirements, making it easier to change plugins without breaking builds, tests, or supported runtimes.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/ihub-pub/plugins/claude-md
Clone the repo
git clone --depth 1 https://github.com/ihub-pub/plugins
Per session 6,974 This file is loaded in full into every session.
When invoked 6,974 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.06974 $0.06974
Opus 5 $0.03487 $0.03487
Sonnet 5 $0.01395 $0.01395
Haiku 4.5 $0.00697 $0.00697

Measured 2d ago against content hash d74ac6ed53f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

plugins CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 479 lines

How it starts

The opening of the file, as written. The whole thing — 479 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PROJECT KNOWLEDGE BASE

Generated: 2026-04-27 Project: IHub Plugins (pub.ihub.plugin) Repository: https://github.com/ihub-pub/plugins

OVERVIEW

IHub Plugins 是一个为 Gradle 项目提供基础设施的插件集合。该项目通过注解驱动的 DSL 大幅减少 Gradle 插件的样板代码,并以"开箱即用"的方式集成 Java/Groovy/Kotlin 编译、Spring Boot、依赖管理(BOM)、代码质量、发布等常见构建场景。

  • 开发语言: Groovy 4.0.x(基于 @CompileStatic),构建脚本使用 Kotlin DSL
  • 构建系统: Gradle 9.4.1(通过 wrapper 锁定)
  • 运行时要求: JDK 17 ~ 25
  • 测试框架: Spock 2.4-groovy-4.0 + Gradle TestKit
  • 静态分析: CodeNarc 3.7.0、PMD 7.23.0
  • 覆盖率: JaCoCo 0.8.14(通过 pl.droidsonroids.jacoco.testkit 适配 TestKit)

PROJECT STRUCTURE

plugins/
├── ihub-base/              # 注解驱动框架(@IHubPlugin/@IHubExtension/@IHubProperty/@IHubTask)
├── ihub-base-test/         # 测试基础设施(IHubSpecification + TestKit 工具)
├── ihub-plugins/           # 核心插件:pub.ihub.plugin / ihub-version / ihub-profiles
├── ihub-settings/          # Settings 插件:pub.ihub.plugin.ihub-settings
├── ihub-bom/               # BOM 依赖管理:pub.ihub.plugin.ihub-bom
├── ihub-java/              # Java 插件:ihub-java / ihub-java-base
├── ihub-groovy/            # Groovy 插件:ihub-groovy
├── ihub-kotlin/            # Kotlin 插件:ihub-kotlin
├── ihub-spring/            # Spring Boot 插件:ihub-boot / ihub-native
├── ihub-verification/      # 验证插件:ihub-test / ihub-verification
├── ihub-publish/           # 发布插件:ihub-publish
├── ihub-shadow/            # Shadow Fat JAR:ihub-shadow
├── ihub-javaagent/         # Javaagent 插件:ihub-javaagent
├── ihub-meta/              # AI 元数据 JSON 生成:ihub-meta
├── ihub-skills/            # AI 技能文件自动安装:ihub-skills
├── ihub-copyright/         # Spotless 版权头:ihub-copyright
├── ihub-githooks/          # Git Hooks 自动化:ihub-git-hooks
├── ihub-node/              # Node.js / cnpm 支持:ihub-node
├── samples/                # 验证用样例(sample-groovy / sample-multi / sample-extensions)
├── docs/                   # VuePress 文档(docs/list/ 一插件一文档)
├── buildSrc/               # precompiled convention plugin(ihub.module-conventions),IP 兼容
├── gradle/libs.versions.toml  # 版本目录(修改依赖前必须先改这里)
├── build.gradle.kts        # 根构建脚本(仅保留 root-only 配置;公共配置已迁至 buildSrc)
└── settings.gradle.kts     # 通过 ihub-settings 自动包含子模块

Read the full file on GitHub · 479 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 479 lines · 6,974 tokens per session scan A d74ac6ed53f1

Subscribe to this mod's changes

plugins CLAUDE.md is an instructions file published in the GitHub repository ihub-pub/plugins (711 stars, last pushed 5d ago), licensed Apache-2.0. It adds 6,974 tokens to every session, about $0.0349 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.