Skip to content
Development
Skill

/1c-business-tests

Create, maintain and run reusable tests of 1C business logic using the project's verified framework or runner. Optional: the model chooses when persistent regression coverage adds value beyond a focused result check.

From plugin
ai-rules-1c
55032 skills13 agents45 commands

Claude Code

$ npx -y skills add comol/ai_rules_1c --skill 1c-business-tests --agent claude-code

SKILL.md

1c-business-tests.SKILL.md
name: 1c-business-tests
description: "Create, maintain and run reusable tests of 1C business logic using the project's verified framework or runner. Optional: the model chooses when persistent regression coverage adds value beyond a focused result check."
argument-hint: "<business behavior, regression or existing test>"

1c-business-tests — reusable business-logic checks

Save executable checks for calculations, query results and business behavior that merit repeated verification. The model decides whether to use this skill; a reported regression, important boundary condition or recurring calculation is a useful trigger. A one-off read-only comparison through Gate 3a may be enough for a small change. Do not make test-suite creation a mandatory full-cycle stage.

Choose a verified execution path

Inspect the target project's tests, framework version, assertions, fixtures and run command. Reuse that framework and naming style. Confirm its actual API from project examples and authoritative documentation; never assume a module suffix, assertion signature, MCP tool or installed test extension from another repository.

If no suite exists, choose the smallest verified runner compatible with the task and available tooling. A callable MCP operation can help prepare or execute a check, but chat-only invocations are not a standalone runner. For a repeatable suite, save the case definitions plus a real project entry point or supported runner invocation. If none is available, identify the missing dependency and keep execution blocked; do not invent `run_unit_tests`, claim that a Markdown plan is an executable suite or install an extension silently.

Relevant project routing:

  • `content/skills/1c-code-search/SKILL.md` and `content/skills/1c-meta-info/SKILL.md` — locate the implementation and confirm test data shapes in the correct project / extension.
  • `content/skills/1c-platform-help/SKILL.md` — confirm platform / BSP behavior actually used by the test.
  • `content/skills/1c-live-ib/SKILL.md` — exact exposed live-IB calls and their limits; Gate 3a remains read-only and does not become a fixture writer.
  • `content/skills/1c-metadata-manage/SKILL.md` — any test module / metadata creation; installed test code is still subject to the ordinary metadata, repository and validation gates.

Define the cases before implementing them

For each relevant acceptance criterion record:

  • stable case ID, purpose and initial data;
  • action / input and explicit expected values or error;
  • target source / configuration state, required rights and execution context;
  • whether the case is read-only or mutating, and who owns its fixtures.

Choose representative normal, empty / boundary and failure cases according to the changed behavior. Assertions must distinguish the reported defect from correct behavior: successful execution or a nonempty result alone seldom proves a calculation or set of movements. Compare the relevant values, composition and counts against independently derived expectations. Test behavior through the intended contract instead of reproducing the implementation inside the assertion.

Author and execute

1. Save tests using the existing framework conventions. Preserve deterministic inputs; avoid dependence on today's date, test order or arbitrary records from the database. Keep dataset size bounded to the behavior under test. 2. Route saved BSL and metadata through the applicable gates in `content/rules/verification-policy.md` and `content/rules/verification-gates.md` before loading or running it. Tests do not exempt generated code from validation. 3. Verify the target is an authorized dev/test infobase and matches the relevant sources / extension. Loading test modules or applying a test extension uses the existing infobase workflow, with one deployment owner. Framework availability alone does not authorize a deployment. 4. For mutating scenarios, establish the authorized objects/actions, isolated fixtures, ownership identifiers and cleanup/recovery plan before execution. Existing authorization is reusable; do not ask twice. Do not run on production, alter shared reference data or assume that a transaction rollback reverses every side effect. Read-only tests must remain read-only, including their setup and teardown. 5. Run the selected cases through the verified runner. Preserve its failure status; setup/teardown errors and zero discovered cases are failures or explicit blocked states, never passes. Capture case ID, expected/actual comparison, source/deployed state and report/log location without credentials or personal data. 6. Clean up only data owned by this run through the authorized project mechanism, including after failures. Report incomplete cleanup separately without replacing the original test failure. An installed test module / extension is not silently removed or left enabled: follow the agreed lifecycle for this target.

`UI_TESTING` controls browser checks, not these server-side tests. Tool policy, infobase authorization and test-fixture boundaries still apply. A technical user's successful test does not establish another user's rights; an access-control scenario needs the intended verified identity.

Delivery

Provide the saved test files, verified framework/runner and exact run command, covered criteria and prerequisites. Separate `authored`, `executed: passed`, `executed: failed` and `blocked/unverified`; list fixture cleanup status when relevant. Static validation is not a runtime pass.

When a check fails, preserve its expectation unless evidence shows the specification itself needs clarification. Fix the in-scope cause and confirm affected checks within the existing verification budget. Do not turn skill selection into an unlimited test/fix loop. For saved browser scenarios use `content/skills/1c-ui-regression/SKILL.md`.

Read more
@comol
Ships withai-rules-1c

Rules\skills\subagens for vibecoding in 1C(bsl)

55032 skills13 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
550
Star history of comol/ai_rules_1c on GitHub, a chart by star-history.com

Other skills on ai-rules-1c.

openspec-apply-change

openspec-apply-change

Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through…

@comol@comolInstall Skill
openspec-archive-change

openspec-archive-chang…

Archive a completed OpenSpec change in the experimental workflow. Use when the user wants to finalize and archive a change after…

@comol@comolInstall Skill
openspec-explore

openspec-explore

Enter OpenSpec explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements in a…

@comol@comolInstall Skill
openspec-propose

openspec-propose

Propose a new OpenSpec change with all artifacts generated in one step. Use when the user wants to quickly describe what they…

@comol@comolInstall Skill
openspec-sync-specs

openspec-sync-specs

Sync delta specs from an OpenSpec change to main specs. Use when the user wants to update main specs with changes from a delta…

@comol@comolInstall Skill
openspec-update-change

openspec-update-change

Update an OpenSpec change by revising its existing planning artifacts and keeping them coherent with one another. Use when the…

@comol@comolInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills3w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc3w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react13d252k
@facebook@facebookInstall Skill

Questions about 1c-business-tests.

Which coding agents can use 1c-business-tests?
1c-business-tests installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.