Skill guide

Source file token estimation

Estimate the source footprint of large files and compare hypothetical splits before deciding whether restructuring is worthwhile.

The bundled scripts inventory source-like files, estimate tokens with a bytes-divided-by-four proxy, and model line-chunk scenarios. Results separate production, test, and debug files so recommendations reflect their different roles.

Package version 0.1.0-beta.7

Included with Faye Coding Assistant

When to use

Use this when you explicitly want approximate file-context measurements or split scenarios.

What to provide

  • The repository or bounded directory to scan.
  • Optional minimum file size, chunk sizes, and an explicit destination if you want a saved report.

Expected results

  • File, package, and category totals with stated assumptions and exclusions.
  • Hypothetical split comparisons and guidance on which large files warrant closer examination.

Example requests

Try this request

Codex
Codex request
$source-file-token-estimation Estimate large source and test files in this repository and compare 200-, 400-, and 700-line split scenarios. Return the report here without writing files.
Grok
Grok request
/source-file-token-estimation Estimate large source and test files in this repository and compare 200-, 400-, and 700-line split scenarios. Return the report here without writing files.
Antigravity
Antigravity request
/source-file-token-estimation Estimate large source and test files in this repository and compare 200-, 400-, and 700-line split scenarios. Return the report here without writing files.

Requirements and limits

Before you start

  • An explicit request for source-file token estimation.
  • Node.js for the dependency-free scripts; Git improves discovery by respecting ignore rules.

Scope and limitations

  • The estimates do not measure actual Codex usage, billing, cost, or which files the model reads.
  • Split scenarios do not establish runtime or build-speed gains.
  • Analysis is read-only; saving a report requires an explicit output path.
Technical source

The hosted file belongs to the package version shown on this page.

plugins/faye-coding-assistant/skills/source-file-token-estimation

Open source file