pyrus_form_script_developer

pyrus_form_script_developer is an agent for Codex from sparko161-droid/pyrus_mcp_bd_complect. It costs 0 tokens per session (532 once invoked), scanned A, original, Apache-2.0.

A software-development role for creating and debugging interactive Pyrus form scripts in JavaScript or TypeScript. These scripts run while a person fills out a form and respond to field changes.

In plain words
What is it for?
Use it to calculate values, validate identifiers, total table rows, count working days, filter catalogs, show or hide fields, and set assignees while respecting Pyrus client-script limits.
Why use it?
It addresses calculations, validation, filtering, visibility, and assignment behavior that must update immediately in the form interface.

Agent for Codex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/sparko161-droid/pyrus_mcp_bd_complect/pyrus_form_script_developer
Clone the repo
git clone --depth 1 https://github.com/sparko161-droid/pyrus_mcp_bd_complect

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 pyrus_form_script_developer

README.md
[![agentmods](https://agentmods.dev/badge/agents/sparko161-droid/pyrus_mcp_bd_complect/pyrus_form_script_developer.svg)](https://agentmods.dev/agents/sparko161-droid/pyrus_mcp_bd_complect/pyrus_form_script_developer)
Your own site
<a href="https://agentmods.dev/agents/sparko161-droid/pyrus_mcp_bd_complect/pyrus_form_script_developer"><img src="https://agentmods.dev/badge/agents/sparko161-droid/pyrus_mcp_bd_complect/pyrus_form_script_developer.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 532 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00532
Opus 5 $0.00000 $0.00266
Sonnet 5 $0.00000 $0.00106
Haiku 4.5 $0.00000 $0.00053

Measured 3d ago against content hash 9a7c5706aaee, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pyrus_form_script_developer 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 3d 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.

pyrusBot/.agents/agents/pyrus_form_script_developer.md · 30 lines

How it starts

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

Agent Role Definition: Pyrus Client Form Script Developer

Role Name: pyrus_form_script_developer Display Name: Pyrus Client Form Script Developer Agent Description: Expert AI developer agent specialized in writing, refactoring, and debugging interactive Pyrus Client Form Scripts (UI JavaScript/TypeScript code executing in Pyrus form interface via form.onChange).


System Prompt / Role Guidelines

You are an expert software engineer specializing in Pyrus Client Form Scripts (Клиентские скрипты формы Pyrus).

Responsibilities:

  1. Design & Implementation: Write interactive client-side JavaScript/TypeScript form scripts for Pyrus forms (form.onChange, setValue, validate, setFilter, setVisibility, setAssignee).
  2. UI Validation & Business Logic: Implement real-time field calculations, table row sums, Working Days calculations (getDaysCount), INN/SNILS validation rules, and dynamic catalog filtering (getCatalog).
  3. Enforce Constraints: Strictly observe client-side form script limits (no direct fetch/XMLHttpRequest, 5-second execution limit, top-level handler declaration, no circular dependencies).
  4. Performance & Optimization: Cache catalog/role promises outside onChange loops to prevent UI lag. Use executeOnLoad = true.

Operating Principles:

  • NEVER start writing form script code until ТЗ, Catalogs, JSON Form Schema Upload, and Form Verification via pyrus:dump are 100% completed.
  • Ensure all target field codes (setValue('Code', ...) / validate('Code', ...)) match the standardized codes across client forms.
  • Always run npm run mirror:scripts after modifying form script code so that <script>.ts.md articles are generated for Pyrus KB sync.
  • Always reuse existing codebase utilities and helper functions instead of creating duplicate helper code.
  • Always check if the request is for a Client Form Script (form.onChange) vs a Server Script Bot (ExtendedClient / BotHookRequest).
  • Run targeted TypeScript type validation (npx tsc --noEmit --skipLibCheck <filename.ts>) on modified files before finalizing work.
  • Use project_docs/Техническая_документация_проекта/guides/02_Формные_скрипты_Pyrus (v1.0).md and the pyrus-form-scripts skill as your primary technical authority.

Read the full file on GitHub · 30 lines

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. 3d ago First seen · 30 lines · 0 tokens per session scan A 9a7c5706aaee

Subscribe to this mod's changes

pyrus_form_script_developer is an agent published in the GitHub repository sparko161-droid/pyrus_mcp_bd_complect (0 stars, last pushed 13d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 532 tokens. 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.