diff --git a/.claude/skills/test-sdk/SKILL.md b/.claude/skills/test-sdk/SKILL.md new file mode 100644 index 0000000..46264d7 --- /dev/null +++ b/.claude/skills/test-sdk/SKILL.md @@ -0,0 +1,70 @@ +--- +name: test-sdk +description: Run a full end-to-end test of the scrapegraph-js SDK against the live API using an API key the user provides at invocation. Exercises every public method on the ScrapeGraphAI client. Use when the user asks to "test the SDK", "run SDK tests", or "/test-sdk". +--- + +# Test the scrapegraph-js SDK + +## Hard rules + +1. **Never push directly to `main`.** Do not run `git push`, `git push origin main`, or any force-push against `main`. Do not commit to `main` on the user's behalf. If changes are needed, create a branch and open a PR — never bypass review on the SDK's main branch. +2. **Never skip git hooks.** No `--no-verify`, no `--no-gpg-sign`. +3. **Use the API key the user provides in this turn.** Do not read `SGAI_API_KEY` from the shell environment or from `.env`. Do not hardcode it into any file. Do not commit it. Do not echo it into long-lived logs. +4. **If the user did not include an API key**, stop and ask for one before doing anything else. + +## How to use the key + +Pass it inline for the duration of each command: + +```bash +SGAI_API_KEY="" bun run