Logo Explore

Explore

Cộng đồng
rustyrazorblade
explore

Guided interactive mode for easy-db-lab — walks through provisioning if needed, then helps you run tests, stress workloads, and explore Cassandra, ClickHouse, Spark, and OpenSearch. The end-to-end starting point for a new lab session.

Tổng quan

Nhà phát hànhrustyrazorblade
Kho mãskills
Tên kỹ năngexplore
Sao
44
Bản fork
9
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
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 rustyrazorblade 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 Explore 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/rustyrazorblade/skills/tree/main/plugins/easy-db-lab/skills/explore
  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/rustyrazorblade/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/easy-db-lab/skills/explore .claude/skills/explore
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 Explore 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 Explore 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 Explore 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.

Easy DB Lab — Explore

You are an interactive guide for easy-db-lab sessions. You start by checking whether an environment exists, walk the user through provisioning if they don't have one yet, then help them run tests, stress workloads, and explore the cluster.

Environment

Load ../../references/environment.md for details on the AWS environment, k3s, observability stack, Cassandra config patches, and SSH access.

Lab Report

Load ../../references/report.md for every report rule: the file roles, the tiers, the summary layout, the evidence blocks, the exit rule, the check, and Finalize. In this skill the roles are <journal> = docs/4-journal.md, <issues> = docs/5-issues.md, and <plan> = docs/3-plan.md.

Session Log

Load ../../references/journal.md for instructions on maintaining <journal>. Read <journal> if it exists before taking any action — it tells you what has already been done to this environment.

Issues Log

Load ../../references/issues.md for instructions on maintaining <issues>. Add an entry whenever you hit friction, an undocumented behavior, or a skill/doc gap.

Step 1 — Check Environment State

Resolve the binary. Use $EDB for all binary invocations in this skill. Resolve it in this order:

  1. Run detect-cluster-layout.sh "$PWD" and read its output. Do not eval it: shell state does not persist between Bash tool calls. Copy the absolute wrapper paths from the output, and use those paths literally in every later command.
    • LAYOUT=single: use the EDB= path as $EDB.
    • LAYOUT=multi: use each EDB_<DC>= path as that DC's wrapper. Run DC commands, uploads, and teardown through every DC wrapper. The script skips bin/ and docs/, so neither is ever a DC.
    • Exit 1 (no wrapper found): there is no wrapper. Go to item 2.
  2. Use $PWD/bin/easy-db-lab if it is executable.
  3. Otherwise, use the path that command -v easy-db-lab prints.
bash
detect-cluster-layout.sh "$PWD"

The workspace directory is $PWD. In a multi-DC workspace it is the cluster root, which holds one directory per DC and the shared docs/. This directory is <cluster-dir> everywhere in this skill and in ../../references/report-upload.md.

If no binary resolves in an interactive session, ask the user for a path. If the user has no path, or the path is not executable, stop and report the paths searched. In an unattended session, do not ask: stop and report the paths searched. Without a binary, write no command or file from memory.

Refuse a source checkout. If $PWD/bin/easy-db-lab exists next to settings.gradle.kts or build.gradle.kts, $PWD is an easy-db-lab source checkout, not a workspace. Do not scaffold or provision there. Tell the user to change to a workspace directory, and stop.

Scaffold the report. When docs/SUMMARY.md is absent, run this before the first journal write:

bash
setup-cluster.sh "$PWD" --docs-only --name "$(basename "$PWD")"

--docs-only writes the docs/ scaffold only: it takes no binary, writes no wrapper, and keeps any existing wrapper. The directory name is only the fallback book title; make takes the title from 1-summary.md. In a multi-DC workspace, run it once at the cluster root. When docs/SUMMARY.md exists, do not run it.

Run these commands immediately when invoked, before answering any question or taking any action:

1. Discover the current command surface, help-first:

bash
# List the task-oriented topic guides
$EDB help

# Read the guide for each topic the session touches
$EDB help <topic>

# The flag-level reference
$EDB commands

Each help <topic> guide gives the intended command sequence for a topic. Use $EDB commands, and $EDB <command> --help, to confirm flag names, subcommand structure, and available options. Never guess flags. If $EDB help errors with Unmatched argument at index 0: 'help', the binary predates the topic guides. Skip the guides and use commands and --help.

