skills: add pre-main-push gate#52
Merged
VinciGit00 merged 2 commits intomainfrom Apr 22, 2026
Merged
Conversation
Blocks direct pushes to main: requires a user-supplied ScrapeGraph API key, validates the chosen v2 endpoint against 5 live sites, and only then opens a PR. Enforces the v1→v2 endpoint mapping and forbids logging the key. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
After opening the PR, the skill now instructs the agent to post the 5-URL validation output (status + elapsed_ms, keys only) as a PR comment via `gh pr comment`, with explicit guardrails: never paste the API key, headers, or raw response bodies. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Member
Author
Endpoint validation —
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.claude/skills/pre-main-push.md, a Claude Code skill that blocks direct pushes tomainand enforces: (1) user-supplied API key per session, (2) 5-URL validation of the chosen v2 endpoint, (3) PR-only workflow.markdownify→scrape,smartscraper→extract,searchscraper→search,smartcrawler→crawl.start) and pins the v2 hostv2-api.scrapegraphai.com/api/*.ghisn't authenticated. Forbids logging the key or bypassing with--force/--no-verify.Validation
Endpoint
extracttested against 5 live websites viatests/python-v2.1.0/test_extract.py— 5/5 returnedstatus=success(example.com, scrapegraphai.com, iana.org, example.org, httpbin.org/html). API key supplied by user at PR creation time; not stored or logged.Test plan
/pre-main-push.envmain(no direct push toorigin/main)🤖 Generated with Claude Code