NotInvalid
OthersNotInvalid is an Agent Skill for general use published in the flutter/skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
A deliberately broken fixture used by example/README.md to show what each rule's error output looks like.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/flutter/skills/blob/HEAD/tool/dart_skills_lint/example/invalid/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/notinvalid, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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/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.