tokf-run

Solid

Compress verbose CLI output with tokf before returning results. Activates for git, cargo, npm, docker, go, gradle, kubectl, and other supported commands.

AI & Automation 192 stars 19 forks Updated today MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
76
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# tokf — Token Output Filter tokf compresses verbose command output so you receive concise, structured results instead of raw terminal dumps. It saves context tokens and makes output easier to reason about. ## Rule When the tokf Codex hook is installed, run supported commands normally. The hook rewrites matching commands to `tokf run <command>` before execution. If the hook is unavailable, blocked, or not rewriting a supported command, use the manual fallback: ``` tokf run <command> ``` **Examples:** ```sh tokf run git status tokf run cargo test tokf run npm test tokf run docker ps ``` ## Supported commands The following commands have built-in filters. The hook can rewrite them automatically; use `tokf run` manually only as fallback: - `git status`, `git diff`, `git log`, `git push`, `git add`, `git commit`, `git show` - `cargo build`, `cargo test`, `cargo check`, `cargo clippy`, `cargo install` - `npm test`, `npm run`, `yarn test`, `pnpm test` - `docker build`, `docker compose`, `docker ps`, `docker images` - `go build`, `go vet` - `gradle build`, `gradle test`, `gradle dependencies` - `gh pr view`, `gh pr list`, `gh pr checks`, `gh issue view`, `gh issue list` - `kubectl get pods` - `next build` - `pnpm add`, `pnpm install` - `prisma generate` - `pytest` - `tsc` - `ls` Commands not in this list pass through unchanged when prefixed with `tokf run`. ## Important rules 1. **Never double-prefix.** If a command already starts with `tokf run`, do not add it again. 2....

Details

Author
mpecan
Repository
mpecan/tokf
Created
5 months ago
Last Updated
today
Language
Rust
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category