bsl-diagnostic-rule-development

bsl-diagnostic-rule-development is a skill for Codex from mussolene/1c_hbk_bsl. It costs 68 tokens per session (737 once invoked), scanned A, original, MIT.

A development guide for creating and fixing diagnostic rules for BSL, the programming language used by the 1C:Enterprise platform.

In plain words
What is it for?
Use it to implement, review, and test BSL rules, compare behavior with BSLLS, and handle syntax trees, performance, configuration, and related-rule overlap.
Why use it?
It helps ensure a rule reports the right language meaning and location, rather than matching only a few examples or producing duplicate warnings.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./.venv/bin/python -m pytest <targeted-tests> -q --no-cov.

Good fit Use it to implement, review, and test BSL rules, compare behavior with BSLLS, and handle syntax trees, performance, configuration, and related-rule overlap.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mussolene/1c_hbk_bsl
agentmods
npx agentmods add skills/mussolene/1c_hbk_bsl/bsl-diagnostic-rule-development

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bsl-diagnostic-rule-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/mussolene/1c_hbk_bsl/bsl-diagnostic-rule-development/github.svg)](https://agentmods.dev/skills/mussolene/1c_hbk_bsl/bsl-diagnostic-rule-development)
Your own site
<a href="https://agentmods.dev/skills/mussolene/1c_hbk_bsl/bsl-diagnostic-rule-development"><img src="https://agentmods.dev/badge/skills/mussolene/1c_hbk_bsl/bsl-diagnostic-rule-development/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bsl-diagnostic-rule-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/mussolene/1c_hbk_bsl/bsl-diagnostic-rule-development"><img src="https://agentmods.dev/badge/skills/mussolene/1c_hbk_bsl/bsl-diagnostic-rule-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 737 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.00737
Opus 5 $0.00034 $0.00368
Sonnet 5 $0.00014 $0.00147
Haiku 4.5 $0.00007 $0.00074

Measured 11d ago against content hash e0e0f7a387d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

bsl-diagnostic-rule-development scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codex/skills/bsl-diagnostic-rule-development/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

BSL Diagnostic Rule Development

Implement rules from language semantics, not from parity counts or isolated corpus examples.

Workflow

  1. State acceptance criteria for semantics, implementation, performance, related-rule consistency, synthetic coverage, parity, and evidence.
  2. Read the public rule page in docs/rule-contracts/BSL###.md, runtime metadata, message localization, configuration parameters, and cited standard.
  3. Define the semantic oracle: the exact statement, expression, query clause, declaration, metadata object, or other language fact that may be diagnosed.
  4. Name the CST nodes or domain objects and the exact token/range that receives the diagnostic.
  5. Review every enabled rule that can report on the same semantic object or range. Keep overlapping reports only when they explain distinct defects.
  6. For BSLLS-backed behavior, compare equivalent semantic facts first. Classify deltas as semantic, range-only, parser/CST, configuration/suppression, duplicate, or a known upstream defect.
  7. Reuse tree-sitter/SDBL CST, DocumentSnapshot, or an existing domain model for structural rules. Use regex or line logic only for genuinely textual semantics.
  8. Add compact positive, negative-twin, range, malformed-input, comment, string, preprocessing, multiline, nested, and overlap tests as relevant. BSL001 must also cover broken documents.
  9. Run targeted tests, relevant wider tests, Ruff, generated documentation, git diff --check, leak checks, and performance/parity probes as needed.
  10. Record OACS evidence and a checkpoint before claiming completion.

Change Gate

Do not edit rule logic until all of these are explicit:

  • the semantic oracle;
  • the CST/domain fact model;
  • the exact diagnostic anchor;
  • the related-rule cluster;
  • the major current delta categories and their root causes;
  • the category the proposed change fixes;
  • the compared input set, configuration mode, coordinate normalization, and sanitized file-key strategy when parity is used.

Read the full file on GitHub · 77 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 77 lines · 68 tokens per session scan A e0e0f7a387d7

Subscribe to this mod's changes

bsl-diagnostic-rule-development is a skill published in the GitHub repository mussolene/1c_hbk_bsl (9 stars, last pushed 15d ago), licensed MIT. It adds 68 tokens to every session and 737 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ai-edt

1C:Enterprise development through the AI-EDT MCP server - BSL analysis and editing, metadata and managed forms, query validation, project diagnostics, debugging, infobase updates and unit tests. Use when the project is a 1C:EDT workspace: BSL modules, .mdo metadata, 1C queries, managed forms. Also use when all you…

Desko77/ai-edt · 111 tokens

1c-bsl-validate

A checker for calls to shared 1C modules, using an exported configuration index. Shared modules are reusable code units that other parts of a 1C application can call.

Desko77/claude-code-skills-1c · 58 tokens

1c-epf-build

A tool for building a 1C external processing from XML source files into an EPF or ERF file. These are packaged files that 1C can open and run as external processors or reports.

Desko77/claude-code-skills-1c · 57 tokens

1c-query-validate

A checker for 1C database queries. It compares the tables, records, virtual tables, and fields named in a query with an index of the 1C configuration.

Desko77/claude-code-skills-1c · 60 tokens

v8unpack-cf

A Python tool for unpacking and rebuilding 1C configuration files (CF, CFE, and EPF) as readable JSON and BSL source files. 1C is a business software platform widely used in Russian-speaking companies.

Desko77/cursor-1c-skills · 63 tokens

1c-meta-validate

A checker for XML metadata objects in a 1C configuration. Metadata describes parts of a 1C application, such as catalogues, documents, registers, and their fields.

Desko77/claude-code-skills-1c · 35 tokens