In the same $EDB commands output, check whether report upload is listed. Record the result once. If it is absent, follow the "Support Check" section of ../../references/report-upload.md. If there is no docs/ directory, tell the user instead of writing the journal note.

Check the AWS SSO session. Before you provision or run a long workload, follow "The AWS SSO Session" in ../../references/report-upload.md. A WARN line never stops the session; a STOP line needs aws sso login. An expired session blocks the upload, and the upload gates teardown. If there is no docs/ directory, tell the user the output line instead of writing the journal note.

2. Check the directory state:

bash
ls state.json 2>/dev/null && echo EXISTS || echo EMPTY
  • state.json exists → a workspace is already initialized. Run $EDB status immediately. The output tells you everything: node IPs, what's running (Cassandra, ClickHouse, Spark, OpenSearch, Grafana and the observability endpoints, etc.), and the current cluster state. Use this as ground truth before proceeding to Step 3.
  • No state.json → no environment has been provisioned yet. Proceed to Step 2.

In a multi-DC workspace, state.json lives in each DC directory, not in the current directory:

  • With DC wrappers: use the STATE value from detect-cluster-layout.sh. provisioned means run $EDB status through every DC wrapper, then go to Step 3.
  • With no DC wrappers (for example, a multi-DC lab that this skill provisioned in Step 2): check the direct subdirectories with ls */state.json 2>/dev/null. For each match, run $EDB status from that DC directory, then go to Step 3. Do not go to Step 2.

This is an existence check only. state.json is an internal file of the easy-db-lab tool. It is not a documented interface, and its shape can change at any time. Never read it, never parse it, and never quote its contents to the user. $EDB status is the only source of cluster state.

Step 2 — Provision (if needed)

If no environment exists, guide the user through provisioning before anything else. Ask:

  1. What do you want to run? (Cassandra, ClickHouse, Spark, OpenSearch, or a combination)
  2. How many nodes? (db nodes, app nodes)
  3. Instance type? (default: m5.2xlarge)
  4. Single DC or multi-DC?

Walk through the $EDB init --up flow directly:

bash
# Single DC
$EDB init <name> --db.count <count> --app.count <count> --up

# Multi-DC (each DC in its own subdirectory, non-overlapping CIDRs /20 or larger)
(mkdir -p dc1 && cd dc1 && $EDB init dc1 --db.count <count> --app.count <count> --cidr 10.0.0.0/16 --up) &
(mkdir -p dc2 && cd dc2 && $EDB init dc2 --db.count <count> --app.count <count> --cidr 10.1.0.0/16 --up) &
wait

init --up provisions AWS instances. It takes a few minutes to finish. This is normal. Set the Bash tool timeout to its maximum (600000 ms) and let the command run to completion. Do not stop it early, and do not check progress by reading state.json.

The multi-DC form above is the one allowed background pattern: each DC provisions in parallel, and wait blocks until both finish. Do not continue past wait.

For multi-DC, after init --up completes, set up VPC peering — see ../../references/cassandra.md Multi-DC Setup.

Once provisioning completes, continue to Step 3.

Step 3 — Guide Exploration and Testing

With a live environment, ask the user what they want to do next. Suggest concrete options based on what's running:

  • Run a stress test (KeyValue, mixed read/write, etc.)
  • Check cluster health and observe metrics in Grafana
  • Run CQL queries or load sample data
  • Compare performance between configurations
  • Explore logs and observability tooling

Stay interactive — confirm each action before running it, and summarize results so the user can decide what to try next.

When an action measures something, run report-graph.py fetch and then render while the cluster is up. Then run block, and append the evidence block to the evidence tier per ../../references/report.md. Derive the Mimir URL, the tenant, the Grafana URL, and the cluster label per DC wrapper.

Working Directory

All easy-db-lab commands must be run from the lab workspace directory — the directory initialized with easy-db-lab init. This directory holds state.json and other internal cluster configuration files, which you never read. If the user is not in a lab workspace directory, tell them to cd to it before proceeding.

Teardown

Every real $EDB down is gated on the report upload. Follow ../../references/report-upload.md for the file selection, the upload procedure, the gate, and the failure handling.

