Token导航 LogoToken导航

Agent Skill · 研究检索

editing-claude(editing Claude 搜索)

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

editing-claude 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 72,083。

总安装 190周安装 8GitHub Stars 1下载 67核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dawiddutoit/custom-claude --skill editing-claude

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于 CLAUDE.md 文件的验证与优化,提升上下文工程质量。适合在 Codex、Claude、Cursor、Gemini CLI 中维护专注度与执行效率。检测冗余、矛盾与长度问题,提供安全修复建议或提取策略。基于 Anthropic 最佳实践构建,需定期更新规则库以适配新标准。

editing-claude 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/editing-claude

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/dawiddutoit/custom-claude --skill editing-clau…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

editing-claude 怎么安装?

在终端执行 npx skills add https://github.com/dawiddutoit/custom-claude --skill editing-claude。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

editing-claude 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

editing-claude 需要什么权限?

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

editing-claude 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

editing-claude 用的人多吗?

公开数据是累计安装 190 次,近一周安装 8 次,下载 67 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

editing-claude 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
editing-claude

editing Claude 搜索 · 本页

1901需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

editing-claude

Validate and optimize CLAUDE.md files to maintain focus and effectiveness.

Purpose

This skill validates CLAUDE.md files against Anthropic's best practices, detects quality issues (contradictions, redundancy, excessive length, emphasis overuse), and suggests safe automated fixes or extraction strategies. Based on comprehensive research into context engineering best practices.

Table of Contents

Core Sections

- Step 1: Discover CLAUDE.md Files - Find global, project, and local files - Step 2: Analyze Structure - Parse headings, measure sections, detect orphans - Step 3: Analyze Emphasis Usage - Count MUST/NEVER/ALWAYS markers - Step 4: Detect Redundancy - Intra-file and cross-file duplication - Step 5: Detect Contradictions - Find conflicting directives - Step 6: Identify Extraction Opportunities - Content for specialized docs - Step 7: Validate Links - Check internal/external links - Step 8: Generate Health Report - Compile comprehensive analysis

- Fix 1: Remove Cross-File Redundancy - Replace duplication with references - Fix 2: Fix Broken Links - Update links to correct paths - Fix 3: Fix Orphaned Sections - Promote or nest sections - Fix 4: Reduce Emphasis Density - Remove redundant emphasis

Advanced Topics

Supporting Resources

  • Reference - Anthropic best practices, algorithms, validation checklist
  • Examples - Quarterly review, redundancy fixes, extraction strategy

Quick Start

Analyze current CLAUDE.md:

Skill(command: "editing-claude")

Expected output: Health report (0-50 score), issues found (critical/warning/info), extraction opportunities, automated fixes available.

When to Use

Explicit Triggers:

  • "Edit CLAUDE.md"
  • "Optimize CLAUDE.md"
  • "Check for contradictions in CLAUDE.md"
  • "Validate documentation"
  • "CLAUDE.md is too long"

Implicit Triggers:

  • Before committing CLAUDE.md changes
  • Document exceeds 200 lines (warn at 200, error at 500)
  • Quarterly documentation reviews
  • After adding new rules/sections

