enterprise-patterns

enterprise-patterns is a skill for Claude Code, Codex from lubusIN/frappe-skills. It costs 42 tokens per session (1,754 once invoked), scanned A, original, MIT.

A set of design patterns for building complex Frappe business applications such as customer-management, helpdesk, and human-resources systems. It covers data relationships, workflows, service deadlines, assignments, activity records, and outside-system connections.

In plain words
What is it for?
Use it when designing Frappe apps with multiple entities, approval or status workflows, service-level agreements (promised response or resolution times), queues, audit trails, or integrations with email, phone, or other software.
Why use it?
It helps you structure applications with many related records and business steps without designing each part from scratch. It also clarifies how to track deadlines, ownership, history, and integrations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when designing Frappe apps with multiple entities, approval or status workflows, service-level agreements (promised response or resolution times), queues, audit trails, or integrations with email, phone, or other software.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lubusin/frappe-skills/enterprise-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lubusIN/frappe-skills --skill enterprise-patterns
Clone the repo
git clone --depth 1 https://github.com/lubusIN/frappe-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for enterprise-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/lubusin/frappe-skills/enterprise-patterns/github.svg)](https://agentmods.dev/skills/lubusin/frappe-skills/enterprise-patterns)
Your own site
<a href="https://agentmods.dev/skills/lubusin/frappe-skills/enterprise-patterns"><img src="https://agentmods.dev/badge/skills/lubusin/frappe-skills/enterprise-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for enterprise-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/lubusin/frappe-skills/enterprise-patterns"><img src="https://agentmods.dev/badge/skills/lubusin/frappe-skills/enterprise-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,754 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.01754
Opus 5.5 $0.00017 $0.00702
Sonnet 5.5 $0.00008 $0.00351
Haiku 4.5 $0.00004 $0.00175

Measured 2mo ago against content hash df6856c43d86, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

enterprise-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

enterprise-patterns/SKILL.md · 237 lines

How it starts

The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Frappe Enterprise Patterns

Architectural patterns for building production-grade enterprise applications.

When to use

  • Building CRM, Helpdesk, HRMS, or similar multi-entity systems
  • Designing SLA-driven workflows
  • Implementing assignment and queue management
  • Building audit trails and activity logs
  • Integrating with external systems (email, telephony, CRM)

Inputs required

  • System type (CRM/Helpdesk/custom)
  • Core entities and relationships
  • SLA requirements
  • Workflow states and transitions
  • Integration points

Procedure

0) Design data model

Start with clear, normalized DocTypes:

Ticket (parent)
├── customer (Link: Customer)
├── assigned_to (Link: User)
├── status (Select: Open, In Progress, Resolved, Closed)
├── priority (Link: Priority)
├── sla (Link: SLA)
├── activities (Table: Ticket Activity)
└── response_by, resolution_by (Datetime)

Key patterns:

  • Use Link fields for relationships
  • Use child tables for activities, timelines, line items
  • Use Dynamic Link when target DocType varies

1) Implement state machine

Option A: Workflow DocType

  • Create Workflow with states and role-based transitions
  • Link to your DocType

Option B: docstatus for submission flow

docstatus Meaning
0 Draft
1 Submitted
2 Cancelled

Option C: Custom status field with validation

def validate(self):
    allowed = self.get_allowed_transitions()
    if self.status not in allowed:
        frappe.throw(f"Cannot transition to {self.status}")

2) Set up permissions

Row-level filtering:

  • Use User Permissions to restrict by entity
  • Combine with Role Permissions

Always re-check in RPC methods:

@frappe.whitelist()
def update_ticket(name, status):
    doc = frappe.get_doc("Ticket", name)
    if not frappe.has_permission("Ticket", "write", doc):
        frappe.throw("Not permitted", frappe.PermissionError)
    doc.status = status
    doc.save()

3) Build activity trail

Read the full file on GitHub · 237 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 237 lines · 42 tokens per session scan A df6856c43d86

Subscribe to this mod's changes

enterprise-patterns is a skill published in the GitHub repository lubusIN/frappe-skills (68 stars, last pushed 2d ago), licensed MIT. It adds 42 tokens to every session and 1,754 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

enterprise-patterns compared with skills from other repositories

enterprise-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
enterprise-patternslubusIN/frappe-skillsSkill682d agoMITA42Claude Code, Codex
build-mcp-serveranthropics/claude-plugins-officialSkill46kyesterdayApache-2.0A111Claude Code
data-manager-api-setupgoogle/skillsSkill22kyesterdayApache-2.0A86Claude Code, Codex
vss-manage-video-io-storageNVIDIA-AI-Blueprints/video-search-and-summarizationSkill2.0kyesterdayApache-2.0A143Claude Code, Codex
workers-best-practicescloudflare/skillsSkill3.3kyesterdayApache-2.0A25Claude Code
vss-search-archiveNVIDIA-AI-Blueprints/video-search-and-summarizationSkill2.0kyesterdayApache-2.0A67Claude Code, Codex
newclacky-ai/openclackySkill1.2kyesterdayMITA10Claude Code