Validate Pseudo-Code

A command that reviews pseudo-code, which is an informal description of how software should work, across security, completeness, errors, data, performance, and unusual cases. It labels findings by severity.

In plain words
What is it for?
Use it to check specifications for authentication, input handling, data flow, error responses, rate limits, timeouts, scaling concerns, concurrent requests, and recovery paths.
Why use it?
It exposes missing requirements and risky assumptions before they become implementation bugs or security problems.

Command

Install

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.

agentmods
npx agentmods add commands/eladariel/pseudo-code-prompting-plugin/validate
Clone the repo
git clone --depth 1 https://github.com/EladAriel/pseudo-code-prompting-plugin
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,100 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00032 $0.01100
Opus 5 $0.00016 $0.00550
Sonnet 5 $0.00006 $0.00220
Haiku 4.5 $0.00003 $0.00110

Measured yesterday against content hash 04cc78d79b2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Validate Pseudo-Code 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.

commands/validate.md · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Validate Pseudo-Code

This command validates pseudo-code across 6 critical dimensions:

  1. Security - Auth specified? Rate limiting? Input validation? Injection risks?
  2. Completeness - All required parameters present? Data flows defined?
  3. Error Handling - Every error scenario covered with correct status codes?
  4. Data Handling - Where does data come from? How is it validated? Storage?
  5. Performance - Scalable? Timeouts specified? Caching strategy?
  6. Edge Cases - Concurrent requests? Failure modes? Recovery?

Each dimension returns severity levels:

  • ✗ CRITICAL - Must fix before implementation (security vulnerabilities, missing auth)
  • ⚠ HIGH - Should fix (incomplete error handling, missing rate limiting)
  • 📋 MEDIUM - Nice to have (optimization suggestions)

Usage

Simply say:

Validate my pseudocode: implement_oauth_authentication( providers=["google", "github"], token_type="jwt", ... )

Output Example

PSEUDO-CODE VALIDATION REPORT
═══════════════════════════════════════════════════════════════

✓ PASSED CHECKS
  ✓ Security requirements specified (auth, PKCE, secure cookies)
  ✓ Error codes defined for all scenarios
  ✓ Rate limiting configured
  ✓ Timeout specified (5s)
  ✓ Retry logic with backoff
  ✓ Logging enabled

✗ CRITICAL ISSUES (Must Fix)
  None

⚠ HIGH WARNINGS (Should Fix)
  ⚠ Token refresh concurrency not explicitly handled
    → Consider adding mutex or similar mechanism

📋 MEDIUM (Nice to Have)
  ✓ PKCE enabled—good!
  → Consider adding token rotation strategy for extra security
  → Consider logging failed OAuth provider attempts for analytics

EDGE CASES TO CONSIDER
  ⚠ What happens if user logs in from multiple devices simultaneously?
  ⚠ How do you handle provider API downtime during login?
  ⚠ Token expiration during long-running user action?

═══════════════════════════════════════════════════════════════
OVERALL STATUS: READY
Recommendation: Ready for implementation. Address HIGH warnings before going to production.

Read the full file on GitHub · 155 lines

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. yesterday First seen · 155 lines · 32 tokens per session scan A 04cc78d79b2a

Subscribe to this mod's changes

Validate Pseudo-Code is a command published in the GitHub repository EladAriel/pseudo-code-prompting-plugin (2 stars, last pushed 6mo ago), licensed MIT. It adds 32 tokens to every session and 1,100 once invoked, about $0.0002 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.