diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index b25b0a08..6ff44b82 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -1,4 +1,4 @@ - +No explanations, just the code. # C++ Coding Guidelines @@ -87,4 +87,47 @@ - **FIXME**: Use `// FIXME: description` for known issues that need fixing. - **Documentatioon**: Only add comments that add additional value. Avoid stating the obvious. -By following these guidelines, you can ensure clean, efficient, and maintainable C++ code. \ No newline at end of file +By following these guidelines, you can ensure clean, efficient, and maintainable C++ code. + + +# RTK (Rust Token Killer) - Token-Optimized Commands + +When running shell commands, **always prefix with `rtk`**. This reduces context +usage by 60-90% with zero behavior change. If rtk has no filter for a command, +it passes through unchanged — so it is always safe to use. + +## Key Commands +```bash +# Git (59-80% savings) +rtk git status rtk git diff rtk git log + +# Files & Search (60-75% savings) +rtk ls rtk read rtk grep +rtk find rtk diff + +# Test (90-99% savings) — shows failures only +rtk pytest tests/ rtk cargo test rtk test + +# Build & Lint (80-90% savings) — shows errors only +rtk tsc rtk lint rtk cargo build +rtk prettier --check rtk mypy rtk ruff check + +# Analysis (70-90% savings) +rtk err rtk log rtk json +rtk summary rtk deps rtk env + +# GitHub (26-87% savings) +rtk gh pr view rtk gh run list rtk gh issue list + +# Infrastructure (85% savings) +rtk docker ps rtk kubectl get rtk docker logs + +# Package managers (70-90% savings) +rtk pip list rtk pnpm install rtk npm run