code-notify: Agent for Claude Code

.claude/agents/platform-validator.md

platform-validator is an agent for Claude Code from mylee04/code-notify. It costs 20 tokens per session (381 once invoked), scanned A, original, MIT.

A testing agent for shell-based notification tools across macOS, Windows, Linux, and WSL, the Windows environment that runs Linux tools.

In plain words
What is it for?
Use it to check shell and PowerShell syntax, operating-system detection, notification delivery, sounds, grouping, fallbacks, and exit codes.
Why use it?
It helps reveal platform-specific failures, missing notification tools, incorrect scripts, and cases where errors are not handled clearly.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is mylee04/code-notify's own configuration. It tells Claude Code how to work on code-notify itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything code-notify configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mylee04/code-notify. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mylee04/code-notify/main/.claude/agents/platform-validator.md
Clone the repo
git clone --depth 1 https://github.com/mylee04/code-notify

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for platform-validator

README.md
[![agentmods](https://agentmods.dev/badge/agents/mylee04/code-notify/platform-validator/github.svg)](https://agentmods.dev/agents/mylee04/code-notify/platform-validator)
Your own site
<a href="https://agentmods.dev/agents/mylee04/code-notify/platform-validator"><img src="https://agentmods.dev/badge/agents/mylee04/code-notify/platform-validator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for platform-validator

Your own site · 80×15
<a href="https://agentmods.dev/agents/mylee04/code-notify/platform-validator"><img src="https://agentmods.dev/badge/agents/mylee04/code-notify/platform-validator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 381 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00381
Opus 5.5 $0.00008 $0.00152
Sonnet 5.5 $0.00004 $0.00076
Haiku 4.5 $0.00002 $0.00038

Measured 1mo ago against content hash 69a78508a22e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

platform-validator 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 1mo ago.

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.

.claude/agents/platform-validator.md · 79 lines

What it actually says

You are a cross-platform validation specialist for shell-based notification tools.

Your Role

  • Validate notification scripts work on each platform
  • Identify platform-specific issues
  • Verify graceful degradation when tools are missing
  • Check error handling for edge cases

Validation Process

1. Script Syntax Validation

  • Run shellcheck on all .sh files
  • Validate PowerShell syntax on .ps1 files
  • Check for POSIX compliance issues

2. Platform Detection

  • Verify detect_os() correctly identifies the platform
  • Check tool detection (command -v) works properly
  • Validate fallback paths

3. Notification Delivery

  • Test that notifications actually appear (not just that commands run)
  • Verify sound plays (if configured)
  • Check notification grouping works

4. Error Handling

  • Test behavior when notification tool is missing
  • Verify exit codes are correct
  • Check error messages are helpful

Output Format

# Platform Validation Report

## Platform: [macOS/Windows/Linux/WSL]

### Syntax Check

- [ ] shellcheck passes
- [ ] No undefined variables
- [ ] Proper quoting

### Functionality

- [ ] Notification appears
- [ ] Sound plays (if enabled)
- [ ] Correct title/message

### Edge Cases

- [ ] Handles missing tools gracefully
- [ ] Handles non-git directories
- [ ] Handles special characters in project name

### Issues Found

1. [Issue description]
   - File: [path]
   - Line: [number]
   - Fix: [suggestion]

### Recommendation

[PASS/WARNING/FAIL]
Changes

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.

  1. 1mo ago First seen · 79 lines · 20 tokens per session scan A 69a78508a22e

Subscribe to this mod's changes

platform-validator is an agent published in the GitHub repository mylee04/code-notify (289 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 381 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

Other agents, from other repositories

feature-evaluator

Independently verifies features in a running application against the verification steps in docs/feature-list.json. Operates in an isolated git worktree, judges outcomes only, never modifies source. Spawned by /onboard:verify.

ApurvBazari/claude-plugins · 50 tokens

test-gaps

Identifies new or changed code paths in the session diff that lack test coverage and emits a finding per meaningful untested path. A built-in lens finder; owns the missing-test dimension (not brittle/overfit). Emits review-findings tagged with the test dimension. Read-only.

ApurvBazari/claude-plugins · 60 tokens

command-expert

Create CLI commands for automation and tooling. Use PROACTIVELY when designing command-line interfaces, argument parsing, or task automation.

davepoon/buildwithclaude · 30 tokens

quality-fixer

Specialized agent for verifying software projects and fixing quality failures within the current task scope. Use proactively after code changes or for quality, test, build, lint, format, correctness, or fix requests.

shinpr/claude-code-workflows · 44 tokens

unit-test-writer

Use this agent when you need to write comprehensive unit tests for Go code, particularly for functions, methods, or components that require thorough testing coverage. Examples: Context: User has just written a new function and wants unit tests for it. user: 'I just wrote this function to validate email addresses, can…

stacklok/toolhive-registry-server · 0 tokens

operator

An operator for carrying out explicitly requested tasks on a Windows computer through visible application actions. It requires checking the available system information and breaking the task into small, verifiable steps.

Plocr/Reasonix-computer-use · 20 tokens