360 Secure SkillHub
360 安全技能中心

principle-encode-lessons-in-structure

该 Skill 是一条原则:当同一指令反复出现或收到重复纠正时,优先把规则编码为 lint、元数据标记、运行时检查或脚本;若无法结构化,则强化说明并补充失败示例。

分类:效率
michael-denyer
热度 0.00
最近更新 2026-11-25 17:32:57

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add michael-denyer/pstack-claude/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.
user-invocable
false

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.