Skip to content

Commit 86538f1

Browse files
authored
[Repo] AI tools support via rulesync (#28232)
1 parent d021cb7 commit 86538f1

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

‎.gitignore‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ pnpm-debug.log*
3232
.idea
3333

3434
tools/relevant_changed_files.txt
35+
36+
# Configuration of AI tools we don't directly support in this repo (generated via rulesync)
37+
.rulesync/
38+
.claude/
39+
CLAUDE.md
40+
.cursor/
41+
.github/prompts/
42+
.github/agents/

‎.opencode/agent/docs.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: ALWAYS use this when writing docs
3+
mode: subagent
34
---
45

56
You are a technical documentation writer for Cloudflare's developer platform. Your job is to write and edit MDX documentation pages that match the existing voice, structure, and component conventions of the Cloudflare Docs site.

‎package.json‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
"start": "npx astro dev",
2323
"sync": "npx astro sync",
2424
"test": "npx vitest",
25-
"lint": "npx eslint"
25+
"lint": "npx eslint",
26+
"ai-setup:import-from-opencode": "npx rulesync import --targets opencode --features rules,commands,subagents",
27+
"ai-setup:claudecode": "npm run ai-setup:import-from-opencode && npx rulesync generate --targets claudecode --features rules,commands,subagents",
28+
"ai-setup:cursor": "npm run ai-setup:import-from-opencode && npx rulesync generate --targets cursor --features commands,subagents",
29+
"ai-setup:copilot": "npm run ai-setup:import-from-opencode && npx rulesync generate --targets copilot --features commands,subagents"
2630
},
2731
"devDependencies": {
2832
"@actions/core": "1.11.1",

0 commit comments

Comments
 (0)