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

project-health项目健康

Agent Skill

project-health 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

23,721

周安装

969

GitHub Stars

750

下载量

7,674
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/jezweb/claude-skills --skill project-health

简介

Claude Code 环境的全面项目设置、审核和配置管理。

  • 从文件指示器(Node.js、Python、Rust、Go、Docker、Cloudflare 等)检测项目类型并自动生成 .claude/settings.local.json, 克劳德.md
  • 和 .gitignore
  • 具有适当的权限预设
  • 通过并行子代理审核现有项目:权限审核器扫描泄露的机密、过时的 MCP 服务器、权限差距和遗留语法; Context Auditor 检查 CLAUDE.md 质量、检测超大文件并标记缺失文档
  • 支持六种模式:全面健康检查、新项目设置、权限整理、会话学习捕获、预设添加、以及大小目标的上下文重组(根CLAUDE.md 50-150行,子目录15-50行)
  • 使用子代理进行大量分析以保持主要上下文干净;并行启动 Permission 和 Context Auditors 以提高效率

SKILL.md

Project Health

One skill for everything about your project's Claude Code configuration. Run it at the start, middle, or end of a project — it figures out what's needed.

Goal: Zero permission prompts, well-organised context files, no cruft.

When to Use

You say...What happens
"project health" / "check project"Full audit: permissions + context + docs
"setup project" / "kickoff" / "bootstrap"New project setup from scratch
"tidy permissions" / "clean settings"Fix permissions file only
"capture learnings" / "update CLAUDE.md"Save session discoveries
"add python" / "add docker permissions"Add a preset to existing settings
"audit context" / "audit memory"Context-focused audit only

Architecture: Sub-Agents

Heavy analysis runs in sub-agents to keep the main conversation clean. The main agent orchestrates; sub-agents do the scanning and return summaries.

Agent 1: Permission Auditor

Launched with Task(subagent_type: "general-purpose"). Prompt:

Read .claude/settings.local.json.

**Discover connected MCP servers**: Use ToolSearch (search "mcp") and extract unique
server prefixes from tool names (e.g. mcp__vault__secret_list → vault).

**Discover installed skills**: Use the Skill tool or ToolSearch to list available skills.
For each skill that has scripts/ in its directory, note what Bash patterns it needs
(python3, env var prefixes like GEMINI_API_KEY=*, etc.). Check the SKILL.md for any
MCP tools the skill references (e.g. mcp__vault__secret_get).

Report:
1. MCP servers connected but NOT in settings (missing)
2. MCP servers in settings but NOT connected (stale)
3. Skill permissions: Bash patterns and MCP tools that installed skills need but aren't approved
4. File access: check for Read/Edit/Write patterns for .claude/** and //tmp/**
   in project settings, and ~/Documents/**/~/.claude/** in global settings
5. Leaked secrets: entries containing API keys, tokens, bearer strings, hex >20 chars, base64 >20 chars
6. Legacy colon syntax: entries like Bash(git:*) instead of Bash(git *)
7. Junk entries: shell fragments (Bash(do), Bash(fi), Bash(then), Bash(else), Bash(done)),
   __NEW_LINE_* artefacts, loop body fragments (Bash(break), Bash(continue), Bash(echo *))
8. Duplicates: entries covered by a broader pattern (e.g. Bash(git add *) redundant if Bash(git *) exists)
9. Missing presets: based on files present, suggest presets from [permission-presets.md]

Prefer Read/Glob/Grep tools over Bash. If you need to scan multiple files or
run 3+ commands for one analysis, write a Python script to .jez/scripts/
and run it once (mkdir -p .jez/scripts first).

Return a structured summary, not raw data.

Agent 2: Context Auditor

Launched with Task(subagent_type: "general-purpose"). Prompt:

Audit the project context landscape at [repo-path]:

1. Find all CLAUDE.md files. For each:
   - Count lines (target: root 50-150, subdirs 15-50)
   - Score quality on 6 criteria (see quality-criteria.md)
   - Check for stale file/path references
   - Flag oversized files

2. Find .claude/rules/ topic files. Check sizes (target: 20-80 lines).

3. Detect project type from files present (see project-types.md).
   Check expected docs exist (ARCHITECTURE.md, DATABASE_SCHEMA.md, etc.)

4. Find public markdown (README.md, LICENSE, CONTRIBUTING.md).
   Check for overlap with CLAUDE.md content.

5. Check auto-memory at ~/.claude/projects/*/memory/MEMORY.md

6. If Cloudflare project: find all wrangler.jsonc/wrangler.toml files.
   Check each has "observability": { "enabled": true }. Flag any missing it.

Prefer Read/Glob/Grep tools over Bash. If you need to scan many files or
aggregate data across the repo, write a Python script to .jez/scripts/
and run it once rather than running many individual bash commands
(mkdir -p .jez/scripts first).

Return: project type, quality scores, missing docs, stale refs, overlaps,
size violations, observability gaps, and total markdown footprint.

Parallel Execution

For a full health check, launch both agents in parallel:

Task(subagent_type: "general-purpose", name: "permission-audit", prompt: "...")
Task(subagent_type: "general-purpose", name: "context-audit", prompt: "...")

Both return summaries. The main agent combines them into one report and proposes fixes.

Mode 1: Full Health Check

The default. Run this anytime.

Steps

  1. Launch Permission Auditor and Context Auditor agents in parallel
  2. Combine findings into a single report: ## Project Health Report **Project type**: [detected type] **CLAUDE.md quality**: [score]/100 ([grade]) ### Permissions - Missing MCP servers: [list] - Leaked secrets: [count] found - Legacy syntax: [count] entries - Missing presets: [list] ### Context - Oversized files: [list] - Stale references: [list] - Missing docs: [list] - Overlaps: [list] ### Recommended Fixes 1. [fix 1] 2. [fix 2]...
  3. Apply fixes after single yes/no confirmation

