-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.coderabbit.yaml
More file actions
72 lines (70 loc) · 2.91 KB
/
.coderabbit.yaml
File metadata and controls
72 lines (70 loc) · 2.91 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
language: "en-US"
early_access: false
reviews:
profile: "chill"
request_changes_workflow: false
high_level_summary: true
poem: false
review_status: true
collapse_walkthrough: false
auto_review:
enabled: true
drafts: false
base_branches:
- "main"
path_filters:
- "!node_modules/**"
- "!opensrc/**"
- "!.pi/**"
- "!.claude/**"
- "!*.tgz"
- "!package-lock.json"
tools:
biome:
enabled: true
markdownlint:
enabled: true
gitleaks:
enabled: true
path_instructions:
- path: "package.json"
instructions: |
Verify Pi package metadata carefully:
- `package.json#pi` must discover every shared extension, skill, prompt, and theme.
- Pi core packages must stay in `peerDependencies`; extension runtime dependencies belong in `dependencies`.
- Do not approve manifest URLs or identity-bearing values unless they are source-of-truth verified.
- path: "extensions/**"
instructions: |
Review Pi extensions for agent safety:
- Tool names should be globally specific snake_case.
- File mutations must use the repo's mutation queue pattern across the whole read-modify-write window.
- Large tool outputs must truncate and point to full output storage.
- UI behavior must be guarded by `ctx.hasUI`.
- Prefer concrete correctness or safety issues over broad refactor suggestions.
- path: "skills/**"
instructions: |
Review Agent Skills for loadability and daily-use workflow:
- `SKILL.md` frontmatter `name` must match the directory.
- `description` should say when to use the skill, not just what it is.
- Daily-use skills are global-first; avoid creating duplicate repo/global copies.
- Relative references must resolve from the skill directory.
- path: "prompts/**"
instructions: |
Review prompt templates for Pi compatibility:
- Shared prompt commands should use `*.prompt.md`.
- Frontmatter should include a concise `description`; `argument-hint` should match actual placeholders.
- Prompts must not instruct agents to push, open PRs, or post externally unless the workflow explicitly expects it.
- path: "rules/**"
instructions: |
Review rules as agent-facing remediation docs:
- Prefer imperative wording: do X, not Y, because Z.
- Flag duplicated or conflicting rules across files.
- Rules should be specific enough to convert repeated review feedback into future automation.
- path: ".github/workflows/**"
instructions: |
Review CI workflows for package safety:
- CI should run `npm ci`, `npm run check`, and package dry-run validation.
- Avoid writing secrets or requiring unavailable credentials for pull_request checks.
chat:
auto_reply: true