Logo Parallel Analysis

Parallel Analysis

Cộng đồng
giang6283623
parallel-analysis

Fan out 2-5 independent read-only analysis lanes across the repo using provider-ready native subagents or configured adapters, then merge the lane reports and verify them with a refutation pass. Use for repo-wide questions, large uncommitted-diff reviews, multi-doc reading, impact analysis, or consistency audits. Before dispatch, resolve the project's Default, Auto, or Custom orchestration preference.

Tổng quan

Nhà phát hànhgiang6283623
Kho mãminimal-vibe-coding-kit
Tên kỹ năngparallel-analysis
Sao
26
Bản fork
3
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được giang6283623 công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Parallel Analysis trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/giang6283623/minimal-vibe-coding-kit/tree/main/.agents/skills/parallel-analysis
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/giang6283623/minimal-vibe-coding-kit.git /tmp/minimal-vibe-coding-kit
mkdir -p .claude/skills
cp -r /tmp/minimal-vibe-coding-kit/.agents/skills/parallel-analysis .claude/skills/parallel-analysis
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Parallel Analysis trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Parallel Analysis ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Parallel Analysis không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Parallel Analysis (Multi-Agent Fan-Out)

Split a large analysis into independent read-only lanes, run them concurrently with the resolved ready adapters, merge the lane reports, and verify merged claims with a skeptical refutation pass. One round of parallel lanes replaces slow serial reading; the verification lane replaces manual double-checking.

This skill is project-agnostic: it works in any repo where the kit is installed, using that repo's backbone.yml (if present) for boundaries.

Best Use

  • Repo-wide questions ("where is X handled, what depends on Y").
  • Reviewing a large uncommitted diff by concern (backend vs frontend vs i18n vs scripts).
  • Reading several large docs, plans, or reference trees at once.
  • Pre-change impact analysis across packages/apps listed in backbone.yml paths.apps.
  • Consistency audits (docs vs code, rules vs skills, config vs actual layout).

Do NOT use for single-file questions or quick lookups; direct reads are faster.

Orchestration preference and executor setup

Immediately before the first lane dispatch, follow .vibekit/docs/ORCHESTRATION_MODES.md in the parent session. Resolve Default, Auto, or Custom before selecting executors. The preference is global project state; .vibekit/parallel-analysis.json stores only skill-specific adapter details.

  1. Read a remembered orchestration preference when present. If it is not remembered, use the parent runtime's native structured-question tool or its plain parent-conversation fallback.
  2. Inspect .vibekit/parallel-analysis.json when present. Reuse only adapters whose non-mutating preflight still passes. A stale executor cache never suppresses an unresolved global mode question.
  3. Build a bounded inventory of the active provider plus Codex, Claude, Cursor, Grok, and Kimi adapters that are already installed or exposed.
  4. Classify every candidate as ready, installed-unverified, or unavailable using the shared contract. Auto uses ready adapters only.
  5. Apply the selected mode:
    • Default: use the active provider's native child-agent facility and default model. If the host exposes no such facility, run the lanes sequentially in the current parent; do not switch providers.
    • Auto: split the independent lanes first, then route each lane to the lowest-cost ready model that satisfies context, tool, risk, and verification requirements. A heterogeneous set is allowed.
    • Custom: validate the user's role or lane assignments against the ready inventory. Ask in batches of at most three native questions when an assignment is missing.

Readiness and model resolution

  • native-subagents: ready only when the active Codex, Claude, Cursor, Grok, or Kimi host exposes a child-agent API with the required read-only boundary. Use the host's default model unless the remembered Custom assignment names another verified model.
  • cursor-sdk: ready only when cursor-sdk-adapter.mjs preflight succeeds, Cursor.models.list() returns the requested model and parameters, and the remembered assignment names adapter: cursor-sdk. The adapter requires Node.js 22.13+, @cursor/sdk 1.0.27+, a real kit project root, and its enforced read-only profile. Never infer SDK readiness from Cursor CLI or IDE authentication.
  • cursor-cli: cursor-agent must exist, report an authenticated session, expose the requested model, and support the read-only invocation below. Never assume a model alias from documentation or an old config.
  • codex-cli: codex --version must succeed and the CLI must support a read-only exec invocation. Use its configured default model unless the user chose a verified model.
  • provider CLI adapter: a Claude, Grok, or Kimi executable alone is installed-unverified. Mark it ready only when the project has a known non-interactive, read-only invocation contract plus a non-mutating authentication and model preflight.

Do not run login flows, inspect credentials, install a CLI, or silently change provider configuration. If readiness cannot be proven, exclude that adapter from Auto and show it as unavailable in Custom.

Adapter cache

A version 2 cache may record verified execution details:

json
{
  "version": 2,
  "adapters": {
    "current": {
      "kind": "native-subagents",
      "model": "provider-default",
      "readOnly": true,
      "status": "ready"
    }
  },
  "fallback": "current",
  "configuredAt": "2026-08-05T00:00:00Z"
}

Never store credentials, tokens, account data, or full preflight output. Existing version 1 executor, model, and fallback files remain readable as a legacy adapter cache, but they do not choose the global orchestration mode. To change execution details, ask for parallel-analysis setup again.

Running a lane (per executor)

