shortidsqids20260717
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "shortidsqids20260717" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a48d11c715b2b2a7994c6475326bbadd0e626f0c959a3f49f535ff86eba26d1a. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/shortidsqids20260717 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Encode customer numeric IDs into shareable short codes using Sqids, and provide decoding to recover the original numeric IDs.
Introduction source: third_party · user_f1b049da · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: shortidsqids20260717
slug: shortidsqids20260717
displayName: 短ID混淆Sqids
version: 1.0.0
summary: 用 Sqids 把客户数字 ID 编成可分享短码,并支持解码回数字。
license: MIT
description: 用 Sqids 把客户数字 ID 编成可分享短码,并支持解码回数字。Short ID Sqids(客户数字 ID 短码)
灵感:工具箱 sqids-id。用 sqids 将数字 ID 编码为短字符串,便于分享链接;可解码校验。
硬约束
- 仅处理非负整数 ID(或整数数组)。
- minLength 建议 >=6。
- 编解码往返必须一致。
- 成功/失败要有提示。
核心
s import Sqids from 'sqids'; const sqids = new Sqids({ minLength: 6 }); export const encodeId = (n: number) => sqids.encode([n]); export const decodeId = (code: string) => sqids.decode(code)[0];
工具箱映射
- 能力:sqids-id
- 依赖:sqids
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供客户数字 ID 短码编码与解码功能,实用性强
- 适用于分享链接、ID 混淆等通用场景
Areas to improve
-
触发词描述不够完整 Reported severity: Minor
description 说明了核心功能,但缺少具体触发词示例和边界条件说明
Recommendation: 补充典型触发词如“编码 ID”、“解码短码”等,并说明支持的输入格式
Areas to improve
-
缺少 When to Use 使用场景说明 Reported severity: Minor
文档未明确说明何时使用该 Skill
Recommendation: 增加 When to Use 章节,描述典型使用场景
-
缺少端到端使用示例 Reported severity: Minor
仅有核心代码片段,无完整输入输出示例
Recommendation: 补充端到端示例,展示编码和解码的完整流程
Areas to improve
-
异常处理缺失 Reported severity: Major
未处理负数、非整数、解码失败等异常情况
Recommendation: 增加输入校验和异常处理逻辑,确保编解码往返一致性
-
依赖安装说明缺失 Reported severity: Minor
未说明如何安装 sqids 依赖
Recommendation: 补充依赖安装说明或指向官方文档
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.