openaec-foundation/frappe_claude_skill_package/frappe-syntax-reports
Claude Code and agent skill by openaec-foundation/frappe_claude_skill_package
- community
Checking that the SKILL.md file is still in the repository.
Use when building Query Reports, Script Reports, or configuring Report Builder, including chart data integration. Prevents report errors from wrong column definitions, missing permissions, and incorrect data formatting. Covers Query Report (SQL-based), Script Report (Python-based), Report Builder, report columns definition, filters, chart_data, report permissions, prepared_report. Keywords: Query Report, Script Report, Report Builder, report columns, filters, chart_data, frappe.query_report, prepared_report, report columns, how to build report, report not showing data, chart in report..
Install
npx vskill@latest install openaec-foundation/frappe_claude_skill_package/frappe-syntax-reportsSKILL.md
The same SKILL.md was published earlier as openaec-foundation/frappe_claude_skill_package/frappe-syntax-reports.
Reports: Query, Script & Report Builder
Quick Reference
Report Types at a Glance
| Type | Code Required | Use Case | Permission | |
|---|---|---|---|---|
| Report Builder | None | Simple single-DocType listing with filters, group by | Any user | |
| Query Report | SQL only | Direct SQL queries, legacy column format | System Manager | |
| Script Report (Standard) | Python + JS | Complex logic, charts, summaries, trees | Administrator + Developer Mode | |
| Script Report (Custom) | Python in UI | Quick custom reports without app deployment | System Manager |
Script Report execute() Return Values
Column Definition (Dict Format)
Query Report Column Format (Legacy String)
Format: "Label:Fieldtype/Options:Width" — Options only needed for Link, Dynamic Link, Currency.
Filter Definition (JS)
Decision Tree: Which Report Type?
Supported Fieldtypes for Columns
| Fieldtype | Options Required | Notes | |
|---|---|---|---|
Data | No | Plain text | |
Link | DocType name | Clickable link to document | |
Dynamic Link | Fieldname holding DocType | Pair with a column containing DocType | |
Currency | Currency field or code | Fieldname in row that holds currency | |
Float | No | Decimal number | |
Int | No | Integer | |
Percent | No | Shows percentage bar | |
Date | No | Date display | |
Datetime | No | Date + time | |
Check | No | Boolean checkbox | |
Select | No | Dropdown value | |
Text | No | Long text | |
HTML | No | Raw HTML rendering |
Supported Filter Fieldtypes
| Fieldtype | Options | Behavior | |
|---|---|---|---|
Link | DocType name | Autocomplete from DocType | |
Select | Newline-separated values | Dropdown with fixed options | |
Date | — | Date picker | |
DateRange | — | Returns [from_date, to_date] list | |
Check | — | Boolean toggle | |
Dynamic Link | Fieldname of Link filter | Depends on another filter value | |
Data | — | Free text input | |
Int | — | Numeric input | |
MultiSelectList | DocType name | Multiple value selection |
Chart Data Format
Report Summary Format
Prepared Reports
For reports processing large datasets, enable Prepared Report to run asynchronously:
- Set
prepared_report = 1in the Report document - User clicks "Generate New Report" — runs in background via
enqueue() - Results stored in file; user downloads or views when ready
- ALWAYS use for reports that query > 100k rows or take > 30 seconds
Number Cards
| Source Type | Required Fields | How It Works | |
|---|---|---|---|
| Document Type | document_type, function, aggregate_function_based_on | SQL aggregate on DocType | |
| Report | report_name, report_field, function | Pulls value from a report column | |
| Custom Method | method | Calls a whitelisted Python method |
Custom method signature:
Dashboard Charts
| Source | Configuration | Data Format | |
|---|---|---|---|
| Report | Set chart_type = "Report", select report | Uses report's chart data | |
| Custom | Set chart_type = "Custom", define source | Hook returns {"labels": [...], "datasets": [...]} | |
| Group By | Set chart_type = "Group By", pick field | Auto-aggregates by field |
Dashboard Chart Source hook in hooks.py:
Critical Rules
- ALWAYS define columns as list of dicts with
fieldname,label,fieldtype. The legacy string format is ONLY for Query Report SQL aliases. - NEVER return
Noneforcolumnsordatainexecute()— ALWAYS return empty lists[]. - ALWAYS use
_(...)for translatable labels in columns and report_summary. - NEVER use
frappe.db.sqlwith user-supplied filter values directly in f-strings — ALWAYS pass as parameters:frappe.db.sql(query, filters, as_dict=True). - ALWAYS set
Reference DocTypeon the Report document — it controls user access permissions. - NEVER omit
widthin column definitions — columns without width render poorly. - ALWAYS match
datasets[].valueslength tolabelslength in chart data — mismatched lengths cause chart rendering errors.
See Also
- references/query-report.md — Complete Query Report API
- references/script-report.md — Script Report JS API
- references/examples.md — Working report examples
- references/anti-patterns.md — Common report mistakes
- references/dashboard.md — Number Cards, Dashboard Charts
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/source/syntax/frappe-syntax-reports/SKILL.md
Popularity
- Repository stars
- 88
- Repository forks
- 25
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 29 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/openaec-foundation/frappe_claude_skill_package/frappe-syntax-reports)