You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: bump version to 5.18.1 and seed default slash commands on fresh install
- package.json: version 5.17.0 → 5.18.1 (was missing, release tag was wrong)
- server.js: define DEFAULT_SLASH_COMMANDS constant (8 built-in commands)
- loadConfig() now seeds defaults into config.json when slashCommands key is
absent (first run / fresh npx install) — existing user edits are preserved
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
/** Default slash commands — seeded into config.json on first run / fresh install. */
788
+
constDEFAULT_SLASH_COMMANDS=[
789
+
{id: 'sc1',name: '/check',text: 'Check this step by step: syntax, logic, edge cases, and potential bugs. Be thorough.'},
790
+
{id: 'sc2',name: '/review',text: 'Do a thorough code review: readability, performance, security, and adherence to best practices. Point out issues with severity levels (critical / warning / suggestion).'},
791
+
{id: 'sc3',name: '/fix',text: 'Find and fix the bug. Explain what caused it and exactly what you changed.'},
792
+
{id: 'sc4',name: '/explain',text: 'Explain this code clearly: what it does, how it works, and why it\'s structured this way. Use examples if helpful.'},
793
+
{id: 'sc5',name: '/refactor',text: 'Refactor this code for clarity and maintainability. Keep the exact same behavior. Show what changed and why.'},
794
+
{id: 'sc6',name: '/test',text: 'Write comprehensive tests: happy path, edge cases, and error scenarios. Explain what each test covers.'},
795
+
{id: 'sc7',name: '/docs',text: 'Write clear documentation: purpose, parameters, return values, usage examples, and any gotchas.'},
796
+
{id: 'sc8',name: '/optimize',text: 'Analyze performance and optimize. Identify bottlenecks, propose improvements, quantify the expected gains.'},
797
+
];
798
+
799
+
/** Load LOCAL config only — used by write operations (add/delete MCP, upload/delete skill).
800
+
* Seeds default slash commands into config.json if the key is absent (fresh install). */
0 commit comments