Skip to content
Prompt

cursor_rules_1c — Cursor Rules

by comol

AI Summary

Cursor Rules booster provides guidelines for writing efficient form modules in 1C:Enterprise, focusing on client-server interaction patterns and compilation directives. Developers working with form-based UI in 1C will benefit from these performance and architecture best practices.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "cursor_rules_1c — Cursor Rules" prompt rules to my project.
Repository: https://github.com/comol/cursor_rules_1c

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

when working on form modules (ФормаМодуль, Form.Module.bsl)

Client-Server Interaction

• Minimize client-server round trips in form modules. • Group multiple server calls into a single call when possible. • Avoid calling server methods in loops on the client side.

Compilation Directives

Available compilation directives for form module methods: | Directive | Context | Use Case | |-----------|---------|----------| | &НаКлиенте | Client-side execution | UI interactions, user input handling | | &НаСервере | Server-side with form context | When you need to modify form attributes/items | | &НаСервереБезКонтекста | Server-side without form context | Preferred for data operations when form context is not needed (reduces data transfer) | | &НаКлиентеНаСервереБезКонтекста | Both client and server without context | Shared utility functions | • Prefer &НаСервереБезКонтекста over &НаСервере when form context is not required — it reduces network traffic.

Async Programming

• Prefer Асинх (async) methods over ОписаниеОповещения (notification description) when async analogues are available. • Use Ждать (Await) for cleaner async code flow.

Form Data

• Use ДанныеФормыВЗначение() / ЗначениеВДанныеФормы() to convert between form data and actual objects. • Remember that form attributes are not the same as object attributes — they are form-specific representations.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 2mo ago
Active
Adoption100+ stars on GitHub
171 ★ · Growing
DocsMissing or thin
Undocumented

GitHub Signals

Stars171
Forks37
Issues2
Updated2mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more