Logo Cix Workspace

Cix Workspace

Cộng đồng
dvcdsys
cix-workspace

Cross-project research workflow for cix workspaces in Claude Cowork. Use when a request spans multiple repositories — "wire feature X through the platform", "add Y across the services", "change Z in production/staging", "how does this work end-to-end across repos". Uses cix_workspace_search to find which repos are in scope, then cix_search to drill into one repo at a time. Talks to a cix server that may host many workspaces and repos, so name the workspace and project explicitly.

Tổng quan

Nhà phát hànhdvcdsys
Kho mãcode-index
Tên kỹ năngcix-workspace
Sao
31
Bản fork
3
Tệp đi kèm
2
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 dùng hướng dẫn viết bằng Markdown thay vì 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ộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được dvcdsys công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Cix Workspace 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 của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/dvcdsys/code-index/tree/main/plugins/cix-cowork/skills/cix-workspace
  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/dvcdsys/code-index.git /tmp/code-index
mkdir -p .claude/skills
cp -r /tmp/code-index/plugins/cix-cowork/skills/cix-workspace .claude/skills/cix-workspace
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 Cix Workspace 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ự nạp Cix Workspace 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 bạn có thể dùng Cix Workspace với cả những mô hình khác ngoài mô hình ban đầu. 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 khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổ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.

cix workspace — Cross-Project Research Workflow

Some tasks are not contained in one repo. A request like "wire feature X through the platform" can touch a half-dozen repos in different languages and layers — a service, a shared library, the infra manifests, an API spec. Reading one repo gives you 1/N of the picture, and you don't know which N repos are involved until you look.

cix_workspace_search is the tool for that. It searches every repo in a named workspace at once and tells you:

  1. Which repos are actually relevant to this request.
  2. Which code in those repos is the entry point.
  3. What changes need to land in each, and in what order.

Those three questions are the goal. Don't jump to implementation before you can answer all three with evidence.

There is no "current repo" here (Cowork has no opened working directory). A workspace groups several indexed repos on a server; infer the task's anchor repo from the request, and let the workspace supply the surrounding repos.

This skill only searches. The cix_* MCP tools are read-only — there is no MCP tool to create a workspace or link/unlink repos. If the workspace you need doesn't exist yet, an operator sets it up with the cix CLI (cix ws create / add) or the dashboard; here you consume workspaces that already exist.

First: which server hosts the workspace?

A cix connection may reach more than one server (a local box, a remote corporate backend, …). Each server hosts its own workspaces and projects — a workspace named platform on one server is unrelated to anything on another.

cix_list_servers lists the configured servers. A workspace and all its repos live on exactly one server. Decide which server you're on, then be consistent: pass the same server argument to every call in the flow (cix_list_workspaces, cix_workspace_search, and the per-project cix_search drill-downs). Mixing servers mid-workflow silently returns empty or wrong-repo results, because the project doesn't exist on the other server.

Rule: use the default server (omit server) unless the user names one, or the target workspace isn't on the default. Never guess a name — call cix_list_servers. Once you know it, thread it through the whole workflow.

When to reach for workspace search

Signal in the user's requestWhat to do
Names a product / acronym you don't recognizeWorkspace search the acronym — see where it lives
"Add X to the Y flow", "wire Z into A"Workspace search Y or Z — likely cross-cutting
"Across services", "between repos", "end-to-end"Workspace search the feature
Talks about an event / topic / contract / API endpointWorkspace search the event name
References infra / deployment alongside codeWorkspace search — the infra repo is probably in the workspace too
"How do I change X in production / staging"Workspace search BUT look past top-1 — the answer is often a manifests/config/contract repo even when a code repo ranks higher (trust rule 7)
Plain change entirely inside one repoDon't workspace search. Use the cix single-repo skill
User points at a specific symbol / file pathDon't. cix_definitions on the name, or Read the path

If unsure, call cix_list_workspaces once to see whether a workspace covering the task even exists. If not, this skill doesn't apply.

The workflow

A goal-driven loop. Each step is fast — don't shortcut it.

