Skip to content

Commit 9c9aca7

Browse files
committed
chore: agent rules
1 parent edd8d7c commit 9c9aca7

4 files changed

Lines changed: 34 additions & 0 deletions

File tree

.agents/config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# sync-agents configuration
2+
# Comma-separated list of sync targets (available: claude, windsurf, cursor, copilot)
3+
# Override per-command with: sync-agents sync --targets claude,cursor
4+
targets = claude,windsurf,cursor,copilot

.agents/rules/commitlint.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# commitlint Rule
2+
3+
Trigger: On git commit or PR event
4+
5+
Purpose:
6+
- Enforce commit message standards as per commitlint
7+
8+
Conditions:
9+
- Trigger on new commit or PR creation
10+
11+
Actions:
12+
- Run commitlint CLI against commit message
13+
- If commit message fails, flag as non-compliant
14+
- Notify agent or user for correction
15+
- Block merge or commit if possible
16+
17+
---

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,15 @@ temp
3333
yarn.lock
3434
# package-lock.json # OIDC
3535
dist/
36+
# sync-agents — ignore tool artifacts, keep symlinks
37+
.cursor/*
38+
!.cursor/rules
39+
.codex/*
40+
!.codex/instructions.md
41+
.github/copilot/*
42+
!.github/copilot/instructions.md
43+
.claude/
44+
.windsurf/
45+
.cursor/
46+
.github/copilot/
47+
CLAUDE.md

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This file indexes all rules, skills, and workflows defined in `.agents/`.
1313
## Rules
1414

1515
- [bash](.agents/rules/bash.md)
16+
- [commitlint](.agents/rules/commitlint.md)
1617
- [security](.agents/rules/security.md)
1718

1819
## Skills

0 commit comments

Comments
 (0)