360 Secure SkillHub
360 安全技能中心

Edit Skill

用于审查、编辑、精简或去重已有的 agent skill 文件:先区分仅评审与直接改仓库两种模式,保留安全边界、路径、命令和输出契约,删除重复、过时与含糊规则,并检查 frontmatter 与目标宿主是否兼容。仅评审时输出保留/删减/收紧版本与风险;改仓库时直接修改文件并报告变更、验证与剩余风险。

uncmatteth
uncmatteth
热度 16.02
最近更新 2026-06-25 00:43:22
分类:开发依赖:读写文件 / 内部调用大模型应用场景:校对润色 / 摘要总结 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add edit-skill
Metadata
name
edit-skill
description
Use when asked to review, edit, tighten, shorten, deduplicate, clean up, or remove slop from an existing agent skill while preserving behavior. Use for skill files that need clearer triggering, shorter instructions, stale reference cleanup, host-compatible frontmatter, or fixes for vague, repetitive, outdated, unsupported, or hard-to-apply rules.

Edit Skill

Use this for existing skill files. The job is to improve agent behavior, not to make the prose sound nicer.

First classify the request:

  • Review-only: explain what should change; do not patch files.
  • Edit-in-repo: patch the skill directly and verify it.
  • Unclear: default to review-only when the user asks "can this be better?" or "what do you think?"

Rules

  • Preserve the skill's real job, user voice, trigger intent, and hard safety boundaries.
  • Preserve paths, commands, output contracts, examples that teach subtle judgment, and repeated-failure fixes.
  • Keep rules that are observable, testable, or tied to repeated failures.
  • Cut duplicate instructions, stale tool references, unsupported metadata, vague quality claims, decorative prose, and filler.
  • Replace abstract rules with concrete agent behavior, commands, or output shapes.
  • Keep frontmatter compatible with the target host. For Codex-style skills, put trigger phrases in description; do not add unsupported top-level keys such as triggers.
  • Move rare detail into a referenced file only when that host supports bundled references.
  • Do not add new capabilities unless the user explicitly asks.
  • Do not rewrite deliberate weirdness into generic assistant prose.

Pass Order

  1. Identify what the skill is for and when it should trigger.
  2. Mark must-keep rules: safety, scope, file paths, output contracts, and known failure fixes.
  3. Check whether frontmatter is routing-friendly and compatible with the target host.
  4. Remove repeated rules that say the same thing in different words.
  5. Replace vague rules with concrete behavior.
  6. Verify referenced files, scripts, paths, commands, and examples still exist when editing in repo.
  7. Return a short change summary, verification performed, and remaining risk.

Output

For a review-only request, return:

  • Keep: rules that must stay.
  • Cut: duplicate, stale, or vague rules to remove.
  • Tightened version: the edited skill text, or Patch: when a diff is clearer.
  • Risk: what behavior might change.

For an edit-in-repo request, patch the skill file directly, then report the changed file, verification performed, and remaining risk.

Credit

Packaged from a local skill-editing workflow, with public inspiration credited to @petergyang per the original request.

Anti-Patterns

  • Do not make every skill tiny if it loses necessary behavior.
  • Do not remove examples that teach a subtle judgment.
  • Do not turn a voice-specific skill into generic corporate copy.
  • Do not keep a rule just because it sounds important.
  • Do not preserve unsupported metadata just because it might help routing.
  • Do not add memory, evals, scripts, or references unless they will actually be read or run.