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.
git clone --depth 1 https://github.com/xc404/kiwiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/xc404/kiwi/component-parameter-key-no-dot)<a href="https://agentmods.dev/rules/xc404/kiwi/component-parameter-key-no-dot"><img src="https://agentmods.dev/badge/rules/xc404/kiwi/component-parameter-key-no-dot/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/xc404/kiwi/component-parameter-key-no-dot"><img src="https://agentmods.dev/badge/rules/xc404/kiwi/component-parameter-key-no-dot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00803 | $0.00803 |
| Opus 5.5 | $0.00321 | $0.00321 |
| Sonnet 5.5 | $0.00161 | $0.00161 |
| Haiku 4.5 | $0.00080 | $0.00080 |
Grade A, and why
component-parameter-key-no-dot 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.
@ComponentParameter key 命名规则(禁止使用 ".")
在所有 @ComponentParameter 声明的 key 中,禁止使用 .(点号)。
所有用于流程变量读写的 key 必须是顶层扁平命名,使用下划线(_)替代点号。
背景
历史上为了表达“嵌套对象”的语义(如 mdoc.id、task.config_id),曾用点分路径
作为 @ComponentParameter#key,并通过 ExecutionUtils.getStringInputVariableAtPath
做 nested Map 解析。
这种写法带来若干问题:
- BPMN 引擎以及部分前端编辑器把
.当作分隔符 / 非法字符处理; - 与
execution.setVariable("foo.bar", ...)等顶层 API 行为不一致,容易引发歧义; - 上下游契约(HTTP JSON / BPMN 变量 / DB 字段)混用点号与下划线,难以做静态检查;
getStringInputVariableAtPath仅在调试期掩盖了契约不清的问题。
因此约定所有 @ComponentParameter 的 key 必须为扁平标识符。
命名约定
- 仅允许字符:
[a-zA-Z0-9_],禁止出现.。 - 将点号替换为下划线,例如:
mdoc.id→mdoc_idmdoc.dataId→mdoc_dataIdtask.id→task_idtask.config_id→task_config_id
- 字段语义按现有的 camelCase / snake_case 习惯保留即可,本规则只约束
.的去除。
代码侧配套
- 读取流程变量统一使用
ExecutionUtils.getStringInputVariable(execution, "xxx")等顶层 API,不再使用getStringInputVariableAtPath/getInputVariableAtPath这种 path 风格 API(除非有明确的嵌套对象解析需求,且已与上下游契约对齐)。 - 抛出的异常信息、Javadoc、
description文案中提到的 key 也必须与@ComponentParameter#key完全一致,避免出现mdoc.id/mdoc_id混用。
推荐示例
@ComponentDescription(
inputs = {
@ComponentParameter(
key = "mdoc_id",
name = "MDocInstance id",
required = true),
@ComponentParameter(
key = "mdoc_dataId",
name = "MDoc id",
required = true)
})
public class SomeActivity implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) {
String instanceId = ExecutionUtils.getStringInputVariable(execution, "mdoc_id")
.orElseThrow(() -> new IllegalArgumentException("流程变量 mdoc_id 不能为空"));
// ...
}
}
不推荐示例
// 禁止:key 含 "."
@ComponentParameter(key = "mdoc.id", name = "MDocInstance id", required = true)
// 禁止:读取时使用 path 风格 API
ExecutionUtils.getStringInputVariableAtPath(execution, "mdoc.id");
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.
- 1mo ago First seen · 80 lines · 803 tokens per session scan A 287bc0207fa5
component-parameter-key-no-dot is a cursor rule published in the GitHub repository xc404/kiwi (7 stars, last pushed 1mo ago), licensed MIT. It adds 803 tokens to every session, about $0.0032 per session on Opus 5.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-31.
Other cursor rules, from other repositories
java-import-fqn
A Java code rule that requires using imports and short class names when class names do not conflict. Fully qualified names remain allowed for documented exceptions such as naming conflicts and certain strings.
gradle
Enforce modern Gradle build practices for Java and Android projects, focusing on Kotlin DSL, modularity, version catalogs, and performance optimizations.
mockito
This guide provides definitive best practices for writing robust, maintainable, and readable unit tests using Mockito with JUnit 5, focusing on modern patterns and common pitfalls.
springboot-jpa-best-practices
A set of Chinese-language rules for structuring Java Spring Boot applications that use JPA, a library for database access.
graftcode-java
Mandatory Graftcode architecture rules for building Java backend services (plain Maven/Gradle modules exposed via Graftcode Gateway, not REST).
java-17-development-standards
Java-specific development standards following Effective Java, Google Java Style Guide, and modern Java 17 LTS best practices.