Agent skill

Speckit Token Budget Scope

by haru in haru/redmine_ai_helper

Build a focused reading manifest for the next workflow step.

MITAuto-check passedDevelopment

Install Speckit Token Budget Scope

skills CLI
$ npx skills add haru/redmine_ai_helper --skill speckit-token-budget-scope -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install haru/redmine_ai_helper speckit-token-budget-scope --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/haru/redmine_ai_helper.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/speckit-token-budget-scope .claude/skills/speckit-token-budget-scope && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
speckit-token-budget-scope
GitHub stars
106
Token cost
~1.3k tokens
SKILL.md length
441 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

Build a focused reading manifest for the next workflow step.

  • Works in 6 steps: Candidate set → Prefer compacted → Section pruning → …
  • Tasks that involve Spec-driven development
  • SKILL.md covers Your task, Inputs, Algorithm and Re-runs
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Speckit Token Budget Scope is an agent skill from haru/redmine_ai_helper. Build a focused reading manifest for the next workflow step. Names the files the agent should load, the sections it can skip, and the running token budget. Run this before /speckit.plan, /speckit.tasks, or /speckit.implement to keep their working context lean.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Requires spec-kit project structure with .specify/ directory

It sits in Development, covering Spec-driven development and LLM cost and token optimization. The repository describes itself as: A Redmine plugin that adds AI agents, MCP Server, smart completion, and vector search. The licence is MIT.

When your agent uses it

  • Tasks that involve Spec-driven development
  • Tasks that involve LLM cost and token optimization

Example prompts

  • “/speckit-token-budget-scope”

Requirements

  • Compatibility (from SKILL.md): Requires spec-kit project structure with .specify/ directory

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Candidate set
  2. Prefer compacted
  3. Section pruning
  4. Token accounting
  5. Write the manifest
  6. Tell the agent how to use it

What it can do on your machine

Read from SKILL.md and the folder at commit 3cd87d6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires spec-kit project structure with .specify/ directory

    From compatibility in the SKILL.md frontmatter.

Context cost

Speckit Token Budget Scope loads about 1.3k tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 441 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from haru/redmine_ai_helper at commit 3cd87d6, republished under its MIT licence (© haru). 441 words, ~1,287 tokens.

