Skip to content
Agentmart
Submit a tool

archery-database-search

Fuzzy or regex search databases in Archery cached catalog with instance info.

Skill by xqdgithub

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/xqdgithub-archery-database-search

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Fuzzy or regex search databases in Archery cached catalog with instance info. Use when the user knows part of a database name, needs to explore databases, or find which instance hosts a database. Default filters mysql engine and slave instances. Command archery database search. Requires instance refresh first (archery-instance skill).

Use cases: backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/archery-database-search

What's inside

Skill name
archery-database-search
Description
Fuzzy or regex search databases in Archery cached catalog with instance info. Use when the user knows part of a database name, needs to explore databases, or find which instance hosts a database. Default filters mysql engine and slave instances. Command archery database search. Requires instance refresh first (archery-instance skill).
License
MIT
Instructions
82 lines in SKILL.md · view on GitHub

Files (4)

  • SKILL.md
  • commands.md · reference/
  • errors.md · reference/
  • mcp.md · reference/

SKILL.md (first lines)

# Archery 数据库搜索

## 何时使用

- 只知道库名片段,需要模糊搜索
- 需要正则批量匹配库名
- 需要查看库所在的实例、引擎类型、实例角色(master/slave)

**前置条件:** 先运行 `archery instance refresh`(见 `archery-instance` skill)。

**不要使用本 Skill:**

- 已知完整库名、只需反查实例 → `archery-instance`(`instance find`)
- 执行 SQL → `archery-query`
- 刷新/列出实例列表 → `archery-instance`

## 推荐工作流

```bash
# 1. 确保缓存已刷新
archery instance refresh

# 2. 模糊搜索(默认 mysql + slave 从库)
archery database search devops --table

# 3. 搜索全部实例角色
archery database search devops --type all --table

# 4. 正则搜索
archery database search --pattern "^report_.*" --regex --type all

# 5. 拿到 instance + db 后查库
archery query --instance <实例> --db <库> --sql "SELECT 1" --full
```

## 命令速查

```bash
archery database search <pattern> [--table]
archery database search --pattern "<pattern>" [--regex] [--db-type mysql|tidb|all] [--type slave|master|RO|RW|all] [--instance <实例>] [--table]
```

## 过滤参数

### `--db-type`(数据库引擎)

| 值 | 说明 |
|------|------|
| `mysql` | **默认**。按 Archery 引擎类型过滤 |
| `tidb` 等 | 其他引擎类型 |
| `all` | 不过滤引擎 |

### `--type`(实例角色)

| 值 | 说明 |
|------|------|
| `slave` | **默认**。从库/slave |
| `master` / `RW` | 主库/master |
| `RO` | 同 `slave` |
| `all` | 不过滤角色 |

过滤依据 catalog 中存储的 `DbType` / `InstanceType` 字段,不从实例名推断。

## 输出

JSON 默认,每行包含:`database`、`instanceName`、`dbType`(引擎)、`instanceType`(master/slave)。

`--table` 输出四列表格。

## 约束

1. 基于本地 catalog,非实时 API
2. 默认 `mysql` + `slave` 双过滤;主库需 `--type master` 或 `--type all`
3. 与 `instance find` 区别:search 支持模糊/正则;find 仅精确库名

## 参考

- 完整参数表:[reference/commands.md](reference/commands.md)
- MCP 工具:[reference/mcp.md](reference/mcp.md)
- 常见错误:[reference/errors.md](reference/errors.md)

From xqdgithub/archery-cli, MIT.

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Jun 22, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from xqdgithub

Cite this page

archery-database-search skill. Agent Mart. https://agentmart.dev/skills/xqdgithub-archery-database-search (last updated 2026-10-24)