enterprise-scala

Enforce conservative coding standards for enterprise Scala codebases.

Updated Feb 21, 2024
One-click install
npx skills add https://github.com/zhongjis/nix-config --skill enterprise-scala
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: enterprise-scala
Source: https://github.com/zhongjis/nix-config/tree/main/modules/home-manager/features/ai-tools/common/skills/work/enterprise-scala
Command: npx skills add https://github.com/zhongjis/nix-config --skill enterprise-scala

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents common AI agent mistakes in production Scala codebases, ensuring changes align with existing patterns and requirements, thus reducing errors and maintenance overhead.

Core Features & Use Cases

  • Scope Enforcement: Maintains correct visibility modifiers (private, protected, public).
  • Trait Management: Ensures traits are mixed in only when necessary and without causing cascading changes.
  • Code Consistency: Enforces rules for companion objects, implicit declarations, and method signatures to match existing code.
  • Use Case: When an AI agent modifies a critical Scala service, this Skill acts as a reviewer, flagging any changes that widen scope unnecessarily or introduce complex trait dependencies that could destabilize the system.

Quick Start

Apply the enterprise-scala skill to ensure all changes to Scala code adhere to production guardrails.

Frequently Asked Questions about enterprise-scala

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

FAQPage Schema
How do I enforce conservative coding standards when an AI agent modifies Scala code?

To enforce conservative coding standards for AI agents modifying Scala code, apply guardrails that restrict visibility modifiers, trait mixins, companion objects, implicit declarations, and method signatures to maintain production codebase integrity.

What rules should an AI agent follow when editing production Scala files?

When editing production Scala files, an AI agent must adhere to visibility, trait mixin, companion object, implicit declaration, and method signature rules to align with existing patterns and prevent unnecessary scope widening or complex trait dependencies.

How do I prevent AI from widening the scope of visibility modifiers in a Scala codebase?

Prevent AI from widening scope visibility in a Scala codebase by applying scope enforcement guardrails that strictly maintain correct private, protected, and public modifiers during code generation and modification tasks.

Can I use enterprise Scala guardrails for modifying build.sbt and writing traits?

Yes, enterprise Scala guardrails apply to all Scala development tasks including modifying build.sbt, writing traits, classes, objects, and performing code reviews to ensure changes match existing code consistency requirements.

What is the best way to manage trait mixins and implicit declarations generated by AI?

The best way to manage AI-generated trait mixins and implicit declarations is to enforce code consistency rules that ensure traits are mixed in only when necessary and implicit declarations match existing code patterns to avoid destabilizing the system.