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/movebrickschi/harness-engineering-mcpWrote 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/movebrickschi/harness-engineering-mcp/04-table-common-fields)<a href="https://agentmods.dev/rules/movebrickschi/harness-engineering-mcp/04-table-common-fields"><img src="https://agentmods.dev/badge/rules/movebrickschi/harness-engineering-mcp/04-table-common-fields/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/movebrickschi/harness-engineering-mcp/04-table-common-fields"><img src="https://agentmods.dev/badge/rules/movebrickschi/harness-engineering-mcp/04-table-common-fields.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.00962 | $0.00962 |
| Opus 5.5 | $0.00385 | $0.00385 |
| Sonnet 5.5 | $0.00192 | $0.00192 |
| Haiku 4.5 | $0.00096 | $0.00096 |
Grade A, and why
04-table-common-fields 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 — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
数据库表公共字段规范
所有数据库表(系统表 + 业务表)必须包含以下 7 个公共字段。
字段顺序
id(主键)tenant_id、oem_id(归属字段)- 业务字段
deleted、created_by、updated_by、created_at、updated_at(审计字段)PRIMARY KEY、索引
SQL DDL 模板
CREATE TABLE IF NOT EXISTS xxx (
id BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键',
tenant_id BIGINT NOT NULL COMMENT '租户ID',
oem_id BIGINT DEFAULT NULL COMMENT 'OEM厂商ID',
-- ... 业务字段 ...
deleted TINYINT NOT NULL DEFAULT 0 COMMENT '逻辑删除 0-未删除 1-已删除',
created_by BIGINT DEFAULT NULL COMMENT '创建人userId',
updated_by BIGINT DEFAULT NULL COMMENT '更新人userId',
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (id),
INDEX idx_tenant_id (tenant_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='表注释';
Java Entity 模板
@Data
@TableName("xxx")
public class Xxx {
@TableId(type = IdType.AUTO)
private Long id;
private Long tenantId;
private Long oemId;
// ... 业务字段 ...
@TableLogic
private Integer deleted;
@TableField(fill = FieldFill.INSERT)
private Long createBy;
@TableField(fill = FieldFill.INSERT_UPDATE)
private Long updateBy;
private LocalDateTime createdAt;
private LocalDateTime updatedAt;
}
自动填充机制
tenant_id:由TenantLineInnerInterceptor拦截器自动注入,无需手动赋值created_by:通过MetaObjectHandler在 INSERT 时自动填充当前登录用户 userIdupdated_by:通过MetaObjectHandler在 INSERT 和 UPDATE 时自动填充当前登录用户 userIdcreated_at/updated_at:由 MySQLDEFAULT CURRENT_TIMESTAMP/ON UPDATE CURRENT_TIMESTAMP自动维护,无需代码赋值
数据库操作前置校验(MCP)
涉及数据库表结构变更时(新增表、修改表、新增字段等),如果当前环境有可用的数据库 MCP 工具(如 user-mysql),必须先查询数据库现状再给出方案:
新增表
- 使用
list_tables查询当前所有表,确认目标表名不存在 - 如果表已存在,使用
describe_table查看现有表结构,改为给出ALTER TABLE方案而非CREATE TABLE
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 · 102 lines · 962 tokens per session scan A 46e16624c164
04-table-common-fields is a cursor rule published in the GitHub repository movebrickschi/harness-engineering-mcp (2 stars, last pushed 4mo ago), licensed MIT. It adds 962 tokens to every session, about $0.0038 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
as-contract-cast-smell
// ❌ WRONG — bypasses the family ContractSerializer seam const contract = JSON.parse(raw) as Contract; const contract = JSON.parse(raw) as Contract .
no-backward-compatibility
Do not add backward-compatibility shims or migration scaffolding.
postgresql
This guide defines the definitive best practices for writing clean, performant, and maintainable PostgreSQL SQL, focusing on modern conventions and avoiding common pitfalls.
ehs-ims-conventions
EHS IMS app — RBAC, data layer, tRPC, migrations, AI boundaries.
sync-timedb-archive-janitor-contract
Day-close / cold-path worker contracts for synctimedb (A invariants; B tick coordinator retired).
schema
Scalable and secure schema design patterns for relational databases, NoSQL, and APIs. / TR: İlişkisel veri tabanları, NoSQL ve API'ler için ölçeklenebilir ve güvenli şema tasarım kalıpları.