okf-principles

重构代理指令工件(例如 Claude 代理技能、规则文件、CLAUDE.md、操作手册),应用源自开放知识格式的五项结构原则:限定问题加载的最坏情况上下文(关注长尾与答案准确性)、确保重写后交叉引用仍然有效。使用场景包括拆分单一技能或引用文件、减少每个问题加载的上下文、添加索引层、确保重写后交叉引用有效、或审计技能结构以提升效率;当用户提及渐进式披露、节省令牌的技能或重构代理指令时也应使用此技能。

仓库最近推送
GitHub Stars
193
Forks
17
Issues / PRs
11

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "okf-principles":https://skillpi.com/zh/skills/deepskill-b10b7447a8a5a56f0b526eb50d770d93030792476460f6ec66e99af733f344dd。安装前核对上游来源和版本:https://github.com/serradura/okf。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

重构代理指令工件(例如 Claude 代理技能、规则文件、CLAUDE.md、操作手册),应用源自开放知识格式的五项结构原则:限定问题加载的最坏情况上下文(关注长尾与答案准确性)、确保重写后交叉引用仍然有效。使用场景包括拆分单一技能或引用文件、减少每个问题加载的上下文、添加索引层、确保重写后交叉引用有效、或审计技能结构以提升效率;当用户提及渐进式披露、节省令牌的技能或重构代理指令时也应使用此技能。

0 下载

介绍来源: third_party · serradura · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: okf-principles
description: Restructure agent instruction artifacts (Claude Agent Skills, rules files, CLAUDE.md, playbooks) by applying five structural principles derived from the Open Knowledge Format - bounding the worst-case context a question loads (the mean may rise; the win is the tail and answer accuracy) and making cross-references survive rewrites. Use this skill whenever the user wants to split a monolithic skill or reference file, reduce context loaded per question, add an index layer, make cross-references survive rewrites, or audit a skill's structure for efficiency. Also use it when the user mentions progressive disclosure, token-efficient skills, or restructuring instructions for agents.

okf-principles

Restructures instruction artifacts so an agent loads only what a question needs. The measured payoff is the tail, not the average: a split bounds the worst-case context per question and removes the cheap confident wrong answers blind scrolling produces - mean bytes may rise slightly, and that is not a failure. This file is the index: read the one principle file the task calls for, not all five.

The five principles

  • Index first - the reader decides what to load, so structure must be inspectable before it is consumed. Read when splitting a monolith, writing an index, or indexing a vendored or generated file you cannot edit.
  • Keyed identity - references are keyed, never positional, because agents rewrite. Read when adding rule IDs or fixing cross-references before a file move.
  • Permissive reading - partial structure must still work. Read when writing reader-side instructions or migrating incrementally.
  • No tooling required - plain text that survives being read as prose. Read when tempted to add a format, schema, or parser.
  • Kind over location - a file declares what it is; folders are free to change. Read when organizing directories or labeling index entries.

Procedure for restructuring an existing skill

  1. Inventory: list every file, its line count, and what questions it answers. A file answering unrelated questions is a split candidate. Mark any file that is vendored, generated, or third-party: those are never split - they get an index beside them instead (see rule ss-index-beside-foreign).
  2. Split along question boundaries, not size. Each resulting file should answer one family of questions (per verb, per workflow, per format).
  3. Write the index per index-first. Every entry needs a description an agent can route on, and coverage must match the index's claim - especially for an index promoted from inside a file, which inherits its old host's narrower scope silently (rule ss-coverage-matches-claim).
  4. Key every rule worth citing per keyed-identity, then repoint existing cross-references at keys instead of paths and section names.
  5. Add reader guidance per permissive-reading so a half migrated state stays usable.
  6. Verify against the anti-goal with a fixed question set, judging the worst question rather than the mean (rule ss-measure-worst-case): one that loads more files or bytes than before names the boundary to merge back. Where a topic moved between files, leave a pointer at the old seam (rule ss-seam-pointers).

Anti-goals

Do not port machine-oriented metadata (trust tiers, provenance chains, attestation, changelogs) into a skill. Those solve multi-agent corpus problems; a skill has one author and lives in version control. Do not add frontmatter keys beyond what the host harness defines unless a machine must read them; prefer expressing structure in the index body, which no harness parses. <!-- rule: ss-no-ceremony -->

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值80/100

亮点

  • 提供五项结构化原则,有效解决代理技能重构中的上下文加载和交叉引用问题
  • 明确针对长尾场景优化,提升答案准确性而非仅关注平均性能
触发精准85/100

亮点

  • 触发场景描述详尽,覆盖拆分技能、减少上下文、添加索引、渐进式披露等多种使用情形
  • 边界清晰,不易与其他技能混淆
结构规范70/100

待提升项

  • 缺少 When to Use 章节 原报告严重程度:轻微

    文档未设置显式的 When to Use 章节,虽然 description 中已有说明,但结构上建议单独列出

    改进建议:在 frontmatter 后添加 When to Use 章节,明确列出适用场景

  • 缺少端到端示例 原报告严重程度:轻微

    文档提供了原则和流程,但缺少一个完整的端到端重构示例

    改进建议:添加一个完整的重构示例,展示从原始技能到重构后结构的完整过程

  • 文档过长 原报告严重程度:轻微

    文档内容约450行,超过建议的500行限制,影响可读性

    改进建议:考虑将部分详细说明移至引用文件中,保持主文档简洁

亮点

  • 结构层次清晰,包含原则、流程、反目标三个主要部分
  • frontmatter 完整,包含 name 和 description
执行可靠65/100

待提升项

  • 工具来源不明 原报告严重程度:重大

    文档未明确说明执行重构所需的工具或环境依赖

    改进建议:明确说明是否需要特定工具或环境,或确认是否纯手动操作

  • 异常处理覆盖不足 原报告严重程度:重大

    重构流程未覆盖文件不存在、权限问题、格式错误等常见异常情况

    改进建议:在重构流程中添加异常处理说明,特别是针对文件操作可能遇到的问题

亮点

  • 重构流程步骤清晰,包含库存、拆分、索引、键入、指导、验证六个步骤
  • 提供了明确的反目标,帮助用户避免常见错误
证据可验 (前四项均值)75/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。