Agent-rules provides a framework for defining rules and instructions for agentic coding tools. It enables developers to create consistent, reusable workflows for tools like Cursor, Claude CLI, and Gemini CLI. This skill is useful for teams looking to automate repetitive coding tasks and enforce best practices across their development workflows.
git clone https://github.com/lirantal/agent-rules.gitAgent-rules provides a framework for defining rules and instructions for agentic coding tools. It enables developers to create consistent, reusable workflows for tools like Cursor, Claude CLI, and Gemini CLI. This skill is useful for teams looking to automate repetitive coding tasks and enforce best practices across their development workflows.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/lirantal/agent-rulesCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a set of agent-rules for a [COMPANY] in the [INDUSTRY] sector. The rules should focus on [SPECIFIC TASK], such as code formatting, documentation standards, or security checks. Include at least 3 specific rules with clear instructions and examples. Ensure the rules are compatible with tools like Cursor, Claude CLI, and Gemini CLI.
# Agent Rules for Code Formatting at TechCorp
## Rule 1: Consistent Indentation
- **Instruction**: All code must use 2-space indentation.
- **Example**:
```javascript
function example() {
console.log('Hello, World!');
}
```
- **Exception**: Configuration files (e.g., `.eslintrc`, `tsconfig.json`) may use 4-space indentation.
## Rule 2: Semicolon Usage
- **Instruction**: Always use semicolons to terminate statements.
- **Example**:
```javascript
const x = 5;
const y = 10;
```
- **Exception**: Single-line arrow functions may omit semicolons if they are the only statement in the block.
## Rule 3: Documentation Standards
- **Instruction**: Every function must have a JSDoc comment.
- **Example**:
```javascript
/**
* Adds two numbers together.
* @param {number} a - The first number.
* @param {number} b - The second number.
* @returns {number} The sum of a and b.
*/
function add(a, b) {
return a + b;
}
```
- **Exception**: Simple getter/setter functions may omit JSDoc comments if they are self-explanatory.Google's multimodal AI model and assistant
AI assistant built for thoughtful, nuanced conversation
AI-first code editor
IronCalc is a spreadsheet engine and ecosystem
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power