Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/arraydude/agent-skills/validate-prgit clone --depth 1 https://github.com/arraydude/agent-skillsWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00019 | $0.00909 |
| Opus 5 | $0.00010 | $0.00454 |
| Sonnet 5 | $0.00004 | $0.00182 |
| Haiku 4.5 | $0.00002 | $0.00091 |
Grade A, and why
validate-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Goal: Validate AI PR comments on the current branch.
PR URL: $ARGUMENTS
Prerequisites
- Check if GH CLI is installed:
- Run
which ghto verify the GitHub CLI is available - If not installed, stop and ask the user to install it:
- macOS:
brew install gh - Then authenticate:
gh auth login
- macOS:
- Run
Input Validation
- Validate PR argument:
- If
$ARGUMENTSis empty or missing, display this error and stop:Error: Please provide a PR number or URL. Usage: /validate-pr <PR_NUMBER_OR_URL> Examples: /validate-pr 123 /validate-pr https://github.com/owner/repo/pull/123 - Accept either:
- PR number (e.g.,
123) - Full PR URL (e.g.,
https://github.com/owner/repo/pull/123)
- PR number (e.g.,
- Extract the PR number from the URL if a full URL is provided
- If
Instructions
-
Fetch PR information using GH CLI:
- Extract the PR number from the provided URL
- Run
gh pr view <PR_NUMBER> --json comments,reviews,body,title,filesto get all PR data - List all comments and review comments on the PR
-
Think critically about each comment:
- AI-generated comments may contain hallucinations or incorrect assumptions
- For each comment, verify:
- Is the referenced code/file actually present in the PR diff?
- Is the assumption or concern actually valid?
- Does the suggested fix make sense in context?
-
Cross-reference with actual code:
- Use
gh pr diff <PR_NUMBER>to see the actual changes - Read the relevant files to understand the full context
- Check if the AI comment misunderstood the code intent
- Use
-
Evaluate if issues are worth addressing:
- Even if an assumption is technically true, assess:
- Is it a real problem or a theoretical edge case?
- Does fixing it add value or just noise?
- Is it aligned with project patterns and conventions?
- Even if an assumption is technically true, assess:
-
Double-check for missed comments:
- PRs often have many comments - make sure you reviewed ALL of them
- Check both general PR comments and inline review comments
- Use
gh api repos/<owner>/<repo>/pulls/<pr_number>/commentsif needed for complete coverage
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 101 lines · 19 tokens per session scan A a048b2ef7db7
validate-pr is a command published in the GitHub repository arraydude/agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 909 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.