openaec-foundation/frappe_claude_skill_package/frappe-impl-workspace
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 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.
Install
npx vskill@latest install openaec-foundation/frappe_claude_skill_package/frappe-impl-workspaceSKILL.md
The same SKILL.md was published earlier as openaec-foundation/frappe_claude_skill_package/frappe-impl-workspace.
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?
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: ThecontentJSON 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:
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
ALWAYS add corresponding child-table rows when settingcontentJSON programmatically.
Workflow 3: Create Supporting Documents First
Before adding components to a workspace, create the referenced documents:
Number Card:
Dashboard Chart:
Shortcut: Shortcuts are child-table entries on the Workspace, not standalone docs:
See references/workspace-components.md for complete component reference.
Permission Model
Three Layers of Access Control
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
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 |
See references/shipping-with-app.md for complete shipping guide.
Common Patterns
Pattern 1: Module Dashboard with KPIs
Pattern 2: Role-Based Workspace
Pattern 3: Sidebar Hierarchy
Reference Files
This is the start of the file. Read the full SKILL.md on GitHub.
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/impl/frappe-impl-workspace/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 28 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-impl-workspace)