reverse-skills-max: initial public release (restored, redacted, hardened)

This commit is contained in:
baradok609hecl1pq6qi
2026-10-20 02:17:15 +03:00
commit da24c2bd20
2227 changed files with 443931 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
---
name: re-hidden
description: 夹具:位于隐藏目录下,发现阶段就应跳过。Hidden entry, skipped by discovery.
type: atomic
---
## 什么时候用
夹具:DSH 只扫技能根的一级目录,而本目录以点开头,属于应跳过的项。

View File

@@ -0,0 +1 @@
夹具:技能根一级的非 .md 文件。DSH 不认,检查器应把它计入 skipped 而不是技能。

View File

@@ -0,0 +1,9 @@
---
name: re-Bad_Name
description: 夹具:名字不符合 kebab-case 文法。Invalid kebab-case name.
type: atomic
---
## 什么时候用
下划线与大写都不在 DSH 的 `^[a-z0-9]+(?:-[a-z0-9]+)*$` 之内。

View File

@@ -0,0 +1,10 @@
---
name: re-bad-bool
description: 夹具:布尔字段写了非法值。Invalid boolean spelling.
type: atomic
user-invocable: maybe
---
## 什么时候用
DSH 的布尔文法只接受 true/false、yes/no、on/off、1/0,`maybe` 会让该技能被丢弃。

View File

@@ -0,0 +1,5 @@
---
name: re-empty-body
description: 夹具:闭合分界行之后没有正文。Empty body after the closing delimiter.
type: atomic
---

View File

@@ -0,0 +1,6 @@
---
---
## 什么时候用
夹具:两条分界行之间没有任何内容。此时 YAML 解析结果是 null 而不是映射,DSH 不认。

View File

@@ -0,0 +1,12 @@
---
name: re-hyphen-keys
description: 夹具:带连字符的可选键。Hyphenated optional keys, valid for DSH.
type: atomic
disable-model-invocation: false
user-invocable: true
---
## 什么时候用
夹具:`disable-model-invocation` 与 `user-invocable` 是 DSH 的合法可选键(都是合法 YAML)。
仓库的 `lib/frontmatter.mjs` 键文法只认 `\w+`,会把它们判成游离行——本夹具就是那条误报的回归。

View File

@@ -0,0 +1,10 @@
---
name: re-legacy-key
description: 夹具:用了驼峰 legacy 键。Legacy camelCase invocation key.
type: atomic
disableModelInvocation: true
---
## 什么时候用
DSH 只认 `disable-model-invocation`,驼峰写法会让整个技能被丢弃。

View File

@@ -0,0 +1,9 @@
---
name: re-other
description: 夹具:name 与目录名不一致。Name does not match the directory.
type: atomic
---
## 什么时候用
目录是 `re-name-mismatch`,frontmatter 里写的是 `re-other`。

View File

@@ -0,0 +1,7 @@
---
name: re-no-close
description: 夹具:缺少闭合的分界行。Missing closing delimiter.
## 什么时候用
下面这段本该是正文,但因为没有闭合的 `---`,整个文件都不是合法技能。

View File

@@ -0,0 +1,7 @@
---
name: re-no-desc
---
## 什么时候用
夹具:只有 name,没有 description(DSH 要求 description 非空)。

View File

@@ -0,0 +1,3 @@
# 没有 frontmatter 的技能
夹具:首行不是裸 `---`,DSH 直接忽略该文件(记 warning,不报错)。

View File

@@ -0,0 +1,5 @@
# re-no-skill-md
夹具:目录存在但没有 SKILL.md(DSH 只认 `<name>/SKILL.md`,这个目录会被忽略)。
用 git 无法提交空目录,所以放这个说明文件占位。

View File

@@ -0,0 +1,8 @@
---
- 顶层是序列,不是映射
- top level is a sequence, not a mapping
---
## 什么时候用
夹具:frontmatter 顶层是列表。DSH 要求解析结果是映射,列表会被忽略。

View File

@@ -0,0 +1,9 @@
---
name: re-ok
description: 夹具:一切合法。Valid skill fixture, no rule may fire.
type: atomic
---
## 什么时候用
夹具:合法技能。检查器对它不应报任何错误或告警。

View File

@@ -0,0 +1,10 @@
---
name: re-tabs
description: 夹具:frontmatter 里出现 TAB 字符。TAB inside frontmatter.
type: atomic
这一行的缩进是 TAB,YAML 不允许用 TAB 做缩进
---
## 什么时候用
夹具:frontmatter 块内出现 TAB 即报 `tab-in-frontmatter`(DSH 的 YAML 解析器会拒绝这种缩进)。