跳到正文
TakoAPI
返回技能列表

supernal-interface

由 ianderrington 提供

Coding Agents & IDEs
552下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Universal AI Interface framework for making applications AI-controllable.

描述

该技能的功能

Supernal Interface is a TypeScript framework that makes existing application functions callable by AI assistants via decorators. Decorate a function with @Tool and any connected AI chat adapter can discover and invoke it with type safety. Supports CopilotKit out of the box and allows custom chat UI adapters.

Decorator-based registration means you don't maintain a separate tool manifest — the function definition and its AI metadata stay in one place.

何时使用

  • Adding AI control to an existing TypeScript app without rewriting logic
  • Exposing CRUD operations to a chat assistant in a React app
  • Wiring up CopilotKit to auto-discover all decorated tools
  • Persisting AI-accessible state across user sessions with React hooks
  • Generating Gherkin-based tests from decorated tool definitions

示例工作流

输入

User asks: 'Make my TodoApp controllable by an AI chat assistant'

智能体
  1. 1

    Install @supernal/interface and import Tool decorator

  2. 2

    Annotate addTodo and completeTodo methods with @Tool, providing name and description

  3. 3

    Create a CopilotKit adapter with autoRegisterTools: true

  4. 4

    Wrap the React app in ChatUIProvider with the adapter

  5. 5

    Verify AI assistant can discover and call the decorated methods

输出

The chat UI can now call addTodo and completeTodo directly, with full type safety and auto-discovered tool schemas

前置要求

  • supernal.ai/enterprise account for enterprise features (auto test generation, multi-model routing, audit logging)

安装

clawhub install ianderrington/supernal-interface

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接