Step 0 — orient

  • cix_list_servers — which servers exist? which is default?
  • cix_list_workspaces — workspaces on the chosen server (id + name).
  • cix_list_workspace_projects(workspace) — confirm the repos are indexed.

Lock in the server here, before searching. If a later response shows stale_fts_repos, trust the dense ranking less (see references/troubleshooting.md).

Step 1 — answer "which repos?"

Run cix_workspace_search with a short, term-rich query, not the full user sentence:

  • GOOD — short, term-rich: cix_workspace_search(workspace, "rate-limit middleware")
  • BAD — a full sentence dilutes the literal-match signal with stopwords: "Add a rate limit to every API endpoint"

Why short: the hybrid algorithm fuses BM25 (literal token match) with dense (semantic). BM25 carries the project-gating signal — repos that share zero vocabulary with the query drop out. Common words ("add", "to", "a") match everywhere and dilute that signal.

Read the response:

  • projects[] is the answer to Q1, sorted by project_score. Each entry has bm25_score (literal overlap) and dense_score (semantic). Projects below the per-query threshold are already filtered out — you only see survivors.
  • The top entry's project_score is your reference. 60–100% of top = core relevant; 40–60% = secondary.
  • Include the anchor repo (the one the user's task is rooted in) even if it ranks low — infer it from the request. The other repos are its dependencies / consumers / providers.

Optional args: top_projects (default 5), top_chunks (default 10), min_score (default 0.4 — pass 0 for intentional cross-cutting sweeps).

Step 2 — answer "what code is relevant?" (sequential drill-down)

Workspace search is a scoping tool: it tells you which repos are in play and shows a capped teaser of chunks (round-robin, ~few per repo). It is NOT where you read the code.

Drill into the relevant repos one at a time, in priority order — do NOT fan out, do NOT spawn sub-agents. For each repo from projects[], starting with the highest-ranked relevant one:

  1. Take its project_path from the projects[] panel — that is the host_path.
  2. Call cix_search(project=<that host_path>, query="<focused query>", server=<same server>) to get file-grouped, deeper results.
  3. Read the results, decide whether this repo is actually in scope, then move to the next repo only if the task needs it.

For a natural-language drill-down query ("how does X work"), pass min_score: 0 — abstract queries can score in the 0.2–0.3 range the default rejects.

Workspace repos are external (server-cloned), so once cix_search points you at a file, read the real source with cix_file(project, file, [start], [end]) instead of relying on the capped chunk teaser, and browse the layout with cix_tree(project, [dir]). In Cowork (no local filesystem) these are the way to see actual file contents.

Investigate the strongest-signal repo fully before opening the next. Most tasks resolve after drilling into the top 1–2 repos; you rarely need all of them.

Step 3 — answer "what changes?"

This is the deliverable. Your per-repo reads feed the plan; you write it. For each relevant repo:

  • What needs to change (specific file:line, or a new file).
  • Why (which step of the data flow this implements).
  • Order constraints (e.g. "shared-models migration must deploy before the backend reads the new field").
  • Tests that prove it works.

Confirm with the user before any of this lands. The plan is the deliverable of this skill; implementation is a separate step.

Throughout — ask, don't guess

Trigger a clarifying question when:

  • Top-2 projects are at near-equal project_score with different labels — ask which repo the user means.
  • bm25_score is 0 across all projects → either the FTS index is stale (see troubleshooting) or the term doesn't appear literally anywhere. Ask for the term the code actually uses ("we call it Order in code, not Trade").
  • Your drill-down into a repo finds no clear entry point — surface that uncertainty, don't paper over it.

Don't ask if the answer is obvious from the chunks. The bar is "I have two plausible interpretations and the wrong one costs real time."

Reading the projects panel

  - service-a  (/repo/service-a)  [score 0.50, 5 hit(s); bm25 0.42, dense 0.56]
  - service-b  (/repo/service-b)  [score 0.41, 5 hit(s); bm25 0.32, dense 0.50]
  - service-c  (/repo/service-c)  [score 0.29, 3 hit(s); bm25 0.16, dense 0.36]
  • project_score: the blended candidacy in [0,1]. Top = strongest signal.
  • bm25_score >> dense_score: relevant by literal token overlap (the term appears in code). Trust the surface area, verify semantic relevance.
  • dense_score >> bm25_score: relevant by semantic similarity but the literal term isn't there (common when the user's word is a nickname not used in code).
  • Both near zero: you're seeing it because nothing else cleared the gate either. Treat with skepticism.

