@appneural/plugin-ai
v0.1.12
Published
Developer AI toolkit for code explanation, refactoring, debugging, testing and automation.
Readme
APPNEURAL AI Plugin
Package: @appneural/plugin-ai
AI-first helpers for APPNEURAL CLI users. This plugin offers deterministic, mock AI commands that help you explain, clean, analyze, and scaffold code without relying on remote inference calls.
Installation
npm add @appneural/plugin-aiUsage
appneural tools ai explain --code "function sum(a,b){ return a + b; }"Commands
| Command | Description | | --- | --- | | ai explain | Explain code snippets with language, line count, and pattern clues | | ai refactor | Normalize spacing and indentation in a snippet | | ai fix | Detect missing brackets, loose equality, and other syntax issues | | ai optimize | Highlight loops, nested conditionals, and long functions to optimize | | ai snippet | Generate small JS/TS snippets for a task description | | ai tests | Scaffold basic tests for a function in Jest or other frameworks | | ai interfaces | Infer a TypeScript interface from sample JSON | | ai perf | Surface loop counts and large arrays to improve performance | | ai stacktrace | Summarize a Node.js stack trace with the top frame | | ai find-bug | Point out loose equality and unused variables | | ai suggest-fix | Match an error message to likely fixes | | ai comments | Annotate code lines with inline comments | | ai architecture | Recommend folder layouts for REST APIs or frontend apps | | ai controller | Scaffold an Express-style controller for a resource | | ai service | Build a service class with list/get/create stubs |
