Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

simplify-parallel简化并行

Agent Skill

simplify-parallel 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

873

周安装

36

GitHub Stars

1

下载量

285
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/skinnyandbald/fish-skills --skill simplify-parallel

简介

simplify-parallel 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 确认具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 当前无原始 SKILL.md 内容可参考,实际功能以来源仓库为准。

SKILL.md

Parallel Codebase Simplification

Execute code simplification across a large codebase by automatically segmenting it into logical chunks and processing them concurrently with proper dependency ordering.

Quick Reference

CommandDescription
/simplify-parallelAnalyze and simplify entire codebase
/simplify-parallel --dry-runAnalyze only, show plan without executing
/simplify-parallel --focus=libLimit to specific area
/simplify-parallel --segments=4Set max parallel agents

Usage

/simplify-parallel [options]

Options

OptionDefaultDescription
--dry-runfalseAnalyze only, don't modify files
--focus=AREAallLimit to area: api, lib, components, hooks, pages
--segments=N3Maximum parallel agents
--max-files=N20Max files per segment
--verbosefalseShow detailed progress

CRITICAL: What NOT to Change

This section is the #1 priority. Violations here negate the value of simplification. Workers MUST read this section before making any changes.

Never Remove Comments

Workers must NEVER remove any of the following:

DO NOT REMOVEExample
Section separators// ===== Types =====, // ===== Helpers =====, // ===== Component =====
JSDoc/TSDoc docstrings/** Computes the current project step... */
File header commentsBlock comments at top of files explaining purpose
"Why" comments// Only truly block when mutation is actively in flight
Business logic comments// While any query is loading, trust the server-provided step
Error handling rationale// Check if error is retryable based on status code
TODO/FIXME/NOTE commentsThese track technical debt
Biome ignore directives// biome-ignore lint/style/useNamingConvention: reason
Re-export annotations// Re-export types for convenience, // Production hooks use tRPC
Phase/section markers// Phase 14.16, // Step 1: Fetch and validate

Never Remove These Code Patterns

DO NOT REMOVEReason
Explicit intent patternsif (x) {return x;} return undefined; shows intent vs implicit return x;
Named intermediate variablesconst isMutationPending = mutation.isPending is clearer than inlining
Error handling structureDon't collapse try/catch blocks that handle different error types
Manual test outputconsole.log in *.integration.ts or manual.*.ts files is intentional

The Rule

**If removing a comment or simplification changes the clarity of *intent*, don't do it.**

Simplification means removing *unnecessary complexity*, not removing *documentation*.


How It Works

Phase 1: Codebase Analysis

The orchestrator analyzes the codebase structure:

1. Directory Tree Scan     -> Identify top-level modules
2. File Metrics Collection -> Count files, LOC, complexity per directory
3. Dependency Graph        -> Parse imports to build file->file dependency map
4. Cluster Formation       -> Group tightly-coupled files into processing units

Phase 2: Segment Formation

Files are grouped into segments based on:

  • Natural boundaries: src/app/api/, src/lib/, src/components/
  • Dependency coupling: Files that import each other stay together
  • Size limits: Target 10-25 files per segment

Phase 3: Parallel Execution

Orchestrator (Main Agent)
  |-- Worker Agent (Segment A)
  |-- Worker Agent (Segment B)
  |-- Worker Agent (Segment C)

Phase 4: Verification & Consolidation

After all segments complete:

  1. Run type-check (npm run typecheck)
  2. Run linting (npm run lint)
  3. Run unit tests (npm run test:run)
  4. Verify no comments were removed (MANDATORY)
  5. Create consolidated commit

Workflow Steps

Step 1: Run Analysis

npx tsx scripts/analyze-codebase.ts --verbose

Note: The analysis script automatically excludes .github/worktrees/ directories.

Step 2: Review Parallel Groups

The analysis output shows which segments can run concurrently.

Key principle: Groups are processed sequentially, but segments within a group run in parallel.

Step 3: Execute Simplification

For each parallel group:

  1. Launch worker agents using the Task tool
  2. Each worker receives an exclusive list of files to modify
  3. Workers run simultaneously with no overlap
  4. Wait for all workers before proceeding to next group

Step 4: Verify & Commit

After all groups complete, run full verification suite:

npm run typecheck
npm run lint
npx vitest run --exclude='.github/worktrees/**'
npm run build

Step 5: Comment Preservation Check (MANDATORY)

Before committing, verify that comments were NOT removed:

# Check diff for removed comments
git diff HEAD -- '*.ts' '*.tsx' | grep -E '^\-\s*//' | grep -v '^\-\s*//\s*$'

If any helpful comments were removed, restore them before committing.

Manual verification checklist:

  • Section separators (// ===...) still present in modified files
  • JSDoc/TSDoc blocks above functions are preserved
  • Inline "why" comments are preserved
  • Biome ignore directives are preserved

Simplification Patterns Applied

Workers apply these transformations:

PatternBeforeAfter
Nested ternariesa? b? c: d: eHelper function
Debug logsconsole.log('debug')Removed (production code only)
Repeated patternsSame code 3+ timesExtracted function
Complex conditions`if (a && b \\c && d)`Named boolean
Long functions100+ linesSplit into smaller functions

Conflict Prevention

StrategyImplementation
File OwnershipEach segment has exclusive file list - no overlaps
Dependency OrderFoundation modules processed before dependents
Sequential GroupsGroups run one at a time, segments within parallel
Verification GatesType-check between groups catches issues early

Failure Handling

  • Failed segments are retried up to 3 times with smaller batches
  • Other segments continue processing
  • Final report shows partial completion if needed

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.94%
按下载量换算100

Claude

30.51%
按下载量换算87

Cursor

20.48%
按下载量换算58

Gemini CLI

9.15%
按下载量换算26

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills