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

code-auditor代码审核员

Agent Skill

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

总安装

196

周安装

8

GitHub Stars

6

下载量

63
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/robinebers/skills --skill code-auditor

简介

code-auditor 用于辅助安全审计、权限检查和常见漏洞排查。

  • 适合梳理敏感配置、分析鉴权逻辑或生成安全复核清单。
  • 可在 Codex、Claude、Cursor、Gemini CLI 中调用。
  • 使用时不能直接采信输出结论,涉及密钥或生产系统时应先确认最小权限。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Code Auditor

Use this skill to analyze a codebase for duplication, dead code, dependency issues, and consolidation opportunities. Prefer conservative findings and make the next cleanup steps obvious.

Core Responsibilities

  1. Detect duplicate code

- Scan for repeated logic patterns across files such as color mappings, formatters, validators, and API helpers. - Identify copy-pasted functions with minor variations. - Find redundant utility implementations that should be consolidated. - Detect repeated inline constants, magic numbers, and configuration values. - Look for similar component patterns that could be abstracted.

  1. Identify unused code

- Find exported functions or components that are never imported. - Detect dead code branches and unreachable logic. - Identify commented-out code blocks that should be removed. - Locate orphaned files with no imports. - Find unused variables, parameters, and type definitions.

  1. Audit dependencies

- Cross-reference dependencies against actual imports and runtime usage. - Identify packages that are installed but never used. - Find duplicate packages serving the same purpose. - Detect dependencies that belong in dependencies versus devDependencies. - Flag deprecated or unmaintained packages when evidence is available.

Analysis Workflow

  1. Discovery

- Read the project structure to understand the codebase organization. - Identify the tech stack to contextualize findings. - Locate utility, helper, and shared-module directories. - Build a rough mental map of the import graph.

  1. Deep scan

- Search for common duplication patterns: - Color and theme mappings - Date and time formatting functions - Number and currency formatters - Validation logic and regex patterns - API response transformers - Error-handling utilities - String helpers - Type guards and type utilities - Search for similar function signatures and repeated inline implementations. - Compare local implementations against existing shared utilities before calling for abstraction.

  1. Usage analysis

- Trace each utility or helper across the codebase. - Identify exports with zero real consumers. - Find local functions that duplicate existing shared helpers. - Check for circular, redundant, or layered-through-barrel imports.

  1. Dependency review

- Read dependency manifests such as package.json, pyproject.toml, or equivalents. - Search the codebase for actual import, require, and dynamic loading patterns. - Cross-reference declared dependencies with observed usage. - Identify overlapping packages and likely removal candidates.

Output Format

Present findings in this structure.

Duplicate Code Found

For each duplication:

  • Pattern: What is duplicated
  • Locations: Files or code areas involved
  • Recommendation: Proposed consolidation approach
  • Priority: High, Medium, or Low based on maintenance risk

Unused Code

For each unused item:

  • Type: Function, Component, Variable, Type, or File
  • Location: File path and relevant symbol or area
  • Confidence: High or Medium based on certainty
  • Action: Delete or investigate further

Unused Dependencies

For each dependency:

  • Package: Name and version when available
  • Type: dependency or devDependency
  • Action: Remove or verify usage

Consolidation Opportunities

Close with a practical cleanup plan:

  1. Create or strengthen shared utilities
  2. Migrate duplicated call sites incrementally
  3. Delete unused code in a safe order
  4. Remove unused packages with explicit commands when possible

Guidelines

  • Be thorough: Read enough surrounding code to understand whether behavior is truly duplicated or unused.
  • Be conservative: Only flag code as unused when the evidence is strong.
  • Consider edge cases: Account for dynamic imports, conditional requires, reflection, and framework conventions.
  • Respect existing patterns: Recommend refactors that fit the codebase style.
  • Prioritize safety: Favor incremental cleanup steps over big-bang rewrites.
  • Check tests: Test files may be the only consumers of some utilities.
  • Check tooling: Build tools and config files may reference code that app code does not.
  • Call out uncertainty: Mark likely false positives for manual review instead of overstating confidence.

Common Pitfalls

  • Do not flag framework-required exports such as page components or framework entrypoints.
  • Do not assume barrel exports are unused just because the barrel itself is not imported directly.
  • Do not recommend removing types that exist for tooling, contracts, or documentation without checking their consumers.
  • Do not miss dynamic imports such as import(), require(), or string-based module loading.
  • Do not overlook CSS or style imports that affect runtime behavior.
  • Do not flag proxy.ts as dead code in modern Next.js projects simply because middleware.ts used to serve that role.

When Uncertain

If an item cannot be verified confidently:

  • State what you verified and what remains uncertain.
  • Recommend manual verification steps before deletion.
  • Suggest tooling that can improve confidence, such as knip, depcheck, or ts-prune.
  • If the uncertainty is ecosystem-specific, check the relevant documentation before making a removal recommendation.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.07%
按下载量换算24

Claude

28.35%
按下载量换算18

Cursor

19.09%
按下载量换算12

Gemini CLI

9.63%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills