Skip to content

Commit 099594e

Browse files
VinciGit00claude
andcommitted
skills(pre-main-push): post per-URL test results as PR comment
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>
1 parent c37f838 commit 099594e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.claude/skills/pre-main-push.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ Only if step 3 passed with 5/5:
105105
3. Open the PR with `gh pr create`. In the PR body, include a short "Validation" section stating:
106106
> Endpoint `<name>` tested against 5 live websites — all passed. API key supplied by user at PR creation time (not stored).
107107
Do not include the key itself or any response data that might contain it.
108+
4. After the PR is open, post the per-URL test results as a PR comment with `gh pr comment <number> --body ...`. Include one line per URL with status and `elapsed_ms` (and response key names if useful), e.g.:
109+
```
110+
[extract 1/5] https://example.com -> status=success elapsed_ms=534 keys=['page_title', 'main_heading']
111+
```
112+
Never paste the API key, request headers, raw response bodies, or any field that might echo the key. If the endpoint returns content that could contain user data, summarize (keys only) instead of dumping the payload.
108113

109114
Defer to the `creating-pr` skill (`gh-pr.md`) for PR title/body formatting and branch naming conventions.
110115

0 commit comments

Comments
 (0)