frappe-impl-hooks

Codify Frappe hook implementations with YAML frontmatter and version-aware guidance.

163|53|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/OpenAEC-Foundation/Frappe_Claude_Skill_Package --skill frappe-impl-hooks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frappe-impl-hooks
Source: https://github.com/OpenAEC-Foundation/Frappe_Claude_Skill_Package/tree/main/skills/source/impl/frappe-impl-hooks
Command: npx skills add https://github.com/OpenAEC-Foundation/Frappe_Claude_Skill_Package --skill frappe-impl-hooks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a standardized, self-contained unit for implementing and documenting Frappe hook logic across doc_events, scheduler_events, extend_doctype_class, permission hooks, bootinfo, fixtures, and related UI/assets patterns, reducing integration errors and version conflicts.

Core Features & Use Cases

  • Doc events and scheduler events: define, organize, and reuse hook patterns for document lifecycle and background tasks.
  • Version-aware extend/override patterns: guidance for V16+ extend_doctype_class and V14/V15 override_doctype_class migrations.
  • Bootinfo, assets, and fixtures: consistent client configuration exposure and deployment-ready asset/fixture guidance.
  • Documentation-driven workflows: alignment with reference decision trees, anti-patterns, and migration steps to ensure robust implementations.

Quick Start

Implement hooks by adding doc_events and/or scheduler_events to hooks.py, create or import handlers, and run bench migrate to apply changes.

Frequently Asked Questions about frappe-impl-hooks

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

FAQPage Schema
How do I implement doc_events and scheduler_events in Frappe hooks?

To implement Frappe hooks, define doc_events and scheduler_events in hooks.py, create or import handler functions, and run bench migrate to apply the document lifecycle and background task integration changes.

What is the difference between extend_doctype_class and override_doctype_class in Frappe?

Frappe V16+ uses extend_doctype_class for version-aware class extension, while V14 and V15 rely on override_doctype_class. The Skill provides migration guidance to transition between these patterns safely for production-ready integrations.

Can I use Frappe permission hooks and bootinfo to configure client-side access?

Yes, Frappe permission hooks control user authorization and bootinfo exposes consistent client configuration data. The Skill provides structured workflows to ensure both mechanisms deploy without integration errors.

What are common anti-patterns when defining Frappe fixtures and assets?

Common Frappe fixtures and assets anti-patterns involve inconsistent deployment configurations and version conflicts. The Skill codifies validated patterns and reference decision trees to avoid these integration errors and ensure robust implementations.

Does this Frappe hooks pattern support older framework versions like V14?

Yes, the Skill encompasses version-aware patterns across multiple Frappe versions, specifically providing migration steps and guidance for V14, V15, and V16+ to support safe, production-ready integrations without version conflicts.