frappe-syntax-hooks

Organize Frappe hooks.py configuration for custom app behavior.

Updated May 31, 2026
One-click install
npx skills add https://github.com/anonymousminati/Res-POS --skill frappe-syntax-hooks-anonymousminati
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frappe-syntax-hooks
Source: https://github.com/anonymousminati/Res-POS/tree/main/.claude/skills/syntax/frappe-syntax-hooks
Command: npx skills add https://github.com/anonymousminati/Res-POS --skill frappe-syntax-hooks-anonymousminati

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you configure Frappe app hooks correctly without memorizing the framework's full hooks catalog or tripping over version-specific edge cases.

Core Features & Use Cases

  • Hooks coverage: Set up app metadata, frontend asset injection, install and migrate lifecycle hooks, scheduler events, permissions, overrides, website routing, Jinja helpers, boot data, and fixtures.
  • Production guardrails: Follow best practices for dotted-path handlers, permission filtering, long-running jobs, and safe bootinfo usage.
  • Use case: Ask it to build or review a hooks.py for a custom ERPNext app so you can add scripts, background jobs, and access rules confidently across Frappe v14 to v16.

Quick Start

Ask the skill to generate or review a hooks.py configuration for your Frappe app, and specify the hook categories you need in plain language.

Frequently Asked Questions about frappe-syntax-hooks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Frappe hooks.py for custom app behavior?

Configuring Frappe hooks requires organizing app metadata, frontend assets, scheduler events, permissions, and routing using dotted-path handlers. This Skill generates and reviews hooks.py files for custom ERPNext apps across Frappe v14 to v16.

What is the best way to set up scheduler events and permission hooks in Frappe?

Setting up scheduler events and permission hooks requires using dotted-path handlers in hooks.py. This Skill provides production guardrails for long-running jobs and permission filtering to ensure safe custom app behavior in Frappe.

Can I use this to generate hooks.py for a custom ERPNext app on Frappe v16?

Yes, you can generate hooks.py configurations for custom ERPNext apps targeting Frappe v14 to v16. Specify the hook categories you need in plain language, and it covers app metadata, fixtures, and boot data.

How does Frappe bootinfo injection work and what are the limitations?

Frappe bootinfo injection allows passing custom data to the frontend via hooks.py. This Skill provides production guardrails for safe bootinfo usage, but relies on YAML frontmatter in SKILL.md and reference catalogs for detailed implementation.

Do I need YAML frontmatter in SKILL.md to configure Frappe website routing and Jinja extensions?

Yes, YAML frontmatter with name and description in SKILL.md is required. The Skill uses this metadata alongside references to organize website routing, Jinja helpers, and overrides for your Frappe app.