dql
- Repo stars 2
- License MIT
- Author updated Live
- Author repo pipeline-go
- Domain
- Other
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 94 / 100 · audit passed
- Author / version / license
- @GuanceCloud · MIT
- Token usage
- Lean
- Setup complexity
- Guided setup
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No special requirements
- Permissions
-
- Read-only
- Shell exec
- Write / modify
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: dql
description: 用于解释、评审、生成、修复 DQL。 runs entirely locally. Works with Claude Code, Cursor, Cline and 23 more.
category: other
runtime: no special runtime
---
# dql output preview
## PART A: Task fit
- Use case: 用于解释、评审、生成、修复 DQL。 runs entirely locally. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “触发规则 / 权威依据 / 工具规则” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “用于解释、评审、生成、修复 DQL。 runs entirely locally. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “触发规则 / 权威依据 / 工具规则” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, run shell commands, write/modify files; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, run shell commands, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source mentions slash commands such as `/tmp`; use them first when your agent supports command triggers.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, run shell commands, write/modify files.
Start with a small task and check whether the result follows “触发规则 / 权威依据 / 工具规则”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: dql
description: 用于解释、评审、生成、修复 DQL。 runs entirely locally. Works with Claude Code, Cursor, Cline and 23 more.
category: other
source: GuanceCloud/pipeline-go
---
# dql
## When to use
- 用于解释、评审、生成、修复 DQL。 用于解释、评审、生成、修复 DQL。 若任务只要求解释语义、指出风险、做评审,而不要求产出新的最终 DQL,进入 解释/评审模式。 若任务要求生成、修复、返回、交付可执行 DQL,进入 生成/修复模…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “触发规则 / 权威依据 / 工具规则” and keep inference separate from source facts.
- read files, run shell commands, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "dql" {
input -> user goal + target files + boundaries + acceptance criteria
context -> 触发规则 / 权威依据 / 工具规则
rules -> SKILL.md triggers / order / output contract
runtime -> no special runtime | read files, run shell commands, write/modify files | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} DQL Skill
用于解释、评审、生成、修复 DQL。
触发规则
- 若任务只要求解释语义、指出风险、做评审,而不要求产出新的最终 DQL,进入 解释/评审模式。
- 若任务要求生成、修复、返回、交付可执行 DQL,进入 生成/修复模式。
- 只有 生成/修复模式 才允许输出最终 DQL。
权威依据
dqlcheck是“实现是否接受这条 DQL”的最终判定器。references/DQL.md和references/DQL Functions.md是起草和修复时的参考资料,不是最终裁决者。- 用户需求决定“该查什么”;
dqlcheck只决定“这样写能不能执行”。
工具规则
- 默认使用 skill 内置启动器:
./bin/dqlcheck。 - 交付最终可执行 DQL 前,必须对每条 DQL 单独运行
dqlcheck。 - 首次在本次任务中使用参考文档前,先执行
./bin/dqldocs更新./references/。 - 对包含复杂引号、转义或多行内容的 DQL,优先使用
--file或--stdin,不要依赖脆弱的 shell quoting。
生成 / 修复工作流
- 明确查询目标:场景、指标口径、时间范围、步长、维度(BY)和过滤条件。
- 基于
./references/起草 DQL。 - 对每条 DQL 单独执行
dqlcheck。 - 若失败,只按报错位置做最小修复后重试。
- 单条 DQL 连续 3 次仍未通过时,停止该条,输出最后一次报错和最小复现,不把它作为最终交付。
- 只有逐条 PASS 的 DQL 才能进入最终结果。
完整性要求
- 不把“批量整体通过”当作“逐条通过”的替代。
- 不把诊断信息、解释文字、失败条目混入最终 DQL。
- 多条任务的最终交付中,只保留 PASS 条目。
- 若任务要求交付可执行 DQL,而校验未完成,则任务不算完成。
输出规则
解释 / 评审模式
- 输出语义、风险、问题和建议。
- 不输出新的最终 DQL。
生成 / 修复模式
- 单条任务校验通过后:只输出最终 DQL。
- 多条任务校验通过后:最终只输出通过校验的条目。
- 诊断阶段可标注
PASS / FAIL,但最终交付不得包含FAIL条目。
校验器不可用
- 明确标注
UNVERIFIED。 - 说明阻断原因。
- 说明所需安装或修复动作。
常用命令
./bin/dqlcheck -q '<DQL>'
./bin/dqlcheck -q '<DQL>' --out=build
./bin/dqlcheck --file /tmp/query.dql
Decide Fit First
Design Intent
How To Use It
Boundaries And Review