Usage Optimization Skill
Version: 1.0.0 Category: Optimization Triggers: High usage alerts, efficiency improvements, batch operations
| Approach | Rating | Time Saved |
|---|---|---|
| Script + AI Input + AI Command | āāāāā | 90% |
| Git Operations (Claude) | āāāāā | 80% |
| Script + Input File | āāāā | 70% |
| Preparing Input Files | āāāā | 75% |
| Script Only (no input) | āāā | 40% |
| LLM Descriptions | ā | -20% |
ā BAD: "Can you describe what analyze_data.py does?"
Result: Long description, no actionable output
ā
GOOD: "Prepare input file for data analysis and provide command"
Result: Working configuration + executable command + actual results
1. āāāāā AI prepares input YAML file
āā Following template in templates/input_config.yaml
āā Validated against schema
āā Version controlled in config/input/
2. āāāāā AI provides exact bash command
āā Points to correct script in scripts/
āā References prepared input file
āā Includes all necessary flags
3. āāāāā User executes command
āā Copy/paste provided command
āā Review output and results
āā Version control any changes
4. āāāāā Use Claude for git operations
āā Commit results
āā Create meaningful commit messages
āā Manage branches and PRs
## Task Context
- Repository: digitalmodel (Work)
- Complexity: Medium
- Time sensitivity: Production hotfix
- Dependencies: None
- Testing required: Yes
## Specifications
[Full specifications here]
## Output Format
[Exact format needed]
## Constraints
[Any limitations]
Generate [specific deliverable] following this context.
I need to perform the following operations across multiple repositories:
## Scope
- Repositories: [list or "all work" or "all personal"]
- Operation type: [commit/sync/test/build/deploy]
## Configuration
```yaml
operation: batch_commit
scope: work_repositories
config:
message: "Update dependencies to latest"
auto_push: true
run_tests: true
## Anti-Patterns to Avoid
### ā Description-Only Requests
BAD: "Describe what this script does" Result: No actionable output, wasted tokens
### ā Skipping Questions
BAD: Directly generating from vague requirements GOOD: "Before generating, I need to understand: [list]"
### ā Making Assumptions
BAD: "I'll assume we want JWT authentication" GOOD: "Should we use JWT, sessions, or OAuth?"
## Usage Monitoring Commands
```bash
# Check usage
./scripts/monitoring/check_claude_usage.sh check
# View today's summary
./scripts/monitoring/check_claude_usage.sh today
# View recommendations
./scripts/monitoring/check_claude_usage.sh rec
# Log a task
./scripts/monitoring/check_claude_usage.sh log sonnet digitalmodel "Feature work"
Before Starting Work:
During Work:
End of Session:
| Metric | Current | Target |
|---|---|---|
| Sonnet usage | 79% | <60% |
| Overall usage | 52% | <70% |
| Model distribution | Unbalanced | 30/40/30 |
See: @docs/AI_AGENT_USAGE_OPTIMIZATION_PLAN.md See: @docs/modules/ai/AI_USAGE_GUIDELINES.md
Use this when optimizing AI usage, improving efficiency, or managing usage limits.