← 返回 Skills 市场
ifoster01

tRPC Best Practices

作者 ifoster01 · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
1659
总下载
1
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install trpc-best-practices
功能描述
Expert guidance for tRPC (TypeScript Remote Procedure Call) including router setup, procedures, middleware, context, client configuration, and Next.js integration. Use this when building type-safe APIs, integrating tRPC with Next.js, or implementing client-server communication with full TypeScript inference.
安全使用建议
This instruction-only guide appears internally consistent and low-risk, but consider these practical checks before using or copy-pasting examples: 1) Verify the origin/version — the package owner/homepage is missing, so ensure recommended package versions (e.g., @trpc/*@next) are what you intend and come from npm. 2) Audit and pin dependency versions before running npm install to avoid pulling unexpected code. 3) Treat db.* calls and localhost URLs as placeholders — do not paste production credentials or connection strings into examples. 4) If you intend to follow the Quick Start, run commands locally in a controlled environment and review changes before committing. 5) If you need provenance, prefer similar guidance from an official tRPC docs source or a known author.
功能分析
Type: OpenClaw Skill Name: trpc-best-practices Developer: kn73n661nr58v25gwgwvradfh580k3gf Version: 1.0.0 Description: OpenClaw Agent Skill The skill bundle provides comprehensive documentation and code examples for tRPC (TypeScript Remote Procedure Call). The `SKILL.md` file contains standard installation commands (`npm install`) and typical TypeScript/JavaScript code snippets for setting up tRPC, defining routers, handling context, and client usage. There are no indications of prompt injection attempts against the AI agent, no instructions for malicious actions, no data exfiltration to external endpoints, and no suspicious code patterns or obfuscation. All content is clearly aligned with the stated purpose of offering expert guidance on tRPC.
能力评估
Purpose & Capability
The name/description (tRPC best practices) matches the SKILL.md content: TypeScript/Next.js/tRPC code examples, router/client setup, middleware, and validation. The skill does not request unrelated binaries, env vars, or credentials. Note: the skill's source/homepage are missing, so you should treat the origin as unknown even though the content itself is coherent.
Instruction Scope
SKILL.md contains code examples and step-by-step guidance confined to building/integrating tRPC (client/server, adapters, Zod validation, Next.js). It references placeholders like db.user and a localhost API URL for examples, which are typical examples rather than instructions to access external secrets. The instructions do not direct the agent to read unrelated system files, config paths, or to exfiltrate data.
Install Mechanism
There is no install spec and no code files; the skill is instruction-only. The Quick Start recommends running npm install for standard @trpc and peer packages, which is expected for this topic. No downloads from arbitrary URLs or archive extraction are present in the skill itself.
Credentials
The skill declares no required environment variables, credentials, or config paths. Example code references (db, localhost URL) are typical placeholders and do not translate to required secrets being requested by the skill.
Persistence & Privilege
always is false and there is no install or persistent presence requested. The skill is user-invocable and may be invoked autonomously by the agent (default), which is normal for skills and not a concern here given the lack of broad privileges or credential requests.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install trpc-best-practices
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /trpc-best-practices 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
tRPC Best Practices 1.0.0 - Initial release providing expert guidance on tRPC usage and Next.js integration. - Includes quick start setup, code examples for router, middleware, and context creation. - Covers input validation with Zod, client setup, and use in React components. - Features sections on router design, merging, and reuse of validation schemas. - Intended for building fully type-safe APIs and seamless client-server communication using TypeScript. All credit to https://skills.sh/oriolrius/pki-manager-web/trpc (I wanted it on clawhub)
元数据
Slug trpc-best-practices
版本 1.0.0
许可证
累计安装 3
当前安装数 3
历史版本数 1
常见问题

tRPC Best Practices 是什么?

Expert guidance for tRPC (TypeScript Remote Procedure Call) including router setup, procedures, middleware, context, client configuration, and Next.js integration. Use this when building type-safe APIs, integrating tRPC with Next.js, or implementing client-server communication with full TypeScript inference. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1659 次。

如何安装 tRPC Best Practices?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install trpc-best-practices」即可一键安装,无需额外配置。

tRPC Best Practices 是免费的吗?

是的,tRPC Best Practices 完全免费(开源免费),可自由下载、安装和使用。

tRPC Best Practices 支持哪些平台?

tRPC Best Practices 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 tRPC Best Practices?

由 ifoster01(@ifoster01)开发并维护,当前版本 v1.0.0。

💬 留言讨论