Home

>

CodeSpell Codeing Assistant

>

Rules

Using the CodeSpell Coding Assistant

Rules (Consistent, Scalable, and Smart Guidance):

What Are Rules?

Rules are system-level instructions that guide how the CodeSpell Agent behaves specific to the nature of application.
They bundle prompts, scripts, and configuration logic into reusable units, making it easy to define, manage, and share consistent workflows across individuals, teams, and the entire organization.

Why Rules Matter?

 Rules help teams:

Maintain consistent coding standards across projects and users
Enforce best practices automatically during code generation and optimization
Reduce manual reviews by ensuring uniform behavior from the Agent
Scale workflows efficiently across teams and organizations

How Rules Work?

Rules act as instructions to the CodeSpell Agent
When a spell is applied, the Agent evaluates the applied Rules
The output is generated as per the instructions and guidelines defined in the selected rule.

Rules Privacy & Visibility

Control How Rules Are Shared within org.

When creating a Rule in CodeSpell, you can decide whether the instructions embedded inside the rule are visible to other users. This gives you full control over transparency, reuse, and confidentiality.
The privacy setting is chosen at the time of rule creation

Private & Controlled Rule Usage:

Rules can be utilized only within the selected teams or organization. The rule content can be kept private, allowing users to apply the rules for generating output without viewing the underlying details. This helps organizations safeguard their internal approaches, standards, and best practices.

Why Rules Privacy Matters?

Protects sensitive logic or proprietary workflows
Allows teams to share standards without exposing internal prompts
Enables flexibility between open collaboration and strict governance

Types of Rules in CodeSpell

 Project Rules

Applied only to a specific project
Ideal for project-specific conventions or frameworks

Organization Rules

Enforced across the entire organization
Defines global standards, security guidelines, and best practices