You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .amazonq/rules/problem-creation.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,11 @@ When user requests a problem by **number** or **name/slug**, the assistant will:
13
13
- Images provide crucial visual context, especially for tree and graph problems
14
14
- Always verify images are included in `readme_examples` and accessible
15
15
4.**Create** JSON file in `leetcode_py/cli/resources/leetcode/json/problems/{problem_name}.json`
16
-
5.**Update** Makefile with `PROBLEM ?= {problem_name}`
17
-
6.**Generate** problem structure using `make p-gen`
18
-
7.**Verify** with `make p-lint` - fix template issues in JSON if possible, or manually fix generated files if template limitations
19
-
8.**Iterate** if JSON fixes: re-run `make p-gen PROBLEM={problem_name} FORCE=1` and `make p-lint` until passes to ensure reproducibility
16
+
5.**Update tags.json5** - If user specifies tags, manually add problem name to corresponding tag arrays in `leetcode_py/cli/resources/leetcode/json/tags.json5`
17
+
6.**Update** Makefile with `PROBLEM ?= {problem_name}`
18
+
7.**Generate** problem structure using `make p-gen`
19
+
8.**Verify** with `make p-lint` - fix template issues in JSON if possible, or manually fix generated files if template limitations
20
+
9.**Iterate** if JSON fixes: re-run `make p-gen PROBLEM={problem_name} FORCE=1` and `make p-lint` until passes to ensure reproducibility
0 commit comments