erpnext-syntax-hooks

Configure ERPNext hooks.py doc_events and scheduler_events across v14, v15, and v16.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ERPNext hooks.py configuration often diverges across v14, v15, and v16, leading to inconsistent app behavior and hard-to-trace bugs.

Core Features & Use Cases

  • Deterministic wiring for doc_events, scheduler_events, boot hooks, fixtures, and overrides.
  • Version-aware patterns for extend_doctype_class and hook resolution order.
  • Clear guidance for safe overrides and extensions to ensure production-grade ERPNext apps.

Quick Start

Load and apply the deterministic ERPNext hooks configuration to ensure consistent behavior across ERPNext versions.

Frequently Asked Questions about erpnext-syntax-hooks

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

FAQPage Schema
How do I configure ERPNext hooks.py consistently across v14, v15, and v16?

Configuring ERPNext hooks.py consistently across versions requires version-aware patterns for doc_events, scheduler_events, and overrides. This skill standardizes hook resolution and enforces validation to ensure deterministic app behavior throughout ERPNext deployments.

Why does my ERPNext app behave inconsistently when extending doc_events and scheduler_events?

ERPNext app behavior becomes inconsistent when hooks.py configurations diverge across versions. Applying deterministic wiring patterns for doc_events and scheduler_events enforces safe extensions and standardizes hook resolution order to prevent hard-to-trace bugs.

What's the best way to override doctype classes safely in ERPNext hooks?

Safe doctype class overrides in ERPNext hooks require version-aware patterns for extend_doctype_class and strict hook resolution order. This approach enforces validation and production-grade best practices while preserving existing ERPNext extension workflows.

Can I use extend_bootinfo and fixtures hooks deterministically across multiple ERPNext versions?

You can configure extend_bootinfo and fixtures hooks across ERPNext v14, v15, and v16 using deterministic wiring. This skill standardizes boot hook resolution and enforces safe patterns to maintain consistent app behavior without breaking existing extension workflows.

When should I not use manual hook overrides in ERPNext hooks.py?

Manual hook overrides in ERPNext hooks.py should be avoided when configurations diverge across v14, v15, and v16, leading to inconsistent app behavior. Standardized validation and version-aware patterns are needed to ensure deterministic, production-grade extensions.

Does erpnext-syntax-hooks support existing ERPNext extension workflows?

Yes, erpnext-syntax-hooks preserves existing ERPNext extension workflows while enforcing safe override patterns and validation. It standardizes doc_events, scheduler_events, and boot hooks across v14, v15, and v16 for deterministic app behavior.