usage
Tracks token usage and costs, providing analytics for AI consumption across sessions and users.
Install this skill
Security score
The usage skill was audited on Feb 22, 2026 and we found 22 security issues across 1 threat category. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 89 | console.log(`Session: ${session.sessionId}`); |
Template literal with variable interpolation in command context
| 90 | console.log(`Requests: ${session.requests}`); |
Template literal with variable interpolation in command context
| 91 | console.log(`Input tokens: ${session.inputTokens.toLocaleString()}`); |
Template literal with variable interpolation in command context
| 92 | console.log(`Output tokens: ${session.outputTokens.toLocaleString()}`); |
Template literal with variable interpolation in command context
| 93 | console.log(`Total tokens: ${session.totalTokens.toLocaleString()}`); |
Template literal with variable interpolation in command context
| 94 | console.log(`Est. cost: $${session.estimatedCost.toFixed(4)}`); |
Template literal with variable interpolation in command context
| 95 | console.log(`Duration: ${session.totalDurationMs}ms`); |
Template literal with variable interpolation in command context
| 105 | console.log(`User: ${user.userId}`); |
Template literal with variable interpolation in command context
| 106 | console.log(`Sessions: ${user.sessions}`); |
Template literal with variable interpolation in command context
| 107 | console.log(`Total tokens: ${user.totalTokens.toLocaleString()}`); |
Template literal with variable interpolation in command context
| 108 | console.log(`Est. cost: $${user.estimatedCost.toFixed(2)}`); |
Template literal with variable interpolation in command context
| 119 | console.log(`Total requests: ${total.requests}`); |
Template literal with variable interpolation in command context
| 120 | console.log(`Total tokens: ${total.totalTokens.toLocaleString()}`); |
Template literal with variable interpolation in command context
| 121 | console.log(`Total cost: $${total.estimatedCost.toFixed(2)}`); |
Template literal with variable interpolation in command context
| 132 | console.log(`${model}:`); |
Template literal with variable interpolation in command context
| 133 | console.log(` Requests: ${stats.requests}`); |
Template literal with variable interpolation in command context
| 134 | console.log(` Tokens: ${stats.totalTokens.toLocaleString()}`); |
Template literal with variable interpolation in command context
| 135 | console.log(` Cost: $${stats.cost.toFixed(2)}`); |
Template literal with variable interpolation in command context
| 175 | console.log(`Estimated cost: $${cost.toFixed(4)}`); |
Template literal with variable interpolation in command context
| 216 | console.log(`Budget: $${budget.limit}`); |
Template literal with variable interpolation in command context
| 217 | console.log(`Used: $${budget.used.toFixed(2)} (${budget.percent}%)`); |
Template literal with variable interpolation in command context
| 218 | console.log(`Remaining: $${budget.remaining.toFixed(2)}`); |