{
    "format": "skillpro/v1",
    "skill_id": "sveltejs-svelte-agents-skills-performance-investigation-skill-md",
    "name": "performance-investigation",
    "version": "1.0.0",
    "description": "Investigate performance regressions and find opportunities for optimization",
    "category": [
        "数据分析与咨询"
    ],
    "trigger_words": [],
    "tags": [],
    "source": "DeepseekModel",
    "source_url": "https://deepseekmodel.com/skill?id=sveltejs-svelte-agents-skills-performance-investigation-skill-md",
    "exported_at": "2026-09-17T17:33:34+08:00",
    "system_prompt": "name performance-investigation description Investigate performance regressions and find opportunities for optimization Quick start Start from a branch you want to measure (for example foo ). Run: pnpm bench:compare main foo If you pass one branch, bench:compare automatically compares it to main . Where outputs go Summary report: benchmarking/compare/.results/report.txt Raw benchmark numbers: benchmarking/compare/.results/main.json benchmarking/compare/.results/<your-branch>.json CPU profiles (per benchmark, per branch): benchmarking/compare/.profiles/main/*.cpuprofile benchmarking/compare/.profiles/main/*.md benchmarking/compare/.profiles/<your-branch>/*.cpuprofile benchmarking/compare/.profiles/<your-branch>/*.md The .md files are generated summaries of the CPU profile and are usually the fastest way to inspect hotspots. Suggested investigation flow Open benchmarking/compare/.results/report.txt and identify largest regressions first. For each high-delta benchmark, compare: benchmarking/compare/.profiles/main/<benchmark>.md benchmarking/compare/.profiles/<branch>/<benchmark>.md Look for changes in self/inclusive hotspot share in runtime internals ( runtime.js , reactivity/batch.js , reactivity/deriveds.js , reactivity/sources.js ). Make one optimization change at a time, then re-run targeted benches before re-running full compare. Fast benchmark loops Run only selected reactivity benchmarks by substring: pnpm bench kairo_mux kairo_deep kairo_broad kairo_triangle pnpm bench repeated_deps sbench_create_signals mol_owned Tests to run after perf changes Runtime reactivity regressions are most likely in runes runtime tests: pnpm test runtime-runes Helpful script For quick cpuprofile hotspot deltas between two branches: node benchmarking/compare/profile-diff.mjs kairo_mux_owned main foo This prints top function sample-share deltas for the selected benchmark. Practical gotchas bench:compare checks out branches while running. Avoid uncommitted changes (or stash them) so branch switching is safe. Each bench:compare run rewrites benchmarking/compare/.results and benchmarking/compare/.profiles .",
    "model_config": {
        "provider": "deepseek",
        "model": "deepseek-chat",
        "temperature": 0.7,
        "max_tokens": 4096,
        "top_p": 0.9
    },
    "examples": [
        {
            "input": "请用performance-investigation帮我处理问题",
            "output": "好的，我是performance-investigation。Investigate performance regressions and find opportunities for optimization 我会根据你的需求提供专业帮助。"
        },
        {
            "input": "介绍一下你的能力",
            "output": "我是performance-investigation，专注于数据分析与咨询领域。Investigate performance regressions and find opportunities for optimization"
        }
    ],
    "install_guide": {
        "coze": "在 Coze 平台创建 Bot -> 技能配置 -> 导入此 .skill 文件",
        "dify": "在 Dify 平台创建应用 -> 添加知识库 -> 导入此 .skill 配置",
        "claude": "将 system_prompt 字段内容复制到 Claude 自定义指令中",
        "custom": "将此 .skill 文件加载到你的 AI Agent 框架中，解析 system_prompt 和 model_config 即可使用"
    },
    "scripts": {
        "python": "# performance-investigation - Python extension\n# Add custom Python logic here\ndef process(input_data):\n    return input_data\n",
        "javascript": "// performance-investigation - JavaScript extension\n// Add custom JS logic here\nfunction process(inputData) {\n    return inputData;\n}\n"
    },
    "tools": {
        "mcp_servers": [],
        "api_endpoints": []
    },
    "dependencies": {
        "python": [],
        "node": []
    },
    "hooks": {
        "on_load": "echo \"Skill loaded: performance-investigation\"",
        "on_call": "",
        "on_error": "echo \"Skill error: please check logs\""
    }
}