diff --git a/.github/skills/add-community-extension/SKILL.md b/.github/skills/add-community-extension/SKILL.md index 409845cc1f..a9bb1dcae3 100644 --- a/.github/skills/add-community-extension/SKILL.md +++ b/.github/skills/add-community-extension/SKILL.md @@ -36,7 +36,7 @@ Check **all** of the following (per `docs/extensions/publishing.md`): | README.md present | Confirm in repo file listing | | LICENSE file present | Confirm in repo file listing | | GitHub release exists matching version | Check releases on the repo page | -| Download URL is accessible | Verify it follows `archive/refs/tags/.zip` or `releases/download//.zip` pattern and release exists | +| Download URL is accessible | Validate the submitted URL first: scheme must be `https`, host must be exactly `github.com`, it must not include username/password, query string, or fragment, and its path must match `archive/refs/tags/.zip` or `releases/download//.zip`; also verify the release exists. Only then fetch the archive with redirects enabled. Validate each redirect and the final URL against an explicit safe-host policy (`github.com`, `codeload.github.com`, or `release-assets.githubusercontent.com`) and require HTTPS; allow the signed query string used by `release-assets.githubusercontent.com`. Require the final response to be HTTP 200. | | Extension ID is lowercase-with-hyphens only | Regex: `^[a-z][a-z0-9-]*$` | | Version follows semver | Format: `X.Y.Z` | | Submission checklists are all checked | Confirm in issue body | diff --git a/.github/skills/code-review/SKILL.md b/.github/skills/code-review/SKILL.md index b3e549b2ca..14a0f9a164 100644 --- a/.github/skills/code-review/SKILL.md +++ b/.github/skills/code-review/SKILL.md @@ -6,8 +6,8 @@ argument-hint: 'Diff or pull request to review' # Code Review -1. Ensure each code change has test cases that verify what the code should do and what it should prevent. -2. Ensure bug-fix pull requests include a regression test that demonstrates the bug was reproducible before the change and is fixed afterward; if the reviewer cannot run the comparison, use available evidence and state that limitation. +1. Ensure each deterministic behavior change has test cases that verify what the code should do and what it should prevent. +2. Ensure bug-fix pull requests affecting deterministic behavior include a regression test that demonstrates the bug was reproducible before the change and is fixed afterward; if the reviewer cannot run the comparison, use available evidence and state that limitation. 3. Ensure wording changes use repository-consistent terms; exclude community-authored catalog content and its generated documentation from this check. 4. Identify the affected domains and read the applicable documents in `design/` before evaluating architectural consistency. For CLI command changes, use `design/cli.md`; for agent integrations, use `design/integration.md`; for workflow step types, use `design/workflow-step.md`. Read other design documents when relevant, not every document for every PR. 5. Check the changes against the applicable design requirements, including implementation boundaries, ownership, lifecycle, and delivery requirements. Reference the documents rather than duplicating their rules in this skill. Cite the document and section for each reported mismatch.