Skip to content
Back to skills

391 Think Feebfd07

ASecurity

Control thinking token limits via environment variable

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
toolsbash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 391-think_feebfd07 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 391 Think Feebfd07?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 391 Think Feebfd07
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-391-think-feebfd07/badge)](https://www.skillsdirectory.com/skills/tools-only-391-think-feebfd07)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Control thinking token limits via environment variable
allowedTools: ["Bash"]
---

# Thinking Token Control

```bash
ARG="${ARGUMENTS:-on}"
SETTINGS_FILE=".claude/settings.local.json"

case "$ARG" in
  off)
    TOKEN_VALUE="0"
    MESSAGE="Thinking disabled (0 tokens)"
    ;;
  little)
    TOKEN_VALUE="1025"
    MESSAGE="Minimal thinking enabled (1025 tokens)"
    ;;
  on)
    TOKEN_VALUE="8192"
    MESSAGE="Standard thinking enabled (8192 tokens)"
    ;;
  lot)
    TOKEN_VALUE="31999"
    MESSAGE="Extended thinking enabled (31999 tokens)"
    ;;
  *)
    echo "Invalid argument: '$ARG'"
    echo "Usage: /think [off|little|on|lot]"
    echo "  off    - Disable thinking (0 tokens)"
    echo "  little - Minimal thinking (1025 tokens)"
    echo "  on     - Standard thinking (8192 tokens) [default]"
    echo "  lot    - Extended thinking (31999 tokens)"
    exit 1
    ;;
esac

# Update MAX_THINKING_TOKENS in settings file
if [ -f "$SETTINGS_FILE" ]; then
  sed -i '' "s/\"MAX_THINKING_TOKENS\": \"[^\"]*\"/\"MAX_THINKING_TOKENS\": \"$TOKEN_VALUE\"/" "$SETTINGS_FILE"
  echo "$MESSAGE"
  echo "Updated $SETTINGS_FILE with MAX_THINKING_TOKENS: $TOKEN_VALUE"
else
  echo "Error: $SETTINGS_FILE not found"
  exit 1
fi
```

Files in this skill

  • README.md778 B
  • skill.md1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…