openaec-foundation/frappe_claude_skill_package/frappe-impl-website
Claude Code and agent skill by openaec-foundation/frappe_claude_skill_package
- community
- ext:[{"type":"context","description":"Custom context provider definitions"}]
Checking that the SKILL.md file is still in the repository.
Use when building portal pages, Web Forms, website routes, or configuring themes and SEO in Frappe. Prevents 404 errors from wrong route resolution, broken Web Form submissions, and missing meta tags for SEO. Covers Web Page, Web Form, Portal Settings, Website Settings, website routes, Jinja templates, Blog, Web Template, has_web_view, meta tags, sitemap. Keywords: website, portal, Web Form, Web Page, route, theme, SEO, meta tags, has_web_view, Blog, Web Template, sitemap, customer portal, self-service, public form, web page, website not showing, 404 on portal..
Install
npx vskill@latest install openaec-foundation/frappe_claude_skill_package/frappe-impl-websiteSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as openaec-foundation/frappe_claude_skill_package/frappe-impl-website.
Frappe Website & Portals — Implementation Workflows
Step-by-step workflows for building websites, portals, and public-facing pages. For hooks syntax see frappe-impl-hooks. For Jinja templating see frappe-impl-jinja.
Version: v14/v15/v16 | Note: v15+ uses Bootstrap 5; v14 uses Bootstrap 4.
Quick Decision: Which Page Type?
See references/decision-tree.md for the complete decision tree.
Workflow 1: Create a Portal Page (www/)
Portal pages live in your app's www/ directory. The file name becomes the URL route.
- Create
myapp/www/custom_page.html:
- Create matching controller
myapp/www/custom_page.py:
- Result: page available at
/custom_page
File types auto-loaded: .html (template), .py (controller), .css (styles), .js (scripts).
Subdirectory pattern — for nested routes:
Context Variables Reference
| Key | Type | Effect | |
|---|---|---|---|
title | str | Page title and browser tab | |
no_cache | bool | Disable page caching | |
no_header | bool | Hide the page header | |
no_breadcrumbs | bool | Remove breadcrumbs | |
add_breadcrumbs | bool | Auto-generate from folder structure | |
show_sidebar | bool | Display web sidebar | |
sitemap | int | 0 = exclude from sitemap, 1 = include | |
metatags | dict | SEO meta tags (see Workflow 7) |
Rule: ALWAYS set no_cache = 1 for pages with user-specific or frequently changing content.
Workflow 2: Create a Web Form
Web Forms let external users submit data that creates Frappe documents.
- Navigate to Web Form list → New Web Form
- Set Title, select target DocType, set Route (URL slug)
- Add fields — ALWAYS match
fieldnameto the target DocType field names - Configure access:
- Login Required: uncheck for guest submissions
- Allow Edit: let users edit their submissions
- Allow Multiple: let users submit more than once
- Save and publish
Guest Submissions
Web Form Custom Script (Client)
Web Form Custom Script (Server: Python)
In the Web Form document, add a Python script:
Rule: NEVER trust client-side validation alone for Web Forms. ALWAYS validate in the target DocType's controller or server script.
Workflow 3: Enable has_web_view on a DocType
This makes individual documents accessible as web pages (e.g., /articles/my-article).
- Open DocType → check Has Web View and Allow Guest to View
- Set the Route field prefix (e.g.,
articles) - ALWAYS add these fields to the DocType:
route(Data, hidden) — auto-generated URL slugpublished(Check) — controls visibility
- Create templates in the DocType directory:
{doctype_name}.html— single record template{doctype_name}_row.html— list item template
- In
hooks.py, register as website generator:
- In the controller, implement
get_context:
Rule: ALWAYS include a published check field. NEVER expose unpublished documents to guests.
Workflow 4: Website Route Rules (hooks.py)
Route rules map URL patterns to controllers or pages.
Priority order for homepage: get_website_user_home_page > role_home_page > Portal Settings > Website Settings.
Workflow 5: Blog Setup
- Create Blog Category documents (e.g., "News", "Updates")
- Create Blog Post documents:
- Select category, write content (Markdown or Rich Text)
- Set Published and Published On date
- Blog route auto-generates as
/blog/{slug}
- Configure in Website Settings:
- Set blog title
- Enable/disable comments
Rule: ALWAYS set Published On date — posts without a date NEVER appear in RSS feeds.
Workflow 6: Website Theme & Custom CSS
Via Website Theme DocType
- Navigate to Website Theme → New
- Configure: fonts, colors, navbar style, button radius
- Add custom CSS in the Custom CSS field
- Set as active theme in Website Settings
Via hooks.py
Workflow 7: SEO: Meta Tags, Open Graph & Sitemap
In portal pages (frontmatter or context)
In Web Page DocType
Set meta fields directly: Meta Title, Meta Description, Meta Image.
Sitemap
- Frappe auto-generates
/sitemap.xmlfrom published Web Pages and has_web_view documents - Exclude pages: set
sitemap = 0in context or frontmatter - Custom robots.txt: set
robots_txtpath insite_config.json
Rule: ALWAYS set meta description on public pages. NEVER leave it empty — search engines penalize pages without descriptions.
Workflow 8: Guest Access & Security
Security rules:
- ALWAYS enable CSRF protection (default). NEVER set
ignore_csrfin production - ALWAYS rate-limit guest-accessible endpoints
- ALWAYS sanitize user input in Web Forms (Frappe does this by default for standard fields)
- NEVER expose internal DocType names in guest-facing URLs without access control
Anti-Patterns
| Anti-Pattern | Correct Approach | |
|---|---|---|
Hard-coding HTML in get_context | Use Jinja templates with context variables | |
Skipping no_cache on dynamic pages | ALWAYS set no_cache = 1 for user-specific content | |
| Guest Web Form without rate limiting | ALWAYS configure rate limits for guest forms | |
Missing published field on has_web_view | ALWAYS add published check to prevent data leaks | |
Using website_route_rules for simple redirects | Use website_redirects instead | |
| Putting business logic in www/ controllers | Keep in DocType controllers; www/ is for presentation |
See references/anti-patterns.md for expanded anti-patterns with examples.
See Also
frappe-impl-hooks— Website hooks in detailfrappe-impl-jinja— Jinja templating patternsfrappe-impl-controllers— DocType controllers (WebsiteGenerator)frappe-syntax-clientscripts— Client-side API for Web Formsreferences/generators.md— Portal generators, blog system, custom routing patternsreferences/workflows.md— Extended workflow walkthroughsreferences/examples.md— Complete code examplesreferences/decision-tree.md— Full decision tree for page types
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-website/SKILL.md
Popularity
- Repository stars
- 91
- Repository forks
- 26
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 29 Apr 2026, 7 months ago.
Extension points
contextCustom context provider definitions
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-website)