Index of every page on this site: llms.txt
All skills
qiao-925 avatar

/scenario-mapping-log

@50a1ee4
Run it yourself

场景映射日志默认规则,用一张简洁的场景映射表提升 skill 调用的可解释性。它不强控路由,只维护场景预期,并在运行中比较 expected、actual、missing 与 unexpected,帮助定位是场景判断、skill 描述还是映射表需要优化。适用于 skill 体系设计、调试、重构、命中偏差排查,以及用户显式要求做场景映射校验的场景。关键词:scenario mapping、mapping log、场景映射、场景校验、命中校验、skill coverage、explainability、expected、actual、missing、unexpected。

Use this Skill: https://skilld.dev/gh/qiao-925/qiao-skills/scenario-mapping-log

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referenceslog-comparison-format.md

≈624 tokens on demand. Your agent reads this file only when SKILL.md points to it.

命中比对格式

这个文档只回答一件事:如何把场景映射里的 expected,和运行中的 actual 做最小比对。

1. 最小字段

expected

  • 来源:references/scenario-map.md
  • 含义:当前主场景理论上应命中的 skill
  • 展示方式:按 Core / Conditional 展开

actual

  • 来源:运行时真实命中记录;来源顺序见 actual-hit-sources.md
  • 含义:这次任务里实际上命中的 skill
  • 注意:如果没有可靠来源,写 unavailable

matched

  • 定义:expected 与 actual 的重合部分
  • 含义:这次命中与预期一致的部分

missing

  • 定义:理论上应命中,但 actual 中没有出现的 skill
  • 含义:优先排查的偏差信号

unexpected

  • 定义:actual 中出现,但不在当前场景预期内的 skill
  • 含义:说明主场景判断、skill 触发边界或映射设计可能需要回看

2. 推荐格式

Primary Scenario:
- documentation/readme

Expected:
- Core: technical-readme-structure
- Conditional: value-dense-delivery, readability-first-writing

Actual:
- technical-readme-structure
- readability-first-writing

Matched:
- technical-readme-structure
- readability-first-writing

Missing:
- value-dense-delivery

Unexpected:
- none

若需要把比对结果留档,允许附加两项可选字段:

Actual Source:
- runtime-log / checkpoint / task-log / manual-review

Reliability:
- high / medium / low

如果没有可靠运行记录:

Primary Scenario:
- none

Expected:
- none

Actual:
- unavailable

Notes:
- 当前没有稳定主场景或可靠命中记录,暂不做映射比对

3. 如何解读偏差

missing 很多

优先回看:

  • 主场景是否判断错了
  • skill 的触发语义是否写偏了
  • 映射表期待是否过高
  • 当前是否存在合理直连

unexpected 很多

优先回看:

  • 当前主场景是否选偏了
  • 某些 skill 是否触发范围过宽
  • 某些 skill 是否应该被吸纳进当前场景的 Conditional

4. 使用边界

  • 这是解释与优化格式,不是底层 telemetry 协议。
  • 它只负责比对命中预期,不负责证明结果质量。
  • 如果后续需要评估“结果虽然没命中但实际上已经做到了”,那属于第二层诊断,不放进默认格式。
  • 如果没有底层 telemetry,也不要求为此发明复杂协议;用 actual-hit-sources.md 中的最小日志即可。

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts8mo3 checks · Risk SAFE
  • Gen Agent Trust Hub8mo

    The skill provides a declarative framework for logging and auditing AI agent behavior by comparing expected skill hits with actual runtime telemetry. It consists entirely of documentation and reference data with no executable code, network operations, or unauthorized file access detected.

  • Socket8mo

    No alerts

  • Snyk8mo

    Risk: LOW · No issues

Signed by skilld at 50a1ee4. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 8 months ago
Other metadata
metadata
{
  "type": "declarative",
  "category": "scenario-governance",
  "role": "default-rule"
}

README badge

README badge for qiao-925/qiao-skills/scenario-mapping-log