File Types:

  • CLAUDE.md (project or global)
  • .claude/*.md (specialized docs)
  • *.CLAUDE.md (local overrides)

What This Skill Does

8-Step Workflow:

  1. Discovery - Find all CLAUDE.md files (global, project, local)
  2. Structure Analysis - Parse headings, measure sections, detect orphans
  3. Emphasis Analysis - Count MUST/NEVER/ALWAYS/MANDATORY/CRITICAL markers
  4. Redundancy Detection - Find duplicate content (intra-file and cross-file)
  5. Contradiction Detection - Find conflicting directives
  6. Extraction Opportunities - Identify content for specialized docs
  7. Link Validation - Verify all internal/external links
  8. Report & Recommendations - Generate health score with prioritized fixes

Health Score Components (50 points):

  • Length: 10 points (100-200 lines = 10, >500 = 0)
  • Emphasis Density: 10 points (<1% = 10, >2% = 0)
  • Contradictions: 10 points (0 = 10, >3 = 0)
  • Redundancy: 10 points (0 instances = 10, >5 = 0)
  • Links: 5 points (all valid = 5)
  • Structure: 5 points (no orphans = 5)
  • Extraction Potential: 5 points (<20% = 5)
  • Freshness: 5 points (updated <30 days = 5)

Instructions

Step 1: Discover CLAUDE.md Files

Find all CLAUDE.md files in hierarchy:

# Global CLAUDE.md
test -f ~/.claude/CLAUDE.md && echo "Global: ~/.claude/CLAUDE.md" || echo "No global"

# Project CLAUDE.md
test -f ./CLAUDE.md && echo "Project: ./CLAUDE.md" || echo "No project"

# Get line counts
wc -l ~/.claude/CLAUDE.md ./CLAUDE.md 2>/dev/null

Read the target CLAUDE.md file (usually project).

Step 2: Analyze Structure

Extract headings and calculate section lengths:

# Extract all headings with line numbers
grep -n "^#" ./CLAUDE.md

# Count sections
grep -c "^## " ./CLAUDE.md  # H2 sections
grep -c "^### " ./CLAUDE.md  # H3 subsections

Use Python script for detailed analysis:

python .claude/skills/editing-claude/scripts/analyze_structure.py ./CLAUDE.md

Detect issues:

  • Document >200 lines (warning), >500 lines (error)
  • Sections >100 lines (suggest extraction)
  • Orphaned sections (H3 without H2 parent)
  • Heading hierarchy skips (H1 → H3 without H2)

Step 3: Analyze Emphasis Usage

Extract emphasis markers:

# Find all CRITICAL/MANDATORY/MUST/NEVER/ALWAYS instances
grep -n "\(CRITICAL\|MANDATORY\|MUST\|NEVER\|ALWAYS\)" ./CLAUDE.md

Calculate emphasis density:

python .claude/skills/editing-claude/scripts/analyze_emphasis.py ./CLAUDE.md

Thresholds:

  • <1%: ✅ Optimal (restrained)
  • 1-2%: ✅ Acceptable (within range)
  • 2-5%: ⚠️ Warning (overuse)
  • 5%: ❌ Error (nothing is critical)

Step 4: Detect Redundancy

Intra-file redundancy (same file):

Run semantic similarity analysis:

python .claude/skills/editing-claude/scripts/detect_redundancy.py ./CLAUDE.md

Distinguish redundancy from reinforcement:

  • Redundancy: Exact duplication in same context → Fix
  • Reinforcement: Same info in escalating contexts (catalog → section → checklist) → Keep

Cross-file redundancy (global vs project):

python .claude/skills/editing-claude/scripts/detect_redundancy.py ~/.claude/CLAUDE.md ./CLAUDE.md

Common redundant rules:

  • MultiEdit requirement
  • Testing philosophy
  • Critical thinking principle

Fix: Replace project duplication with reference to global.

Step 5: Detect Contradictions

Run semantic contradiction analysis:

python .claude/skills/editing-claude/scripts/detect_contradictions.py ./CLAUDE.md

Contradiction patterns:

  • Direct opposition: "ALWAYS use X" + "NEVER use X"
  • Priority conflicts: "X is critical" + "X is optional"
  • Conflicting delegation: Multiple agents for same task
  • Tool preference conflicts: Skill vs direct tool (check if conditional)

Validation: Check if apparent contradictions are actually conditional fallbacks (not true contradictions).

Step 6: Identify Extraction Opportunities

Analyze each section:

python .claude/skills/editing-claude/scripts/identify_extractions.py ./CLAUDE.md

Extraction criteria:

  • Section >50 lines
  • Detailed how-to content (should be in guide)
  • Low-frequency content (edge cases)
  • Catalog-style content (lists of items)

Common extraction targets:

  • Skills Catalog (if >40 lines) →.claude/docs/skills-index.md
  • Workflow details →.claude/docs/workflow-guides.md
  • Anti-pattern details →.claude/docs/enforcement-guide.md
  • Agent reference →../orchestrate-agents/references/dispatch.md (if not already there)

Keep in CLAUDE.md:

  • 5 most critical items from each catalog
  • Core principles (not implementation details)
  • Links to specialized docs

Step 7: Validate Links

Extract and validate all links:

python .claude/skills/editing-claude/scripts/validate_links.py ./CLAUDE.md

Check:

  • Internal links (file exists)
  • Relative paths (not absolute)
  • External links (HTTP 200) - optional
  • Link text descriptive (not "click here")

Fix broken links automatically (safe operation).

Step 8: Generate Health Report

Compile all analyses into comprehensive report:

python .claude/skills/editing-claude/scripts/generate_report.py ./CLAUDE.md

Report format:

# CLAUDE.md Health Report

**Overall Score: X/50** 🟢 EXCELLENT | 🟡 GOOD | 🟠 NEEDS WORK | 🔴 CRITICAL

## Issues Found

### 🔴 Critical (Fix Immediately)
- [Issue with line numbers and fix]

### 🟠 High Priority (Fix Soon)
- [Issue with line numbers and fix]

### 🟡 Medium Priority (Improve)
- [Issue with line numbers and suggestion]

### 🟢 Low Priority (Optional)
- [Issue with line numbers and suggestion]

## Extraction Opportunities
- [Section] (X lines) → [target-file.md]

## Automated Fixes Available
- [ ] Fix 1 (safe, low-risk)
- [ ] Fix 2 (requires review)

## Recommendations
1. [Priority action]
2. [Next action]
3. [Future improvement]

Write report to .claude/artifacts/YYYY-MM-DD/reports/claude-md-health-report.md.

  • Use reports/ subfolder for health reports
  • If multiple reports exist for same topic, group in topic subfolder (e.g., reports/claude-md-optimization/)

Safe Automated Fixes

The following fixes can be applied automatically (with --apply flag):

Fix 1: Remove Cross-File Redundancy

When: Same rule in global and project CLAUDE.md

Action: Replace project duplication with reference to global

# Before (project CLAUDE.md)
### Token Optimization (MultiEdit Required)
[13 lines of MultiEdit explanation]

# After
### Token Optimization
**Global Rule:** See [~/.claude/CLAUDE.md](~/.claude/CLAUDE.md) for MultiEdit requirement

Validation: Ensure global CLAUDE.md exists and contains the rule.

Fix 2: Fix Broken Links

When: Internal link points to non-existent file

Action: Update link to correct path OR remove if file truly missing

Validation: File exists at new path AND content matches expected.

Fix 3: Fix Orphaned Sections

When: H3 section without H2 parent

Action: Promote to H2 OR nest under appropriate existing H2

Validation: Requires semantic understanding - ASK USER for confirmation.

Fix 4: Reduce Emphasis Density (>2%)

When: Too many CRITICAL/MANDATORY markers

Action: Remove redundant emphasis (e.g., heading + body both have emphasis)

Validation: Meaning preserved, emphasis still clear.

Examples

Python Examples

Complete Walkthroughs

See examples/examples.md for:

  • Example 1: Quarterly Review - Full analysis workflow
  • Example 2: Fixing Redundancy - Cross-file duplication
  • Example 3: Extraction Strategy - Skills Catalog extraction
  • Example 4: Contradiction Resolution - Detecting conflicts
  • Example 5: Length Optimization - 502 → 250 lines
  • Example 6: Emergency Fix - Broken links and orphans

Supporting Files

  • scripts/analyze_structure.py - Parse headings, measure sections, detect orphans
  • scripts/analyze_emphasis.py - Extract MUST/NEVER/ALWAYS, calculate density
  • scripts/validate_links.py - Link extraction, existence checking
  • scripts/generate_report.py - Compile analyses into comprehensive report
  • examples/examples.md - Comprehensive examples and use cases
  • templates/extraction-template.md - Template for creating specialized docs
  • templates/report-template.md - Template for health report
  • references/reference.md - Technical depth on algorithms and best practices

Validation

Verify skill execution:

  1. Health score calculated: 0-50 range
  2. All 8 analyses run: Structure, emphasis, redundancy, contradictions, extraction, links, freshness, report
  3. Report generated: Saved to .claude/artifacts/YYYY-MM-DD/reports/
  4. No false positives: Reinforcement not flagged as redundancy
  5. Safe fixes only: No destructive operations without confirmation

Expected outcomes:

  • ✅ Report shows health score matching manual assessment
  • ✅ Extraction suggestions align with research (e.g., 191 lines identified in Phase 2)
  • ✅ No false positives on current CLAUDE.md (0 contradictions expected)
  • ✅ Automated fixes apply without breaking links

Integration Points

With Quality Gates:

  • Run before committing CLAUDE.md changes
  • Warn if health score <40 (FAIR threshold)

With Git Workflow:

  • Pre-commit hook validates CLAUDE.md
  • Blocks if health score <30 (POOR threshold)

With Documentation Reviews:

  • Quarterly review using this skill
  • Track health score over time

With Skill Creator:

  • Detects when Skills Catalog grows >40 lines
  • Recommends extraction to skills-index.md

Red Flags

Common mistakes when using this skill:

  1. ❌ Auto-apply extraction without review → Always get user approval first
  2. ❌ Flag reinforcement as redundancy → Check if same info in different contexts
  3. ❌ Flag conditional fallbacks as contradictions → Validate context
  4. ❌ Break links during fix → Verify target file exists AND content matches
  5. ❌ Remove emphasis from Core Rules → Some sections SHOULD have emphasis
  6. ❌ Ignore project-specific patterns → Adapt recommendations to project needs
  7. ❌ No rollback plan → Create git commit before applying fixes
  8. ❌ Overwhelming reports → Prioritize (critical → warning → info)
  9. ❌ No A/B testing → Measure Claude adherence before/after changes
  10. ❌ Assume extraction preserves effectiveness → Test impact on adherence

Troubleshooting

Issue: Script not found

  • Fix: Ensure scripts/ directory exists with all Python files
  • Check: ls.claude/skills/editing-claude/scripts/

Issue: False positive contradictions

  • Fix: Check if statements are conditional (if-then logic)
  • Manual review: Validate semantic analysis

Issue: Health score seems wrong

  • Fix: Check scoring algorithm in scripts/generate_report.py
  • Validate: Manual calculation vs automated

Issue: Extraction suggestions break document

  • Fix: Keep 80% of high-frequency content in CLAUDE.md
  • Test: Measure Claude adherence before/after extraction

Issue: Links break after fixes

  • Fix: Validate all links after applying fixes
  • Rollback: git checkout CLAUDE.md if needed

Requirements

Python 3.8+ with standard library:

  • re (regex)
  • os (file operations)
  • sys (arguments)
  • pathlib (path handling)

Bash tools:

  • grep (pattern matching)
  • wc (line counting)
  • test (file existence)

Claude Code tools:

  • Read, Write, Grep, Glob, Bash, Edit, MultiEdit

Optional:

  • git (for rollback, history analysis)
  • markdownlint (markdown validation)

See Also

平台分布

Codex

36.92%
按下载量换算25

Claude

30.9%
按下载量换算21

Cursor

20.76%
按下载量换算14

Gemini CLI

9.38%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills