Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add edimuj/tokenlean --skill githubgit clone --depth 1 https://github.com/edimuj/tokenleanWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/edimuj/tokenlean/github)<a href="https://agentmods.dev/skills/edimuj/tokenlean/github"><img src="https://agentmods.dev/badge/skills/edimuj/tokenlean/github/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/edimuj/tokenlean/github"><img src="https://agentmods.dev/badge/skills/edimuj/tokenlean/github.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00083 | $0.01332 |
| Opus 5.5 | $0.00033 | $0.00533 |
| Sonnet 5.5 | $0.00017 | $0.00266 |
| Haiku 4.5 | $0.00008 | $0.00133 |
Grade A, and why
github scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GitHub & Git Operations
Token-efficient git and GitHub workflows via tl push, tl commit-prep, and tl gh.
Committing & Pushing
tl push
Stages, commits, and pushes in one call.
Critical: multi-file safety guard. When multiple files are modified and no explicit files are given, tl push refuses to proceed. It prints the modified file list and exits with code 1. You must specify which files to include.
# Single modified file — auto-stages
tl push "feat: add caching"
# Multiple modified files — MUST specify files
tl push "fix: resolve race" src/worker.mjs src/queue.mjs
# Include untracked (new) files
tl push "feat: new tool" bin/tl-new.mjs -A
# Commit without pushing
tl push "wip: checkpoint" src/foo.mjs --no-push
# Amend previous commit
tl push "fix: better msg" --amend
# Preview what would happen
tl push "test" --dry-run
tl commit-prep
Pre-commit context in one call: git status + diff stat + recent log. Use before tl push when you need to see what changed.
tl commit-prep
# then decide which files to include:
tl push "fix: typo" README.md
Workflow
Need to commit?
├─ Know which files → tl push "msg" file1 file2
├─ Need to see changes → tl commit-prep, then tl push "msg" file1 file2
└─ Only one file modified → tl push "msg" (auto-stages)
GitHub Operations — tl gh
Wraps multi-step GitHub API calls into single commands. Requires -R owner/repo.
When to use which tool
| Scenario | Tool |
|---|---|
| Single issue read with sub-issues or close with comment | tl gh issue read / tl gh issue close |
| Bulk operations (create/close/label many) | tl gh |
| View issue with direct sub-issues | tl gh issue read |
| Full PR status (CI + reviews + merge readiness) | tl gh pr digest |
| Check CI → merge → close issues → delete branch | tl gh pr land |
| Auto-generate release changelog | tl gh release notes |
Issue commands
# Read issue with sub-issues (single GraphQL call)
tl gh issue read -R owner/repo 434
tl gh issue read -R owner/repo 434 --no-body # compact
tl gh issue read -R owner/repo 434 --full # complete bodies
# Bulk create from JSON array or JSONL on stdin
echo '[{"title":"Bug A","labels":["bug"]},{"title":"Bug B"}]' | tl gh issue create-batch -R owner/repo
# Create parent + children with auto sub-issue links
cat tree.json | tl gh issue create-tree -R owner/repo
# Input: {"title": "Epic", "body": "...", "children": [{"title": "Task 1"}, {"title": "Task 2"}]}
# Link existing issues as sub-issues
tl gh issue add-sub -R owner/repo --parent 10 42 43 44
# Close one or more issues
tl gh issue close -R owner/repo 1 2 3 -c "Sprint complete"
tl gh issue close -R owner/repo 10 11 --reason "not planned"
# Add/remove labels in bulk
tl gh issue label-batch -R owner/repo --add "bug,P0" --remove "triage" 1 2 3
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 140 lines · 83 tokens per session scan A 9c2067e25bf8
github is a skill published in the GitHub repository edimuj/tokenlean (13 stars, last pushed 3mo ago), licensed MIT. It adds 83 tokens to every session and 1,332 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
git-ops
Use when Sam asks Claude Code to create, rename, compare, commit, push, merge, promote, or clean up Git branches. Covers Sam's feature branch naming convention, safe Git pre-checks, JetBrains DontCommit handling, commit-message defaults, push and release promotion verification, branch rename upstream cleanup, branch…
github-automation
GitHub workflow automation, PR management, issue tracking, and code review coordination. Integrates with GitHub Actions and repository management. Use when: PR creation, code review, issue management, release automation, workflow setup. Skip when: local-only changes, non-GitHub repositories.
changelog
Auto-generate a changelog from git commits and sprint data. Internal and player-facing versions.
comet-safe-delivery
A Chinese-language procedure for safely delivering specified Comet changes through Git. It covers checking worktrees and unrelated edits, staging exact files, validating hooks, and authorized commits or pushes.
git-workflow
Guided git workflows: prepare PRs, clean up branches, resolve merge conflicts, handle monorepo tags, squash-and-merge patterns. Use when asked to prepare a PR, clean branches, resolve conflicts, or tag a release.
git-push
A GitHub publishing workflow that handles first-time uploads, routine updates, and tagged releases. Git is a system for recording code changes, while GitHub hosts repositories and releases online.