360 Secure SkillHub
360 安全技能中心

principle-encode-lessons-in-structure

当同一指令第二次出现或发现重复纠正时,将规则编码为 lint、元数据标志、运行时检查或脚本;若规则依赖判断而无法结构化,则提高说明的显著度并补充失败示例。

分类:知识
backnotprop
热度 69.42
最近更新 2026-11-24 05:23:50

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add backnotprop/pstack/principle-encode-lessons-in-structure
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
principle-encode-lessons-in-structure
description
Apply when you catch yourself writing the same instruction a second time, or notice a recurring correction. Encode the rule as a lint, metadata flag, runtime check, or script instead of more text.
disable-model-invocation
true

Encode Lessons in Structure

If the lesson needs judgment and cannot be encoded, make the instruction more prominent and add an example of the failure mode.

Corollary: If the fix is structural, only use the structural fix. The instruction is the symptom.