Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/zzxcoding/flydb/flydb-clinpx skills add zzxCoding/Flydb --skill flydb-cligit clone --depth 1 https://github.com/zzxCoding/FlydbWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00126 | $0.03035 |
| Opus 5 | $0.00063 | $0.01517 |
| Sonnet 5 | $0.00025 | $0.00607 |
| Haiku 4.5 | $0.00013 | $0.00303 |
Grade A, and why
flydb-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Flydb CLI
使用 Flydb 独立 CLI 完成一次可追溯的数据库迁移操作。这个 Skill 只负责定位文档、选择命令、执行安全检查和汇报结果;命令参数与数据库边界以 Flydb 仓库文档为准。
1. 先定位 Flydb 和文档
- 先确认用户要求使用的是 Flydb CLI,并区分 Flydb 源码仓库、已构建发行包和外部迁移脚本仓库。迁移脚本位于 Flyway 或其他项目中,不代表要改用那个项目的迁移工具;不要只凭目录名猜测执行入口。
- 定位与目标 CLI 版本匹配的文档。源码仓库应能看到
flydb-core/、flydb-cli/和docs/;发行包优先使用包内docs/。先读docs/reference/commands.md,确认全局选项、命令语义、锁范围和--dry-run支持范围。 - 根据任务读取:
- 配置或环境变量:
docs/reference/configuration.md - 错误或退出码:
docs/reference/errors.md --json机器输出与 protocolVersion 契约:docs/reference/json-output.md- 通过 MCP 宿主调用 Flydb(MCP tools、写入开关、安全模型):
docs/reference/mcp-tools.md - 多数据库、多测试/生产环境的自动化与 CI 组织:
docs/getting-started/multi-environment.md - 信创/新型 JDBC 数据库、驱动或方言:
docs/getting-started/jdbc-integration.md - 某个内置数据库:
docs/getting-started/README.md及对应页面 - CLI 发行包、动态驱动和设计约束:
docs/design/06-config-cli.md
- 配置或环境变量:
- 如果 Skill 被复制到独立目录,以上相对链接可能不可用。此时先从目标 CLI 发行包,再从 Flydb checkout 查找同名文档;两处都没有时报告缺少版本匹配文档,不要自行猜测选项。
2. 建立执行上下文
执行任何数据库命令前,明确并在回复中记录:
- 使用的 CLI 路径或发行包目录;
flydb.conf或--config来源;- JDBC URL 的脱敏摘要、目标数据库和方言标识;
- 迁移脚本位置(通常是
filesystem:db/migration);脚本位于外部仓库时记录解析后的绝对位置和当前工作目录; - 这是本地、测试、预发还是生产数据库;
- 用户要查看、校验、预演还是实际写入。
密码支持直接配置 flydb.password(明文,仅建议本地临时测试),也支持 FLYDB_PASSWORD、${env:VAR} 或 flydb.password.file。生产和共享环境优先使用后三者。不要把密码放进命令历史、日志、Skill 输出或 SQL 文件;不要为了确认连接而打印完整 JDBC URL 中的凭据。
优先确认 CLI 能运行:
bin/flydb version
如果没有可用的 bin/flydb,先报告缺少发行包/构建产物;不要把源码目录当成已经安装的 CLI,也不要未经请求启动数据库或下载厂商驱动。
3. 选择命令
| 用户目标 | 命令 | 默认动作 |
|---|---|---|
| 创建配置和迁移目录 | init |
只生成本地文件,不连接数据库 |
| 查看迁移状态 | info |
读取数据库和本地脚本,不持有迁移锁 |
| 校验 checksum、失败记录和迁移集合 | validate |
只读校验 |
| 预演迁移 | --dry-run migrate |
探测、解析并打印 SQL,不执行 SQL |
| 执行待迁移脚本 | migrate |
写入数据库并持有迁移锁 |
| 为存量库写入基线 | baseline |
写入历史记录并持有迁移锁 |
| 清理失败记录或对齐 checksum | repair |
修改历史表并持有迁移锁 |
| 撤销最近一次版本化迁移 | undo 或 --dry-run undo |
undo 会执行 SQL 并持有迁移锁 |
| 清空目标 schema | clean |
高风险破坏性操作,默认禁用 |
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 122 lines · 126 tokens per session scan A b110d3c44887
flydb-cli is a skill published in the GitHub repository zzxCoding/Flydb (9 stars, last pushed 5d ago), licensed Apache-2.0. It adds 126 tokens to every session and 3,035 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
wxjava-api-contributor
按 WxJava 的 Maven 多模块、Java 8、公共 API 兼容性和 TestNG 约定,为微信官方接口新增或维护 SDK 支持。适用于新增 Service API、请求响应 Bean、序列化、HTTP 实现、Starter 配置或回归测试时。.
union-type-wrappers
Add typed getters and setters over BinaryData properties that represent TypeSpec union types in generated Java models. Use when generated classes expose BinaryData for union-typed fields and you need ergonomic, type-safe accessors instead.
tika-eval-compare
Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".
run-tests
Run project tests using Maven (mvn). Use when the user asks to run tests.
tika-eval-h2-query
Query the tika-eval H2 database directly for counts and joins the canned reports do not compute — connection gotchas, key tables, example queries. Use when the xlsx/summary.md reports are not enough.
search-m2
Search for Java classes inside Maven dependencies in /.m2. Use when the user asks to locate classes or inspect JARs. Cross-reference pom.xml files in the current directory to resolve dependency names/versions.