Agent skill

Frappe Agent Debugger

by Impertio-Studio in Impertio-Studio/Frappe_Claude_Skill_Package

A skill your agent uses when debugging Frappe errors, using bench console for live inspection, analyzing tracebacks, or reading Frappe log files.

MITAuto-check passedDevelopment

Install Frappe Agent Debugger

skills CLI
$ npx skills add Impertio-Studio/Frappe_Claude_Skill_Package --skill frappe-agent-debugger -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Impertio-Studio/Frappe_Claude_Skill_Package frappe-agent-debugger --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Impertio-Studio/Frappe_Claude_Skill_Package.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/source/agents/frappe-agent-debugger .claude/skills/frappe-agent-debugger && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
frappe-agent-debugger
GitHub stars
187
Token cost
~2.9k tokens
SKILL.md length
731 words
Files
6 (incl. references)
Skills in repo
61
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when debugging Frappe errors, using bench console for live inspection, analyzing tracebacks, or reading Frappe log files.

  • Works in 4 steps: Error Classification → Mechanism Identification → File Path Conventions → …
  • Debugging Frappe errors
  • SKILL.md covers When to Use This Agent, Debugging Workflow, Step 1: Error Classification and Step 2: Mechanism Identification, plus 7 more sections
  • Calls python

What it does

