Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

configure-security配置安全性

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

1,473

周安装

62

GitHub Stars

28

下载量

516
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:configure-security(配置安全性)
来源仓库:https://github.com/laurigates/claude-plugins
仓库路径:skills/configure-security
安装命令:
npx skills add https://github.com/laurigates/claude-plugins --skill configure-security
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/laurigates/claude-plugins --skill configure-security

简介

用于配置安全扫描工具,包括依赖审计、SAST 和密钥检测。

  • 适合需要定期检查项目安全漏洞和敏感信息泄露的场景。
  • 可生成安全复核清单,辅助识别潜在风险点。
  • 使用时不能将工具输出直接视为最终结论,需人工复核关键结果。
  • configure-security 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

/configure:security

Check and configure security scanning tools for dependency audits, SAST, and secret detection.

When to Use This Skill

Use this skill when...Use another approach when...
Setting up dependency auditing, SAST, or secret detection for a projectRunning a one-off security scan (use gitleaks detect or npm audit directly)
Checking project compliance with security scanning standardsReviewing code for application-level vulnerabilities (use security-audit agent)
Configuring Dependabot, CodeQL, or TruffleHog in CI/CDManaging GitHub repository security settings via the web UI
Creating or updating a SECURITY.md policyWriting security documentation beyond the policy template
Auditing which security tools are missing from a projectInvestigating a specific CVE or vulnerability

Context

  • Package files:!find. -maxdepth 1 \(-name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' -o -name 'go.mod' \)
  • Gitleaks config:!find. -maxdepth 1 -name \'.gitleaks.toml\'
  • Pre-commit config:!find. -maxdepth 1 -name \'.pre-commit-config.yaml\'
  • Workflows dir:!find. -maxdepth 1 -type d -name \'.github/workflows\'
  • Dependabot config:!find. -maxdepth 1 -name \'.github/dependabot.yml\'
  • CodeQL workflow:!find.github/workflows -maxdepth 1 -name 'codeql*'
  • Security policy:!find. -maxdepth 1 -name \'SECURITY.md\' Security scanning layers:
  1. Dependency auditing - Check for known vulnerabilities in dependencies
  2. SAST (Static Application Security Testing) - Analyze code for security issues
  3. Secret detection - Prevent committing secrets to version control

Parameters

Parse from command arguments:

  • --check-only: Report status without offering fixes
  • --fix: Apply all fixes automatically without prompting
  • --type <type>: Focus on specific security type (dependencies, sast, secrets, all)

Execution

Execute this security scanning configuration check:

Step 1: Fetch latest tool versions

Verify latest versions before configuring:

  1. Trivy: Check GitHub releases
  2. Grype: Check GitHub releases
  3. gitleaks: Check GitHub releases
  4. pip-audit: Check PyPI
  5. cargo-audit: Check crates.io
  6. CodeQL: Check GitHub releases

Use WebSearch or WebFetch to verify current versions.

Step 2: Detect project languages and tools

Identify project languages and existing security tools:

IndicatorLanguage/ToolSecurity Tools
package.jsonJavaScript/TypeScriptnpm audit, Snyk
pyproject.tomlPythonpip-audit, safety, bandit
Cargo.tomlRustcargo-audit, cargo-deny
.gitleaks.tomlgitleaksSecret scanning
.github/workflows/GitHub ActionsCodeQL, Dependabot

Step 3: Analyze current security state

Check existing security configuration across three areas:

Dependency Auditing:

  • Package manager audit configured
  • Audit scripts in package.json/Makefile
  • Dependabot enabled
  • Dependency review action in CI
  • Auto-merge for minor updates configured

SAST Scanning:

  • CodeQL workflow exists
  • Semgrep configured
  • Bandit configured (Python)
  • SAST in CI pipeline

Secret Detection:

  • Gitleaks configured with .gitleaks.toml
  • Pre-commit hook configured
  • Git history scanned
  • TruffleHog configured (optional complement)

Step 4: Generate compliance report

Print a formatted compliance report showing status for each security component across dependency auditing, SAST scanning, secret detection, and security policies.

If --check-only is set, stop here.

For the compliance report format, see REFERENCE.md.

Step 5: Configure dependency auditing (if --fix or user confirms)

Based on detected language:

JavaScript/TypeScript (npm/bun):

  1. Add audit scripts to package.json
  2. Create Dependabot config .github/dependabot.yml
  3. Create dependency review workflow .github/workflows/dependency-review.yml

Python (pip-audit):

  1. Install pip-audit: uv add --group dev pip-audit
  2. Create audit script

Rust (cargo-audit):

  1. Install cargo-audit: cargo install cargo-audit --locked
  2. Configure in .cargo/audit.toml

For complete configuration templates, see REFERENCE.md.

Step 6: Configure SAST scanning (if --fix or user confirms)

  1. Create CodeQL workflow .github/workflows/codeql.yml with detected languages
  2. For Python projects, install and configure Bandit
  3. Run Bandit: uv run bandit -r src/ -f json -o bandit-report.json

For CodeQL workflow and Bandit configuration templates, see REFERENCE.md.

Step 7: Configure secret detection (if --fix or user confirms)

  1. Install gitleaks: brew install gitleaks (or go install github.com/gitleaks/gitleaks/v8@latest)
  2. Create .gitleaks.toml with project-specific allowlists
  3. Run initial scan: gitleaks detect --source.
  4. Add pre-commit hook to .pre-commit-config.yaml
  5. Optionally configure TruffleHog workflow for CI

For gitleaks, TruffleHog, and CI workflow configuration templates, see REFERENCE.md.

Step 8: Create security policy

Create SECURITY.md with:

  • Supported versions table
  • Vulnerability reporting process (email, expected response time, disclosure policy)
  • Information to include in reports
  • Security best practices for users and contributors
  • Automated security tools list

For the SECURITY.md template, see REFERENCE.md.

Step 9: Configure CI/CD integration

Create comprehensive security workflow .github/workflows/security.yml with jobs for:

  • Dependency audit
  • Secret scanning (TruffleHog)
  • SAST scan (CodeQL)

Schedule weekly scans in addition to push/PR triggers.

For the CI security workflow template, see REFERENCE.md.

Step 10: Update standards tracking

Update .project-standards.yaml:

components:
  security: "2025.1"
  security_dependency_audit: true
  security_sast: true
  security_secret_detection: true
  security_policy: true
  security_dependabot: true

Step 11: Report configuration results

Print a summary of all changes made across dependency auditing, SAST scanning, secret detection, security policy, and CI/CD integration. Include next steps for reviewing Dependabot PRs, CodeQL findings, and enabling private vulnerability reporting.

For the results report format, see REFERENCE.md.

Agentic Optimizations

ContextCommand
Quick compliance check/configure:security --check-only
Auto-fix all security gaps/configure:security --fix
Dependencies only/configure:security --type dependencies
Secret detection only/configure:security --type secrets
SAST scanning only/configure:security --type sast
Verify secrets scangitleaks detect --source. --verbose

Flags

FlagDescription
--check-onlyReport status without offering fixes
--fixApply all fixes automatically without prompting
--type <type>Focus on specific security type (dependencies, sast, secrets, all)

Error Handling

  • No package manager detected: Skip dependency auditing
  • GitHub Actions not available: Warn about CI limitations
  • Secrets found in history: Provide remediation guide
  • CodeQL unsupported language: Skip SAST for that language

See Also

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.71%
按下载量换算189

Claude

29.85%
按下载量换算154

Cursor

18.31%
按下载量换算94

Gemini CLI

8.55%
按下载量换算44

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/laurigates/claude-plugins --skill configure-security 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills