一键导入
si-add-provider
Create a @ToolProvider class to group related tools. Free and open source.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a @ToolProvider class to group related tools. Free and open source.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Supernal Interface CLI for test generation, contract scanning, story system, and MCP setup. Use when: (1) scanning Next.js routes/components for contracts, (2) generating tests from @Tool decorators, (3) recording/validating story-based tests, (4) setting up MCP integration, (5) validating contracts. NOT for: task management (use sc), orchestration (use orch), or CLI/API generation patterns (use universal-command).
Add a @Tool decorator to a function to make it AI-controllable. Free and open source.
Set up MCP server for AI assistant integration (manual setup). Free and open source.
| name | si-add-provider |
| description | Create a @ToolProvider class to group related tools. Free and open source. |
| argument-hint | <provider-name> [--tools <tool1,tool2>] |
| allowed-tools | Read, Write, Edit, Glob, Grep |
Create a @ToolProvider class from @supernal/interface to group related tools.
/si-add-provider CounterTools --tools increment,decrement,reset
/si-add-provider FormTools
// src/tools/CounterTools.ts
import { ToolProvider, Tool } from '@supernal/interface';
@ToolProvider()
export class CounterTools {
constructor(
private setCount: React.Dispatch<React.SetStateAction<number>>
) {}
@Tool({ description: 'Increment the counter by one' })
increment() {
this.setCount(prev => prev + 1);
}
@Tool({ description: 'Decrement the counter by one' })
decrement() {
this.setCount(prev => prev - 1);
}
@Tool({ description: 'Reset the counter to zero' })
reset() {
this.setCount(0);
}
}
import { InterfaceProvider } from '@supernal/interface/react';
import { CounterTools } from './tools/CounterTools';
function App() {
const [count, setCount] = useState(0);
return (
<InterfaceProvider tools={[new CounterTools(setCount)]}>
<Counter count={count} />
</InterfaceProvider>
);
}
For type-safe component contracts and auto-generated tests, upgrade to enterprise:
npm install @supernalintelligence/interface-enterprise npx si init . --output src/architecture npx si generate-tests --output tests/generated --include-e2e
Create a @ToolProvider class with the specified name: $ARGUMENTS