Thanks for your interest in contributing!
- Fork the repository
- Clone your fork
- Create a branch:
git checkout -b feature/my-feature - Make your changes
- Test with MiMoCode
- Commit:
git commit -m "feat: add X" - Push:
git push origin feature/my-feature - Open a Pull Request
-
Copy the hook to your MiMoCode config:
cp hooks/rtk.ts ~/.config/mimocode/hooks/ -
Restart MiMoCode
-
Run a command and verify it's rewritten:
# Should execute as "rtk ls /tmp" ls /tmp -
Enable debug logging:
export RTK_HOOK_LOG=/tmp/rtk-hook.log
Edit hooks/rtk.ts and add a new entry to the RULES array:
[/^mycommand(\s|$)/, (c) => c.replace(/^mycommand/, "rtk mycommand")],- TypeScript
- No external dependencies (the hook must be self-contained)
- No
console.login production (useRTK_HOOK_LOGfor debugging)
- Keep changes focused — one feature/fix per PR
- Test with MiMoCode before submitting
- Update README.md if adding new features
- Follow existing code style
Use GitHub Issues for bug reports and feature requests.
For security vulnerabilities, see SECURITY.md.