用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/google/skills_lint.dart --skill notinvalid命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
How to roll, update, and integrate the skills_lint dependency into repositories (such as flutter/flutter). Use this skill when tasked with bumping skills_lint pinned commit refs in pubspec.yaml, configuring downstream test harnesses, managing package hashes, and generating submission pull requests. Do NOT use this skill for day-to-day skill validation or fixing skill markdown errors (use dart-skills-lint-validation instead).
Use this skill when you need to set up validation for AI agent skills in a Dart project for the first time. Adds the linter as a dev_dependency, creates a configuration file, and generates a baseline for legacy repos.
Use this skill when you need to validate AI agent skills with skills_lint — running the linter, interpreting failures, fixing violations, and authoring custom rules.
正在显示 SKILL.md
| 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 skills_lint --skill ./example/skills/invalid
…and again with every rule turned up to error:
dart run skills_lint --skill ./example/skills/invalid \
--disallowed-field --check-absolute-paths
Expected: non-zero exit, error messages naming each rule that is enabled.