1c-query-rule: a 1C query skill and a SkillOpt pilot
skillopt-1c-pilot
A skill with 1C query writing rules after SkillOpt text optimization, plus a pilot report with validation accuracy up from 0.529 to 0.706
- 4 ★ on the repository
- Last commit
- MIT
Minimal access
Why this level
- The rules were tested on a small sample of 17 cases and a single model, so they should be checked against real project queries
Install
- Works in
- Services
Manual install
Copy artifacts/skill-after.md into 1c-query-rule/SKILL.md in the agent skills directory, for example ~/.claude/skills/, and ask for a 1C query.
Access and checks
How we reviewMinimal accessThe tool runs nothing and makes no network calls.
- The rules were tested on a small sample of 17 cases and a single model, so they should be checked against real project queries
This is third-party code. Review the repository files before installing.
What it does
The core of the repository is a research pilot by Pavel Zayash on top of Microsoft SkillOpt. The target artifact, the 1c-query-rule skill, sits in artifacts/skill-after.md in before and after versions. The skill demands raw query text starting with ВЫБРАТЬ, prefers temporary tables to nested queries, avoids joining real tables with virtual ones directly, avoids the ambiguous field error when joining tabular sections and checks queries after `syntaxcheck`. The 120-case corpus was labelled semi-automatically; on a full epoch validation accuracy rose from 0.529 to 0.706 for about 2.9 dollars.
Who it is for. 1C developers who write queries and dynamic lists with an agent, and researchers studying metric-driven skill optimization.
Good fit when
- An agent writes 1C queries for processors, reports or dynamic lists
- You want a base for your own query skill with ready rules on temporary tables
- You are interested in an example of optimizing a skill as text with held-out validation
- You want to see how a gate accepts or rolls back skill edits
Not a fit when
- You need a full set of 1C development standards: this is one narrow rule about queries
- You need a one-command install: the skill has to be copied by hand from artifacts
- You need verification on a large sample: validation had only 17 examples
Example request
Write a 1C query for stock balances by warehouse using a temporary table and no nested queriesLimitations
This is a pilot report rather than a maintained skill package: the skill sits in artifacts/skill-after.md and has to be put into the agent skills directory by hand. The author names the main limits: scoring uses the built-in query validator, validation of 17 cases is small, and model instability between runs is not accounted for. The target model was Cursor Composer 2.5, and other models were not tested. Four stars, one author, last commit in June 2026.
How to disable. Delete the copied 1c-query-rule skill folder from the agent skills directory.
FAQ
What is inside the skill?
Rules for writing 1C queries: response format, temporary tables instead of nested queries, ambiguous fields when joining tabular sections, a check after `syntaxcheck`.
Which model was it tested on?
On Cursor Composer 2.5, with gpt-5.5 as the optimizer through the Cursor chat backend.
What gain did the pilot show?
Validation accuracy rose from 0.529 to 0.706, a 17.6 percentage point gain on a sample of 17 cases.
Which optimization engine?
Microsoft SkillOpt: gradient descent in text space with reflect patches and gated acceptance of edits.
Is there a ready MCP server?
Not in this repository; the query validator mentioned in the report belongs to another project of the author.
Discussion
No questions or reviews yet.
Related
All 1C:Enterprise tools85 skills and 21 rules for 1C:Enterprise development in Cursor: configuration, extensions, forms, templates, roles, DCS, web publishing
A GitHub Copilot skill, dev-1c, for 1C:Enterprise 8.2 development: research, design, phased planning and BSL code review against a checklist
A skill for fast 1C extension development: an edit-load-test loop, storage discipline and AI features through TAB's AI Library
Cursor skills for 1C
1C Cursor skills
A set of Cursor skills for 1C: an analyst skill with a task template, configuration and extension editing, SKD, forms, tests and platform tooling
expert-1c-erp skill
expert-1c-erp
A skill with semantic search over ITS documentation for 1C:ERP 2.5: answers on methodology and accounting citing the source article, never inventing facts
A pure-Python skill that parses a batch 1C query into subqueries and temp tables, builds a dependency graph and returns it as JSON
README in short
The README presents the work as a paper: an abstract with results, introduction, method, the 120-case corpus, the optimization run and limits, while artifacts holds the skill before and after, run reports and case labels.