MCP HubMCP Hub
Вернуться к навыкам

usage-optimization

vamseeachanta
Обновлено Today
86 просмотров
3
2
3
Посмотреть на GitHub
Другое

О программе

Этот навык Claude помогает разработчикам оптимизировать эффективность использования ИИ, продвигая паттерны "сначала скрипт", пакетные операции и подготовленные входные файлы. Он предоставляет оценки эффективности различных подходов, делая акцент на выполнении, а не на описании, для максимального повышения продуктивности. Используйте его, когда вам нужно сократить время взаимодействия с ИИ и получать более практичные, автоматизированные результаты от Claude.

Быстрая установка

Claude Code

Рекомендуется
Основной
npx skills add vamseeachanta/workspace-hub
Команда плагинаАльтернативный
/plugin add https://github.com/vamseeachanta/workspace-hub
Git клонированиеАльтернативный
git clone https://github.com/vamseeachanta/workspace-hub.git ~/.claude/skills/usage-optimization

Скопируйте и вставьте эту команду в Claude Code для установки этого навыка

Документация

Usage Optimization Skill

Version: 1.0.0 Category: Optimization Triggers: High usage alerts, efficiency improvements, batch operations

Quick Reference

Effectiveness Ratings

ApproachRatingTime 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%

Best Practice: Execution Over Description

❌ 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

Optimal Workflow Pattern

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

Prompt Optimization

Context-First Prompts

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

Batch Operations Template

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

Expected Output

  • Status report per repository
  • Aggregate success/failure metrics
  • Next actions if any failures

## 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"

Daily Checklist

Before Starting Work:

During Work:

  • Use Haiku for quick queries
  • Reserve Sonnet for standard implementations
  • Use Opus only for complex decisions
  • Batch related questions

End of Session:

  • Review usage increase
  • Update usage log
  • Plan next session if approaching limits

Target Metrics

MetricCurrentTarget
Sonnet usage79%<60%
Overall usage52%<70%
Model distributionUnbalanced30/40/30

Full Reference

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.

GitHub репозиторий

vamseeachanta/workspace-hub
Путь: .claude/skills/ai/optimization/usage-optimization

Похожие навыки

data-science-expert

Другое

This skill provides expert-level data science assistance including statistical analysis, machine learning, and data visualization. It helps developers with tasks like data cleaning, model building, and creating plots using Python libraries like pandas and matplotlib. Use it when you need guidance on EDA, statistical modeling, or visualizing complex datasets.

Просмотреть навык

agent-usage-optimizer

Другое

This skill optimizes AI model selection by reading quota states and recommending the best Claude/Codex/Gemini allocation for each task. It provides quota-aware routing and headroom displays, making it ideal for work sessions with multiple queued items or when approaching quota limits. Developers should use it before starting sessions with 3+ work items or when Claude quotas drop below 50% remaining.

Просмотреть навык

model-selection

Другое

This skill provides automated model selection guidance for Claude Code based on task complexity, cost, and latency needs. It offers a decision tree and quick reference table to help developers choose between Opus, Sonnet, and Haiku models efficiently. Use it when starting new tasks to optimize performance and resource usage.

Просмотреть навык

agent-usage-optimizer-provider-capability-reference

Другое

This reference skill provides a quick comparison table of AI providers (Claude models, Codex, Gemini) with their strengths and ideal use cases. It helps developers optimize agent usage by selecting the most suitable provider for tasks like architecture, coding, or bulk data processing. Use it to make informed decisions on model selection based on task requirements and constraints like quota and cost.

Просмотреть навык