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.
npx agentmods add rules/xc404/kiwi/bpm-component-plugin-rebuildgit clone --depth 1 https://github.com/xc404/kiwiWhat 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.
| Model | Per session | Once 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 |
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.
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_*(可选集成)组件。
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.
- 2d ago First seen · 47 lines · 0 tokens per session scan A afcfc2072730
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.
Other cursor rules, from other repositories
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.
family-instance-domain-actions
Family instance domain action implementation patterns.