-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatterns.json
More file actions
50 lines (50 loc) · 1.66 KB
/
Copy pathpatterns.json
File metadata and controls
50 lines (50 loc) · 1.66 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
{
"meta": {
"description": "Reusable execution patterns. Reference before implementing similar operations.",
"version": 1
},
"patterns": {
"add_tauri_command": {
"steps": [
"Add #[tauri::command] fn in src-tauri/src/main.rs",
"Register in .invoke_handler(tauri::generate_handler![...])",
"Add TS invoke wrapper in relevant module",
"Update symbol_index.json"
],
"files": ["src-tauri/src/main.rs", "src/modules/<module>.ts", "symbol_index.json"]
},
"add_ui_module": {
"steps": [
"Create src/modules/<name>.ts with exported class",
"Import and instantiate in src/main.ts",
"Add panel/sidebar entry if needed",
"Update symbol_index.json and dependency.json"
],
"files": ["src/modules/<name>.ts", "src/main.ts", "symbol_index.json", "dependency.json"]
},
"modify_settings": {
"steps": [
"Update interface in src/config/settings-schema.ts",
"Update defaults in same file",
"Update load/save in src/modules/settings.ts",
"Update UI if visible setting"
],
"files": ["src/config/settings-schema.ts", "src/modules/settings.ts"]
},
"git_operation": {
"steps": [
"Ask user for confirmation",
"State reason + affected files",
"Review diff first",
"Stage specific files only",
"Execute"
],
"rules": ["no git add .", "no force push", "no --no-verify"]
},
"file_read_strategy": {
"under_10kb": "batch read all at once",
"10_to_50kb": "chunk into groups",
"over_50kb": "partial read — relevant sections only via line ranges"
}
}
}