Download SKILL.mdSave it as .claude/skills/speckit-token-budget-scope/SKILL.md (or your agent's skills folder).
name
speckit-token-budget-scope
description
Build a focused reading manifest for the next workflow step. Names the files the agent should load, the sections it can skip, and the running token budget. Run this *before* /speckit.plan, /speckit.tasks, or /speckit.implement to keep their working context lean.
compatibility
Requires spec-kit project structure with .specify/ directory
metadata.author
Tinesoft
metadata.source
extension:token-budget
user-invocable
true
disable-model-invocation
false

Token Budget Scope Skill

/speckit.token-budget.scope

The user has invoked /speckit.token-budget.scope with arguments: $ARGUMENTS.

Your task

Produce a reading manifest the agent will follow on the next core SDD command. The goal is to load the smallest set of artifact regions that still covers everything the next phase needs to do its job correctly.

This command never modifies artifacts. It only writes one file: specs/<feature>/.token-budget/scope-<phase>.md.

Inputs

  1. Resolve the active feature directory from the current git branch.
  2. Determine the target phase from $ARGUMENTS:
    • explicit: plan | tasks | implement | analyze | checklist
    • empty → infer the next phase from which artifacts already exist (no plan.md → plan; plan.md but no tasks.md → tasks; both → implement).
  3. Load token-budget-config.yml — scope.max_total_tokens and scope.phase_inputs are the relevant keys.

Algorithm

Step 1 — Candidate set

Start from scope.phase_inputs[<phase>] and expand contracts/ to its actual files. Add any file the user named explicitly via --include=<path> (comma-separated) and remove any file the user named via --exclude=<path>.

Step 2 — Prefer compacted

For each candidate, if a compacted version exists (the file does not end in .full.md and a sibling <base>.full.md exists), use the compacted version. Note the savings. If only .full.md exists, suggest the user run /speckit.token-budget.compact first and continue with the full version.

Step 3 — Section pruning

For each artifact, identify sections the target phase actually consumes and mark the rest as "skim". Defaults:

PhaseReads in fullCan skim/skip
planspec.md (FRs, NFRs, user stories, constraints)spec.md "Background", "Out of scope"
tasksplan.md (Constitution Check, Phase 0/1 outcomes), data-model.md, contracts/*plan.md "Progress Tracking", "Complexity Tracking"
implementtasks.md (full), plan.md (file paths only), contracts/*research.md, quickstart.md, spec rationale
analyzespec.md, plan.md, tasks.md (full)research.md, quickstart.md
checklistspec.md (FRs, NFRs)everything else

These are heuristics. Look at the actual artifact contents and adjust if a non-default section clearly carries information the next phase needs.

Show full SKILL.md (141 more words)Show less
Step 4 — Token accounting

Use estimate_tokens.sh to count each region's tokens. Sum running total. If the total exceeds scope.max_total_tokens:

  • First, downgrade the lowest-priority "read" regions to "skim".
  • If still over, flag the overflow and recommend:
    • running /speckit.token-budget.compact --level=aggressive on the largest contributor; or
    • splitting the next phase into a phased run (per tasks.md Phase 1 only, then Phase 2, etc.).
Step 5 — Write the manifest

Write specs/<feature>/.token-budget/scope-<phase>.md with this exact shape (replace placeholders, keep the headings):

markdown
# Reading manifest — phase: <phase>

Generated: <ISO-8601-timestamp>
Active feature: <feature-name>
Token budget: <total>/<max_total_tokens>

## Read in full

- `<path>` — <region>, ~<N> tokens
  - Why: <one-line justification>

## Skim only

- `<path>` — <region>, ~<N> tokens
  - Look for: <what the agent should extract if anything>

## Skip

- `<path>` — ~<N> tokens — reason: <not needed for this phase>

## Notes

<any overflow warnings, missing artifacts, or recommendations>
Step 6 — Tell the agent how to use it

Print, after the manifest is written:

Manifest written: specs/<feature>/.token-budget/scope-<phase>.md
Budget: <total>/<max>  (<headroom> tokens free)

To use: when you run /speckit.<phase>, read the manifest first and load
only what it lists under "Read in full". Treat "Skim only" entries as
table-of-contents lookups — read the heading list, then jump to the
named region. Do not load "Skip" entries unless the manifest is wrong;
if it is, update it before proceeding.

End the response. Do not produce a long explanation.

Re-runs

A new manifest overwrites the previous one for the same phase. Manifests from prior phases (e.g. scope-plan.md after the user has moved to tasks) are kept — they document what was loaded historically and are useful for audit and for /speckit.token-budget.usage.

© haru, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/speckit-token-budget-scope of haru/redmine_ai_helper.

Open the folder on GitHubat commit 3cd87d6

Compare with similar skills

Speckit Token Budget Scope next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Speckit Token Budget Scope compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Speckit Token Budget Scope this skillharu/redmine_ai_helper106—~1.3kAutomated safety check: PassMIT
LobeHub Alint Rule Set Maintenancelobehub/lobehub83k—~1.9kAutomated safety check: PassCustom licence
Levyra Context EfficiencyLUC4N3X/Levyra-deepsound590—~1.3kAutomated safety check: NotesGPL-3.0
Docs Impact Classifiermicrosoft/apm4k—~1.8kAutomated safety check: PassMIT
CostHouseofmvps/ultraship123—~1.1kAutomated safety check: NotesMIT
Token Efficiencyrohitg00/pro-workflow2.9k—~1kAutomated safety check: PassNone

Similar skills

  • Maintains LobeHub's model-backed alint rule set: writing rules, removing false positives against real code, deciding warn versus error and tracking token cost.

    83k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Levyra Context Efficiency

    LUC4N3X/Levyra-deepsound

    A skill your agent uses for genuinely high-volume Levyra work such as builds, tests, lint, logs, broad searches, dependency output, Git/GitHub or CodeRabbit inspection, CI diagnostics, agent setup…

    590 GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check: notes
  • Official

    A skill your agent uses to classify the documentation impact of a pull request diff, returning one of three verdicts -- no-change, in-place edit, or structural change -- with bounded LLM cost.

    4k GitHub stars~1.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Cost

    Houseofmvps/ultraship

    AI Build Cost Tracker — track how much AI is costing you per feature.

    123 GitHub stars~1.1k tokensUpdated 3 mo ago
    DevelopmentAuto-check: notes
  • Token Efficiency

    rohitg00/pro-workflow

    Reduce token waste by 40-60% through anti-sycophancy rules, tool-call budgets, one-pass coding, task profiles, and read-before-write enforcement.

    2.9k GitHub stars~1k tokensUpdated 11 days ago
    DevelopmentAuto-check passed
  • Skill Reviewer

    microsoft/GitHub-Copilot-for-Azure

    Official

    Review skill PRs with structured severity-rated feedback covering token budgets, routing conflicts, and repo conventions.

    255 GitHub stars~482 tokensUpdated today
    DevelopmentAuto-check passed

More from haru/redmine_ai_helper

All 21 skills in this repo
  • Commit

    haru/redmine_ai_helper

    Stage the current changes and create a git commit with a properly formatted English message.

    106 GitHub stars~1.1k tokensUpdated today
    Auto-check: notes
  • Create Pull Request

    haru/redmine_ai_helper

    Create a pull request from the current branch. An agent skill from haru/redmine_ai_helper.

    106 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Create Release Branch

    haru/redmine_ai_helper

    Create a release branch for a given version. An agent skill from haru/redmine_ai_helper.

    106 GitHub stars~599 tokensUpdated today
    Auto-check passed
  • Qlty Check

    haru/redmine_ai_helper

    Code quality checks, formatting, and metrics via qlty CLI. An agent skill from haru/redmine_ai_helper.

    106 GitHub starsUsed in 2 repos~628 tokens
    Auto-check passed
  • Redmine Playwright Login

    haru/redmine_ai_helper

    Connect to the running Redmine instance and log in via the Playwright MCP browser, using REDMINEPLAYRIGHTURL/REDMINEPLAYRIGHTUSER/REDMINEPLAYRIGHTPASSWORD environment variables.

    106 GitHub stars~796 tokensUpdated today
    Auto-check passed
  • Recreate Test DB

    haru/redmine_ai_helper

    Recreate the Redmine test database from scratch (delete db/schema.rb and db/redmine.sqlite3test, then run core and plugin migrations with RAILSENV=test).

    106 GitHub stars~364 tokensUpdated today
    Auto-check passed

Questions about Speckit Token Budget Scope

What does Speckit Token Budget Scope do?

Build a focused reading manifest for the next workflow step. Speckit Token Budget Scope is an agent skill from haru/redmine_ai_helper. Build a focused reading manifest for the next workflow step.

When should I use Speckit Token Budget Scope?

Speckit Token Budget Scope fits situations like: tasks that involve Spec-driven development; tasks that involve LLM cost and token optimization.

How do I install Speckit Token Budget Scope in Claude Code?

Run `npx skills add haru/redmine_ai_helper --skill speckit-token-budget-scope -a claude-code`. Or copy the skill folder (.claude/skills/speckit-token-budget-scope in haru/redmine_ai_helper) into .claude/skills/speckit-token-budget-scope in your project. Claude Code loads it when a task matches its description.

How do I install Speckit Token Budget Scope in Codex?

Run `npx skills add haru/redmine_ai_helper --skill speckit-token-budget-scope -a codex`. Or copy the skill folder (.claude/skills/speckit-token-budget-scope in haru/redmine_ai_helper) into .agents/skills/speckit-token-budget-scope in your project. Codex loads it when a task matches its description.

Can I use Speckit Token Budget Scope in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add haru/redmine_ai_helper --skill speckit-token-budget-scope -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/speckit-token-budget-scope, .gemini/skills/speckit-token-budget-scope, .github/skills/speckit-token-budget-scope and .opencode/skills/speckit-token-budget-scope in your project.

What does Speckit Token Budget Scope need to run?

SKILL.md names no scripts, command-line tools or credentials: Speckit Token Budget Scope is instructions for the agent only. Compatibility (from SKILL.md): Requires spec-kit project structure with .specify/ directory.

Does Speckit Token Budget Scope access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Speckit Token Budget Scope safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Speckit Token Budget Scope use?

Speckit Token Budget Scope is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Speckit Token Budget Scope use?

About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Speckit Token Budget Scope?

Skills that share tags, products or a category with Speckit Token Budget Scope: LobeHub Alint Rule Set Maintenance (lobehub/lobehub, 83k stars), Levyra Context Efficiency (LUC4N3X/Levyra-deepsound, 590 stars), Docs Impact Classifier (microsoft/apm, 4k stars) and Cost (Houseofmvps/ultraship, 123 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Speckit Token Budget Scope?

haru (a GitHub user) maintains it in haru/redmine_ai_helper, which has 106 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 10, 2026.

Source: haru/redmine_ai_helper on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.