Borrowing it
Nothing to install: this file belongs to VOD-Studio/violet. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/VOD-Studio/violet/release/2.0/.agents/skills/admin-data-table/SKILL.mdgit clone --depth 1 https://github.com/VOD-Studio/violetWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/vod-studio/violet/admin-data-table)<a href="https://agentmods.dev/skills/vod-studio/violet/admin-data-table"><img src="https://agentmods.dev/badge/skills/vod-studio/violet/admin-data-table/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/vod-studio/violet/admin-data-table"><img src="https://agentmods.dev/badge/skills/vod-studio/violet/admin-data-table.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What 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.1 | $0.00068 | $0.00778 |
| Opus 5.5 | $0.00027 | $0.00311 |
| Sonnet 5.5 | $0.00014 | $0.00156 |
| Haiku 4.5 | $0.00007 | $0.00078 |
Grade A, and why
admin-data-table 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 2mo ago.
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.
What it actually says
Admin 列表页接入规范
Hook 选择
| 场景 | 用法 |
|---|---|
| 服务端分页表格 | usePagedQuery(useListHook, baseQuery?, options?) |
| 客户端全量切片 | useClientPagination(data, initialPageSize?) |
| 需全量的下拉(如角色选择) | useAllRoles 模式:limit=100 + select 解包 |
- 落位看消费方:跨 feature 的通用分页 hook 放
web/src/features/admin-shared/ui/data-table/hooks/(扩展既有 hook,见下);单一 feature 私有的分页 hook 放该 feature 的hooks/目录。useAllRoles模式即后者(如admin-roles/api/queries.ts),不在 data-table 下。 usePagedQuery内管 page/pageSize 状态、拼 PageQuery 调模块 hook,返回的pagination在 JSX 直接pagination={pagination}消费。- 无额外筛选的页面省略
baseQuery。 - 要新的分页形态,扩展 hook 本身,不在页面组件手搓变体。
- 默认每页
DEFAULT_PAGE_SIZE(导出自use-paged-query.ts);页面需要偏离默认时显式传initialPageSize(如 posts 页传 10),不复制常量值。
类型约定
- 请求类型
extends PageQuery(shared/api/types.ts)。 - 响应统一
PagedResponse<T>(httpClient 拦截器解包后的形态)。 - API client / queries / query keys 统一收
PageQuery对象,不散写 page/limit 参数。
后端契约
- 唯一真相在
api/internal/domain/shared/paging.go:PageQuery/PageResult[T](钳制范围与默认值以源码为准)。 - 仓储统一签名
FindPage(ctx, shared.PageQuery) (shared.PageResult[T], error);GORM 层复用countAndFindhelper。 - ORDER BY 必须带唯一列 tiebreaker(
id ASC)——相同排序键的行在 offset 翻页间会漂移。 - admin 端点用
RespondPaged;公开端点(如 tags)无分页参数时返回全量数组保持前台兼容,带参才 paged。
min-h-0 滚动链
表格内部自适应滚动依赖一条 CSS 高度链,每层 min-h-0 缺一不可:
main (overflow-hidden) → PageShell 内容区 → 页面内容 wrapper → DataTable 根 → 卡片 → OverlayScroll
任一层丢失 min-h-0,min-height:auto 会把内容自然高度向上传导,max-h-full 失效,表格退化为整页滚动、表头滚走。
验证方式:浏览器探针断言 .os-host 的 scrollHeight > clientHeight(内层滚动生效),且页面级滚动不因表格高度被撑开。
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.
- 2mo ago First seen · 46 lines · 68 tokens per session scan A dda486767784
admin-data-table is a skill published in the GitHub repository VOD-Studio/violet (4 stars, last pushed yesterday), licensed MIT. It adds 68 tokens to every session and 778 once invoked, about $0.0003 per session on Opus 5.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.
admin-data-table compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| admin-data-tableVOD-Studio/violet | Skill | 4 | yesterday | MIT | A | 68 | Claude Code, Codex |
| ddd-go-backendLSTM-Kirigaya/jinhui-skills | Skill | 24 | 2mo ago | none | A | 98 | Claude Code, Codex |
| build-teaql-appteaql/teaql-agent-kit | Skill | 2.8k | yesterday | MIT | A | 112 | Codex |
| design-mcp-servercyanheads/obsidian-mcp-server | Skill | 702 | 6d ago | Apache-2.0 | A | 62 | Claude Code |
| api-telemetrycyanheads/obsidian-mcp-server | Skill | 702 | 6d ago | Apache-2.0 | A | 85 | Claude Code |
| api-servicescyanheads/obsidian-mcp-server | Skill | 702 | 6d ago | Apache-2.0 | A | 32 | Claude Code |
| api-gatewayTheBeardedBearSAS/claude-craft | Skill | 107 | 3d ago | MIT | A | 43 | Claude Code |