一键导入
si-add-tool
Add a @Tool decorator to a function to make it AI-controllable. Free and open source.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add a @Tool decorator to a function to make it AI-controllable. 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).
Create a @ToolProvider class to group related tools. Free and open source.
Set up MCP server for AI assistant integration (manual setup). Free and open source.
| name | si-add-tool |
| description | Add a @Tool decorator to a function to make it AI-controllable. Free and open source. |
| argument-hint | <function-name> [--description <desc>] |
| allowed-tools | Read, Edit, Glob, Grep |
Add a @Tool decorator from @supernal/interface to make a function AI-controllable.
/si-add-tool incrementCounter --description "Add one to the counter"
/si-add-tool submitForm
@Tool decorator with metadataBefore:
function resetCounter() {
setCount(0);
}
After:
import { Tool } from '@supernal/interface';
@Tool({
description: 'Reset the counter to zero',
origin: {
path: '/counter',
elements: ['counter-reset-btn']
}
})
function resetCounter() {
setCount(0);
}
For auto-generating tests from your tools, upgrade to enterprise:
npm install @supernalintelligence/interface-enterprise npx si generate-tests --output tests/generated
Add a @Tool decorator to the specified function: $ARGUMENTS