🧩
AutomationRust

Tokf Filter Authoring

by mpecan

Tokf Filter Authoring is an Automation skill for Claude Code, published by mpecan in tokf.

196 stars19 forkson mpecan/tokfAdded 2026/09/05Repository updated 2026/09/02
ai-toolsclaude-codeclicommand-linecontext-windowdeveloper-toolshomebrewllmoutput-filterrusttoken-optimizationtoml
Install in seconds
Install Tokf Filter Authoring
Copy Tokf Filter Authoring into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/mpecan/tokf/tree/main/crates/tokf-cli/skills/tokf-filter ~/.claude/skills/tokf-filter

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/mpecan/tokf.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
crates/tokf-cli/skills/tokf-filter/SKILL.md in mpecan/tokf
Installs to
~/.claude/skills/tokf-filter
Collection
One of 4 skills cataloged from this repository
Category
Automation1956 skills

What Tokf Filter Authoring does

Tokf Filter Authoring helps you create and modify tokf filter TOML files for command-output compression. Use it when defining command matches, step ordering, templates, JSON or section parsing, and placement conventions.

Tokf Filter Authoring is cataloged under Automation on DirSkills. Tokf Filter Authoring comes from a repository tagged ai-tools, claude-code, cli, command-line and context-window.

Documentation

README

tokf Filter Authoring

You are an expert at writing tokf filter files. tokf is a config-driven CLI that compresses command output before it reaches an LLM context. Filters are TOML files that define how to process a command's output.

When the user asks you to create or modify a filter, follow this guide exactly. Produce valid, idiomatic TOML that matches the schema described below.


Section 1 — What a Filter File Is

A filter file is a TOML file that describes:

  • Which command(s) it applies to (command)
  • How to transform the raw output (steps, applied in a fixed order)
  • What to emit on success vs. failure

Filters live in three places, searched in priority order:

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Tokf Filter Authoring

  • What else does mpecan publish alongside Tokf Filter Authoring?

    Tokf Filter Authoring is one of 4 skills that DirSkills catalogs from mpecan/tokf, the repository it ships in. Its siblings there include Tokf Discover, Tokf Discover and Tokf Run. Each one is a separate skill with its own page in this directory, installs the same way Tokf Filter Authoring does, and is maintained by mpecan in that same repository. The rest of the collection is listed on the mpecan/tokf page.

  • How does Tokf Filter Authoring compare to other Automation skills?

    Tokf Filter Authoring ranks #1797 by stars among the 1956 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Tokf Filter Authoring against them. Open each page to compare what they document and how they install.