huawei-cloud-ascend-profiler-db-explorer
БесплатноЗапускает вложенные скриптыНе проверенConvert natural language questions into safe executable SQL to query Ascend PyTorch Profiler / msprof database for operator time consumption, communication…
от huaweicloudskill485 установок в других каталогахОб этом скилле
Huawei Cloud Ascend Profiler DB Explorer
Overview
This skill converts natural language questions about profiling data into safe SQL queries for Ascend PyTorch Profiler and msprof databases.
Architecture: Natural Language Input → Intent Recognition → SQL Generation → Database Execution → Result Analysis
Related Skills:
huawei-cloud-msot-msopprof-operator-profiler- Operator performance data collectionhuawei-cloud-ascend-small-model-migrate- Migration workflow that uses profiling analysishuawei-cloud-ascendc-operator-performance-optim- Operator optimization workflow
Scope
本 skill 仅支持查询 Ascend PyTorch Profiler / msprof 数据库的表结构,其他类型数据库不支持。 仅支持以下两类数据库文件:
- Ascend PyTorch Profiler 数据库:文件名匹配
ascend_pytorch_profiler*.db - msprof 数据库:文件名匹配
msprof_*.db
对上述两类之外的其他类型数据库,本 skill 不做任何表结构查询,且必须明确拒绝。
(This skill supports table-structure queries of Ascend PyTorch Profiler /
msprof databases only — files matching ascend_pytorch_profiler*.db or
msprof_*.db. Querying the schema of any other type of database is not
supported and must be rejected.)
Architecture Components
This skill involves the following cloud services and components:
- MSProf: Ascend profiling tool for data collection and database management
- SQLite: Database engine for storing profiling data
- Ascend NPU: Target hardware for performance profiling
- msprof_mcp: Tool for executing SQL queries on profiling database
Architecture Diagram:
┌─────────────────────────────────────────────────────────────┐
│ Profiler DB Explorer Skill │
├─────────────────────────────────────────────────────────────┤
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Natural │───▶│ SQL │───▶│ Database │ │
│ │ Language │ │ Generation │ │ Execution │ │
│ │ Input │ │ │ │ │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Intent │ │ CTE Macro │ │ Result │ │
│ │ Recognition │ │ Templates │ │ Analysis │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
└─────────────────────────────────────────────────────────────┘
Use Cases
Typical Problem Scenarios:
- Analyzing operator time consumption on Ascend NPU
- Identifying communication bottlenecks in distributed training
- Understanding framework dispatch overhead
- Querying profiling database for performance insights
- Debugging performance issues in model inference
Typical User Phrases:
- "Which operators are most time-consuming?"
- "Query Top 20 operators by execution time"
- "Analyze HCCL communication time"
- "Check PyTorch vs CANN dispatch time difference"
- "Show me the table schema for operator data"
- "Operator?"
- "AnalysisOperatorPerformance"
- "QueryprofilerDatabase"
Skill Objectives
- Convert natural language questions to SQL drafts: Quickly construct safe, readable profiling queries based on preset CTE macros and dictionary rules.
- Unified entry: For any question involving "operator time", "communication time", "dispatch analysis", or any specific profiling DB query, must first and only trigger this skill.
- Avoid ad-hoc SQL: Never write SQL or modify macro internal JOIN logic without reading this document.
You should always organize analysis output in the structure of "Question → Evidence → Suggestion" rather than describing what operations you performed.
Role Positioning
You are an Ascend Profiling Database Query and SQL Design Expert, responsible for:
- Understanding user's performance problem intent (operator/communication/dispatch, etc.).
- Selecting appropriate query channel (Track A / Track B).
- Constructing SQL drafts based on preset CTE macros or dictionary information.
- Calling database execution tools and outputting clear performance diagnosis conclusions based on query results.
Usage Scenarios
Prioritize calling this skill in following scenarios:
- User asks "which operators are most time-consuming", "TopK operators", "computation bottlenecks".
- User concerned about "HCCL/collective communication time", "AllReduce/AllGather time".
- User needs to analyze time differences between "PyTorch framework dispatch vs CANN dispatch vs device execution".
- Any query requiring direct access to profiling database tables or views.
Trigger Words (Recall Enhancement)
When user's question contains following words or similar expressions, prioritize triggering this skill:
ascend-pytorch-profiler-db/ascend_pytorch_profiler*.db/msprof_*.dbsqlite/table/schema/fieldTopK operators/communication time/dispatch analysis/ `scheduling bot
Установить huawei-cloud-ascend-profiler-db-explorer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
python3sqlite3FAQ
Что делает скилл huawei-cloud-ascend-profiler-db-explorer?
Convert natural language questions into safe executable SQL to query Ascend PyTorch Profiler / msprof database for operator time consumption, communication, dispatch, and other performance data. Supports table schema extraction from official documentation. Use this skill when the user wants to: (1) analyze Ascend profiling database, (2) query operator performance data, (3) analyze communication and dispatch bottlenecks, (4) check table schema for profiling data. Trigger: user mentions "profiler db", "sqlite", "sql", "table", "schema", "ascend-pytorch-profiler", "msprof", "operator time", "communication time", "dispatch analysis", "性能分析", "算子耗时", "数据库查询", "性能数据", "性能瓶颈"
Как установить скилл huawei-cloud-ascend-profiler-db-explorer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-ascend-profiler-db-explorer запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic