en un clic
lint-agents
// Validate agent definition files for correct YAML frontmatter syntax. Use when creating, editing, or reviewing agent .md files to catch common errors before they cause runtime failures.
// Validate agent definition files for correct YAML frontmatter syntax. Use when creating, editing, or reviewing agent .md files to catch common errors before they cause runtime failures.
Query official Microsoft documentation for Azure, .NET, Microsoft 365, and all Microsoft technologies. Use for concepts, tutorials, code samples, limits, and best practices from learn.microsoft.com.
Run interactive CLIs in persistent tmux sessions by sending keystrokes and reading pane output. Use when Claude Code, Codex, GitHub Copilot CLI, or any TUI/REPL must keep state across commands.
Orient in any codebase by analyzing structure, documentation, key files, and current state. Use when starting work on an unfamiliar project, switching codebases, or needing a quick overview.
Manage Linear issues, teams, and projects via CLI including issue tracking, sprint workflows, branch creation, and PR generation. Use when working with Linear, tracking issues, starting work on tasks, creating PRs from Linear issues, or managing teams and projects.
Manage GitHub via CLI including pull requests, issues, workflows, actions, releases, and repositories. Use when working with GitHub, gh commands, GitHub Actions CI/CD, PRs, issues, releases, or repository management.
Manage Azure DevOps via CLI including repos, pull requests, pipelines, builds, work items, and boards. Use when working with Azure DevOps, az devops commands, CI/CD pipelines, PRs, or Azure Boards work items.
| name | lint-agents |
| description | Validate agent definition files for correct YAML frontmatter syntax. Use when creating, editing, or reviewing agent .md files to catch common errors before they cause runtime failures. |
Validate all agent definition files in .github/agents/ (and .claude/agents/ if not symlinked).
Find all agent files:
Glob: .github/agents/**/*.md
Glob: .claude/agents/**/*.md
For each agent file, read it and validate the YAML frontmatter against these rules:
name — must be present, lowercase with hyphens onlydescription — must be present, non-empty stringtools — if present, must be a YAML array (each item on its own - item line)disallowedTools — if present, must be a YAML arrayskills — if present, must be a YAML arrayCommon wrong pattern to detect:
tools: Read, Grep, Glob # WRONG - comma-separated string
disallowedTools: Write, Edit # WRONG - comma-separated string
Correct pattern:
tools: # CORRECT - YAML array
- Read
- Grep
- Glob
model — if present, must be one of: sonnet, opus, haiku, inheritpermissionMode — if present, must be one of: default, acceptEdits, dontAsk, bypassPermissions, plan--- (the system prompt)Report results per file:
If $ARGUMENTS contains --fix, automatically fix any fixable errors (like converting comma-separated tools to YAML arrays) using the Edit tool.
Scan reference and documentation files for incorrect agent examples:
Grep pattern: ^tools: \w.*, \w
Grep pattern: ^disallowedTools: \w.*, \w
Report any doc files that contain wrong comma-separated syntax in code examples (exclude lines explicitly labeled as "Wrong" examples).