I4指令质量级别: 核心权重: 1修复方式: 手动修改
I4: 按可执行动作组织章节结构
为什么设立这条规则(一手实证依据)
Anthropic 系统提示词章节标题从第一阶段的「语气与风格(身份)」演进到第三阶段的「谨慎执行操作(动作)」,所有纯身份描述章节均被删除。
修复建议用「命令」「修改前检查」「安全边界」等动作导向标题替代「你的角色」「代码哲学」类标题。
反例(会触发 I4 告警)
# Anti-pattern triggering I4 (Action-oriented organization) # Rule or repository configuration violates this check without verification.
推荐写法(通过 I4 检查)
# Compliant harness passing I4 (Action-oriented organization) # Concrete, verifiable repository configuration backed by anthropic-265.
本地 CLI 或浏览器一键验证
npm install -g agentlint-ai && agentlint check --check I4