用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/flutter/skills --skill notinvalid命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Mandatory checks to run before completing any task that touches md files or dart code in this repository.
Instructions for adding a new validation rule and CLI flag to dart_skills_lint. Use this skill when asked to create a new rule that validates aspects of skills (like frontmatter metadata).
How to integrate, update, and configure the dart_skills_lint validation tool within a repository. Make sure to use this skill whenever the user asks to update dart_skills_lint, configure skills validation tests, fix skills linter dependency drifts, verify repository state before editing, optimize lint rules execution, or draft pull request submission commands.
基于 SOC 职业分类
| name | NotInvalid |
| 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 |
| metadata | {"internal":true} |
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 frontmatter name:
is NotInvalid, which is not lowercase and does not match the
parent directory invalid.disallowed-field (disabled by default; enable via
--disallowed-field or 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-paths or 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/invalid
…and again with every rule turned up to error:
dart run dart_skills_lint --skill ./example/invalid \
--disallowed-field --check-absolute-paths
Expected: non-zero exit, error messages naming each rule that is enabled.