Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

context-audit上下文审计

Agent Skill

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

总安装

420

周安装

17

GitHub Stars

26

下载量

132
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/vesely/skills --skill context-audit

简介

用于辅助安全审计、权限检查和认证流程排查。

  • 适合梳理敏感配置、分析鉴权逻辑或生成安全复核清单。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 不能将工具输出直接当最终结论,涉及密钥或生产系统时应先确认最小权限。
  • context-audit 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Usage Audit

Bloated context costs more and produces worse output. This skill finds the waste and tells you what to cut.

Step 1: Get /context Data

Check the conversation history for /context output. If the user already ran /context in this session, use that data. If not, ask:

"Run /context in this session terminal and let me know when you're done. I can't run slash commands myself, but once I can see the breakdown I'll audit everything it flags."

STOP HERE. Do NOT proceed to Step 2 until the user has ran /context. The context breakdown determines what to audit and in what order. Without it, the audit is guessing. Output the message above and wait for the user's next message.

Step 2: Audit What's Bloated

Based on the /context output, audit each category from largest to smallest. Run checks in parallel where possible.

MCP Servers

Each server loads full tool definitions into context every turn (~15,000-20,000 tokens each).

  • Count configured servers from settings.json
  • Flag any with CLI alternatives (Playwright, Google Workspace, GitHub all have CLIs that cost zero tokens when idle)
  • Report total MCP overhead from /context output

CLAUDE.md

Read all CLAUDE.md files (project root,.claude/, ~/.claude/). Count lines. Then read every rule and test against five filters:

FilterFlag when...
DefaultClaude already does this without being told ("write clean code", "handle errors")
ContradictionConflicts with another rule in same or different file
RedundancyRepeats something already covered elsewhere
BandaidAdded to fix one bad output, not improve outputs generally
VagueInterpreted differently every time ("be natural", "use good tone")

If total CLAUDE.md lines > 200, check for progressive disclosure opportunities: rules that only apply to specific tasks (API conventions, deployment steps, testing guidelines) should move to reference files with one-line pointers. Only recommend splitting when the file is actually bloated -- a lean CLAUDE.md with universal context is fine as a single file.

Skills

Scan.claude/skills/*/SKILL.md. For each skill:

  • Count lines (flag > 200, critical > 500)
  • Run the same five filters on instructions
  • Check for restated goals, hedging ("you may want to"), synonymous instructions ("be concise" + "keep it short" + "don't be verbose")

Settings

Check settings.json for:

SettingFlag ifRecommended
autocompact_percentage_overrideMissing or > 8075
BASH_MAX_OUTPUT_LENGTH (env)At default (30-50K)150000

Hooks

Check settings.json for hooks configuration. For each hook:

  • Flag hooks that run slow commands (network calls, heavy builds)
  • Flag hooks with no timeout configured
  • Check if any hook runs on high-frequency events (e.g., every tool call) where latency compounds

Memory Files

Glob ~/.claude/projects/*/memory/*.md. For each memory directory:

  • Count total files and estimate total lines
  • Flag stale memories (check if referenced project paths still exist)
  • Flag memories > 50 lines (memories should be concise pointers, not docs)
  • Flag memory directories with > 20 files (index bloat)

.claudeignore

Check if .claudeignore exists in the project root. If missing and the project has large generated/indexed directories, recommend creating one. Key patterns to check for:

  • Large data directories (fixtures, seeds, dumps)
  • Generated docs (typedoc, javadoc, storybook-static)
  • Monorepo packages the user isn't actively working on

File Permissions

Check settings.json for permissions.deny rules. If missing, check whether bloat directories exist in the project:

If this exists...Should deny...
.git.git
package.jsonnode_modules, dist, build,.next,.nuxt,.cache, coverage
Cargo.tomltarget
go.modvendor
pyproject.toml / requirements.txtpycache,.venv, *.egg-info

Step 3: Score and Report

Score starts at 100. Deduct per issue:

IssuePoints
CLAUDE.md > 200 lines-10
CLAUDE.md > 500 lines-20
Per 5 rules flagged by filters-5
Contradictions between files-10
Missing autocompact override-10
Missing bash output override-5
Skill > 200 lines-5 each
Skill > 500 lines-10 each
Per MCP server-3 each
No deny rules + bloat dirs exist-10
Hook with no timeout on frequent event-5 each
Stale or oversized memory files-5
Memory directory > 20 files-5
Missing.claudeignore + large dirs exist-5

Floor at 0. Output this format:

# Usage Audit

Score: {N}/100 [{CLEAN|NEEDS WORK|BLOATED|CRITICAL}]

## Context Breakdown (from /context)
{Paste the key numbers from /context output}

## Issues Found

### [{CRITICAL|WARNING|INFO}] {Category}
{What's wrong}
Fix: {One-line actionable fix}

### Rules to Cut
{Each flagged rule: the text, which filter, one-line reason}

### Conflicts
{Contradictions between files, with paths}

## Top 3 Fixes
1. {Highest-impact fix}
2. {Second}
3. {Third}

Score labels: 90-100 CLEAN, 70-89 NEEDS WORK, 50-69 BLOATED, 0-49 CRITICAL. Severity: CRITICAL > 10pts, WARNING 5-10pts, INFO < 5pts.

Step 4: Offer to Fix

After the report:

"Want me to fix any of these? I can:

  • Show you a cleaned-up CLAUDE.md with the flagged rules removed
  • Add the missing settings.json configs
  • Add permissions.deny rules for build artifacts
  • Add timeouts to hooks missing them
  • Clean up stale memory files
  • Generate a.claudeignore for this project
  • Show which skills to compress"

Auto-apply settings.json and permissions.deny (safe, reversible). Show diffs for CLAUDE.md and skills -- let the user confirm before modifying instruction files.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.17%
按下载量换算48

Claude

29.39%
按下载量换算39

Cursor

18.85%
按下载量换算25

Gemini CLI

8.34%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills