Use when optimizing GitHub Actions workflows on self-hosted runners with mise and pnpm. Covers RUNNER_TOOL_CACHE persistence, mise CI config split, and patterns to avoid (GHA cache, PNPM_STORE_DIR). Apply before editing build-and-deploy CI workflows.
Ships in kf-global. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
この SKILL.md は入口として扱い、詳細は references 配下の該当ファイルを読む。
一般的な GitHub Actions 最適化手順は重複して書かない。
この skill は、self-hosted runner + mise + pnpm で 実行時間を短くする ための検証済み判断だけを補完する。
mise-action / pnpm install が支配的な job を直すmise + pnpm + noderuns-on: [self-hosted, <repo-slug>] を前提とする(label 詳細は sibling skill kf-g-github-actions-self-hosted-runner-label 参照)。本 skill は cache / mise / pnpm に専念し、runner 登録手順は書かない| 項目 | 採用 |
|---|---|
| cache 本体 | RUNNER_TOOL_CACHE 永続化(bootstrap step) |
| mise env | MISE_DATA_DIR=$RUNNER_TOOL_CACHE/mise |
| pnpm env | PNPM_CONFIG_STORE_DIR=$RUNNER_TOOL_CACHE/pnpm-store |
| mise-action | cache: false |
| GHA cache | 使わない(self-hosted では restore オーバーヘッドが重い) |
| mise config | workflow ごとに mise.*.toml を分離 |
| pnpm backend | "npm:pnpm"(aqua install 失敗回避) |
| 冗長 step | mise install 削除 |
| cleanup job | CLI のみの軽量 config、pnpm install 省略 |
| 対象 | 改修前の典型 | warm run 後の典型 | 主因 |
|---|---|---|---|
| build+deploy job | ~140s | ~35–60s | mise ~100s→~1s |
| cleanup job(軽量化後) | ~130s | ~25–35s | mise 短縮 + pnpm install 省略 |
warm run 基準: mise-action ~1s(ログ all tools are installed)、pnpm install ~10s 台。
pnpm install ~11s: store cache 済みでも毎 job node_modules リンクは必須build ~7–8s: cache ROI 低、見送り推奨RUNNER_TOOL_CACHE bootstrap と mise-action 設定mise.*.toml の分離PNPM_STORE_DIR、aqua pnpm 等PNPM_CONFIG_STORE_DIR を使っているか(PNPM_STORE_DIR だけではないか)env に ${{ runner.tool_cache }} を書いていないかmise-action が cache: false かactions/cache@v4 を pnpm/mise に足していないかpnpm install 不要なのにやっていないかruns-on に repo-slug label が含まれるか(kf-g-github-actions-self-hosted-runner-label 参照)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/kf-global:kf-g-github-actions-self-hosted-ci-cachefrom kf-global
npx claudepluginhub melumuccu/ai --plugin kf-global35 skills in this plugin
/kf-g-agent-git-managed-workflowUse this skill when changing any git-managed files in a repository. Always apply it before creating issues, dedicated worktrees, commits, or pull requests for such changes; covers issue-first planning, worktree path and branch naming, atomic commits, push, PR creation, presenting the PR URL to the user, and stopping on hook failures without --no-verify.
/kf-g-agent-planning-design-as-finalUse this skill whenever creating or revising planning documents, design docs, issue/PR planning HTML, or any equivalent design text. Rewrite the published text as one complete final design, as if it had been planned that way from the start, for a reader with no prior conversation./kf-g-agent-research-report-only-unless-approved