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

dev%3adiffDEV 3adiff 搜索

Agent Skill

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

总安装

264

周安装

11

GitHub Stars

公开资料未说明

下载量

88
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/cloudvoyant/codevoyant --skill dev:diff

简介

用于查找、检索和筛选相关信息,适合快速定位候选结果。

  • 可结合关键词、任务场景或来源线索进行信息聚合。
  • 通过命令行安装并使用,需参考原始 README 获取具体指令。
  • 安装前建议确认是否会触发联网或文件读写,确保权限可控。
  • dev%3adiff 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Compatibility: Designed for Claude Code only. This skill uses hooks or ${CLAUDE_SKILL_DIR} which are not available on other platforms. Run on Claude Code or adapt before using elsewhere.

Compare the current repository with another repository to identify changes and insights.

Overview

The /diff skill enables comparison between the current repository and a target repository specified by URL. It identifies structural similarities, conducts detailed file-by-file analysis, and produces a comprehensive diff report with meaningful insights.

Skill Syntax

/diff <repository-url>

Target repository: $ARGUMENTS

Parameters:

  • repository-url (required): Git repository URL to compare against (HTTPS or SSH)

Workflow

Step 1: Gather Context

  1. Ask the user for the diff objective using AskUserQuestion:

- "What is the purpose of this comparison?" - Provide options: - "Track changes from template/fork" - Identify modifications made after forking - "Architectural comparison" - Compare design patterns and structure - "Migration analysis" - Understand differences for migration planning - "Code review" - Review changes between similar projects - "Custom" - User provides specific objective

  1. Store the user's objective for the report

Step 2: Clone Target Repository

  1. Create a temporary directory using system temp location: mktemp -d
  2. Clone the target repository into the temp directory: git clone <repository-url> <temp-dir>/target-repo
  3. Handle clone errors gracefully:

- Authentication failures - Invalid URLs - Network issues - Repository not found

Step 3: Analyze Repository Structure

  1. Map directory structures for both repositories:

- Use find or directory traversal to build tree structures - Identify top-level directories and organization patterns - Note framework/language indicators (package.json, Cargo.toml, go.mod, etc.)

  1. Calculate structural similarity:

- Compare directory hierarchies - Identify common file patterns - Determine if repositories share a template/forking relationship

  1. Classification:

- Similar structure (>60% overlap): Proceed with detailed file-by-file diff - Different structure (<60% overlap): Focus on architectural comparison

Step 4: Detailed Analysis

For Similar Structures (Template/Fork Relationship)

  1. File-level comparison:

- Generate list of all files in both repos - Categorize files: - Modified files (exist in both, different content) - Added files (only in current repo) - Removed files (only in target repo) - Identical files (same content)

  1. Conduct file-by-file diff:

- Use git diff --no-index for meaningful files - Focus on source code, configuration, and documentation - Skip binary files, dependencies (node_modules, vendor, etc.) - Capture line-level changes for key files

  1. Group changes meaningfully:

- By feature/functionality (auth changes, UI updates, etc.) - By file type (configuration, source code, tests, docs) - By impact level (breaking, enhancement, refactor, fix)

  1. Extract insights:

- Identify patterns in modifications - Detect new features or capabilities - Note removed functionality - Highlight configuration differences

For Different Structures (Architectural Comparison)

  1. Architectural analysis:

- Identify framework and language differences - Compare project organization patterns - Note build system differences - Identify dependency management approaches

  1. Design pattern comparison:

- Frontend architecture (if applicable) - Backend architecture (if applicable) - State management approaches - API design patterns - Testing strategies

  1. Coding style analysis:

- Language/framework choices - Naming conventions - Code organization philosophy - Documentation approaches - Error handling patterns

Step 5: Generate Diff Report

Check for changelog: Look for CHANGELOG.md, CHANGELOG, or RELEASES.md in both repos. If found, scan recent entries to guide characterization of changes — they often name features and breaking changes explicitly.

Determine the output filename: .codevoyant/diffs/{YYYY-MM-DD}-{target-repo-name}.md

Write the report using references/report-template.md as the structure. Keep each section to 5 bullets or fewer. File trees should show * next to modified/added files. Only include sections that have meaningful content.

Step 6: Cleanup

  1. Remove the temporary directory: rm -rf <temp-dir>
  2. Confirm successful cleanup
  3. Report: ✓ Diff saved to.codevoyant/diffs/{filename}

Error Handling

  1. Clone failures:

- Display clear error message - Suggest authentication setup if needed - Verify repository URL format

  1. Permission issues:

- Check write access to temp directory - Verify.claude/ directory exists and is writable

  1. Large repositories:

- Warn if repository is very large (>1GB) - Ask user to confirm before proceeding - Consider shallow clone: git clone --depth=1

  1. Binary file handling:

- Skip binary files in detailed diff - List binary files separately in report

  1. Memory/performance:

- Use streaming for large diffs - Limit diff context for very large files - Sample files if repository has thousands of files

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

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

平台分布

Codex

35.77%
按下载量换算31

Claude

30.69%
按下载量换算27

Cursor

19.84%
按下载量换算17

Gemini CLI

8.44%
按下载量换算7

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills