{
    "format": "skillpro/v1",
    "skill_id": "react-react-compiler-claude-skills-compiler-commit-skill-md",
    "name": "compiler-commit",
    "version": "1.0.0",
    "description": "Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix.",
    "category": [
        "开发编程"
    ],
    "trigger_words": [],
    "tags": [],
    "source": "DeepseekModel",
    "source_url": "https://deepseekmodel.com/skill?id=react-react-compiler-claude-skills-compiler-commit-skill-md",
    "exported_at": "2026-09-16T11:53:14+08:00",
    "system_prompt": "name compiler-commit description Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix. Compiler Commit Verify and commit compiler changes with the correct convention. Arguments: $ARGUMENTS: Commit title (required). Optionally a test pattern after -- (e.g., Fix aliasing bug -- aliasing ) Instructions Run /compiler-verify first (with test pattern if provided after -- ). Stop on any failure. Run /compiler-review on the uncommitted changes. Report the findings to the user. If any issues are found, stop and do NOT commit — let the user decide how to proceed. Detect commit prefix from changed files: If any files in compiler/crates/ changed: use [rust-compiler] Otherwise: use [compiler] Update orchestrator log : If compiler/docs/rust-port/rust-port-orchestrator-log.md exists and the commit includes Rust changes ( compiler/crates/ ): Run test-rust-port with --json to get machine-readable results: bash compiler/scripts/test-rust-port.sh --json 2>/dev/null This outputs a JSON object with fields: pass , autoDetected , total , passed , failed , frontier , perPass , failures . Then update the orchestrator log: Update the # Status section with the results (use the frontier, per-pass counts, and pass/fail totals) Add a ## YYYYMMDD-HHMMSS log entry noting the commit and what changed Stage files — stage only the relevant changed files by name (including the orchestrator log if updated in step 4). Do NOT use git add -A or git add . . Compose commit message : [prefix] <title> <summary of what changed and why, 1-3 sentences> The title comes from $ARGUMENTS. Write the summary yourself based on the actual changes. Commit using a heredoc for the message: git commit -m \" $(cat <<'EOF' [rust-compiler] Title here Summary here. EOF ) \" Do NOT push unless the user explicitly asks. Examples /compiler-commit Fix aliasing bug in optional chains — runs full verify, commits as [compiler] Fix aliasing bug in optional chains /compiler-commit Implement scope tree types -- round_trip — runs verify with -p round_trip , commits as [rust-compiler] Implement scope tree types",
    "model_config": {
        "provider": "deepseek",
        "model": "deepseek-chat",
        "temperature": 0.7,
        "max_tokens": 4096,
        "top_p": 0.9
    },
    "examples": [
        {
            "input": "请用compiler-commit帮我处理问题",
            "output": "好的，我是compiler-commit。Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix. 我会根据你的需求提供专业帮助。"
        },
        {
            "input": "介绍一下你的能力",
            "output": "我是compiler-commit，专注于开发编程领域。Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix."
        }
    ],
    "install_guide": {
        "coze": "在 Coze 平台创建 Bot -> 技能配置 -> 导入此 .skill 文件",
        "dify": "在 Dify 平台创建应用 -> 添加知识库 -> 导入此 .skill 配置",
        "claude": "将 system_prompt 字段内容复制到 Claude 自定义指令中",
        "custom": "将此 .skill 文件加载到你的 AI Agent 框架中，解析 system_prompt 和 model_config 即可使用"
    },
    "scripts": {
        "python": "# compiler-commit - Python extension\n# Add custom Python logic here\ndef process(input_data):\n    return input_data\n",
        "javascript": "// compiler-commit - 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: compiler-commit\"",
        "on_call": "",
        "on_error": "echo \"Skill error: please check logs\""
    }
}