Skip to main content

Rules & Skills

AIDK uses two key mechanisms to guide the AI: Rules and Skills. Both reside in the .agent/ directory.

Rules

Rules are .md files in .agent/rules/. The AI reads them before every task to understand project constraints and standards.

Rule Structure

# Rule Name

## Description
Brief description of what this rule enforces.

## Mandatory Guidelines
- Rule 1
- Rule 2

## Correct Example
...

## Incorrect Example
...

Default Rules

RulePriorityDescription
0-force-rule.md0 (highest)Forces the AI to review all rules/skills before starting any task
2-dotenv-environments.md2Environment variable configuration standards using .env files
3-coding-style.md3Coding style rules (file size limits, immutability, etc.)

Priority Order

Rules with lower numbers take precedence. For example, 0-force-rule.md is always applied first.


Skills

Skills are directories in .agent/skills/, each containing at least a SKILL.md file. Skills provide technology-specific or task-specific guidance.

Skill Structure

.agent/skills/
└── my-skill/
├── SKILL.md # Main instructions (required)
├── examples/ # Reference examples (optional)
└── templates/ # File templates (optional)

SKILL.md Frontmatter

---
name: my-skill
description: >
Describe when this skill should be used.
The AI reads this to decide whether to apply the skill.
---

Available Skills

SkillWhen to use
create-skillCreating, writing, or authoring a new Agent Skill
cxl-ansibleWriting Ansible playbooks
cxl-aws-architectureDesigning AWS architectures
cxl-brainstormingBefore any creative/constructive work
cxl-coding-standardsTypeScript/JavaScript/React standards
cxl-docusaurus-setupCreating/updating Docusaurus doc sites
cxl-dynamodbDynamoDB data modeling
cxl-fastapiBuilding REST APIs with FastAPI
cxl-gitignoreCreate/update .gitignore files
cxl-laravelDeveloping Laravel 11+ applications
cxl-phpPHP 8.3+ coding standards
cxl-postgres-patternsSchema design and PostgreSQL queries
cxl-pythonPython coding standards
cxl-report-poCreate structured PA/DA reports
cxl-security-reviewSecurity review when adding auth/APIs
cxl-seoSEO optimization
cxl-terraformWorking with Terraform/OpenTofu

Creating a New Skill

aidk add skill my-new-skill
# Creates: .agent/skills/my-new-skill/SKILL.md

Then edit SKILL.md according to your project's specific needs.


Workflows

Workflows are .md files in .agent/workflows/ that define slash-command-driven processes.

Default Workflows

WorkflowSlash commandDescription
capture-knowledge.md/capture-knowledgeDocument a code entry point in knowledge docs
check-implementation.md/check-implementationCompare implementation with design and requirements
code-review.md/code-reviewCode review before pushing
create-report-po.md/create-report-poCreate PA/DA report from Notion
debug.md/debugRoot cause analysis before code changes
execute-plan.md/execute-planStep-by-step execution of a feature plan
make-release.md/make-releaseMake a new release for the CLX AI Kit
new-requirement.md/new-requirementGenerate docs from requirements to planning
review-deployment.md/review-deploymentReview deployment strategy
review-design.md/review-designReview feature design
review-implementation.md/review-implementationReview feature implementation
review-monitoring.md/review-monitoringReview monitoring and observability setup
review-requirements.md/review-requirementsReview feature requirements
simplify-implementation.md/simplify-implementationSimplify existing code to reduce complexity
update-docs.md/update-docsUpdate all README files and Docusaurus site
update-planning.md/update-planningUpdate planning docs
update-requirement.md/update-requirementUpdate existing feature documentation
write-tests.md/write-testsWrite tests for a new feature