/major-ai-skills:token-bounded-summariesfrom major-ai-skills
Write compact task, milestone, or pull-request summaries within a requested token budget.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When asked for a progress update, PR review summary, or bug fix report ("Summarize the database migration changes"), default LLM models emit 300 to 500 words of conversational prose:
Generating 400-word summaries burns 500+ output tokens per report, slows down interactive terminal velocity, and clutters pull request comment threads.
The Strict Token-Bounded Summarization Protocol enforces a 50-token structural formula ([ACTION] -> [CHANGE] -> [STATUS]), paired with a hard API ceiling (max_tokens: 60).
┌─────────────────────────────────────────────────────────────┐
│ Summary Token Density Impact │
│ │
│ 400-Word Narrative Essay (420 Output Tokens / 8.5s): │
│ In this pull request, I have carefully reviewed all of the │
│ changes that were made to the database schema. In the past,│
│ our user authentication system was using a single column...│
│ [3 more paragraphs of prose and pleasantries] │
│ ↳ 420 tokens billed, takes 8.5 seconds to stream │
│ │
│ 50-Token Bounded Summary (32 Tokens / 0.4s - 92.3% Cut!): │
│ [MIGRATION]: Added `revoked_tokens` table & index on `jti`.│
│ [AUTH]: Patched `verifyToken()` to check Redis blocklist. │
│ [TESTS]: 14/14 unit & integration tests passing. │
│ ↳ 32 clean tokens, 100% technical signal in 0.4 seconds │
└─────────────────────────────────────────────────────────────┘
Every operational summary must strictly adhere to this 3-line format:
[SCOPE / ACTION]: <Exact file or component touched>
[KEY CHANGE]: <Specific algorithmic or schema alteration>
[VERIFICATION]: <Test count / Build status>
max_tokens: 60)from openai import OpenAI
client = OpenAI()
def generate_bounded_summary(diff_content: str) -> str:
"""Generates a high-density summary strictly clamped under 50 tokens."""
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[
{
"role": "system",
"content": (
"Summarize the code change in strictly under 50 tokens using this formula:\n"
"[SCOPE]: <file/component>\n"
"[CHANGE]: <exact change>\n"
"[STATUS]: <test status>\n"
"Zero preamble, zero conversational closing."
)
},
{"role": "user", "content": diff_content}
],
max_tokens=60, # Hard API ceiling enforces brevity
temperature=0.0
)
return response.choices[0].message.content.strip()
Generating 100 automated pull request and build summaries:
| Summary Style | Average Output Tokens | Generation Latency | Readability / Velocity |
|---|---|---|---|
| Unconstrained Narrative Prose | 430 tokens | 7.8 seconds | 🚨 Wall of text |
| 50-Token Bounded Summary | 34 tokens | 0.4 seconds | ✅ Instant 2-second scan |
MANDATORY: Agents generating status updates, PR summaries, or tool telemetry must follow the 3-line formula ([SCOPE] -> [CHANGE] -> [STATUS]) and clamp
max_tokens: 60. Never generate narrative paragraphs for operational summaries.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job