360 Secure SkillHub
360 安全技能中心

no-prose

审计仓库中面向智能体的说明、规则与技能文档,删除重复代码或已有检查的陈述,将可机械执行的规则转为类型、lint 或测试,并移除被检查覆盖的文本;对留存判断性文字用预设规则运行多条件盲评,比较评分、探针结果和字节数后裁剪未达标内容。若无留存文字则提前结束,并引用外部评测手册与编码经验技能,运行代码、测试和 Git 历史检查。

分类:开发
backnotprop
热度 32.20
最近更新 2026-12-05 00:28:03

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add backnotprop/pstack/no-prose
兼容性
通用兼容
联网要求
联网要求未确认
数据出网
数据出网未确认
Metadata
name
no-prose
description
Audit unstructured agent-facing prose, replace enforceable rules with code, types, lints, and tests, and prune remaining text by blinded ablation. Use for /no-prose.
disable-model-invocation
true

No prose

Audit unstructured agent-facing text in scope, replace enforceable rules with executable code, types, lints, or tests, and keep only prose that proves its value under blinded ablation.

Scope defaults to the repository root, or to the directories and files the caller names.

1. Inventory and classify

List every unstructured agent-facing file in scope, including AGENTS.md, CLAUDE.md, your harness's rules and skills folders (.cursor/rules/** and .cursor/skills/** in Cursor, .claude/rules/** and .claude/skills/** in Claude Code, .agents/skills/** in Codex, OpenCode, and others), and architecture or spec docs. For multi-file audits, record each file's byte size and total bytes before and after edits. Classify each individual claim, not just whole files, into restates code or types, mechanically enforceable, or irreducible judgment call.

2. Enforce first and delete dead prose

Apply the principle-encode-lessons-in-structure skill before ablating any prose.

  1. Delete claims that restate code, types, package scripts, or rules an existing linter or compiler check already enforces.
  2. Convert remaining mechanically enforceable claims in scope into types, typed APIs, lints whose error messages name the replacement, or tests. Verify each new check fails on a real violation, then delete the replaced prose completely. Never leave duplicate prose beside the check.
  3. Never delete an operational, runtime, or security rule based on a speculative sketch for code you did not inspect or edit. Keep operational, risk, and policy guardrails until real enforcing code exists and passes verification.
  4. Shrink always-on root files such as AGENTS.md and CLAUDE.md to concise survivors that checks cannot catch. Keep task-specific judgment calls in on-demand skills or path-scoped rules instead of moving them into always-on root files.

If zero prose survives Step 2, or if you are reviewing a single short file whose only survivors are concise unencodable operational or policy guardrails, stop here and reply concisely without adding an ablation section or byte-count ceremony. When the caller only asked for an audit and pruned files across multiple docs, close with a brief next-step pointer to Step 3 for the surviving prose instead of padding the reply with an unrun plan.

3. Run a blinded ablation eval on surviving prose

Follow the Eval playbook of the poteto-mode skill for blinding and grading hygiene whenever surviving prose remains to justify.

  1. Pick 1 or 2 representative real tasks from the repository, each with an objective rubric and automated stress or probe tests.
  2. Pre-register the prune rule before running any arm. For example, drop the larger text set unless its median beats the smaller set by at least 2 points with no probe regressions.
  3. Run 3 fresh isolated replicates per condition on clean commits that differ only in the text under test:
    • Condition A has the full current instructions and skills.
    • Condition B has domain-only instructions.
    • Condition C has minimal root instructions only, with zero skills and zero extra docs.
  4. Audit every run's raw transcript for actual file opens and leaks. Distinguish files the agent actually opened from files merely sitting in the system prompt, and flag any cross-condition read of git history, sibling branches, or other runs.
  5. Grade blinded diffs and built artifacts only. Strip branch names, commit SHAs, and agent notes before grading. Score with automated probe tests plus a separate judge model from another vendor, counterbalancing order for pairwise comparisons.

4. Report, prune by the rule, and encode failures

  1. Report the scorecard across Conditions A, B, and C with medians, replicate spreads, probe pass rates, and byte sizes before and after.
  2. List every doc and skill that was never opened, every leak or blinding defect found in transcripts or artifacts, and every case where extra text helped or hurt.
  3. Delete every doc, rule, or skill that fails the pre-registered prune rule. Never rationalize keeping prose that missed the bar.
  4. Convert every recurring failure mode seen across replicates into a test, type, or lint instead of adding new prose.