115 lines
3.9 KiB
Markdown
115 lines
3.9 KiB
Markdown
say "hi marko" at the begining
|
|
|
|
Keep important deployment steps in DEPLOYMENT.md
|
|
keep project overview updates and important techical changes in README.md
|
|
|
|
for next.js, tailwind csss, shadcn-ui, next-auth, fastapi
|
|
use context7, lightweight charts
|
|
|
|
Always use Context7 MCP when I need library/API documentation, code generation, setup or configuration steps without me having to explicitly ask.
|
|
|
|
commit after every task.
|
|
pause after every section.
|
|
|
|
|
|
CLAUDE_DESCRIPTION.md is used for LLMs to understand the project faster. Keep it up to date with the latest changes and updates.
|
|
|
|
<!-- rtk-instructions v2 -->
|
|
# RTK (Rust Token Killer) - Token-Optimized Commands
|
|
|
|
## Golden Rule
|
|
|
|
**Always prefix commands with `rtk`**. If RTK has a dedicated filter, it uses it. If not, it passes through unchanged. This means RTK is always safe to use.
|
|
|
|
**Important**: Even in command chains with `&&`, use `rtk`:
|
|
```bash
|
|
# ❌ Wrong
|
|
git add . && git commit -m "msg" && git push
|
|
|
|
# ✅ Correct
|
|
rtk git add . && rtk git commit -m "msg" && rtk git push
|
|
```
|
|
|
|
## RTK Commands by Workflow
|
|
|
|
### Build & Compile (80-90% savings)
|
|
```bash
|
|
rtk tsc # TypeScript errors grouped by file/code (83%)
|
|
rtk lint # ESLint/Biome violations grouped (84%)
|
|
rtk prettier --check # Files needing format only (70%)
|
|
rtk next build # Next.js build with route metrics (87%)
|
|
```
|
|
|
|
### Test (90-99% savings)
|
|
```bash
|
|
rtk playwright test # Playwright failures only (94%)
|
|
rtk test <cmd> # Generic test wrapper - failures only
|
|
```
|
|
|
|
### Git (59-80% savings)
|
|
```bash
|
|
rtk git status # Compact status
|
|
rtk git log # Compact log (works with all git flags)
|
|
rtk git diff # Compact diff (80%)
|
|
rtk git show # Compact show (80%)
|
|
rtk git add # Ultra-compact confirmations (59%)
|
|
rtk git commit # Ultra-compact confirmations (59%)
|
|
rtk git push # Ultra-compact confirmations
|
|
rtk git pull # Ultra-compact confirmations
|
|
rtk git branch # Compact branch list
|
|
rtk git fetch # Compact fetch
|
|
rtk git stash # Compact stash
|
|
rtk git worktree # Compact worktree
|
|
```
|
|
|
|
Note: Git passthrough works for ALL subcommands, even those not explicitly listed.
|
|
|
|
|
|
|
|
### JavaScript/TypeScript Tooling (70-90% savings)
|
|
```bash
|
|
rtk pnpm list # Compact dependency tree (70%)
|
|
rtk pnpm outdated # Compact outdated packages (80%)
|
|
rtk pnpm install # Compact install output (90%)
|
|
rtk npm build # ⚠️ BUG: Use "rtk npm build" NOT "rtk npm run build"
|
|
rtk npx <cmd> # Compact npx command output
|
|
rtk prisma # Prisma without ASCII art (88%)
|
|
```
|
|
|
|
**Known RTK Bug**: For npm scripts, use `rtk npm build` instead of `rtk npm run build`. The `run` keyword causes RTK to fail.
|
|
|
|
### Files & Search (60-75% savings)
|
|
```bash
|
|
rtk ls <path> # Tree format, compact (65%)
|
|
rtk read <file> # Code reading with filtering (60%)
|
|
rtk grep <pattern> # Search grouped by file (75%)
|
|
rtk find <pattern> # Find grouped by directory (70%)
|
|
```
|
|
|
|
### Analysis & Debug (70-90% savings)
|
|
```bash
|
|
rtk err <cmd> # Filter errors only from any command
|
|
rtk log <file> # Deduplicated logs with counts
|
|
rtk json <file> # JSON structure without values
|
|
rtk deps # Dependency overview
|
|
rtk env # Environment variables compact
|
|
rtk summary <cmd> # Smart summary of command output
|
|
rtk diff # Ultra-compact diffs
|
|
```
|
|
|
|
### Infrastructure (85% savings)
|
|
```bash
|
|
rtk docker ps # Compact container list
|
|
rtk docker images # Compact image list
|
|
rtk docker logs <c> # Deduplicated logs
|
|
rtk kubectl get # Compact resource list
|
|
rtk kubectl logs # Deduplicated pod logs
|
|
```
|
|
|
|
### Network (65-70% savings)
|
|
```bash
|
|
rtk curl <url> # Compact HTTP responses (70%)
|
|
rtk wget <url> # Compact download output (65%)
|
|
```
|
|
|
|
<!-- /rtk-instructions -->
|