bpm-component-plugin-rebuild

A project rule for kiwi-bpmn-component plugin development. It explains when Java changes require rebuilding plugin JAR files, which are packaged files loaded by the application at runtime.

In plain words
What is it for?
Reminding developers to run the correct Maven build after changing Kafka, RabbitMQ, S3, Slack, Payment, or example plugin modules, and to compile and restart the backend after changing the core component.
Why use it?
It prevents component changes from being made without producing the updated plugin files the application actually loads. It also distinguishes plugin modules from components included directly through Maven.

Cursor rule for Cursor

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 rules/xc404/kiwi/bpm-component-plugin-rebuild
Clone the repo
git clone --depth 1 https://github.com/xc404/kiwi

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 592 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00592
Opus 5 $0.00000 $0.00296
Sonnet 5 $0.00000 $0.00118
Haiku 4.5 $0.00000 $0.00059

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

Security

Grade A, and why

bpm-component-plugin-rebuild 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.

.cursor/rules/bpm-component-plugin-rebuild.mdc · 47 lines

What it actually says

BPM 插件组件改动 → 重新打包 Plugin JAR

可选 BPM 组件(Kafka、RabbitMQ、S3、Slack、Payment 等)以 插件 JAR 分发,运行时从 kiwi-admin/backend/plugins/ 加载。改 Java 源码不会自动生效,必须重新 shade 打包并更新 plugins/

kiwi-bpmn-component(HTTP、Shell、JDBC 等核心组件) 已改为 Maven 依赖,改完后重新编译 backend 即可,不需要 plugin 打包。

打包须遵守 provided 平台依赖 + shade artifactSet excludes(见 docs/bpm-component.zh-CN.md「插件 JAR 打包契约」)。

何时提醒

在完成(或准备提交)对下列路径的实质性修改后,必须在回复中提醒用户重新打包 plugin:

  • kiwi-bpmn/kiwi-bpmn-component-kafka|rabbitmq|s3|slack|payment|example/
  • 各插件模块的 pom.xml(shade、provided 依赖、插件 profile)

不需要 plugin 打包的模块:

  • kiwi-bpmn/kiwi-bpmn-component/(Maven 依赖,classpath)
  • kiwi-bpmn/kiwi-bpmn-component-slurm/(Maven 依赖,classpath)

提醒内容(复制给用户)

在仓库根目录执行:

mvn -pl kiwi-admin/backend -am package -Pbuild-plugins -DskipTests

产物会复制到 kiwi-admin/backend/plugins/*-plugin.jar。若仓库策略为 plugins 入 Git,还需:

git add kiwi-admin/backend/plugins/*.jar

Assistant 行为

  • 修改插件 component 模块后:不要假设用户已 rebuild;在任务总结中单独列出「请执行 build-plugins」。
  • 修改 kiwi-bpmn-component 后:提醒 mvn -pl kiwi-admin/backend -am compile 并重启 backend。
  • 若用户仅改 kiwi-admin/backend 且未动 component 模块:不必提醒。
  • 验证建议:重启 backend 后检查 GET /bpm/component/list 是否含预期 classpath_*(核心)或 plugin_*(可选集成)组件。
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 · 47 lines · 0 tokens per session scan A afcfc2072730

Subscribe to this mod's changes

bpm-component-plugin-rebuild is a cursor rule published in the GitHub repository xc404/kiwi (7 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 592 tokens. 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-31.