<cluster-dir> is the workspace directory that you passed to detect-cluster-layout.sh, which is $PWD. In a multi-DC workspace, it is the cluster root.

  1. Run Finalize per ../../references/report.md. Write 1-summary.md first, with a verdict and a Findings table (Finding, Evidence, Severity). An explore session is never Partial. Then run the check and make gate, with the teardown-gate check-failure rule.
  2. Choose the files with the explore rule in the reference. List every existing docs/*.md by absolute path. Exclude SUMMARY.md, and exclude every tier file that holds only scaffold content. Name each excluded file in <journal>.
  3. If docs/ does not exist, tell the user "docs/ not found; no report uploaded" before down. In an unattended session, put this line in the report to the launcher. If docs/ does not exist, or no eligible file remains, do not upload. Run $EDB down --auto-approve.
  4. Otherwise, run one $EDB report upload command with the eligible files, per DC wrapper.
  5. Run $EDB down --auto-approve only if every upload exits 0. If an upload fails, or the CLI rejects the batch, do not run down. Follow the failure handling in the reference.

In a multi-DC workspace, upload through every DC wrapper first. Then run $EDB down --auto-approve through every DC wrapper. If there is no wrapper, run each DC's commands from that DC's directory.

bash
# Preview what would be deleted (destroys nothing; needs no upload)
$EDB down --dry-run

# Real teardown, only after the upload gate passes
$EDB down --auto-approve

Database Workflows

Load the relevant reference file when the user is working with a specific database:

  • Cassandra → ../../references/cassandra.md
  • ClickHouse → ../../references/clickhouse.md
  • Spark → ../../references/spark.md
  • OpenSearch → ../../references/opensearch.md

Hosts and Networking

bash
# List all hosts in the cluster
$EDB hosts

# Show only db or app nodes as a comma-delimited list
$EDB hosts --db
$EDB hosts --app

# Get IP for a specific host alias (db0, db1, app0, etc.)
$EDB ip db0
$EDB ip --private db0

Observability

Read $EDB help observability for the observability stack, its endpoints, and the log, metric, and annotation commands. Confirm flags with $EDB commands before you run a command.

bash
# Query logs
$EDB logs query --source cassandra --since 1h
$EDB logs query --host db0 --grep "ERROR"
$EDB logs query --unit cassandra.service --since 30m

Running Commands on Nodes

bash
# Run nodetool on all cassandra nodes (nodetool is not on PATH under exec run)
$EDB cassandra nt compactionstats

# Run in parallel
$EDB exec run --type cassandra -p "df -h"

# Run in background
$EDB exec run --bg --name my-job --type cassandra "some-long-running-command"

# List running background jobs
$EDB exec list
$EDB exec list --type cassandra

# Stop a background job
$EDB exec stop my-job

MCP Server Integration

easy-db-lab can run an MCP server for AI assistant integration:

bash
$EDB server --port 8080
# Then register: claude mcp add --transport sse easy-db-lab http://127.0.0.1:8080/sse

Guidance Principles

  1. Discover the command surface help-first before advising on flags: run $EDB help, then $EDB help <topic> for each topic the session touches, then $EDB commands and --help.
  2. Confirm the working directory is a lab workspace before running any commands.
  3. If state.json exists, run $EDB status before any action — it is the source of truth. Test only that the file exists; never read its contents.
  4. Run every easy-db-lab command to completion before you do anything else. Do not background it, do not cut it short with a timeout, and do not poll $EDB status while it runs.
  5. Use --dry-run for down when the user isn't sure what will be deleted.
  6. Prefer config patches over full cassandra.yaml replacements — write-config + update-config is the safe workflow.
  7. Use --hosts when an operation should target specific nodes rather than the whole cluster.

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

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

Guided interactive mode for easy-db-lab — walks through provisioning if needed, then helps you run tests, stress workloads, and explore Cassandra, ClickHouse, Spark, and OpenSearch. The end-to-end starting point for a new lab session.

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/rustyrazorblade/skills/tree/main/plugins/easy-db-lab/skills/explore. 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 Explore?

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

Có. Kỹ năng này được rustyrazorblade phát hành trên GitHub theo giấy phép Apache-2.0. 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 👇