AGENT SKILL

code-style

Code style rules for readable, maintainable implementation. Load this skill always when writing or editing code, and whenever the user asks about code style, refactoring shape, function/file size, object-oriented structure, helper ordering, or comments. For Frappe-specific work, prefer frappe-app-dev.

License 许可
AGPL-3.0
最近更新
2026-11-09
Stars
★ 6
Forks
1

01 前言 Front Matter

name
code-style
description
Code style rules for readable, maintainable implementation. Load this skill always when writing or editing code, and whenever the user asks about code style, refactoring shape, function/file size, object-oriented structure, helper ordering, or comments. For Frappe-specific work, prefer frappe-app-dev.

03 SKILL.md 正文

Code Style Rules

  • Keep functions small. Split when a function has multiple jobs or needs sections to be readable.
  • Keep files under 300 lines when practical. Split by responsibility, not by arbitrary layer.
  • Prefer object-oriented code over scattered functions.
  • Put higher-order/public functions near the top of the file; keep low-level utilities at the bottom.
  • Write terse, simple English comments. Explain why something is surprising; do not narrate obvious code.
  • Do not add abstractions until there are repeated concrete uses.

04 同仓库更多 Skills

Venkateshvenki404224
Venkateshvenki404224/benchpress

benchpress-docs

Read and search the BenchPress documentation. Use when working with BenchPress — its setup, configuration, API, and behavior.

★ 6
Venkateshvenki404224
Venkateshvenki404224/benchpress

benchpress-docs

Read and search the benchpress documentation. Use when working with benchpress — its setup, configuration, API, and behavior.

★ 6
Venkateshvenki404224
Venkateshvenki404224/benchpress

ui-design

General UI/UX judgment for layout, polish, visual hierarchy, spacing, typography, color, and accessibility. Use when no product-specific or Frappe-specific design system skill applies.

★ 6
Venkateshvenki404224
Venkateshvenki404224/benchpress

technical-writing

Write prose in "Simplified Technical English". This applies to documentation, READMEs, commits, pull request, plans and release notes. It does not apply to code, identifiers, marketing copy, essays, or anything that needs a voice.

★ 6
Venkateshvenki404224
Venkateshvenki404224/benchpress

resolve-backport-conflicts

Resolve merge conflicts in a Mergify backport pull request. When a cherry-pick fails, Mergify commits the conflict markers as they are. This skill takes a pull request link or number as an argument.

★ 6
Venkateshvenki404224
Venkateshvenki404224/benchpress

quality-code-review

Review code for any Frappe application — a checklist distilled from years of engineering practice on correctness, security, performance, concurrency, readability, API design, and testing. Use this when reviewing a diff, a PR, or a piece of code for quality and security, or when you want a reviewer's checklist grounded in hard-won Frappe/ERPNext lessons.

★ 6