promptscript: Agent for Claude Code

.claude/agents/debugger.md

debugger is an agent for Claude Code from mrwogu/promptscript. It costs 20 tokens per session (306 once invoked), scanned A, original, MIT.

A debugging assistant for PromptScript that investigates errors, failed tests, and unexpected behavior across its parser, resolver, validator, formatters, and command-line tool.

In plain words
What is it for?
Use it to reproduce issues, form and test likely causes, add focused debugging, write a failing test, and run package or full-compilation checks.
Why use it?
It helps trace a problem to the part of the system that caused it instead of treating only the visible symptom.

Agent for Claude Code

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

This is mrwogu/promptscript's own configuration. It tells Claude Code how to work on promptscript 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 promptscript configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mrwogu/promptscript. 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/mrwogu/promptscript/main/.claude/agents/debugger.md
Clone the repo
git clone --depth 1 https://github.com/mrwogu/promptscript

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 debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/mrwogu/promptscript/debugger/github.svg)](https://agentmods.dev/agents/mrwogu/promptscript/debugger)
Your own site
<a href="https://agentmods.dev/agents/mrwogu/promptscript/debugger"><img src="https://agentmods.dev/badge/agents/mrwogu/promptscript/debugger/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 debugger

Your own site · 80×15
<a href="https://agentmods.dev/agents/mrwogu/promptscript/debugger"><img src="https://agentmods.dev/badge/agents/mrwogu/promptscript/debugger.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 306 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.00306
Opus 5.5 $0.00008 $0.00122
Sonnet 5.5 $0.00004 $0.00061
Haiku 4.5 $0.00002 $0.00031

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

Security

Grade A, and why

debugger 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 2mo 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/debugger.md · 41 lines

What it actually says

You are a debugging specialist for PromptScript.

Architecture Knowledge

  • parser: Chevrotain lexer/parser → AST
  • resolver: Import resolution, inheritance merging
  • validator: AST validation rules
  • formatters: GitHub/Claude/Cursor/Antigravity output
  • cli: Command-line interface

Debugging Process

  1. Reproduce the issue
  2. Identify which package is involved (parser? resolver? formatter?)
  3. Add strategic console.log or use debugger
  4. Form hypothesis → test → iterate
  5. Write failing test first, then fix

Common Issues

  • Parser: Token mismatch, AST structure
  • Resolver: Import paths, registry lookup, merge conflicts
  • Formatter: Missing block handling, output format

Commands

  • pnpm nx test <pkg> - run package tests
  • pnpm prs compile - test full compilation
  • pnpm nx build <pkg> - rebuild package

Always fix root cause, not symptoms.

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. 2mo ago First seen · 41 lines · 20 tokens per session scan A 01f56100ff2d

Subscribe to this mod's changes

debugger is an agent published in the GitHub repository mrwogu/promptscript (378 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 306 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

megalinter-runner

Run MegaLinter locally with npx mega-linter-runner (full flavor run or standalone single-linter image), digest the reports, and return only a compact error list. Use to keep verbose linter output out of the main context. Runs and reports only — never fixes source files.

ulises-jeremias/agent-toolkit · 65 tokens

megalinter-watcher

Watch a MegaLinter CI job (GitHub Actions, GitLab CI, Azure Pipelines or Bitbucket Pipelines) until completion, download its logs, and return only the parsed lint error list. Use to keep large CI logs out of the main context. Observes only — never fixes, edits or pushes.

ulises-jeremias/agent-toolkit · 70 tokens

megalinter-fixer

Fix the errors reported by ONE MegaLinter linter, following the linter's fix guide. Spawned by the megalinter-fix skill, one instance per failing linter, so several linters can be fixed in parallel. Edits source files but never commits, pushes, or disables anything (linters, rules, inline suppressions) — disables are…

ulises-jeremias/agent-toolkit · 87 tokens

refactor-cleaner

Dead code cleanup and consolidation specialist. Removes unused code and duplicates.

rohitg00/skillkit · 17 tokens

code-debugger

Systematically identify, diagnose, and resolve bugs using advanced debugging techniques. Specializes in root cause analysis and complex issue resolution. Use PROACTIVELY for troubleshooting and bug investigation.

sampleXbro/agentsmesh · 40 tokens

code-refactor

Improve code structure, performance, and maintainability through systematic refactoring. Specializes in legacy modernization and technical debt reduction. Use PROACTIVELY for code quality improvements and architectural evolution.

sampleXbro/agentsmesh · 41 tokens