framework_eng/rules/predefined-elements/SKILL.md
Before creating a new setting, search for a predefined value
npx skillsauth add steelmorgan/1c-agent-based-dev-framework predefined-elementsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Trigger: the task needs a setting, a named predefined value, a threshold, a flag, a code, a reference to an object, or another parameter that should live centrally.
Settings duplicated across copies or hardcoded as literals in code diverge between installations and silently break logic. If the project already has a centralized store for settings or named predefined values, the agent must first look for the value there and use the standard access layer for it.
| Requirement | Description | |-----------|----------| | Search first | Before creating a new setting or hardcoding a value, find the existing value by business key through the project's standard mechanism. If found, reuse it and do not create a duplicate | | Read through wrappers | If the project has a service module, API, or БСП access wrapper for settings, use it instead of a direct query to storage | | No hardcoding | Do not hardcode codes, references, thresholds, and flags that should be manageable settings. The value must be read by a meaningful business key | | New key only when absent | Create a new setting only after checking that no existing key and no collisions by purpose exist | | One key in one place | Declare the string business key only once: a constant, an exported function, or a single access point. Do not duplicate the literal across the code | | Document the purpose | For a new setting, record the purpose, value format, logic owner, and acceptable default value in task artifacts or project documentation |
ssl-patterns if they fit the task.search-before-write - reuse-first for code and ready-made mechanisms.ssl-patterns - reuse of standard and library mechanisms.depends_on:
development
1C server maintenance webhooks: container restart and external component cache cleanup
development
Interactive DAP debugging of a single BSL procedure
tools
Rules for using RLM tools for project search and navigation in 1C/BSL
development
Creates web applications and routes on Winow (a web server on OneScript and Autumn). Use when working with a web server on OneScript, routing, or Winow controllers.