autogenerate-from-business-rules

Generate Python validators, constants, and unit tests from BR-* business rules.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/foolishimp/ai_sdlc_method --skill autogenerate-from-business-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: autogenerate-from-business-rules
Source: https://github.com/foolishimp/ai_sdlc_method/tree/main/plugins/code-skills/skills/generation/autogenerate-from-business-rules
Command: npx skills add https://github.com/foolishimp/ai_sdlc_method --skill autogenerate-from-business-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest.

What problem does it solve?

Manually translating detailed business rules (BR-*) into production code and tests is time-consuming, error-prone, and lacks consistency. This skill automates that process.

Core Features & Use Cases

  • Code Generation: Automatically converts BR-* specifications into constants, validators, and core logic.
  • Test Generation: Creates comprehensive unit tests for all generated code, ensuring correctness and coverage.
  • Traceability: Tags generated code and tests with BR-* keys for clear linkage to original requirements.
  • Use Case: Given disambiguated business rules for user authentication (e.g., email format, password length, account lockout), this skill generates all necessary Python code for validation, constants, and lockout logic, along with passing tests, in minutes.

Quick Start

Autogenerate production code and tests from the attached business rules (BR-001, BR-002, BR-003, BR-004) for REQ-ID 'UserLogin'.

Frequently Asked Questions about autogenerate-from-business-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate code generation from business rules?

Automate code generation by translating disambiguated business rules (BR-*) into production-ready Python code. This skill converts specifications for validators, constants, and logic into tested modules with full traceability to original requirements, eliminating manual translation errors.

Can I generate unit tests automatically with business rules?

Yes. This skill generates comprehensive unit tests alongside code for all validators, constants, and logic derived from business rules. Tests are tagged with BR-* keys and pass immediately, ensuring correctness and full coverage without manual test writing.

What types of business rules can be converted to code?

Convert authentication rules, input validation specifications, policy enforcement requirements, and lockout logic organized as BR-*, C-*, F-*, and REQ-* keys. The skill produces regex patterns, error messages, uniqueness checks, and account lockout implementations with accompanying tests.

How do I maintain traceability between code and requirements?

Generated code and tests are automatically tagged with BR-* keys from your original business rules. This ensures every line of production code links directly to its source requirement, simplifying audits, compliance verification, and maintenance.

Do I need to write validators and constants manually?

No. This skill eliminates manual validator and constant creation by generating them directly from business rule specifications. Output is production-ready Python with pytest integration, reducing development time from hours to minutes.

What's the input format for business rules?

Organize business rules using BR-*, C-*, F-*, and REQ-* keys with disambiguated specifications—such as email format, password length, and lockout thresholds. The skill processes these structured inputs to generate code, constants, validators, and tests automatically.