Loading...
Loading...
Create and manage user rules that customize AI behavior. Use this skill when users want to create new rules, update existing rules, organize rules, or need guidance on writing effective rules for their projects or personal preferences.
npx skill4agent add toilahuongg/google-antigravity-kit rule-creatorcoding-stylelanguageprojectgitnamingsecuritytestingdocumentation## [Category]: [Short Title]
[Clear instruction in imperative form]
Example:
[Code or text example showing correct usage]
Exception: [When this rule doesn't apply, if any]## Coding: [Title]
[What to do and how to do it]
✅ Correct:
[good example]
❌ Avoid:
[bad example]## Project: [Title]
Use [technology/pattern] for [purpose].
Configuration:
[relevant settings or file structure]## Workflow: [Title]
[Step-by-step process or checklist]
1. [First step]
2. [Second step]
3. [Third step].agent/rules/.agent/rules/
├── git-commit.md # Git commit format rules
├── coding-style.md # Coding style rules
├── naming-conventions.md # Naming rules
├── security.md # Security rules
└── testing.md # Testing rules{rule-name}.mdgit-commit.mdcoding-style.mdapi-design.md---
activation: always_on # or: manual, model_decision, glob
description: Brief description for model decision mode
globs: ["*.ts", "src/**/*.tsx"] # only for glob activation
---
# [Rule Category Title]
Brief description of what this rule covers.
## Rule 1: [Title]
[Rule content with examples]
## Rule 2: [Title]
[Rule content with examples]| Mode | Frontmatter | Description |
|---|---|---|
| Manual | | Activated via @mention in input (e.g., |
| Always On | | Always applied to all conversations |
| Model Decision | | Model decides based on |
| Glob | | Applied to files matching |
---
activation: always_on
------
activation: manual
------
activation: model_decision
description: Apply when working with git commits or version control
------
activation: glob
globs: ["*.ts", "*.tsx", "src/**/*.js"]
---@filename| Path Type | Example | Resolution |
|---|---|---|
| Relative | | Relative to rule file location |
| Absolute | | First tries true absolute path, then workspace-relative |
| Workspace | | Relative to workspace/repository root |
For API conventions, see @/docs/api-guidelines.mdAll API responses must follow the types in @app/types/api.types.tsSee also: @coding-style.md for naming conventions.agent/rules/