Skip to content

Commit 4a5c370

Browse files
committed
docs: update agent rules
1 parent c010256 commit 4a5c370

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.amazonq/rules/problem-creation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
When user requests a problem by **number** or **name/slug**, the assistant will:
66

7-
1. **Scrape** problem data using `lcpy scrape`
7+
1. **Scrape** problem data using `poetry run lcpy scrape`
88
2. **Transform** data into proper JSON template format
99
3. **CRITICAL: Include images** - Extract image URLs from scraped data and add to readme_examples with format: `![Example N](image_url)\n\n` before code blocks
1010
- Check scraped data for image URLs in the `raw_content` field
@@ -23,10 +23,10 @@ When user requests a problem by **number** or **name/slug**, the assistant will:
2323

2424
```bash
2525
# Fetch by number
26-
lcpy scrape -n 1
26+
poetry run lcpy scrape -n 1
2727

2828
# Fetch by slug
29-
lcpy scrape -s "two-sum"
29+
poetry run lcpy scrape -s "two-sum"
3030
```
3131

3232
## JSON Template Format

.amazonq/rules/test-quality-assurance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ mv .cache/leetcode/{problem_name} leetcode/{problem_name}
5959

6060
```bash
6161
# Generate enhanced problem
62-
lcpy gen -s {problem_name} -o leetcode --force
62+
poetry run lcpy gen -s {problem_name} -o leetcode --force
6363

6464
# Test specific problem
6565
make p-test PROBLEM={problem_name}
@@ -80,7 +80,7 @@ poetry run python -m leetcode_py.tools.check_test_cases --threshold=10 --max=non
8080
# Check with custom threshold
8181
poetry run python -m leetcode_py.tools.check_test_cases --threshold=12
8282

83-
# Generate from JSON template (uses lcpy internally)
83+
# Generate from JSON template (uses poetry run lcpy internally)
8484
make p-gen PROBLEM={problem_name} FORCE=1
8585
```
8686

0 commit comments

Comments
 (0)