Trust rules (summary — full version in references)

Empirically calibrated. Apply before acting on a panel:

  1. chunk.score >= 0.4 is the trust threshold; below that is ~75% noise.
  2. chunk.score == 0 is a BM25-only (literal) hit — valuable for unique identifiers, noise for generic English words.
  3. Top-1 of projects[] is right ~70% of the time on real tasks — scan ranks 2–5 before reformulating.
  4. "Change X in production" usually lives in a manifests/config/contract repo, not the code repo that ranks #1 (look for *-platform, *-manifests, *-config, openapi* at ranks 3–5).
  5. Words ≠ change location. Search ranks where the words live; your task is about where the change happens. They coincide ~70%, not always.

Read references/trust-rules.md before acting on a borderline panel — it has all ten rules with examples, plus when to add a disambiguating token and when to sweep with min_score: 0.

Worked example — why this skill exists

The failure mode this guards against: running workspace search with a full natural-language sentence. A pure-dense search returns the N nearest vectors regardless of how far "nearest" is, so every repo surfaces — including repos with zero literal mention of the feature. The hybrid + short-query approach fixes it:

  1. Query with the high-precision term first (the acronym, the feature name, the unique symbol) — everything else is noise.
  2. Trust the project gate: if a repo dropped out, it dropped out for a reason.
  3. Never treat "this repo surfaced in search" as "this repo is in scope" — verify by drilling in (Step 2) and confirm with the user.

Quick tool reference

  • cix_list_servers — list servers; omit server for the default.
  • cix_list_workspaces — workspaces on a server.
  • cix_list_workspace_projects(workspace) — repos in a workspace, with status.
  • cix_workspace_search(workspace, query, [top_projects], [top_chunks], [min_score], [server]) — cross-repo search. Use a short, term-rich query.
  • cix_search(project, query, [min_score], [server], …) — per-repo drill-down; project is a host_path from the projects[] panel.

TL;DR

When the task plausibly spans more than one repo:

  1. cix_list_servers → if more than one, pick the one hosting the workspace and thread the same server through every call.
  2. cix_list_workspaces → find it, then cix_list_workspace_projects to confirm repos are indexed.
  3. cix_workspace_search with a short, term-rich query.
  4. Read projects[] → that's your scope (Q1).
  5. For each repo in scope, drill in sequentially with cix_search (project = the host_path), one repo at a time. No fan-out, no sub-agents.
  6. Synthesize the reads → a per-repo change plan with order constraints (Q2 + Q3).
  7. Confirm scope and plan with the user before implementing.

If bm25_score is 0 across the board, the FTS index is stale — see references/troubleshooting.md before trusting the result.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

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

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

Cross-project research workflow for cix workspaces in Claude Cowork. Use when a request spans multiple repositories — "wire feature X through the platform", "add Y across the services", "change Z in production/staging", "how does this work end-to-end across repos". Uses cix_workspace_search to find which repos are in scope, then cix_search to drill into one repo at a time. Talks to a cix server that may host many workspaces and repos, so name the workspace and project explicitly.

Vì sao nên dùng Cix Workspace 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. Cix Workspace 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 Cix Workspace trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/dvcdsys/code-index/tree/main/plugins/cix-cowork/skills/cix-workspace. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng 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 Cix Workspace?

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.

Có thể dùng Cix Workspace 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 Cix Workspace 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 Cix Workspace có miễn phí không?

Có. Kỹ năng này được dvcdsys 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 các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công 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à những tiêu chí mà kết quả cần đáp ứng. 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 👇