Every lane is READ-ONLY: search, read, summarize - never edit files, execute project binaries, run hooks, or trigger installs/deploys/migrations.

  • native-subagents: dispatch every lane through the active parent runtime's native child-agent facility with an explicit read-only brief. If the host cannot enforce read-only access, run sequentially in the parent instead of claiming lane isolation.

  • cursor-sdk: get a fresh catalog, then pass one version 1 JSON request with access: "read-only", the verified model and parameters, the exact lane brief, and a bounded timeout:

    sh
    node .vibekit/scripts/cursor-sdk-adapter.mjs models .
    node .vibekit/scripts/cursor-sdk-adapter.mjs run . < cursor-run-request.json

    Reject an unavailable preflight, model mismatch, router selection presented as exact, or result without agent and run ids. The request must not contain credentials. See .vibekit/docs/CURSOR_SDK.md for setup and model changes.

  • cursor-cli:

    sh
    cursor-agent -p --mode ask --output-format text \
      --model "<configured-model>" \
      --workspace "<repo-root>" \
      "<lane brief>"

    Never pass --force or --yolo; --mode ask keeps Composer read-only. One workspace per lane; a question spanning multiple repos becomes one lane per repo.

  • claude-subagents: launch each lane as a read-only subagent with the lane brief as its prompt, all lanes in ONE message so they run concurrently.

  • codex-cli:

    sh
    codex exec --sandbox read-only -C "<repo-root>" "<lane brief>"

If the harness cannot run lanes concurrently (plain CLI loop), run them back-to-back without changing the briefs - merge and verification stay the same.

External-controller executor mode

Before decomposing the question, inspect the active Agent Control Center task envelope. When controller is neither native nor current, do not run the native workflow below. The selected external controller owns decomposition, lane briefs, receipt review, refutation, and the final control decision.

Run this host-mediated executor loop instead:

  1. Send the frozen task envelope to the selected controller before creating any lane.
  2. If the controller returns ask-user, have the host parent use its exposed structured-question tool, such as AskUserQuestion or request_user_input when available, then return the answer to the same controller session.
  3. Accept only bounded lane work orders that match the user-selected worker provider, transport, model, reasoning effort, scope, and budget. An unresolved or mismatched worker route returns ask-user; it never falls back silently.
  4. Dispatch the approved worker lanes without rewriting their questions or assigning the controller provider as their executor.
  5. Return unaltered proof receipts to the same controller session. Let the controller merge, challenge, retry, escalate, accept, or stop.
  6. Present the controller's user question or final accepted result in the host parent conversation.

For example, with host=cursor, controller=codex, and Cursor-native workers, Codex creates the lane briefs and Cursor dispatches Cursor agents. Do not create or describe Codex lanes unless the user independently selected Codex as a worker provider.

Workflow

Use this workflow only when controller=native or controller=current.

  1. Scope. State the question in one sentence. Split it into 2-5 lanes that are independent of each other (by directory, package, concern, or doc set). If lanes would depend on each other's output, merge them or run two rounds.
  2. Brief. Give each lane a numbered brief: exact paths, the questions to answer, and the required return format ("facts only, numbered sections, findings as file:line - issue - why it matters").
  3. Launch all lanes at once with the resolved ready adapter assignments.
  4. Prepare while waiting. Build the merge skeleton; do not duplicate lane work.
  5. Merge. Combine lane reports into one findings list. Mark conflicts between lanes and unknowns explicitly - never average away a disagreement.
  6. Verify. Run one verification lane that receives the merged claims (not the reasoning) with the instruction: "Default-skeptical: confirm or refute each claim against the repo with file:line evidence." Drop or re-investigate every refuted claim; never silently keep one.
  7. Deliver. Report merged findings, what was verified, and remaining unknowns. For issue triage, classify surviving findings with the reviewing-4p-priorities skill (P0-P4). Decisions and edits stay in the native main session under the repo's normal review rules.

Lane brief template

text
Lane <n>: <one-line purpose>
Workspace: <repo root>
Paths: <exact dirs/files>
Read-only. Do not modify anything or execute binaries/scripts.
Questions:
1. <specific question>
2. <specific question>
Return: numbered sections matching the questions, facts only,
findings as file:line - issue - why it matters.

Guardrails

  • 2-5 lanes per round; needing more means the question is under-scoped.
  • Lanes are read-only; only the main session edits files. Agent-surface edits (backbone.yml, AGENTS.md, CLAUDE.md, .claude/**, .cursor/**, .agents/**, .grok/**, .kimi-code/**, .codex/**, .codex-plugin/**, kit skills/commands) additionally require the agentshield-security-review skill afterwards.
  • Respect backbone.yml policy.protected_paths in every lane brief.
  • Never put secrets in lane briefs or executor prompts: no .env* contents, credentials, tokens, private keys, or customer data.
  • This skill produces analysis, not decisions; a lane may not conclude "therefore change X" without native-parent or external-controller review.

Câu hỏi thường gặp

Kỹ năng AI Parallel Analysis làm được gì?

Fan out 2-5 independent read-only analysis lanes across the repo using provider-ready native subagents or configured adapters, then merge the lane reports and verify them with a refutation pass. Use for repo-wide questions, large uncommitted-diff reviews, multi-doc reading, impact analysis, or consistency audits. Before dispatch, resolve the project's Default, Auto, or Custom orchestration preference.

Vì sao nên dùng Parallel Analysis trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Parallel Analysis là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Parallel Analysis trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/giang6283623/minimal-vibe-coding-kit/tree/main/.agents/skills/parallel-analysis. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Parallel Analysis?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Parallel Analysis với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Parallel Analysis với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Parallel Analysis có miễn phí không?

Có. Kỹ năng này được giang6283623 phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