Agent SkillsTerry-Mao/AICodingFlow › security-review-pr

security-review-pr

GitHub

作为review-pr的补充,审计PR中的代码级安全风险。检查输入验证、输出编码、认证授权、密钥管理及依赖安全等问题,并将发现折叠至review.json中,不生成独立报告。

.github/skills/security-review-pr/SKILL.md Terry-Mao/AICodingFlow

Trigger Scenarios

用户请求对代码或混合类型PR进行安全审查 在应用review-pr技能时自动触发以增强安全性检查

Install

npx skills add Terry-Mao/AICodingFlow --skill security-review-pr -g -y
More Options

Non-standard path

npx skills add https://github.com/Terry-Mao/AICodingFlow/tree/main/.github/skills/security-review-pr -g -y

Use without installing

npx skills use Terry-Mao/AICodingFlow@security-review-pr

指定 Agent (Claude Code)

npx skills add Terry-Mao/AICodingFlow --skill security-review-pr -a claude-code -g -y

安装 repo 全部 skill

npx skills add Terry-Mao/AICodingFlow --all -g -y

预览 repo 内 skill

npx skills add Terry-Mao/AICodingFlow --list

SKILL.md

Frontmatter
{
    "name": "security-review-pr",
    "description": "Audit a pull request diff for common security concerns (input validation, sanitization, authentication and authorization, secrets management, unsafe dependencies, and related risks) and fold findings into the same review.json produced by the base PR review. Use as a supplement to `review-pr` whenever a code PR is being reviewed."
}

Security Review PR Skill

Audit the current pull request for code-level security concerns and fold any findings into the same review.json produced by review-pr.

Required Contract

Read .agents/contracts/review.md and follow it exactly. This skill is a supplement to review-pr; it must not create a separate report, change the review.json schema, loosen diff-line targeting, post to GitHub, call external security APIs, or regenerate snapshots.

When To Apply

  • Apply on code and mixed PRs whenever review-pr is applied.
  • Do not apply on spec-only PRs handled by review-spec.
  • Skip the skill when no changed file introduces code or configuration touching the concerns below.
  • Do not duplicate findings the base review-pr pass will already raise.

Security Concerns

Evaluate each changed hunk against these concerns. Treat the list as a checklist, not a ceiling; flag other clearly security-relevant issues when they appear.

Input Validation And Untrusted Data

  • User-supplied or network-supplied input used without validation, length limits, or type checks.
  • Deserialization of untrusted data, including pickle, yaml.load, eval, Function, or parsed JSON flowing into commands.
  • Path traversal from user input concatenated into filesystem paths without normalization or an allowlist.
  • SSRF from user-controlled URLs passed to outbound HTTP clients without scheme or host restrictions.
  • Unbounded resource use driven by untrusted input.

Output Encoding And Sanitization

  • Untrusted data interpolated into SQL, shell commands, HTML, Markdown, log lines, or URLs without proper encoding or parameterization.
  • Use of shell=True, string concatenation into process execution, or raw SQL strings.
  • Rendering user-supplied Markdown or HTML without sanitization.

Authentication And Authorization

  • Missing or weakened authentication on new endpoints, RPC handlers, workflow triggers, or CLI commands.
  • Authorization checks that trust client-supplied identifiers instead of the authenticated principal.
  • Permission checks removed or made more permissive without clear justification.

Secrets, Crypto, And Sensitive Data

  • Hardcoded credentials, API keys, private keys, tokens, or realistic secrets in fixtures.
  • Secrets read from insecure locations, passed via command-line arguments, or written to logs, errors, analytics, or serialized payloads.
  • Weak or deprecated primitives used for security, hand-rolled crypto, or non-cryptographic randomness used for tokens or security decisions.
  • Logging or storing personally identifiable information, auth tokens, session IDs, or request bodies that may contain them without redaction.

Dependencies, Supply Chain, And Defaults

  • New dependencies from unknown registries or forks without rationale.
  • Loosened pinning that allows untrusted upgrades for sensitive packages.
  • Fetching scripts over HTTP or piping downloaded content to a shell.
  • Feature flags or configuration options that default to insecure values.
  • Weakened CORS, cookie, header, TLS, or file-permission settings.

Reporting

  • Prefix every security finding's comment body with [SECURITY] after the severity label, for example ⚠️ [IMPORTANT] [SECURITY] Secret written to logs: ....
  • Add a ## Security subsection to the top-level review body only when there are security findings.
  • Count security findings toward the same review summary and verdict. A critical security finding should generally produce REJECT.
  • Tie findings to changed lines when possible. Put broad or untouched-code security concerns in top-level body.

Boundaries

  • Do not run dynamic scans, fetch remote advisories, or call external security APIs.
  • Do not speculate about vulnerabilities that cannot be tied to the diff or inspected repository files.
  • Do not gate the PR on theoretical risks; prefer 💡 [SUGGESTION] when the risk is low or optional.

Version History

  • e53c5ac Current 2026-07-24 11:36

Same Skill Collection

.agents/skills/bootstrap-issue-config/SKILL.md
.agents/skills/create-issue/SKILL.md
.agents/skills/create-pr/SKILL.md
.agents/skills/diagnose-ci-failures/SKILL.md
.agents/skills/git-branch/SKILL.md
.agents/skills/git-commit/SKILL.md
.agents/skills/git-push/SKILL.md
.agents/skills/git-worktree/SKILL.md
.agents/skills/pr-walkthrough/SKILL.md
.agents/skills/resolve-merge-conflicts/SKILL.md
.agents/skills/review-pr-local/SKILL.md
.agents/skills/review-spec-local/SKILL.md
.agents/skills/spec-driven-implementation/SKILL.md
.agents/skills/write-product-spec/SKILL.md
.agents/skills/write-tech-spec/SKILL.md
.github/skills/check-impl-against-spec/SKILL.md
.github/skills/create-product-spec/SKILL.md
.github/skills/create-tech-spec/SKILL.md
.github/skills/dedupe-issue-repo/SKILL.md
.github/skills/dedupe-issue/SKILL.md
.github/skills/implement-issue/SKILL.md
.github/skills/implement-specs/SKILL.md
.github/skills/product-change-report/SKILL.md
.github/skills/product-docs-sync/SKILL.md
.github/skills/product-wiki/SKILL.md
.github/skills/review-pr-repo/SKILL.md
.github/skills/review-pr/SKILL.md
.github/skills/review-spec-repo/SKILL.md
.github/skills/review-spec/SKILL.md
.github/skills/security-review-spec/SKILL.md
.github/skills/triage-issue-repo/SKILL.md
.github/skills/triage-issue/SKILL.md
.github/skills/update-dedupe/SKILL.md
.github/skills/update-pr-review/SKILL.md
.github/skills/update-triage/SKILL.md

Metadata

Files
0
Version
e53c5ac
Hash
739c851b
Indexed
2026-07-24 11:36

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 02:35
浙ICP备14020137号-1 $Гость$