跳到正文
TakoAPI
返回技能列表

vet-repo

由 itsnishi 提供

PDF & Documents
907下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Scan repository agent configuration files for known malicious patterns.

描述

该技能的功能

Scans a repository's agent configuration files for known malicious patterns before you trust or run its configurations. Checks Claude settings, skill files, MCP configs, and project instruction files. Outputs a severity-grouped report with recommendations.

Catches agent-level attack vectors like hook auto-approval, hidden curl|bash chains, and instruction injection that standard code review tools don't check for.

何时使用

  • Auditing a cloned open-source repo before running its agent setup
  • Reviewing a contractor's codebase for injected agent instructions
  • Checking for malicious hooks after a pull request modifies .claude/
  • Security review before onboarding a new project with MCP integrations
  • Catching prompt injection attempts hidden in CLAUDE.md files

示例工作流

输入

User asks: scan this repo for malicious agent configs before I start working in it

智能体
  1. 1

    Resolves SKILL_DIR and PROJECT_ROOT paths

  2. 2

    Runs vet_repo.py against the project root

  3. 3

    Scans .claude/settings.json for dangerous hook configs

  4. 4

    Scans .claude/skills/, .mcp.json, and CLAUDE.md for injection patterns

  5. 5

    Groups findings by severity and generates recommendations

输出

Structured report listing CRITICAL/HIGH/MEDIUM/LOW/INFO findings across all agent config files, with actionable remediation steps for each issue

安装

clawhub install itsnishi/vet-repo

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接