IN PROGRESS
Technical summary
NEXUS prompt editor and manager for AI personalities that centralizes directives with versioning, usage and efficiency metrics. Dynamic templates with {{var}} variables, a gallery of ready-to-clone algorithms and module/AI-target filters standardize instruction automation.
Executed scope
- Registration:
plugin.jsonv1.0.0, lucidemessage-squareicon,icon_bg #eff6ffand customicon.svg(chat bubble, nois_core— additional plugin);registerTab('prompts','Prompts','message-square',tab.php)andregisterDoc('prompts','Gerenciamento de Prompts','message-square',doc.md); 7 modals registered (prompt,prompt-preview,prompt-modules,prompt-engines,prompt-statuses,prompt-run,prompt-gallery) and custom JS viaregisterJs('prompts','/plugins/prompts/assets/prompts-v2.js'). - Tables via
install.sql:prompts(id INTPK AI,title VARCHAR(255)NOT NULL,content TEXTNOT NULL,module VARCHAR(100)DEFAULT 'Geral',target_ia VARCHAR(100),status VARCHAR(50),updated_at DATETIMEON UPDATE,usage_count INTDEFAULT 0,efficiency INTDEFAULT 100,is_favorite TINYINT(1)DEFAULT 0) andprompt_versions(id INTPK AI,prompt_id INTNOT NULL FK →prompts.idON DELETE CASCADE,content TEXTsnapshot,created_at DATETIME) — InnoDB utf8mb4. - Automatic versioning:
prompt_savesnapshots the previous content intoprompt_versionswhenever the content changes;prompt_versions_getreturns up to 10 latest revisions;restoreVersionrestores with confirmation (the current content becomes a new history revision). - API with 15 actions:
prompt_list(ordered by favorite DESC, usage DESC, module, title),prompt_save,prompt_delete,prompt_usage_increment,prompt_favorite_toggle(toggles1 − is_favorite),prompt_versions_get, legacy aliasesprompts_list/prompts_save/prompts_deleteand persistent metaprompt_modules_*,prompt_engines_*andprompt_statuses_*(saved tosystem_settingsviaDB::setConfig). - Persistent settings: modules (
prompt_modules), AI engines (ai_engines) and statuses (prompt_statuseswithid/value/label/emoji/color) — with default fallbacks at boot (Gemini, GPT-4, Claude, Flux, Ollama; Atualizado 🟢 / Em Teste 🟡 / Obsoleto 🔴). - Dynamic templates:
{{var}}variables detected byhasVariables/runPrompt; the Variable Injector modal builds a dynamic form and "Generate & Copy" replaces every occurrence (escaped regex) and increments the prompt usage. - Template gallery: 4 built-in algorithms (SEO Expert Agent GPT-4o, Clean Code Directive Claude 3.5, VSL Copywriting 5.0 GPT-4o, Brutal Bug Analyst Claude 3.5) with one-click cloning ('Galeria' module).
- Fast Responses:
/prompts(no argument) →prompt_list— lists saved prompts. - No cron: empty
cronjob.json— fully on-demand plugin, "no safe or necessary periodic routine". - UI: Alpine.js tab (
tab.php, 308 lines) with 6 stats (Total, Gemini, GPT-4, Claude, Images, Health), module pills with counts, search and IA/module filters, 5-per-page pagination, ultra-compact table with usage/precision metrics, colored status badges and favorite/run/copy/edit/delete actions; contextual onboarding empty state ("Comece agora!"). - No Intelligence Hub enricher: purely a prompt management plugin, no
core/intel.phpintegration (unlike the enrichment plugins).
Stack and tools
- PHP 8 backend (no framework) + MySQL 8 (
promptsandprompt_versionstables) - Alpine.js + Tailwind CSS (tab + 7 modals) + lucide icons
- Internal Plugin API (tabs/modals/actions +
fastr.json+system_settings)
Tags
Prompts, AI, Prompt Engineering, Versioning, Gallery, NEXUS Plugin
Operational result
- Central prompt library: personality directives versioned by module and target AI — a single place for the AI "algorithms".
- Usage and efficiency metrics: ranking by favorites and usage, with perceived precision (0–100) per prompt.
- Zero rework: one-click revision restore, with automatic snapshot of the current content.
- Code-free standardization: modules, AI engines and statuses configurable from the panel — persisted in
system_settings. - Instant templates: one-click gallery cloning and
{{var}}variables for safe reuse. - Secure: all actions require a Bearer token and the 'prompts' module permission in
api.php.
GitHub progress (issues)
Real-time panel with latest repository issues.
live feed
open issues on GitHubcarregando andamento...
não foi possivel carregar as issues agora. abra no github pelo link acima.
Real results
NEXUS prompt editor and manager for AI personalities that centralizes directives with versioning, usage and efficiency metrics. Dynamic templates with {{var}} variables, a gallery of ready-to-clone algorithms and module/AI-target filters standardize instruction automation.
Architecture and organization
- PHP 8
- MySQL 8
- Alpine.js
- Tailwind CSS
- Plugin NEXUS
Execution and operations
The project follows reproducible execution flow with technical validation in production-like environments.
Screenshots
Talk about this project
Apply this implementation pattern in your environment and accelerate delivery with technical consistency.