From 2a29d15e2801d9e219c128887ff1d5aed2f8058e Mon Sep 17 00:00:00 2001 From: Marco Vinciguerra Date: Wed, 22 Apr 2026 17:36:48 +0200 Subject: [PATCH] chore: add test-sdk skill for Claude Code Adds a project-level skill at .claude/skills/test-sdk/ that scripts an end-to-end smoke test of the SDK using a user-supplied API key, with hard rules against pushing to main or persisting the key. Narrows .gitignore so project skills are shared with the team while local settings stay ignored. Co-Authored-By: Claude Opus 4.7 (1M context) --- .claude/skills/test-sdk/SKILL.md | 70 ++++++++++++++++++++++++++++++++ .gitignore | 3 +- 2 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 .claude/skills/test-sdk/SKILL.md 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