安全审查
- 作者仓库星标 0
- 作者更新于 实时读取
- 作者仓库 skills-registry
- 领域
- 安全
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- macOS · Linux · Windows
- 底层运行要求
- 无特殊要求
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 读取环境变量
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: claudemd-curator
description: Audit and improve project-memory artifacts (CLAUDE.md, AGENTS.md, .claude/rules/*.md, .claude.lo…
category: 安全
runtime: 无特殊运行时
---
# claudemd-curator 输出预览
## PART A: 任务判断
- 适用问题:安全审计、密钥扫描、权限检查或风险分析。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“MANDATORY ACTIVATION / FAILURE CONDITIONS / Workflow”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于安全审计、密钥扫描、权限检查或风险分析,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“MANDATORY ACTIVATION / FAILURE CONDITIONS / Workflow”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、读取环境变量、主要在本地完成、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令、读取环境变量;主要在本地完成;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文没有稳定的斜杠命令要求。安装验证后通常全局生效,直接在对话里点名这个 Skill 并描述任务即可。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令、读取环境变量。
先用一个小任务确认它会围绕“MANDATORY ACTIVATION / FAILURE CONDITIONS / Workflow”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: claudemd-curator
description: Audit and improve project-memory artifacts (CLAUDE.md, AGENTS.md, .claude/rules/*.md, .claude.lo…
category: 安全
source: tomevault-io/skills-registry
---
# claudemd-curator
## 什么时候使用
- 把安全方向的常用动作沉淀成 Agent 可调用的技能 适合处理安全审计、密钥扫描、权限检查和风险分析,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查、可继续迭代的步骤;通常不…
- 面向安全审计、密钥扫描、权限检查或风险分析,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「MANDATORY ACTIVATION / FAILURE CONDITIONS / Workflow」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令、读取环境变量;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "claudemd-curator" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> MANDATORY ACTIVATION / FAILURE CONDITIONS / Workflow
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> 无特殊运行时 | 读取文件、写入/修改文件、执行终端命令、读取环境变量 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} MANDATORY ACTIVATION
Use this skill when the user asks for:
- "audit CLAUDE.md" or "check CLAUDE.md"
- "improve project memory" or "optimize memory"
- "sync AGENTS.md" or "Codex AGENTS.md sync"
- "update .claude/rules" or "review .claude/rules"
- "memory quality report"
FAILURE CONDITIONS
Skipping the claudemd-curator skill entirely leaves project memory in a degraded state, causing:
- Degraded memory quality: Stale, incomplete, or conflicting instructions in
CLAUDE.md,AGENTS.md,.claude.local.md, and.claude/rules/*.md - Missed rule updates: Critical commands, patterns, or architecture changes remain undocumented
- Unsynced cross-tool memory: Claude Code and Codex/Codeium agents diverge when
CLAUDE.mdandAGENTS.mdfall out of sync - Audit omissions: Marketplace drift signals (from
marketplace-tour) go unconsumed, leaving memory guidance mismatched to current plugin capabilities - Downstream agent failures: Other agents operate on outdated commands, obsolete architecture notes, or missing gotchas
Severity & Escalation: Treat skipped memory curation as high severity when the task depends on repository instructions, cross-tool consistency, or accurate project context. Escalate when memory staleness blocks task completion or causes repeated agent failures.
Per-Phase Failure Details: See individual phase sections below for specific failure conditions during discovery (Phase 1, line 52), quality assessment (Phase 2, line 98), plugin mode (Phase 2.5, line 108), report output (Phase 3, line 159), targeted updates (Phase 4, line 204), and applying updates (Phase 5, line 212). These describe granular failure modes; this section summarizes the global impact when claudemd-curator is bypassed entirely.
claudemd-curator
Audit, evaluate, and improve project-memory artifacts across a codebase so Claude Code (and Codex / Codeium / ChatGPT, which read AGENTS.md) have optimal project context.
This skill can write to memory files. After presenting a quality report and getting user approval, it updates CLAUDE.md, AGENTS.md, .claude.local.md, or files under .claude/rules/ with targeted improvements.
MEMORY.md (the auto-memory index under ~/.claude/projects/*/memory/) is recognized but never rewritten by this skill — it is owned by the Claude Code memory subsystem and has its own format with frontmatter.
Workflow
Phase 1: Discovery
Find all project-memory artifacts in the repository and known Claude user-memory locations. When the user explicitly asks for multi-repo coverage (e.g., "check all workspaces", "audit workspace memory"), extend discovery to workspace roots configured in WORKSPACE_DIRS environment variable or use default examples.
{
find . \( -name "CLAUDE.md" -o -name "AGENTS.md" -o -name ".claude.md" -o -name ".claude.local.md" \) 2>/dev/null
find . -path "*/.claude/rules/*.md" 2>/dev/null
# Workspace mode: only when user explicitly requests multi-repo coverage
# Configure via WORKSPACE_DIRS environment variable, e.g.:
# export WORKSPACE_DIRS="$HOME/framework $HOME/qyl $HOME/marketplaces"
# Or update these example paths to match your actual workspace locations.
if [ "${WORKSPACE_MODE:-false}" = "true" ]; then
workspace_roots="${WORKSPACE_DIRS:-$HOME/framework $HOME/qyl $HOME/marketplaces}"
for workspace_root in $workspace_roots; do
[ -d "$workspace_root" ] || continue
echo "[workspace-scan] $workspace_root" >&2
find "$workspace_root" -maxdepth 5 \( -name "CLAUDE.md" -o -name "AGENTS.md" -o -name ".claude.md" -o -name ".claude.local.md" \) 2>/dev/null
find "$workspace_root" -maxdepth 6 -path "*/.claude/rules/*.md" 2>/dev/null
done
fi
find ~/.claude -maxdepth 1 -name "CLAUDE.md" 2>/dev/null
find ~/.claude/projects -path "*/memory/MEMORY.md" 2>/dev/null
}
Discovery runs across all matching artifacts with no sampling or truncation. The skill processes the complete list to satisfy the claudemd-curator contract.
Workspace Mode Activation: Set WORKSPACE_MODE=true when the user asks for multi-repo coverage. The report must include a workspace discovery section listing:
- Which workspace roots from WORKSPACE_DIRS (or the default list) were checked
- Which roots existed on disk
- How many artifacts each contributing workspace yielded
- Total artifacts across all workspaces
Verification: At least one project-memory artifact is discovered, and every advertised location type that exists on disk appears in the candidate list.
Failure condition: If no artifacts are found, stop and report the repository path, workspace roots checked (if workspace mode was active), and discovery commands instead of inventing memory updates.
File Types & Locations:
| Type | Location | Purpose |
|---|---|---|
| Project root (Claude) | ./CLAUDE.md |
Primary project context for Claude Code (checked into git, shared with team) |
| Project root (Codex) | ./AGENTS.md |
Project context for Codex / OpenAI / Codeium tooling — peer of CLAUDE.md, treated as authoritative for those tools |
| Local overrides | ./.claude.local.md |
Personal/local settings (gitignored, not shared) |
| Auto-loaded rules | ./.claude/rules/*.md |
Every .md under this directory is auto-loaded by Claude Code into the system prompt |
| Global defaults | ~/.claude/CLAUDE.md |
User-wide defaults across all projects |
| Package-specific | ./packages/*/CLAUDE.md |
Module-level context in monorepos |
| Subdirectory | Any nested location | Feature/domain-specific context |
| Auto-memory index | ~/.claude/projects/*/memory/MEMORY.md |
Auto-memory pointer file — read-only awareness, this skill never rewrites it |
Notes:
- Claude auto-discovers
CLAUDE.mdfiles in parent directories, making monorepo setups work automatically. AGENTS.mdis the convention used by Codex, OpenAI Codex CLI, and Codeium / Continue. When bothCLAUDE.mdandAGENTS.mdexist, treat them as a pair: the same facts may need to live in both, but each file should be self-contained because each tool reads only its own..claude/rules/*.mdfiles are loaded as a flat set; ordering across files is not guaranteed. Keep each rule file independently coherent.
Phase 2: Quality Assessment
For each discovered project-memory artifact (CLAUDE.md, AGENTS.md, .claude.local.md, .claude/rules/*.md), evaluate against quality criteria. See references/quality-criteria.md for detailed rubrics.
Before final scoring, compare ~/.claude/CLAUDE.md (when present) with every project-level CLAUDE.md. Surface duplicated commands, overlapping standing rules, and conflicting instructions as potential drift. The report must name the global file and each affected project path; do not silently merge or rewrite global content.
Quick Assessment Checklist:
| Criterion | Weight | Check |
|---|---|---|
| Commands/workflows documented | High | Are build/test/deploy commands present? |
| Architecture clarity | High | Can Claude understand the codebase structure? |
| Non-obvious patterns | Medium | Are gotchas and quirks documented? |
| Conciseness | Medium | No verbose explanations or obvious info? |
| Currency | High | Does it reflect current codebase state? |
| Actionability | High | Are instructions executable, not vague? |
Quality Scores:
- A (90-100): Comprehensive, current, actionable
- B (70-89): Good coverage, minor gaps
- C (50-69): Basic info, missing key sections
- D (30-49): Sparse or outdated
- F (0-29): Missing or severely outdated
Verification: Every discovered writable artifact has a score and notes for each checklist criterion, and the report includes a global/project overlap note when both global and project CLAUDE.md files exist.
Failure condition: If an artifact cannot be read or scored, mark it blocked with the exact path and continue scoring the remaining artifacts.
Phase 2.5: Plugin Mode
When the repository includes marketplace/plugin metadata, run plugin-aware audit against existing marketplace truth signals instead of producing duplicate drift facts. Consume capability-snapshot output from marketplace-tour when available and cross-reference discovered memory artifacts with METADATA_DRIFT, CONTENT_DRIFT, and STALE_<N>d signals.
Use Phase 2.5 to explain whether memory guidance matches the current plugin registry, manifests, command names, skill names, and documented capability surface. The skill must not re-emit duplicate METADATA_DRIFT, CONTENT_DRIFT, or STALE_<N>d signals; it should link or cite the existing signal and describe the memory-file impact.
Verification: Plugin-mode output lists the capability-snapshot source, every consumed marketplace-tour signal, and the memory artifacts affected by each signal.
Failure condition: If capability-snapshot data is unavailable, mark Phase 2.5 as skipped with the exact missing source and continue the normal memory-quality report.
Phase 3: Quality Report Output
ALWAYS output the quality report BEFORE making any updates.
Format:
## Project Memory Quality Report
### Summary
- Files found: X (CLAUDE.md, AGENTS.md, .claude.local.md, .claude/rules/*.md discovered)
- Average score: X/100
- Files needing update: X
### File-by-File Assessment
#### 1. ./CLAUDE.md (Project Root - Claude)
**Score: XX/100 (Grade: X)**
| Criterion | Score | Notes |
|-----------|-------|-------|
| Commands/workflows | X/20 | ... |
| Architecture clarity | X/20 | ... |
| Non-obvious patterns | X/15 | ... |
| Conciseness | X/15 | ... |
| Currency | X/15 | ... |
| Actionability | X/15 | ... |
**Issues:**
- [List specific problems]
**Recommended additions:**
- [List what should be added]
#### 2. ./AGENTS.md (Project Root - Codex/OpenAI/Codeium)
[Same format, scored against the same rubric]
#### 3. ./.claude.local.md (Local overrides)
[Same format if present]
#### 4. ./.claude/rules/<rule>.md (Auto-loaded rules)
[One assessment per discovered rule file]
[Repeat for all discovered memory artifacts]
...
Verification: The report includes file count, average score, every discovered artifact, concrete issues, and recommended additions.
Failure condition: If recommendations do not name the target file and reason, do not proceed to updates.
Phase 4: Targeted Updates
After outputting the quality report, ask user for confirmation before updating.
Update Guidelines (Critical):
Propose targeted additions only - Focus on genuinely useful info:
- Commands or workflows discovered during analysis
- Gotchas or non-obvious patterns found in code
- Package relationships that weren't clear
- Testing approaches that work
- Configuration quirks
Keep it minimal - Avoid:
- Restating what's obvious from the code
- Generic best practices already covered
- One-off fixes unlikely to recur
- Verbose explanations when a one-liner suffices
Show diffs - For each change, show:
- Which project-memory artifact to update
- The specific addition (as a diff or quoted block)
- Brief explanation of why this helps future sessions
Diff Format:
### Update: ./CLAUDE.md
**Why:** Build command was missing, causing confusion about how to run the project.
```diff
+ ## Quick Start
+
+ ```bash
+ npm install
+ npm run dev # Start development server on port 3000
+ ```
**Verification:** Each proposed update is a minimal diff with a target file and a one-line reason tied to the quality report.
**Failure condition:** If a proposed change is generic, stale, or not backed by repo evidence, remove it from the proposal.
### Phase 5: Apply Updates
After user approval, apply changes using the Edit tool. Preserve existing content structure.
**Verification:** Re-read each edited artifact and confirm the approved text landed without unrelated rewrites.
**Failure condition:** If approval is missing or ambiguous, stop before editing and ask for the specific target files to update.
## Templates
See [references/templates.md](references/templates.md) for CLAUDE.md templates by project type.
## Common Issues to Flag
1. **Stale commands**: Build commands that no longer work
2. **Missing dependencies**: Required tools not mentioned
3. **Outdated architecture**: File structure that's changed
4. **Missing environment setup**: Required env vars or config
5. **Broken test commands**: Test scripts that have changed
6. **Undocumented gotchas**: Non-obvious patterns not captured
## User Tips to Share
When presenting recommendations, remind users:
- **`#` key shortcut**: During a Claude session, press `#` to have Claude auto-incorporate learnings into CLAUDE.md
- **Keep it concise**: CLAUDE.md should be human-readable; dense is better than verbose
- **Actionable commands**: All documented commands should be copy-paste ready
- **Use `.claude.local.md`**: For personal preferences not shared with team (add to `.gitignore`)
- **Global defaults**: Put user-wide preferences in `~/.claude/CLAUDE.md`
## What Makes a Great CLAUDE.md
**Key principles:**
- Concise and human-readable
- Actionable commands that can be copy-pasted
- Project-specific patterns, not generic advice
- Non-obvious gotchas and warnings
**Recommended sections** (use only what's relevant):
- Commands (build, test, dev, lint)
- Architecture (directory structure)
- Key Files (entry points, config)
- Code Style (project conventions)
- Environment (required vars, setup)
- Testing (commands, patterns)
- Gotchas (quirks, common mistakes)
- Workflow (when to do what)
---
> Source: [ANcpLua/ancplua-claude-plugins](https://github.com/ANcpLua/ancplua-claude-plugins) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-23 -->
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核