Logo Setup

Setup

Cộng đồng
jameskomo
setup

Set up regression testing (CI) for this repository's Claude Code configuration (plugin, skills, hooks, CLAUDE.md). Use when the user says "set up config-drift-checker", "add evals for my plugin/skills/hooks", "test my Claude Code setup", "make sure my hooks keep working after updates", or "wire the eval GitHub Action". Do NOT use for evaluating an LLM application or prompts; this is for agent configuration only.

Tổng quan

Nhà phát hànhjameskomo
Kho mãconfig-drift-checker
Tên kỹ năngsetup
Sao
33
Bản fork
1
Tệp đi kèm
Chỉ có hướng dẫn
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 jameskomo 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 Setup 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/jameskomo/config-drift-checker/tree/main/config-drift-checker/skills/setup
  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/jameskomo/config-drift-checker.git /tmp/config-drift-checker
mkdir -p .claude/skills
cp -r /tmp/config-drift-checker/config-drift-checker/skills/setup .claude/skills/setup
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 Setup 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 Setup 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 Setup 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.

config-drift-checker: setup

Goal: leave the repo with (1) an evals/ suite generated from the user's real configuration, (2) a passing local smoke run, (3) the GitHub workflow in place, (4) a checklist of the one or two things only the user can do. Ask nothing you can discover from the repo.

1. Discover the setup

Look, in order, for: .claude-plugin/plugin.json (a plugin; its dir is the target); .claude/skills/*/SKILL.md, .claude/hooks/*, .claude/settings.json hooks, CLAUDE.md. If there is no plugin manifest, create a minimal one at the repo root pointing at the skills and hooks you found (claude plugin init --help shows the shape); evals need a plugin target. Check ignores first: run git check-ignore -v .claude/evals/x, because many repos ignore .claude/ (worktrees, local settings). If it is ignored, put skills, hooks and evals under agent-config/ at the repo root and set "experimental": {"evals": "agent-config/evals"} in the manifest; never edit the user's .gitignore for this. Note that a plugin does not carry CLAUDE.md, so cases that test CLAUDE.md rules must copy it into the workspace via scaffold_script. List what you found to the user in five lines or fewer.

2. Generate starter cases (three, from real content)

Turn budgets: max_turns: 30 and timeout_seconds: 900 for real-code cases (the agent reads, edits several files and writes a test), 12 for single-file or prose cases, 6 for hook cases. A run that hits max_turns is scored as-is and flagged TRUNCATED; treat that as "raise the budget". Give every case a description: line in prompt.md frontmatter, one sentence stating what the case proves and which part of the setup (skill, hook, CLAUDE.md rule) it exercises; the HTML report shows it under the case heading. Also give it a covers.yaml next to prompt.md listing the ids of the rules it exercises (never a covers: frontmatter key: the official runner rejects unknown keys), from node ${CLAUDE_PLUGIN_ROOT}/tools/config-coverage.mjs <plugin> --list (run it after step 1; a negative-trigger case covers nothing, which is correct). The coverage number in every report comes from these. Write them under <plugin>/evals/<case>/ using the official layout (prompt.md + graders/*.md, optional case.yaml). Use ${CLAUDE_PLUGIN_ROOT}/../examples/komo-stack/evals/ as the reference if present, or the format section of the write-case skill.

  • One positive skill case per important skill: a prompt that should trigger it, graders that check the skill's observable conventions in the output (regex on code position, not prose), a tool_used: Skill indicator, and one llm grader with the rubric taken from the SKILL.md. For backend/code skills prefer a real-code case: a scaffold.sh (named in case.yaml as context.scaffold_script) copies the real source plus CLAUDE.md, locating the plugin with ROOT="${EVAL_PLUGIN_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)}" because the official runner passes no EVAL_* variables to it. The prompt asks for a feature that does not exist yet (grep first: an existing feature makes the agent correctly do nothing and the case fails for the wrong reason) and ends "Print the complete source of every file you change in your reply", so graders can read last_message; grade a specific file the agent must write with target: { source: file, path: <path> }. Never use target: files for code: in the official format it is only the list of created paths.
  • One negative-trigger case: a plausible request the skill must NOT fire on (tool_used: Skill, min: 0, max: 0, arm: both).
  • One hook case per guard hook: a scaffold.sh creates a scratch state (e.g. git init, a commit), ask the agent to run a command the hook blocks and that the model will actually attempt (not force-push to main, which models refuse unprompted), graders: attempted (tool_used: Bash), reported-blocked (regex), not-succeeded (regex not_contains).

Beyond the three starters: write one case per remaining hook and a trigger + negative-trigger case per remaining skill, each with a covers.yaml listing ids from the --list run above. Then re-run node ${CLAUDE_PLUGIN_ROOT}/tools/config-coverage.mjs <plugin> and report the coverage % to the user. CI can enforce it with the Action's coverage-min input.

3. Smoke run

node ${CLAUDE_PLUGIN_ROOT}/tools/eval-shim.mjs <plugin> --runs 1 --ablation none --scaffold

Read the per-grader verdicts. Fix graders that fail for the wrong reason (prose match, missing scaffold, unsatisfiable negative). Re-run once. Show the user the table.

4. Pin and budget: .cdc.yml

Write <plugin>/.cdc.yml from what the smoke run resolved:

node ${CLAUDE_PLUGIN_ROOT}/tools/cdc-config.mjs <plugin> init --model <aggregates.resolvedModels[0] of the smoke run> --harness <claude --version, first token>

Then ask the user one question only: how much they are willing to spend per month on this suite, and set budget.per_month_usd to it (default 10). Explain in two sentences: the pinned track is the baseline every PR is checked against; the canary runs the alias model on the latest Claude Code when a release ships, at most every 72 h, never past the budget, and opens a bump PR after two greens.

5. Wire CI

Copy ${CLAUDE_PLUGIN_ROOT}/ci/config-drift-checker.yml to .github/workflows/config-drift-checker.yml as is. It is generic: it checks out the published jameskomo/config-drift-checker for the watch job and uses jameskomo/config-drift-checker/action@v1 with plugin-dir: .. Only adjust the paths: filters to the directories that hold this repo's CLAUDE.md, skills, hooks and source. Never point it at in-repo tool paths. If gh is available and authenticated, offer to run gh secret set ANTHROPIC_API_KEY (the user pastes the key; never echo it) and gh secret set SLACK_WEBHOOK_URL.

6. Hand-off checklist (print exactly)

  1. Push. 2. Settings → Actions → General: workflow permissions Read and write, and tick Allow GitHub Actions to create and approve pull requests (for bump/pin PRs). 3. Actions → config-drift-checker → Run workflow (records the baseline; merge the pin PR it opens if .cdc.yml had no pin). 4. The next Claude Code or model release runs the canary; regressions appear as a red check, a PR comment, Slack and the drift index (eval-results branch → Pages). 5. After intentional changes: Run workflow with promote-baseline: true. 6. Spend never passes budget.per_month_usd in .cdc.yml; a skipped run says so in the job summary.

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

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

Set up regression testing (CI) for this repository's Claude Code configuration (plugin, skills, hooks, CLAUDE.md). Use when the user says "set up config-drift-checker", "add evals for my plugin/skills/hooks", "test my Claude Code setup", "make sure my hooks keep working after updates", or "wire the eval GitHub Action". Do NOT use for evaluating an LLM application or prompts; this is for agent configuration only.

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/jameskomo/config-drift-checker/tree/main/config-drift-checker/skills/setup. 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 Setup?

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 Setup 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 Setup 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 Setup có miễn phí không?

Kỹ năng này được jameskomo phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. 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 👇