Mode 2: New Project Setup

When: No .claude/settings.local.json exists, or user says "setup" / "kickoff".

Steps

  1. Detect project type from files present: Indicator Type Preset wrangler.jsonc or wrangler.toml cloudflare-worker JS/TS + Cloudflare vercel.json or next.config.* vercel-app JS/TS + Vercel astro.config.* astro JS/TS + Static Sites package.json (no deploy target) javascript-typescript JS/TS pyproject.toml or setup.py or requirements.txt python Python Cargo.toml rust Rust go.mod go Go Gemfile or Rakefile ruby Ruby composer.json or wp-config.php php PHP pom.xml or build.gradle* java Java/JVM *.sln or *.csproj dotnet.NET mix.exs elixir Elixir Package.swift swift Swift + macOS pubspec.yaml flutter Mobile Dockerfile or docker-compose.yml docker Docker fly.toml or railway.json or netlify.toml hosted-app Hosting Platforms supabase/config.toml supabase Hosting + Database .claude/agents/ or operational scripts ops-admin — Empty directory Ask the user — Types stack (e.g. cloudflare-worker + javascript-typescript).
  2. Generate .claude/settings.local.json:

- Read references/permission-presets.md - Always include Universal Base (includes file access for .claude/**, //tmp/**) - Add detected language + deployment presets - Check if global ~/.claude/settings.local.json has home-relative file access patterns (~/Documents/**, ~/.claude/**). If not, suggest adding them there (NOT in the project file — home paths belong in global settings only) - Launch Permission Auditor agent to discover MCP servers and add per-server wildcards - Always include WebSearch, WebFetch - Always include explicit gh subcommands (workaround for Bash(gh *) bug) - Write with // comment groups

  1. Generate CLAUDE.md:

- Read references/templates.md - Use project-type-appropriate template

  1. Generate .gitignore:

- Read references/templates.md - Always include .claude/settings.local.json, .claude/plans/, .jez/screenshots/, .jez/artifacts/ - Do NOT gitignore .jez/scripts/ — generated scripts are worth keeping

  1. Optionally (ask first): git init + gh repo create
  2. Warn: "Project settings.local.json SHADOWS global settings (does not merge). Session restart needed."

Mode 3: Tidy Permissions

When: User says "tidy permissions" or health check found permission issues.

Launch the Permission Auditor agent, then apply its recommended fixes.

Mode 4: Capture Learnings

When: End of session, "capture learnings", "save what we learned".

This runs in the main context (not a sub-agent) because it needs access to the conversation history.

  1. Review conversation for discoveries worth preserving
  2. Decide placement: Applies to all projects? ├── YES → ~/.claude/rules/<topic>.md └── NO → Specific to a subdirectory? ├── YES → <dir>/CLAUDE.md └── NO → Reference or operational? ├── Reference → docs/ or ARCHITECTURE.md └── Operational →./CLAUDE.md (root)
  3. Draft all changes as diffs in a single batch
  4. Apply after single yes/no confirmation

Keep it concise: one line per concept.

Mode 5: Add Preset

When: "add python permissions", "add docker", "add MCP servers".

  1. Read the preset from references/permission-presets.md
  2. Read existing .claude/settings.local.json
  3. Merge without duplicating
  4. Remind: session restart required

Mode 6: Restructure Context

When: Root CLAUDE.md over 200 lines, "restructure memory".

  1. Launch Context Auditor agent first
  2. Based on findings:

- Split oversized CLAUDE.md into .claude/rules/<topic>.md - Extract directory-specific content to sub-directory CLAUDE.md - Move reference material to docs/ - Resolve overlaps - Create missing docs for project type

  1. Present plan, apply after approval

Size Targets

FileTargetMaximum
Root CLAUDE.md50-150 lines200
Sub-directory CLAUDE.md15-50 lines80
Rules topic file20-80 lines120

Permission Syntax Quick Reference

PatternMeaning
Bash(git *)Preferred — space before * = word boundary
Bash(nvidia-smi)Exact match, no arguments
WebFetchBlanket web fetch
WebSearchBlanket web search
mcp__servername__*All tools on one MCP server

What Does NOT Work

PatternWhy
mcp__*Wildcard doesn't cross __ boundary
mcp__*__*Still doesn't work
Bash(git:*)Deprecated colon syntax (works but prefer space)

Important Behaviours

  • Not hot-reloaded: settings.local.json edits need session restart
  • "Don't ask again" injects at runtime (no restart) using colon format — normal
  • Shadows, not merges: Project settings completely replace global
  • gh bug: Bash(gh *) sometimes misses subcommands — include explicit Bash(gh issue *) etc.

Autonomy

  • Just do it: Detect project type, launch audit agents, discover MCP servers
  • Brief confirmation: Write/update files (single batch yes/no)
  • Ask first: git init, GitHub repo, delete existing content, major restructures

Reference Files

WhenRead
Building permission presetsreferences/permission-presets.md
Generating CLAUDE.md,.gitignorereferences/templates.md
Scoring CLAUDE.md qualityreferences/quality-criteria.md
Detecting project type + expected docsreferences/project-types.md
Setting up commit capture hookreferences/commit-hook.md

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.22%
按下载量换算2,933

Claude

27.22%
按下载量换算2,089

Cursor

18.06%
按下载量换算1,386

Gemini CLI

9.55%
按下载量换算733

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

执行命令

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

安装前确认

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

来源信息

继续浏览同类 Skills