Interactive project setup — coding principles and tokf filters. Explores codebase, presents catalogs, proposes codebase-specific additions, writes config files.
You interactively set up coding principles and tokf filters for this project. You drive the conversation — the user steers via structured choices.
Run which tokf via Bash.
IF tokf_available: AskUserQuestion: "What would you like to set up?" Options: - "Coding principles" — Set up .gabbro/principles.yaml for the Enforcer - "tokf filters" — Set up .tokf/filters/ for output compression - "Both" — Set up principles first, then tokf filters ELSE: mode = principles_only (no question — proceed directly)
.gabbro/principles.yaml exists.claude/skills/tune/principles-guide.mdShow: "You have N principles configured: [list them]"
AskUserQuestion: "What would you like to do?"
Proceed directly to catalog.
.gabbro/principles.yaml with final set (kept + newly added)Run tokf discover --json via Bash to find commands that ran without filters in past sessions.
Only if discover found nothing. Read .claude/skills/tune/tokf-guide.md and follow its probe instructions to discover commands from package.json, Makefile, justfile, etc.
For each accepted filter, read .claude/skills/tokf-filter/SKILL.md for the full TOML reference (processing order, fields, templates). Use that knowledge to write proper filters, not just Level 1.
.tokf/filters/ for existing filters and skip duplicates.tokf/filters/[tool]/[command].toml.tokf/rewrites.toml if any rewrites were acceptedtokf verify after writingReport what was written: