Skip to content

fix(skills): replace dollar-digit amounts to avoid argument substitution - #313

Open
todkarsant wants to merge 2 commits into
awslabs:mainfrom
todkarsant:fix/skill-dollar-escaping
Open

todkarsant wants to merge 2 commits into
awslabs:mainfrom
todkarsant:fix/skill-dollar-escaping

Conversation

@todkarsant

@todkarsant todkarsant commented Nov 29, 2026 •

Copy link
Copy Markdown

Summary

  • Replace $N dollar amounts with USD N in three SKILL.md files to prevent Claude Code argument substitution
  • When skills are invoked with arguments, $0, $1, etc. in the body are treated as argument slots — $0.20/hr becomes the first argument value followed by .20/hr

Changes

  • 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

  • No $ + digit patterns remain in any SKILL.md file
  • USD notation is portable across agents (no backslash escaping needed)

Closes #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.

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
todkarsant requested review from a team as code owners November 29, 2026 12:09
@todkarsant

Copy link
Copy Markdown
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.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dollar amounts in SKILL.md are replaced by Claude Code skill arguments ($0, $1, …)

2 participants