Skip to content

Commit 1ac8d36

Browse files
committed
Fix skill token limits: scale for 35 reference files after spec growth
Limits were calibrated for 16 patterns but the project grew to 22 patterns (35 total ref files) through planned spec work. Since skill references load on-demand, total limits reflect maintainability not context pressure.
1 parent c6bf52e commit 1ac8d36

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

references/patterns/token-budget.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Guidelines for keeping commands efficient and within limits.
1717
|-----------|-------|
1818
| SKILL.md | 5,000 tokens / 500 lines |
1919
| Single reference | 2,000 tokens |
20-
| All references | 10,000 tokens |
21-
| Total skill | 15,000 tokens |
20+
| All references | 30,000 tokens |
21+
| Total skill | 35,000 tokens |
2222

2323
## Why Token Budgets Matter
2424

scripts/count-tokens.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,23 @@ class TokenReport(TypedDict):
6767
"command_lines": 600,
6868
}
6969

70-
# Skill-level limits (for self-validation of the generator directory)
70+
# Skill-level limits (for self-validation of the generator directory).
71+
# References are loaded on-demand, not all at once, so total limits
72+
# reflect maintainability rather than context window pressure.
7173
SKILL_LIMITS = {
7274
"skill_md_tokens": 5000,
7375
"skill_md_lines": 500,
7476
"single_ref_tokens": 2000,
75-
"total_ref_tokens": 10000,
76-
"total_skill_tokens": 15000,
77+
"total_ref_tokens": 30000,
78+
"total_skill_tokens": 35000,
7779
}
7880

7981
SKILL_HARD_LIMITS = {
8082
"skill_md_tokens": 10000,
8183
"skill_md_lines": 1000,
8284
"single_ref_tokens": 4000,
83-
"total_ref_tokens": 20000,
84-
"total_skill_tokens": 30000,
85+
"total_ref_tokens": 60000,
86+
"total_skill_tokens": 70000,
8587
}
8688

8789

0 commit comments

Comments
 (0)