-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAI_RULES.json
More file actions
55 lines (55 loc) · 1.77 KB
/
AI_RULES.json
File metadata and controls
55 lines (55 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[
{
"target": "Claude Code",
"ai_workflow": {
"type": "steps",
"preamble": "TypeScript ESM CLI tool (AI Rulesmith). Uses Commander.js, Zod, Vitest. Source in src/, tests in src/**/*.test.ts. Build with tsup.",
"before_start": [
"workflow/understand-before-changing",
"workflow/incremental-changes",
"git/feature-branch-workflow",
"ai-behavior/confirm-destructive-actions"
],
"before_finish": [
"workflow/verify-before-completing",
"workflow/test-driven-development",
"git/conventional-commits",
{
"slug": "life-manager/track-project-progress",
"vars": {
"project_name": "AI Rulesmith"
}
}
],
"steps": [
{
"step_name": "Create",
"description": "Implement features following project coding standards.",
"rules": [
"code-style/strict-typescript",
"code-style/prefer-functional-style",
"code-style/small-focused-functions",
"code-style/descriptive-naming",
"code-style/early-returns-and-guards",
"code-style/immutable-by-default",
"code-style/no-hardcoded-values",
"error-handling/actionable-error-messages",
"error-handling/typed-errors",
"testing/isolated-unit-tests",
"testing/never-weaken-tests"
]
},
{
"step_name": "Review",
"description": "Review the implementation for quality and security.",
"rules": [
"review/thorough-code-review",
"review/security-audit",
"security/validate-external-input",
"security/never-expose-secrets"
]
}
]
}
}
]