Skip to content
Back to skills

541 Tun 2e7e 0639ea14

ASecurity

Cache token counts to avoid O(n) rescans on each message update. Scope: state.py and token_counter integration.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
toolsperformance

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 541-tun-2e7e_0639ea14 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 541 Tun 2e7e 0639ea14?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 541 Tun 2e7e 0639ea14
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-541-tun-2e7e-0639ea14/badge)](https://www.skillsdirectory.com/skills/tools-only-541-tun-2e7e-0639ea14)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
id: tun-2e7e
status: closed
deps: []
links: []
created: 2026-02-01T03:24:45Z
type: task
priority: 1
assignee: tunahorse1
parent: tun-7f83
tags: [performance, state, token-counter]
---
# Add token count caching

Cache token counts to avoid O(n) rescans on each message update. Scope: state.py and token_counter integration.

## Acceptance Criteria

Token count is recomputed only when message content changes; cached values are reused on subsequent updates; no new type errors.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…