Agent Skills
› flutter/agent-plugins
› NotInvalid
NotInvalid
GitHub故意构造的无效 Skill,用于演示 CLI 诊断输出。通过触发名称、字段和路径三类规则错误,验证 linting 工具的报错机制及不同配置下的行为表现。
Trigger Scenarios
需要查看或验证 CLI linting 工具的报错输出
测试 Skill 校验规则在不同配置下的生效情况
Install
npx skills add flutter/agent-plugins --skill NotInvalid -g -y
SKILL.md
Frontmatter
{
"name": "NotInvalid",
"metadata": {
"internal": true
},
"description": "A deliberately broken fixture used by example\/README.md to show what each rule's error output looks like.",
"secret_field": "not allowed by the spec"
}
Invalid example skill
This skill deliberately trips three rules so the CLI's diagnostic output can be inspected end-to-end. One fires under defaults; two need to be enabled to surface as errors (the spec ships them at lower severities).
invalid-skill-name(error by default) — the frontmattername:isNotInvalid, which is not lowercase and does not match the parent directoryinvalid.disallowed-field(disabled by default; enable via--disallowed-fieldor YAML config) —secret_field:is not in the spec's allowed field list.check-absolute-paths(warning by default; escalate to error via--check-absolute-pathsor YAML config) — the link below uses an absolute filesystem path, which is not portable across machines.
The broken link: absolute link
Run it with default rules:
dart run dart_skills_lint --skill ./example/skills/invalid
…and again with every rule turned up to error:
dart run dart_skills_lint --skill ./example/skills/invalid \
--disallowed-field --check-absolute-paths
Expected: non-zero exit, error messages naming each rule that is enabled.
Version History
- c3c71cf Current 2026-08-20 07:12


