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

claude-skill-prereq-auditClaude 技能 prereq 审核

Agent Skill

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

总安装

275

周安装

11

GitHub Stars

12

下载量

89
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/jackchuka/skills --skill claude-skill-prereq-audit

简介

技能前置条件扫描器自动检测依赖项与认证状态完整性。

  • 通过启发式解析识别工具链缺失或未授权问题,提供交互式修复建议。
  • 支持指定技能过滤与全量扫描两种模式,覆盖常见环境准备场景。
  • 建议在新建机器或安装新技能后运行以确保执行环境就绪。
  • claude-skill-prereq-audit 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Skill Prerequisite Check

Scan installed skills, discover their tool/MCP/auth dependencies via heuristic parsing, check if everything is installed and authenticated, and offer to fix issues interactively.

When to Use

  • Setting up a new machine
  • After installing new skills
  • Verifying environment is ready for all skills
  • Debugging "tool not found" errors during skill execution

Arguments

Parse from the user's invocation:

  • Skill names: Any tokens after the command → filter to those skills only
  • Default: scan all skills in ~/.claude/skills/ and .claude/skills/

Workflow

Phase 1: Discover Skills

  1. Glob for ~/.claude/skills/*/SKILL.md and .claude/skills/*/SKILL.md
  2. Follow symlinks
  3. If user specified skill names, filter the list to matching directory names
  4. Exclude this skill (skill-prereq-check) from the scan list — its own SKILL.md contains tool references as parsing examples, not actual dependencies
  5. Read each SKILL.md file

Phase 2: Parse Prerequisites

For each SKILL.md, extract dependencies using these heuristics:

CLI tools:

  • Extract command names (first token of each line) from fenced code blocks marked as bash, shell, or sh
  • Also scan ## Prerequisites sections and prose for backtick-quoted tool names followed by "CLI", "installed", or "required"
  • Ignore shell builtins and coreutils: echo, cat, ls, mkdir, cd, grep, sed, awk, rm, cp, mv, date, wc, head, tail, sort, uniq, export, set, test, true, false, if, then, else, fi, for, do, done, while, case, esac, command, which, local, return, read, shift, printf, declare
  • Ignore git subcommands: the tool is git, not git commit
  • Deduplicate per skill

MCP servers:

  • Scan for mcp__<server>__ patterns — extract <server> as the MCP server name
  • Also scan for <Name> MCP server or <Name> MCP tools in prose — extract <Name> lowercased
  • Deduplicate per skill

gh extensions:

  • Scan for gh <word> where <word> is NOT a built-in gh command: pr, issue, release, api, auth, repo, project, run, extension, gist, ssh-key, gpg-key, secret, variable, codespace, label, ruleset, cache, attestation, status, browse, search, workflow, config, alias
  • Record as gh extension dependency

Auth hints:

  • Scan for auth status, auth login, auth test, auth check, authenticated within 200 characters of a tool name
  • Mark that tool as needing an auth check

Phase 3: Check Dependencies

Run checks for all discovered dependencies. Use parallel Bash calls where possible. Deduplicate check commands across skills — if multiple skills depend on the same tool, run the check once and reuse the result.

CLI tools:

  1. Run command -v <tool> — if exit code 0, installed; otherwise missing
  2. If auth hint exists for this tool, run timeout 10 <tool> auth status 2>&1 (or use the Bash tool's timeout parameter set to 10000ms) and check exit code. If exit code!= 0, try timeout 10 <tool> auth check 2>&1. If both fail, mark auth as "FAIL". If the command times out, mark auth as "TIMEOUT". If no auth hint, mark as "—"

MCP servers:

  1. Use ToolSearch with query +<server> to check if any mcp__<server>__* tools are available in the session
  2. If tools found → installed = "yes". If auth tool was referenced in the skill (e.g. auth_test), call it to verify. Otherwise auth = "—"
  3. If no tools found → installed = "no", auth = "—"

gh extensions:

  1. Run gh extension list once (cache the result)
  2. Check if each extension name appears as a suffix in any line of the output (e.g., the line contains /<extension-name> or ends with the extension name)

Phase 4: Present Results

Print a table grouped by skill:

## Prerequisite Check

| # | Skill | Tool | Type | Installed | Auth |
|---|-------|------|------|-----------|------|
| 1 | slack-triage | slack | mcp | yes | yes |
| 2 | meeting-scheduler | gws | cli | yes | FAIL |
| 3 | daily-report | gh | cli | yes | yes |
| 4 | daily-report | slackcli | cli | no | — |
| 5 | oss-release | oss-watch | gh-ext | no | — |

Summary: N skills checked, M tools found, X issues
  • "yes" = check passed
  • "FAIL" = check ran and failed
  • "—" = not applicable (not installed, or no auth pattern detected)
  • Number each row for reference in the fix phase

If no issues found, print "All prerequisites satisfied." and stop.

Phase 5: Interactive Fix

If issues exist, ask: "Want me to fix any of these? (e.g. '2, 4' or 'all' or 'done')"

For each selected item, attempt the appropriate fix:

TypeIssueFix Strategy
clinot installedTry brew install <tool>. If brew doesn't have it, search web for install instructions
cliauth FAILRun <tool> auth login (interactive)
mcpnot availableTell user: "Add the <server> MCP server to your Claude config. I can't auto-configure this."
gh-extnot installedRun gh extension install <owner/repo> — search GitHub for the extension first

After each fix attempt, re-run the check for that item and show the updated row.

When all selected fixes are attempted, re-print the full table with updated results.

Error Handling

  • If ~/.claude/skills/ doesn't exist, report "No skills directory found at ~/.claude/skills/" and check only .claude/skills/
  • If a tool's auth check hangs (>10s), kill it and mark as "TIMEOUT"
  • If brew is not installed, suggest manual install instructions instead

Examples

Example 1: Check all skills

User: "check prerequisites"
Action: Scan all skills, parse deps, check each, show table

Example 2: Check specific skills

User: "/skill-prereq-check slack-triage meeting-scheduler"
Action: Scan only those two skills, parse deps, check, show table

Example 3: Fix issues

User: (after seeing table) "fix 2, 5"
Action: Run `gws auth login` for item 2, `gh extension install` for item 5, re-check

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.05%
按下载量换算30

Claude

28.81%
按下载量换算26

Cursor

19.36%
按下载量换算17

Gemini CLI

8.8%
按下载量换算8

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

执行命令

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

安装前确认

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

来源信息

继续浏览同类 Skills