strict-ok
Perform strict-mode conformance checks against a well-formed skill by asserting description length, anti-triggers, action-verb opener, body length, When-NOT-to-Use section, and H1 title, then roll the findings into a single ValidationResult for downstream reporting. Use when asked to verify strict-mode parity, check authoring conventions, or gate a skill before publish. Not for tolerant-mode validation (use validateSkill), not for MCP integration, not for runtime execution (out of scope for this package).
- License 许可
- MIT
- 最近更新
- 2026-07-08
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- strict-ok
- description
- Perform strict-mode conformance checks against a well-formed skill by asserting description length, anti-triggers, action-verb opener, body length, When-NOT-to-Use section, and H1 title, then roll the findings into a single ValidationResult for downstream reporting. Use when asked to verify strict-mode parity, check authoring conventions, or gate a skill before publish. Not for tolerant-mode validation (use validateSkill), not for MCP integration, not for runtime execution (out of scope for this package).
03 SKILL.md 正文
Strict OK Fixture
This fixture passes every strict-mode rule. It exists so tests can assert the happy path of the strict validator without false-negative drift.
Purpose
Exercise the passing branch of every strict-mode check.
When to Use
- happy-path tests for strict mode
- regression guards against accidental rule tightening
- documentation examples of what a good skill looks like
When NOT to Use
- exercising tolerant-mode failure paths — use the malformed fixtures
- exercising runtime failures — use the load.test fixtures
Workflow
- Parse the fixture.
- Load via loadSkill.
- Pass it to the strict validator and assert valid is true.
04 同仓库更多 Skills
valid-skill
Perform a representative operation on inputs, produce structured outputs, and serve as a fixture for parse and validate tests. Covers a full range of tolerant-mode checks. Use when asked to test validation against a well-formed skill, exercise the loader, or verify registry round-tripping. Not for strict-mode authoring-convention checks (use strict-mode-examples fixtures instead).
strict-weak-verb
This skill starts with a pronoun instead of an action verb, which strict-mode should flag. Despite the weak opener, the rest of the description still has enough content to cross the length floor and includes a Not for clause so only the opening-word check should fail in isolation. This padding keeps us comfortably in the target length band for the description.
strict-short-desc
Perform a thing. Not for other things.
strict-no-antitrigger
Perform strict-mode checks against a skill that has plenty of content but no anti-trigger clause. This description is deliberately padded to cross the 300-character lower bound while leaving the Not-for segment absent so the validator focuses solely on the missing anti-trigger rule. It includes use-when triggers and enough substance to look convincing at first glance.
strict-missing-section
Perform strict-mode checks on a skill whose body omits the When NOT to Use section. Everything else about the body is fine, the description is long enough, opens with an action verb, and includes a Not for anti-trigger. The one failure this fixture isolates is the missing When-NOT-to-Use heading which is the single most commonly skipped authoring convention.
no-fence
暂无简介