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: .agents/skills/add_sensor_component_v1/SKILL.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,8 +155,12 @@ gh api repos/adafruit/<Library_Repo>/contents/examples --jq '.[].name'
155
155
# then read the .ino file for the simpletest/basic_test/singleshot example
156
156
```
157
157
158
-
If `gh`/Bash is unavailable, use WebFetch on the raw GitHub URL:
159
-
`https://raw.githubusercontent.com/adafruit/<Library_Repo>/main/examples/<example>/<example>.ino` (you may need to access the web version to view default branch andexample related folder structure).
158
+
**Fallback routes** (try in order if `gh`/Bash is unavailable):
159
+
160
+
1.**WebFetch raw GitHub:**`https://raw.githubusercontent.com/adafruit/<Library_Repo>/main/examples/<example>/<example>.ino` (you may need to access the web version (not raw) to view default branch and example related folder structure).
161
+
2.**WebFetch learn guide:**`https://learn.adafruit.com/<guide-slug>.md?view=all` — the Arduino
162
+
section usually contains example code link showing the exact API (or embedded code if non-markdown version).
163
+
3.**Ask the user:** If tools are restricted, ask them to paste the library header and example.
160
164
161
165
From the example, extract the **exact method signatures** used:
162
166
-`begin()` — what arguments, what return type
@@ -179,6 +183,9 @@ gh api repos/adafruit/<Library_Repo>/contents/<Library_Name>.h --jq '.content' |
179
183
180
184
Or via WebFetch: `https://raw.githubusercontent.com/adafruit/<Library_Repo>/main/<Library_Name>.h`
181
185
186
+
If GitHub is blocked, the learn guide `.md?view=all` may contain enough API detail from code
187
+
snippets. If not, ask the user for the header content.
188
+
182
189
**Explicitly set every configuration parameter that the library defaults in `begin()`/`_init()`.**
183
190
This pins behavior so library updates can't silently change WipperSnapper.
184
191
@@ -502,7 +509,7 @@ Requirements:
502
509
-**Formats:** jpg, jpeg, gif, png, svg
503
510
-**Filename:**`image.<ext>`
504
511
505
-
You can usually grab the product image from the Adafruit product API (http://www.adafruit.com/api/product/[pid]) and resize it [4:3] and compress it (using compressjpeg.com) to pass CI validation. Ideally pick the straight-on product shot with a plain background, not angled or lifestyle images. Include a small amount of dead space around the product so it doesn't get cropped in the UI (go with existing examples for reference).
512
+
You can usually grab the product image url details from the Adafruit product API (http://www.adafruit.com/api/product/<pid>) and resize it [4:3] and compress it (using compressjpeg.com) to pass CI validation. Ideally pick the straight-on product shot with a plain background, not angled or lifestyle images. Include a small amount of dead space around the product so it doesn't get cropped in the UI (go with existing examples for reference).
0 commit comments