debugger
Debugs errors, test failures, and unexpected behavior. Knows PromptScript architecture.
$ npx -y skills add mrwogu/promptscript --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Debugs errors, test failures, and unexpected behavior. Knows PromptScript architecture.
Agent definition
debugger.md# promptscript-generated: 2026-05-30T23:22:42.935Z | source: .promptscript/project.prs | target: claude name: debugger description: Debugs errors, test failures, and unexpected behavior. Knows PromptScript architecture. tools: ['Read', 'Edit', 'Bash', 'Grep', 'Glob'] model: sonnet permissionMode: acceptEdits
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.
Agent platform configuration as code _Define instructions, skills, agents, MCP servers, hooks, workflows, and policies once.
Repo: mrwogu/promptscript
Other agents on promptscript.
- code-reviewer
Reviews code for quality, security, and project conventions. Use after completing features or before commits.
Open agent - prs-expert
PromptScript language expert. Helps with syntax, compilation issues, and migrations.
Open agent - analyzer
<!-- PromptScript 2026-05-30T23:22:42.935Z | source: .promptscript/project.prs | target: claude - do not edit -->
Open agent - comparator
<!-- PromptScript 2026-08-05T22:03:28.863Z | source: .promptscript/project.prs | target: claude - do not edit -->
Open agent - grader
<!-- PromptScript 2026-05-30T23:22:42.935Z | source: .promptscript/project.prs | target: claude - do not edit -->
Open agent

