extension-querying-oql
Query OQL Canisters with the ICP CLI
Writing OQL queries requires exact schema names, JSON types, Candid escaping, and careful pagination. This skill provides practical patterns for reliable, read-only canister queries.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "extension-querying-oql" from https://skillstore.io/skills/caffeinelabs-extension-querying-oql.md and its manifest at https://skillstore.io/api/skills/caffeinelabs-extension-querying-oql/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“extension-querying-oql”。 Find the five enterprise customers with the highest monthly revenue.
预期结果:
- Query completed against the customer entity with an enterprise-plan filter and descending revenue order.
- Five rows returned. Each row includes the company name, monthly revenue, and account manager.
正在使用“extension-querying-oql”。 Which account manager office has the highest average customer revenue?
预期结果:
- Query grouped customer rows by the account manager office and calculated average monthly revenue.
- The result lists offices from highest to lowest average and reports whether more groups are available.
安全审计
安全All 160 static alerts are false positives caused by Markdown backticks, code fences, ordinary technical terms, or a pagination ellipsis. The skill documents explicit read-only ICP canister queries and contains no prompt injection, destructive behavior, credential access, or data exfiltration instructions.
风险因素
⚙️ 外部命令 (50)
📁 文件系统访问 (1)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/caffeinelabs-extension-querying-oql/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/caffeinelabs-extension-querying-oql?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/caffeinelabs-extension-querying-oql?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/caffeinelabs-extension-querying-oql/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/caffeinelabs-extension-querying-oql.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
caffeinelabs. (2026). extension-querying-oql security audit report (audit version 1) [Author version 0.4.0]. Skillstore. https://skillstore.io/skills/caffeinelabs-extension-querying-oql/audits/1BibTeX 引用
@techreport{caffeinelabs-caffeinelabs-extension-querying-oql-2026,
author = {caffeinelabs},
title = {extension-querying-oql security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/caffeinelabs-extension-querying-oql/audits/1},
note = {Author version 0.4.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "extension-querying-oql security audit report (audit version 1)"
version: "0.4.0"
type: report
authors:
- name: "caffeinelabs"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/caffeinelabs-extension-querying-oql/audits/1"
identifiers:
- type: other
value: "skillstore:caffeinelabs-extension-querying-oql:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Analyze canister data
Explore a canister schema, filter business records, and calculate grouped metrics without downloading every row.
Validate an OQL backend
Validate OQL entities, edge declarations, result shapes, and query behavior during canister development.
Diagnose query failures
Diagnose parse traps, missing fields, type mismatches, pagination problems, and unexpected relationship results.
试试这些提示
Call the backend schema method with the ICP CLI. Summarize each entity, primary key, field type, allowed value, and declared edge.
Using the current schema, build and run a read-only query for [entity]. Filter by [condition], select [fields], and limit results to [number].
Build and run an OQL query that groups [entity] by [field]. Calculate [aggregate] for [measure], sort descending, and return [number] groups.
Answer [question] across [parent entity] and [child entity]. Use dotted paths when possible, otherwise batch parent keys, paginate, and summarize verified results.
最佳实践
- Read and cache the schema before building queries, then use its exact names, field types, allowed values, and edge declarations.
- Set an explicit limit, inspect hasMore, and paginate with increasing offsets until the requested result set is complete.
- Use server-side filtering and aggregation, then select only the fields needed for the answer.
避免
- Do not guess entity names, field names, literal types, or relationship paths when the schema provides authoritative values.
- Do not omit the result limit or fetch every row when filtering and aggregation can run on the canister.
- Do not issue one query per parent key; collect keys and use a single membership filter.
常见问题
What canisters does this skill support?
Does this skill modify canister data?
Why must I read the schema first?
How are relationships queried?
How does pagination work?
What happens when a query is invalid?
开发者详情
作者
caffeinelabs许可证
MIT
作者版本
v0.4.0
Skillstore 修订
r1
引用
f32f934280aa94e399d875d7cf7b2ed16d1b82a3
维护新鲜度
2026/7/23
使用量
0 次下载 · 0 次浏览
文件结构
📄 SKILL.md