Repository navigation
fix(skills): replace dollar-digit amounts to avoid argument substitution - #313
Open
todkarsant wants to merge 2 commits into
Open
todkarsant wants to merge 2 commits into
todkarsant wants to merge 2 commits into
Conversation
Claude Code treats $0, $1, $2… in skill bodies as argument slots. Dollar prices starting with a low digit are rewritten when the skill is invoked with arguments (e.g. $0.20 becomes the first argument). Replace $N notation with USD N in three SKILL.md files: - aws-transform: example don'ts ($0.20/hr, $5/day) - aws-lambda-managed-instances: cost threshold ($1,000/month) - elastic-beanstalk: cost estimate table ($35-40, $15-20, $150-200) Closes awslabs#309
todkarsant
requested review from
a team,
krokoko,
laithalsaadoon and
rshevchuk-git
November 29, 2026 12:09
Author
|
@scottschreckengaust Could you review? Replaces dollar-digit amounts in three SKILL.md files with USD notation to avoid Claude Code argument substitution as reported in #309. |
4 tasks
WilliamK112
added a commit
to WilliamK112/agent-plugins
that referenced
this pull request
Dec 2, 2026
Claude Code substitutes $0, $1, ..., $ARGUMENTS and $ARGUMENTS[N] in a skill body, so a dollar amount such as $0.20/hr reaches the model as foo.20/hr when the skill gets arguments (awslabs#309). The new SKILL003 rule flags them in SKILL.md bodies unless escaped as \$, skipping the frontmatter and references/, so the fix in awslabs#313 cannot regress. Closes awslabs#321 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
$Ndollar amounts withUSD Nin three SKILL.md files to prevent Claude Code argument substitution$0,$1, etc. in the body are treated as argument slots —$0.20/hrbecomes the first argument value followed by.20/hrChanges
aws-transform/SKILL.md: example don'ts ($0.20/hr→USD 0.20/hr)aws-lambda-managed-instances/SKILL.md: cost threshold ($1,000/month→USD 1,000/month)elastic-beanstalk/SKILL.md: cost estimate table ($35-40→USD 35-40, etc.)Test plan
$+ digit patterns remain in any SKILL.md fileCloses #309
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.