Frappe Agent Debugger is an agent skill from Impertio-Studio/Frappe_Claude_Skill_Package. Use when debugging Frappe errors, using bench console for live inspection, analyzing tracebacks, or reading Frappe log files. Prevents wasted debugging time from ignoring log context, misreading tracebacks, and not using bench console effectively. Covers bench console, frappe.logger, error log DocType, traceback analysis, common error patterns, log file locations, pdb/debugger integration, VS Code DAP, profiling, Frappe Recorder, mariadb diagnostics. Keywords: debug, bench console, traceback, error log…

Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/advanced-debugging.md`, `references/checklists.md` and `references/examples.md`). Compatibility notes: Claude Code, Claude.ai Projects, Claude API. Frappe v14-v16.

It sits in Development, covering Debugging. It works with MariaDB, Visual Studio Code and Python. The repository describes itself as: 60 deterministic Claude AI skills for Frappe Framework & ERPNext v14-v16 development and operations. The licence is MIT.

When your agent uses it

  • Debugging Frappe errors
  • Using bench console for live inspection
  • Analyzing tracebacks
  • Reading Frappe log files

Example prompts

  • “/frappe-agent-debugger”

Requirements

  • Python 3
  • Compatibility (from SKILL.md): Claude Code, Claude.ai Projects, Claude API. Frappe v14-v16.

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Error Classification
  2. Mechanism Identification
  3. File Path Conventions
  4. Diagnosis Checklists (Quick Reference)

What it can do on your machine

Read from SKILL.md and the folder at commit 36cfa80. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Claude Code, Claude.ai Projects, Claude API. Frappe v14-v16.

    From compatibility in the SKILL.md frontmatter.

Context cost

Frappe Agent Debugger loads about 2.9k tokens when it runs, and up to ~10k if it reads all its reference files. Until then it costs about 182 tokens; SKILL.md has 731 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~182
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~10k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Impertio-Studio/Frappe_Claude_Skill_Package at commit 36cfa80, republished under its MIT licence (© Impertio-Studio). 731 words, ~2,855 tokens.

Download SKILL.mdSave it as .claude/skills/frappe-agent-debugger/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
frappe-agent-debugger
description
Use when debugging Frappe errors, using bench console for live inspection, analyzing tracebacks, or reading Frappe log files. Prevents wasted debugging time from ignoring log context, misreading tracebacks, and not using bench console effectively. Covers bench console, frappe.logger, error log DocType, traceback analysis, common error patterns, log file locations, pdb/debugger integration, VS Code DAP, profiling, Frappe Recorder, mariadb diagnostics. Keywords: debug, bench console, traceback, error log, frappe.logger, pdb, debugging, log analysis, inspect, VS Code, DAP, profiling, recorder, mariadb, monitor, ERPNext error, how to debug, find the bug, what went wrong, stack trace, error message..
compatibility
Claude Code, Claude.ai Projects, Claude API. Frappe v14-v16.
license
MIT
metadata.author
OpenAEC-Foundation
metadata.version
2.0

Frappe Debugging Agent

Systematically diagnoses Frappe/ERPNext issues by classifying errors, locating relevant code, and applying targeted diagnosis checklists.

Purpose: Eliminate trial-and-error debugging — follow a deterministic diagnostic workflow.

When to Use This Agent

ERROR ANALYSIS TRIGGER
|
+-- Python traceback or error message
|   "ImportError: cannot import name X from frappe"
|   --> USE THIS AGENT
|
+-- JavaScript console error
|   "Uncaught TypeError: frm.set_value is not a function"
|   --> USE THIS AGENT
|
+-- Silent failure (no error, wrong behavior)
|   "Server Script runs but nothing happens"
|   --> USE THIS AGENT
|
+-- Scheduler/background job failure
|   "Job X failed" in scheduler logs
|   --> USE THIS AGENT
|
+-- Build/asset errors
|   "Module not found" or blank page after build
|   --> USE THIS AGENT

Debugging Workflow

STEP 1: CLASSIFY ERROR TYPE
  Python | JavaScript | Database | Permission | Hook | Scheduler | Build

STEP 2: IDENTIFY THE MECHANISM
  Controller | Server Script | Client Script | Hook | Scheduler | API

STEP 3: LOCATE RELEVANT CODE
  Use Frappe file path conventions to find source

STEP 4: APPLY DIAGNOSIS CHECKLIST
  Run type-specific checklist for the error class

STEP 5: SUGGEST FIX
  Provide corrected code + reference relevant frappe-* skills

See references/workflow.md for detailed steps.

Step 1: Error Classification

Error TypeIndicatorsPrimary Tool
PythonTraceback with .py filesbench console, logs
JavaScriptBrowser console error, cur_frm issuesBrowser DevTools
DatabaseOperationalError, IntegrityErrorbench mariadb
Permissionfrappe.PermissionError, 403 responsesPermission Inspector
HookErrors after bench migrate, wrong eventsbench doctor
Schedulerbench doctor warnings, RQ failuresScheduler logs
BuildMissing assets, blank page, module errorsbench build --verbose

Step 2: Mechanism Identification

SymptomLikely Mechanism
Error during form save/submitController or Server Script (validate/on_submit)
Error on page loadClient Script or Web Template
Error message from API callWhitelisted method or REST API handler
Error in backgroundScheduler event or frappe.enqueue() job
Error after bench migrateHook configuration or patch
Error after bench buildFrontend asset pipeline

Step 3: File Path Conventions

ALWAYS check these locations based on the mechanism:

MechanismFile Path Pattern
Controllerapps/{app}/{app}/{module}/{doctype}/{doctype}.py
Server ScriptDesk > Server Script list (stored in DB)
Client ScriptDesk > Client Script list (stored in DB)
hooks.pyapps/{app}/{app}/hooks.py
Schedulerapps/{app}/{app}/tasks.py or hooks.py scheduler_events
Whitelistedapps/{app}/{app}/{module}/*.py (search for @frappe.whitelist)
Jinjaapps/{app}/{app}/templates/
Patchesapps/{app}/{app}/patches/

Step 4: Diagnosis Checklists (Quick Reference)

Python Errors
Error PatternLikely CauseFix
AttributeError: 'NoneType'frappe.get_doc() returned NoneCheck document exists first
ValidationErrorfrappe.throw() in validateRead the message — it IS the diagnosis
ImportErrorWrong import path or Server Script using importsServer Scripts CANNOT import
LinkValidationErrorReferenced document does not existVerify Link field target exists
TimestampMismatchErrorConcurrent edit conflictReload document before save
DuplicateEntryExceptionUnique constraint violationCheck naming series or unique fields
MandatoryErrorRequired field is emptySet field before save/submit
InvalidStatusErrorWrong docstatus transitionFollow 0→1→2 sequence
CircularLinkingErrorSelf-referencing parent-childFix document hierarchy
JavaScript Errors
Error PatternLikely CauseFix
frm.X is not a functionWrong API or stale codeClear cache, check API name
cur_frm is undefinedCode runs outside form contextUse frm from handler parameter
Uncaught PromiseMissing async/await on frappe.callAdd callback or await
field undefined in frm.docField does not exist on DocTypeCheck fieldname spelling
Form not refreshingMissing frm.refresh_fields()Add refresh after set_value
Database Errors
Error PatternLikely CauseFix
OperationalError: 1054Column does not existRun bench migrate
OperationalError: 1146Table does not existRun bench migrate
IntegrityError: 1062Duplicate primary keyCheck naming/autoname
IntegrityError: 1452Foreign key violationLinked document missing
OperationalError: 1213DeadlockReduce transaction scope
InternalError: 1366Invalid character for charsetCheck input encoding
Show full SKILL.md (298 more words)Show less
Permission Errors
Error PatternLikely CauseFix
frappe.PermissionErrorUser lacks role permissionCheck Role Permission Manager
403 on API callMissing frappe.has_permission() or wrong @frappe.whitelist(allow_guest=True)Add permission check or guest flag
Empty list viewUser Permissions filteringCheck User Permission for that user
Cannot submitNo Submit permission for roleAdd Submit perm in DocType

Debug Tools

bench console (Python REPL)
bash
bench --site {site} console
# Then:
frappe.get_doc("Sales Invoice", "SINV-00001")  # Inspect document
frappe.db.sql("SELECT name FROM `tabSales Invoice` LIMIT 5")  # Raw SQL
frappe.get_hooks("doc_events")  # Inspect active hooks
frappe.get_all("Server Script", filters={"disabled": 0}, fields=["name", "script_type"])
bench mariadb (SQL shell)
bash
bench --site {site} mariadb
-- Then:
SHOW CREATE TABLE `tabSales Invoice`;
SELECT * FROM `tabError Log` ORDER BY creation DESC LIMIT 10;
bench doctor
bash
bench doctor  # Check scheduler, workers, background jobs
frappe.logger()
python
logger = frappe.logger("my_debug", allow_site=True)
logger.info(f"Variable value: {my_var}")
# Logs to: sites/{site}/logs/my_debug.log
Browser DevTools
Console tab  → JavaScript errors
Network tab  → Failed API calls (check response body for traceback)
Application tab → Session/cookie issues

Log File Locations

LogPathContains
Frappe websites/{site}/logs/frappe.logWeb request errors
Workersites/{site}/logs/worker.logBackground job errors
Schedulersites/{site}/logs/scheduler.logScheduled task output
Custom loggersites/{site}/logs/{name}.logfrappe.logger("{name}") output
Bench~/.bench/logs/bench.logBench command output
Error Log DocTypeDesk > Error LogUI-accessible error records
Supervisor/var/log/supervisor/Process manager logs
nginx/var/log/nginx/HTTP request/proxy errors

Common Error Patterns Table

Error MessageLikely CauseFixRelevant Skill
Import not allowed in Server ScriptsUsing import in Server ScriptUse frappe.utils.* or move to Controllerfrappe-errors-serverscripts
Cannot read properties of undefinedJS accessing field before form loadAdd frm.doc.field null checkfrappe-errors-clientscripts
DocType X not foundMissing app install or migrationbench migrate or bench install-appfrappe-ops-bench
Scheduler is not runningWorkers stoppedbench doctor, restart workersfrappe-ops-bench
BrokenPipeErrorgunicorn timeout on long operationUse frappe.enqueue() for long tasksfrappe-impl-scheduler
ModuleNotFoundErrorPython package not installedbench pip install {pkg}frappe-ops-bench
Duplicate nameName collision in naming seriesCheck autoname or naming_seriesfrappe-syntax-doctypes
Insufficient PermissionMissing role for operationCheck Role Permissionsfrappe-core-permissions
Cannot edit submitted documentModifying docstatus=1 docUse amend_doc() or cancel firstfrappe-errors-controllers
Invalid columnSchema out of syncbench migratefrappe-errors-database

Agent Output Format

ALWAYS produce debugging output in this format:

markdown
## Debug Report

### Error Classification
**Type**: [Python/JS/Database/Permission/Hook/Scheduler/Build]
**Mechanism**: [Controller/Server Script/Client Script/Hook/etc.]

### Root Cause
[One-sentence diagnosis]

### Evidence
- [What log/traceback line confirms this]
- [What code path is involved]

### Fix
[Corrected code or configuration change]

### Verification Steps
1. [How to confirm the fix works]
2. [What to check in logs/UI]

### Referenced Skills
- `frappe-*`: [what was consulted]

Debugging Decision Tree

ERROR RECEIVED
|
+-- Has traceback?
|   +-- YES: Read LAST line first (actual error)
|   |   +-- Contains ".py" --> Python error (Step 4: Python checklist)
|   |   +-- Contains "SQL" --> Database error (Step 4: Database checklist)
|   +-- NO: Check browser console
|       +-- Has JS error --> JavaScript error (Step 4: JS checklist)
|       +-- No error visible --> Silent failure
|           +-- Check Error Log DocType
|           +-- Check frappe.log
|           +-- Add frappe.logger() statements
|
+-- Error after bench command?
|   +-- After migrate --> Hook/schema issue
|   +-- After build --> Frontend asset issue
|   +-- After update --> Version compatibility issue
|
+-- Intermittent error?
    +-- Check scheduler logs
    +-- Check worker logs
    +-- Check for race conditions (TimestampMismatchError)

See references/checklists.md for complete diagnosis checklists. See references/examples.md for debugging walkthrough examples. See references/advanced-debugging.md for VS Code DAP setup, bench console patterns, mariadb diagnostics, and profiling tools.

© Impertio-Studio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in skills/source/agents/frappe-agent-debugger of Impertio-Studio/Frappe_Claude_Skill_Package.

  • SKILL.md
  • references/.gitkeep
  • references/advanced-debugging.md
  • references/checklists.md
  • references/examples.md
  • references/workflow.md

Open the folder on GitHubat commit 36cfa80

Compare with similar skills

Frappe Agent Debugger next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Frappe Agent Debugger compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frappe Agent Debugger this skillImpertio-Studio/Frappe_Claude_Skill_Package187—~2.9kAutomated safety check: PassMIT
Tilelang Debug Helpertile-ai/tilelang-ascend400—~1.7kAutomated safety check: NotesMIT
LangBot Plugin Developmentlangbot-app/LangBot18k—~3.9kAutomated safety check: PassApache-2.0
Python Performance Optimizationwshobson/agents40k13 repos~814Automated safety check: PassMIT
Git History Bug Auditben-manes/caffeine18k—~3.3kAutomated safety check: PassApache-2.0
Keybase RPC Log Analysiskeybase/client9.3k—~3kAutomated safety check: PassBSD-3-Clause

Similar skills

  • Tilelang Debug Helper

    tile-ai/tilelang-ascend

    How to add debugging capabilities to TileLang Ascend example operators.

    400 GitHub stars~1.7k tokensUpdated today
    DevelopmentAuto-check: notes
  • LangBot Plugin Development

    langbot-app/LangBot

    Guides building, debugging and testing LangBot plugins: components, SDK calls, README and locale rules, SDK pitfalls and WebSocket-based testing.

    18k GitHub stars~3.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Profiles slow Python code with cProfile and memory profilers, then applies targeted fixes for CPU, memory, I/O and query bottlenecks.

    40k GitHub starsUsed in 13 repos~814 tokens
    DevelopmentAuto-check passed
  • Git History Bug Audit

    ben-manes/caffeine

    Audits a module by walking its git history commit by commit, tracking unresolved issues forward, and reporting the ones that survive to HEAD as findings.

    18k GitHub stars~3.3k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Captures a clean Keybase service log and analyzes it for redundant, duplicated or looping RPCs, then checks whether a caching fix reduced the calls.

    9.3k GitHub stars~3k tokensUpdated today
    DevelopmentAuto-check passed
  • Interactive Extension Testing

    PowerShell/vscode-powershell

    Guide for setting up the multi-root PowerShell VS Code extension/PSES dev workspace.

    1.9k GitHub stars~824 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from Impertio-Studio/Frappe_Claude_Skill_Package

All 61 skills in this repo
  • Frappe Agent Interpreter

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when receiving vague or unclear ERPNext/Frappe development requests that need interpretation.

    187 GitHub starsUsed in 1 repo~3.2k tokens
    Auto-check passed
  • Frappe Ops Website Deploy

    Impertio-Studio/Frappe_Claude_Skill_Package

    Deploy HTML/CSS websites to ERPNext/Frappe (v15/v16) as Web Pages via the REST API.

    187 GitHub stars~2.5k tokensUpdated 21 days ago
    Auto-check passed
  • Frappe Core API

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when building ERPNext/Frappe API integrations (v14/v15/v16) including REST API, RPC API, authentication, webhooks, and rate limiting.

    187 GitHub starsUsed in 1 repo~3.2k tokens
    Auto-check passed
  • Frappe Errors API

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when debugging or handling API errors in Frappe/ERPNext v14/v15/v16.

    187 GitHub starsUsed in 1 repo~4k tokens
    Auto-check passed
  • Frappe Impl Hooks

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when implementing hooks.py configurations in a Frappe custom app.

    187 GitHub starsUsed in 1 repo~3k tokens
    Auto-check passed
  • Frappe Impl Whitelisted

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when building API endpoints with @frappe.whitelist() in Frappe.

    187 GitHub starsUsed in 1 repo~3.1k tokens
    Auto-check passed

Categories

Questions about Frappe Agent Debugger

What does Frappe Agent Debugger do?

A skill your agent uses when debugging Frappe errors, using bench console for live inspection, analyzing tracebacks, or reading Frappe log files. Frappe Agent Debugger is an agent skill from Impertio-Studio/Frappe_Claude_Skill_Package. Use when debugging Frappe errors, using bench console for live inspection, analyzing tracebacks, or reading Frappe log files.

When should I use Frappe Agent Debugger?

Frappe Agent Debugger fits situations like: debugging Frappe errors; using bench console for live inspection; analyzing tracebacks; reading Frappe log files.

How do I install Frappe Agent Debugger in Claude Code?

Run `npx skills add Impertio-Studio/Frappe_Claude_Skill_Package --skill frappe-agent-debugger -a claude-code`. Or copy the skill folder (skills/source/agents/frappe-agent-debugger in Impertio-Studio/Frappe_Claude_Skill_Package) into .claude/skills/frappe-agent-debugger in your project. Claude Code loads it when a task matches its description.

How do I install Frappe Agent Debugger in Codex?

Run `npx skills add Impertio-Studio/Frappe_Claude_Skill_Package --skill frappe-agent-debugger -a codex`. Or copy the skill folder (skills/source/agents/frappe-agent-debugger in Impertio-Studio/Frappe_Claude_Skill_Package) into .agents/skills/frappe-agent-debugger in your project. Codex loads it when a task matches its description.

Can I use Frappe Agent Debugger in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Impertio-Studio/Frappe_Claude_Skill_Package --skill frappe-agent-debugger -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/frappe-agent-debugger, .gemini/skills/frappe-agent-debugger, .github/skills/frappe-agent-debugger and .opencode/skills/frappe-agent-debugger in your project.

What does Frappe Agent Debugger need to run?

Going by SKILL.md and its folder, Frappe Agent Debugger needs the command-line tools its instructions call (python). Our summary lists: Python 3. Compatibility (from SKILL.md): Claude Code, Claude.ai Projects, Claude API. Frappe v14-v16..

Does Frappe Agent Debugger access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Frappe Agent Debugger safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Frappe Agent Debugger use?

Frappe Agent Debugger is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Frappe Agent Debugger use?

About 2.9k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7.4k tokens, read only when the agent opens those files.

What are the alternatives to Frappe Agent Debugger?

Skills that share tags, products or a category with Frappe Agent Debugger: Tilelang Debug Helper (tile-ai/tilelang-ascend, 400 stars), LangBot Plugin Development (langbot-app/LangBot, 18k stars), Python Performance Optimization (wshobson/agents, 40k stars) and Git History Bug Audit (ben-manes/caffeine, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frappe Agent Debugger?

Impertio-Studio (a GitHub organization) maintains it in Impertio-Studio/Frappe_Claude_Skill_Package, which has 187 GitHub stars. The repository holds 61 skills in this directory. The repository was last updated on September 17, 2026.

Source: Impertio-Studio/Frappe_Claude_Skill_Package on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.