supernal-interface
Universal AI Interface framework for making applications AI-controllable. Use when adding AI tool decorators, setting up chat adapters, creating AI-callable functions, or integrating CopilotKit.
Why use this skill?
Build AI-controllable apps with Supernal Interface. Use TypeScript decorators to turn functions into tools, integrate with CopilotKit, and manage AI state.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ianderrington/supernal-interfaceWhat This Skill Does
The supernal-interface skill provides a robust, standardized framework designed to transform any standard application into an AI-controllable ecosystem. By leveraging TypeScript decorators and specialized adapters, it allows developers to expose specific methods and functions as tools that Large Language Models (LLMs) can invoke with full type safety. It effectively bridges the gap between static application logic and dynamic AI agents, facilitating seamless integration with existing platforms like CopilotKit or custom chat interfaces. Beyond simple tool exposure, it manages complex state persistence, provides React-specific hooks for context-aware chat, and includes robust testing utilities to ensure AI-driven behaviors remain reliable and predictable.
Installation
To integrate this framework into your project, run the following command within your terminal:
npm install @supernal/interface
For users within the OpenClaw ecosystem, you can also run:
clawhub install openclaw/skills/skills/ianderrington/supernal-interface
Use Cases
- AI-Driven Dashboards: Automatically convert administrative CRUD functions into AI-controllable interface actions where the user can request data updates via natural language.
- Complex Workflow Automation: Use the
@ToolProviderdecorator to group related business logic, allowing an agent to perform multi-step operations like 'draft invoice, save to database, and email client' in a single sequence. - State-Aware Assistants: Utilize
usePersistedStateto maintain user preferences and application context across multiple chat sessions, ensuring the AI 'remembers' the user's workflow configuration. - Automated Testing Pipelines: Generate functional tests from your tool definitions to ensure that as your AI capability grows, your application logic remains structurally sound.
Example Prompts
- "OpenClaw, use the productivity tools to list all pending tasks and then mark the ones tagged as 'urgent' as complete."
- "I need to update my user preferences; set the theme to dark mode and ensure the data sync interval is set to 5 minutes."
- "Run a diagnostic test on the current todo application structure to ensure all tools are correctly bound to the state manager."
Tips & Limitations
- Type Safety: Always ensure that function arguments for your
@Tooldecorators are strictly typed; the AI relies on these definitions to structure its JSON tool calls. If types are loose, the model may struggle to provide the correct input format. - Performance: While the Story system can provide a significant performance boost (up to 80% improvement), be mindful of the number of tools registered; exposing too many unnecessary functions can increase token usage and latency.
- Security: Because tools are AI-callable, avoid decorating functions that perform sensitive operations (like direct SQL execution or raw filesystem access) without internal validation layers within the function itself.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ianderrington-supernal-interface": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution, file-read, file-write
Related Skills
apple-notes
Extract and monitor Apple Notes content for workflow integration. Supports bulk extraction, real-time monitoring, and export to various formats.
universal-command
Define commands once, deploy to CLI, API, and MCP automatically. Use when building new commands/tools for Supernal — ensures consistent interfaces across all surfaces. DO NOT rebuild this pattern — use this package.
Si
Skill by ianderrington
clawx
Agent verification via ClawX OAuth system. Use when checking agent verification status, embedding verification widgets, or working with agent identity/trust tiers.
sc
Supernal Coding CLI for development workflows - task management, requirements tracking, testing, git automation, ralph loops, compliance, and documentation. Use for task management (sc task), project health checks, traceability, spec management, or autonomous task execution.