frappe-impl-workspace
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "frappe-impl-workspace" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7f979fe1899b90496397c6dd638d59c95d792466a7198c988503ea0dd40e92a5. Verify the upstream source and version against https://github.com/Impertio-Studio/Frappe_Claude_Skill_Package before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
For creating or customizing Workspace pages in Frappe v14–v16, covering workspace doc structure, shortcuts, number cards, dashboard charts, custom HTML/JSON blocks, packaging workspaces into custom apps, and role-based access control. Helps avoid common issues like subtable/fixtures desynchronization.
Introduction source: third_party · Impertio-Studio · 3.0 Reference
SkillPi interpretation
- Tasks
- Step-by-step workflows for creating and customizing Workspace pages. Workspaces are the block-based dashboard/navigation pages in Frappe Desk.
- Testing
- Not tested
Browse files
Frontmatter
name: frappe-impl-workspace
description: >
Use when creating or customizing Workspace pages in Frappe v14-v16.
Covers Workspace DocType structure, shortcuts, number cards, dashboard
charts, custom HTML blocks, JSON content format, shipping workspaces
with custom apps, and role-based access control.
Prevents common mistakes with content/child-table desync and missing fixtures.
Keywords: workspace, desk, dashboard, number card, chart, shortcut,, customize desk, dashboard setup, add shortcut, module page, sidebar customize.
workspace builder, module, fixtures, sidebar.
license: MIT
compatibility: "Claude Code, Claude.ai Projects, Claude API. Frappe v14-v16."
metadata:
author: OpenAEC-Foundation
version: "3.0"Frappe Workspace Implementation Workflow
Step-by-step workflows for creating and customizing Workspace pages. Workspaces are the block-based dashboard/navigation pages in Frappe Desk.
Version: v14/v15/v16 (version-specific features noted)
Quick Reference
| Concept | Description |
|---|---|
| Workspace | Block-based page with 12-column grid layout |
| Public Workspace | Visible to all permitted users; requires Workspace Manager role to edit |
| Private Workspace | Per-user dashboard under "My Workspaces"; any Desk User can create |
| Content field | JSON array storing the block layout |
| Child tables | 6 tables: charts, shortcuts, links, quick_lists, number_cards, custom_blocks |
| Module association | Primary access control mechanism |
Master Decision: What Do You Need?
NEED A WORKSPACE?
│
├─► Default DocType landing page?
│ └─► NO workspace needed — Frappe auto-generates list views
│
├─► Custom dashboard for a module?
│ └─► Create PUBLIC Workspace (Workspace Manager role required)
│
├─► Personal dashboard for a user?
│ └─► Create PRIVATE Workspace (appears under "My Workspaces")
│
└─► Navigation link in sidebar?
└─► type="Link" (internal) or type="URL" (external)
ADDING COMPONENTS?
│
├─► Key metrics (counts, sums) → Number Cards
├─► Trend / time-series data → Dashboard Charts
├─► Quick navigation links → Shortcuts
├─► Grouped link categories → Link Cards (Card Break + Links)
├─► Custom HTML/JS content → Custom HTML Blocks
└─► Recent record lists → Quick Lists
Workspace DocType Structure
Key Fields
| Field | Type | Purpose |
|---|---|---|
label |
Data | Display name in sidebar |
title |
Data | Page title (defaults to label) |
module |
Link → Module Def | Associates workspace with a module for access control |
parent_page |
Link → Workspace | Nesting under another workspace in sidebar |
icon |
Data | Sidebar icon (e.g., "chart-line") |
type |
Select | Workspace / Link / URL (v15+) |
sequence_id |
Int | Sidebar ordering |
content |
JSON | Block layout as JSON array |
for_user |
Data | If set, workspace is private to that user |
roles |
Table → Has Role | Role-based access restrictions |
app |
Data | Owning app identifier (v15+) |
indicator_color |
Color | Sidebar indicator dot (v15+) |
Child Tables (6 total)
| Child Table | DocType | Purpose |
|---|---|---|
charts |
Workspace Chart | Dashboard Chart references |
shortcuts |
Workspace Shortcut | DocType/Report/Page/URL shortcuts |
links |
Workspace Link | Grouped navigation links |
quick_lists |
Workspace Quick List | Recent record lists |
number_cards |
Workspace Number Card | Metric card references |
custom_blocks |
Workspace Custom Block | HTML block references |
CRITICAL: The
contentJSON and the child tables MUST stay in sync. ALWAYS use the Workspace Builder UI or programmatic API — NEVER manually edit thecontentJSON without updating child tables. Seereferences/anti-patterns.md.
Content JSON Format
The content field is a JSON array. Each element represents a block in the 12-column grid:
[
{
"id": "unique-block-id",
"type": "header",
"data": {"text": "Overview", "level": 4, "col": 12}
},
{
"id": "unique-block-id-2",
"type": "chart",
"data": {
"chart_name": "Sales Trends",
"col": 12
}
},
{
"id": "unique-block-id-3",
"type": "number_card",
"data": {
"number_card_name": "Open Orders",
"col": 4
}
},
{
"id": "unique-block-id-4",
"type": "shortcut",
"data": {
"shortcut_name": "New Sales Order",
"col": 4
}
},
{
"id": "unique-block-id-5",
"type": "spacer",
"data": {"col": 12}
}
]
Block Types
| Type | data fields |
Description |
|---|---|---|
header |
text, level, col |
Section heading (h3/h4/h5) |
chart |
chart_name, col |
References a Dashboard Chart doc |
number_card |
number_card_name, col |
References a Number Card doc |
shortcut |
shortcut_name, col |
References a Workspace Shortcut child |
card |
card_name, col |
Card break for grouped links |
quick_list |
quick_list_name, col |
Recent records for a DocType |
custom_block |
custom_block_name, col |
References a Custom HTML Block doc |
text |
body, col |
Rich text / Markdown block |
spacer |
col |
Empty vertical space |
onboarding |
onboarding_name, col |
Module onboarding widget |
colvalues MUST be 1-12 and represent grid column width. Blocks in the same row MUST sum to ≤ 12.
Implementation Workflows
Workflow 1: Create a Public Workspace via UI
- Navigate to
/app/workspace→ click + New Workspace - Set Label (appears in sidebar), Module, Icon
- Use the Workspace Builder to drag-and-drop blocks
- Add components: Charts, Number Cards, Shortcuts, Links
- Click Save → workspace appears in sidebar for permitted users
- In developer mode: JSON auto-exports to your app directory
Workflow 2: Create a Workspace Programmatically
import frappe
import json
workspace = frappe.new_doc("Workspace")
workspace.label = "Project Dashboard"
workspace.module = "Projects"
workspace.icon = "project"
workspace.type = "Workspace"
workspace.sequence_id = 10
# Build content blocks
workspace.content = json.dumps([
{
"id": frappe.generate_hash(length=10),
"type": "header",
"data": {"text": "Project Overview", "level": 4, "col": 12}
},
{
"id": frappe.generate_hash(length=10),
"type": "number_card",
"data": {"number_card_name": "Active Projects", "col": 4}
},
{
"id": frappe.generate_hash(length=10),
"type": "chart",
"data": {"chart_name": "Project Status", "col": 12}
}
])
# Add child table entries (MUST match content JSON)
workspace.append("number_cards", {
"number_card_name": "Active Projects"
})
workspace.append("charts", {
"chart_name": "Project Status"
})
# Role restrictions (optional)
workspace.append("roles", {"role": "Projects Manager"})
workspace.insert(ignore_permissions=True)
frappe.db.commit()
ALWAYS add corresponding child-table rows when setting
contentJSON programmatically.
Workflow 3: Create Supporting Documents First
Before adding components to a workspace, create the referenced documents:
Number Card:
card = frappe.new_doc("Number Card")
card.label = "Active Projects"
card.document_type = "Project"
card.function = "Count"
card.filters_json = json.dumps([["Project", "status", "=", "Open"]])
card.is_public = 1
card.insert(ignore_permissions=True)
Dashboard Chart:
chart = frappe.new_doc("Dashboard Chart")
chart.chart_name = "Project Status"
chart.chart_type = "Group By"
chart.document_type = "Project"
chart.group_by_type = "Count"
chart.group_by_based_on = "status"
chart.type = "Donut"
chart.is_public = 1
chart.insert(ignore_permissions=True)
Shortcut: Shortcuts are child-table entries on the Workspace, not standalone docs:
workspace.append("shortcuts", {
"label": "New Project",
"type": "DocType",
"link_to": "Project",
"color": "Blue",
"format": "{} Active",
"stats_filter": json.dumps([["Project", "status", "=", "Open"]])
})
See references/workspace-components.md for complete component reference.
Permission Model
Three Layers of Access Control
Layer 1: Module Access (PRIMARY)
└─► User must have access to the workspace's module
└─► Controlled via "Module Def" and user's "Block Modules" list
Layer 2: Role Restrictions (OPTIONAL)
└─► workspace.roles child table
└─► If populated: ONLY users with listed roles see the workspace
└─► If empty: ALL users with module access see it
Layer 3: Workspace Manager Role
└─► Required to create/edit PUBLIC workspaces
└─► NOT required for private workspaces
Rules
- ALWAYS set
moduleon public workspaces — without it, the workspace is visible to ALL Desk users - ALWAYS add role restrictions for sensitive dashboards (financial, HR)
- NEVER set
for_useron workspaces shipped with an app — it creates a private workspace
Version Differences
| Feature | v14 | v15 | v16 |
|---|---|---|---|
| Workspace Builder UI | Basic | Redesigned (drag-drop grid) | Incremental fixes |
type field (Workspace/Link/URL) |
Not available | Added | Available |
app field |
Not available | Added | Available |
indicator_color |
Not available | Added | Available |
| Name collision protection | Manual | Manual | Auto-deduplicate |
| Welcome header config | Not available | Not available | Added |
| Content JSON format | Same | Same | Same |
Migration Notes
- v14 → v15: Workspace Builder UI changed significantly; existing JSON content remains compatible
- v15 → v16: Minor field additions; no breaking changes to workspace structure
- ALWAYS test workspace rendering after major version upgrades
Shipping Workspaces with a Custom App
Directory Structure
myapp/
└── mymodule/
└── workspace/
└── my_workspace/
└── my_workspace.json
Export Process
- Enable Developer Mode (
frappe.conf.developer_mode = 1) - Create/edit workspace via Workspace Builder UI
- On save, Frappe auto-exports to the app directory above
- Commit the JSON file to version control
CRITICAL: Ship Dependencies Too
A workspace JSON alone is NOT sufficient. You MUST also ship:
| Component | How to Ship |
|---|---|
| Number Cards | fixtures in hooks.py OR myapp/fixtures/ |
| Dashboard Charts | fixtures in hooks.py OR myapp/fixtures/ |
| Custom HTML Blocks | fixtures in hooks.py OR myapp/fixtures/ |
| Linked Reports | Already shipped via report directory structure |
| Linked Pages | Already shipped via page directory structure |
# hooks.py
fixtures = [
{"dt": "Number Card", "filters": [["module", "=", "My Module"]]},
{"dt": "Dashboard Chart", "filters": [["module", "=", "My Module"]]},
{"dt": "Custom HTML Block", "filters": [["name", "in", ["My Block"]]]},
]
See references/shipping-with-app.md for complete shipping guide.
Common Patterns
Pattern 1: Module Dashboard with KPIs
[Header: "Key Metrics"]
[Number Card: Open Orders (col=3)] [Number Card: Revenue (col=3)]
[Number Card: Pending (col=3)] [Number Card: Overdue (col=3)]
[Spacer]
[Header: "Trends"]
[Chart: Monthly Revenue (col=12)]
[Header: "Quick Access"]
[Shortcut: New Order (col=4)] [Shortcut: Reports (col=4)] [Shortcut: Settings (col=4)]
Pattern 2: Role-Based Workspace
# Sales Manager sees full dashboard; Sales User sees limited view
# Option A: Two separate workspaces with different role restrictions
# Option B: One workspace — use Number Card/Chart permissions to filter
# Option A implementation:
ws_manager = frappe.get_doc({"doctype": "Workspace", "label": "Sales Management", ...})
ws_manager.append("roles", {"role": "Sales Manager"})
ws_user = frappe.get_doc({"doctype": "Workspace", "label": "Sales Overview", ...})
ws_user.append("roles", {"role": "Sales User"})
Pattern 3: Sidebar Hierarchy
# Parent workspace
parent = frappe.get_doc({"doctype": "Workspace", "label": "CRM", "module": "CRM"})
# Child workspaces (nested in sidebar)
child = frappe.get_doc({
"doctype": "Workspace",
"label": "Lead Pipeline",
"module": "CRM",
"parent_page": "CRM" # References parent workspace label
})
Reference Files
| File | Content |
|---|---|
references/workspace-components.md |
Number Cards, Dashboard Charts, Shortcuts, Custom Blocks — full API |
references/shipping-with-app.md |
JSON format, fixtures, module structure, install hooks |
references/anti-patterns.md |
Common workspace mistakes and how to avoid them |
Version history
-
v3.1.1
GitHub ↗
Original release notes
## What's new Expanded Keywords in all skill descriptions with user-friendly, non-technical discovery terms. Skills are now easier to find when users describe problems in plain language instead of technical terminology. Examples of added terms: - Symptom-based: "app is slow", "nothing shows", "container won't start" - Beginner-friendly: "how do I start", "what is", "getting started" - Error messages: literal error text users would paste - Alternative names: common synonyms and abbreviations No skill content was changed. Only the Keywords line in SKILL.md frontmatter was expanded.
-
v3.1.0
GitHub ↗
Original release notes
## What's new - package.json with agents.skills[] manifest for external discovery (60 skills) - agents/openai.yaml for OpenAI Codex - GitHub topic agentskills added - SKILLS_LOG.md added to .gitignore - Em-dashes replaced with colons in 31 SKILL.md section headings Enables discovery via npx skills add, skills.sh, LobeHub, and other platforms.
-
v3.0.0
GitHub ↗
Original release notes
## Summary - **60 deterministic skills** for Frappe Framework v14-v16 (up from 53 in v2.0) - **~95% surface area coverage** (up from ~85%) - 7 new skills + 12 existing skills extended with new reference files ## New Skills (7) | Skill | Category | Coverage | |-------|----------|----------| | `frappe-core-translation` | core | i18n, _(), __(), CSV/PO files, string extraction | | `frappe-core-utils` | core | 140+ date, number, string, validation functions | | `frappe-syntax-print` | syntax | Print formats, PDF generation, Letter Head | | `frappe-syntax-query-builder` | syntax | frappe.qb, joins, aggregation, cross-DB | | `frappe-impl-workspace` | impl | Workspace builder, number cards, charts | | `frappe-core-logging` | core | frappe.logger(), Error Log, Sentry integration | | `frappe-core-search` | core | Link search, global search, SQLiteSearch FTS5 | ## Extended Skills (12) 13 new reference files added to existing skills covering: Controls API, Tree View, Portal Generators, Print Format decision tree, Email system, Module/Workspace shipping, complete Document API, custom bench commands, request lifecycle, advanced debugging (VS Code DAP), Frappe Packages, data masking (v16+), and Python type stubs. ## Stats | Category | Count | |----------|:-----:| | syntax/ | 13 | | core/ | 11 | | impl/ | 14 | | errors/ | 7 | | ops/ | 8 | | agents/ | 5 | | testing/ | 2 | | **Total** | **60** | ## Install ```bash git clone https://github.com/OpenAEC-Foundation/Frappe_Claude_Skill_Package.git cp -r Frappe_Claude_Skill_Package/skills/source/* ~/.claude/skills/ ```
-
v2.0.0
GitHub ↗
Original release notes
## Frappe Claude Skill Package v2.0.0 Massive upgrade from 28 ERPNext-specific skills to **53 Frappe Framework skills** covering ~85% of the Frappe surface area. ### What's New - **25 new skills** across 3 new categories (ops, testing, agents) - **28 existing skills** fully rewritten with fresh research - **Renamed** from `erpnext-*` to `frappe-*` (all skills are Frappe Framework, not ERPNext-specific) - **7 categories**: syntax (11), core (7), impl (13), errors (7), ops (8), agents (5), testing (2) ### New Categories - **ops/** — Bench CLI, deployment, backup, performance, upgrades, frontend build, cloud - **testing/** — Unit/integration tests, CI/CD with GitHub Actions - **3 new agents** — debugger, migrator, architect ### Key Improvements - All skills verified against official Frappe docs (March 2026) - v16 features documented: `extend_doctype_class`, data masking, type annotations - MIT license (was LGPL-3.0) - Deterministic language throughout (ALWAYS/NEVER) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
-
v1.1.0
GitHub ↗
Original release notes
V16 compatibility update and documentation improvements. ## Added - USAGE.md with platform-specific guides (Claude.ai, Claude Code, API) - Complete README overhaul with quick start guide ## Changed - All 28 skills updated for ERPNext/Frappe V16 compatibility - Agent Skills now follow standard skill structure - Improved validation: 28/28 skills pass all checks ## Fixed - V16-specific syntax changes in 9 skills - Agent SKILL.md files now under 500 lines
Only the five most recent versions are shown. View full version history at the source ↗
Current listing version
3.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的 Frappe 工作台实现指南,涵盖 JSON 格式、权限模型、版本差异等核心内容
- 包含具体代码示例和 UI 操作流程,可直接用于实际开发
Areas to improve
-
description 重复 Reported severity: Minor
顶层 frontmatter 和 skill_body 内部均包含 description 内容
Recommendation: 建议仅在顶层 frontmatter 保留 description,skill_body 内可移除重复内容
Highlights
- 关键词覆盖全面,包含 workspace、dashboard、number card、shortcut 等核心术语
- 触发边界清晰,不易与其他 Skill 混淆
Highlights
- 结构清晰,分阶段引导用户决策(Master Decision)
- 提供完整端到端示例,包括 Python 代码和 JSON 格式
Areas to improve
-
引用文件缺失 Reported severity: Major
SKILL.md 引用了 references/workspace-components.md、references/shipping-with-app.md、references/anti-patterns.md,但未传入这些文件
Recommendation: 请补充引用文件,或移除引用链接以避免用户困惑
Highlights
- 明确警告常见错误(如 content/child-table desync)
- 提供版本兼容性说明和迁移注意事项
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.