Aider Delegate
amElnagdy/delegate-skills
Delegate a coding task to Aider (aider) as a background implementer, then review its diff and land it yourself.
在本机 Mac 或 Apple Silicon 上部署 Gemma 4 12B。本地安装/升级 llama.cpp,下载 GGUF 量化模型,用 llama-server 暴露 OpenAI-compatible API,或用 Ollama 暴露本地模型服务;按用户需求在默认 Q4KM、64K/128K 长上下文、QAT Q40 @ 256K、左右对比演示之间选择,配置 tmux…
$ npx skills add majiayu000/spellbook --skill gemma4-local-deploy -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install majiayu000/spellbook gemma4-local-deploy --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/gemma4-local-deploy .claude/skills/gemma4-local-deploy && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "gemma4-local-deploy" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/gemma4-local-deploy into .claude/skills/gemma4-local-deploy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gemma4-local-deploy", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/majiayu000/spellbook/tree/main/skills/gemma4-local-deployType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add majiayu000/spellbook --skill gemma4-local-deploy -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install majiayu000/spellbook gemma4-local-deploy --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/gemma4-local-deploy .agents/skills/gemma4-local-deploy && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "gemma4-local-deploy" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/gemma4-local-deploy into .agents/skills/gemma4-local-deploy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gemma4-local-deploy", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add majiayu000/spellbook --skill gemma4-local-deploy -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install majiayu000/spellbook gemma4-local-deploy --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/gemma4-local-deploy .cursor/skills/gemma4-local-deploy && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "gemma4-local-deploy" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/gemma4-local-deploy into .cursor/skills/gemma4-local-deploy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gemma4-local-deploy", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/majiayu000/spellbook.git --path skills/gemma4-local-deploy--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add majiayu000/spellbook --skill gemma4-local-deploy -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install majiayu000/spellbook gemma4-local-deploy --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/gemma4-local-deploy .gemini/skills/gemma4-local-deploy && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "gemma4-local-deploy" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/gemma4-local-deploy into .gemini/skills/gemma4-local-deploy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gemma4-local-deploy", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install majiayu000/spellbook gemma4-local-deployInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add majiayu000/spellbook --skill gemma4-local-deploy -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/gemma4-local-deploy .github/skills/gemma4-local-deploy && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "gemma4-local-deploy" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/gemma4-local-deploy into .github/skills/gemma4-local-deploy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gemma4-local-deploy", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add majiayu000/spellbook --skill gemma4-local-deploy -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install majiayu000/spellbook gemma4-local-deploy --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/gemma4-local-deploy .opencode/skills/gemma4-local-deploy && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "gemma4-local-deploy" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/gemma4-local-deploy into .opencode/skills/gemma4-local-deploy/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gemma4-local-deploy", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
gemma4-local-deploy在本机 Mac 或 Apple Silicon 上部署 Gemma 4 12B。本地安装/升级 llama.cpp,下载 GGUF 量化模型,用 llama-server 暴露 OpenAI-compatible API,或用 Ollama 暴露本地模型服务;按用户需求在默认 Q4KM、64K/128K 长上下文、QAT Q40 @ 256K、左右对比演示之间选择,配置 tmux…
Gemma4 Local Deploy is an agent skill from majiayu000/spellbook. 在本机 Mac 或 Apple Silicon 上部署 Gemma 4 12B。本地安装/升级 llama.cpp,下载 GGUF 量化模型,用 llama-server 暴露 OpenAI-compatible API,或用 Ollama 暴露本地模型服务;按用户需求在默认 Q4KM、64K/128K 长上下文、QAT Q40 @ 256K、左右对比演示之间选择,配置 tmux 后台运行,验证健康检查、问答接口、资源占用和常见故障。当用户说部署 Gemma 4、Gemma 4 12B、本地大模型、长上下文、QAT、量化、llama-server、Ollama、GGUF、Mac 本地模型服务时使用。
Its SKILL.md is about 880 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `agents/openai.yaml`, `references/llama-cpp.md` and `references/ollama.md`).
It sits in AI & LLM Engineering, covering LLM inference and serving. It works with llama.cpp, Ollama, tmux and OpenAI. The repository describes itself as: Cross-runtime skills for Claude Code, Codex, and multi-agent workflows. The licence is MIT.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit ed52af7. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
BashReadWebSearchWebFetchFrom allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Gemma4 Local Deploy loads about 875 tokens when it runs, and up to ~3.2k if it reads all its reference files. Until then it costs about 82 tokens; SKILL.md has 187 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Bash, Read, WebSearch, WebFetchAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from majiayu000/spellbook at commit ed52af7, republished under its MIT licence (© majiayu000). 187 words, ~875 tokens.
.claude/skills/gemma4-local-deploy/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.把 Gemma 4 12B 的 GGUF 版本部署成本机模型服务。默认使用 llama.cpp / llama-server、Apple Metal、Q4_K_M 和 tmux,只监听 loopback;用户明确要求 QAT、256K、对比演示或 Ollama 时才切换路线。
127.0.0.1。ggml-org/gemma-4-12B-it-GGUFQ4_K_Mgemma-4-12b-ithttp://127.0.0.1:80803276865536 或 131072google/gemma-4-12B-it-qat-q4_0-ggufQ4_0、262144 上下文gemma4-12b--reasoning off,避免 OpenAI API 的 message.content 为空QAT 是训练时模拟量化,不等于无损。关键任务仍要用当前会话的真实响应验证。用户明确要更高质量时,优先建议 Q6_K 或 Q8_0;除非用户接受更高内存和更慢加载,不默认使用 bf16。
| Profile | 适用场景 | Model / quant | Context | Port / alias |
|---|---|---|---|---|
daily-q4km-32k | 默认日常聊天、编码、低风险本地 API | ggml-org/...:Q4_K_M | 32768 | 8080 / gemma-4-12b-it |
long-q4km-128k | 明确需要更长上下文,但保留默认 GGUF 路线 | ggml-org/...:Q4_K_M | 65536 或 131072 | 8080 / gemma-4-12b-it |
qat-q4_0-256k | 明确要求 QAT、Q4_0、256K 或低内存长上下文 | google/...qat-q4_0-gguf:Q4_0 | 262144 | 8080 / gemma-4-12b-it-qat-q4_0 |
compare-32k-vs-256k | 录屏、演示或 A/B 比较资源与速度 | 左 Q4_K_M,右 QAT Q4_0 | 32768 + 262144 | 8080 + 8081 |
最终回复必须说明选定 profile、端口、上下文和选择依据。不要把 256K 当作日常默认值。
先检查已有安装、进程、端口、缓存、硬件和磁盘,避免重复部署:
command -v llama-server || true
llama-server --version || true
tmux has-session -t gemma4-12b 2>/dev/null && tmux display-message -p -t gemma4-12b '#S #{pane_pid}' || true
lsof -nP -iTCP:8080 -sTCP:LISTEN || true
ls -lh "$HOME/Library/Caches/llama.cpp/"*gemma-4-12B-it*Q4_K_M*.gguf 2>/dev/null || true
find "$HOME/Library/Caches/llama.cpp" "$HOME/Models" \( -name '*gemma-4-12b-it-qat-q4_0*.gguf' -o -name '*gemma-4-12B-it-qat-q4_0*.gguf' \) 2>/dev/null || true
system_profiler SPHardwareDataType | sed -n '1,30p'
df -h "$HOME"这些 || true 只用于允许“尚未安装/尚未运行”这一预期发现结果;必须展示实际输出,不能把查询失败描述成部署成功。
daily-q4km-32k、long-q4km-128k、qat-q4_0-256k 或 compare-32k-vs-256k:先读并执行 llama.cpp 部署路线。部署后必须读取并执行 验证、资源与排障。成功至少需要当前会话证明:
/health 返回健康状态/v1/models 或 Ollama 模型列表包含选定模型n_ctx默认用中文回答,并包含:
没有验证数据时写“未验证”,不能用计划值代替运行值。
部署计划涉及超出默认 profile 的模型、上下文或资源判断时,使用
agents/openai.yaml 做独立复核;复核不能替代当前会话的本机验证。
© majiayu000, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (references) in skills/gemma4-local-deploy of majiayu000/spellbook.
Open the folder on GitHubat commit ed52af7
Gemma4 Local Deploy next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Gemma4 Local Deploy this skillmajiayu000/spellbook | 287 | — | ~875 | Automated safety check: Notes | MIT | |
| Aider DelegateamElnagdy/delegate-skills | 2.3k | 2 repos | ~3k | Automated safety check: Pass | MIT | |
| Local Modelsglebis/claude-skills | 391 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Vllmmagnus919/agent-skills | 115 | — | ~4.1k | Automated safety check: Notes | MIT | |
| Llama Cppmagnus919/agent-skills | 115 | — | ~2.3k | Automated safety check: Pass | MIT | |
| Perfupraullenchai/Rapid-MLX | 4k | — | ~1.6k | Automated safety check: Notes | Custom licence |
amElnagdy/delegate-skills
Delegate a coding task to Aider (aider) as a background implementer, then review its diff and land it yourself.
glebis/claude-skills
Run quick, offline, private LLM tasks on local models via llama.cpp, reusing models already downloaded by Ollama.
magnus919/agent-skills
Operate, configure, benchmark, and troubleshoot vLLM inference servers: Docker and Kubernetes deployment, quantization-aware model configuration (tensor parallelism, KV cache), OpenAI-compatible API…
magnus919/agent-skills
Operate, configure, benchmark, and troubleshoot llama.cpp across CPU, Metal, CUDA, HIP/ROCm, Vulkan, SYCL, and hybrid or multi-GPU systems.
raullenchai/Rapid-MLX
Autonomous performance optimization: research, PoC, benchmark, implement, review, PR
Blackwellboy/model-serving-minefield
Diagnose OpenAI-compatible model-serving failures from symptoms, endpoint reports, explicit configuration files, or logs while preserving evidence status and requiring confirm/refute checks.
majiayu000/spellbook
Audits and repairs how coding-agent Skills are owned, copied and exposed across runtimes, from canonical sources to quarantine and retirement.
majiayu000/spellbook
Scans a repository for real evidence and proposes, or on request writes, a small stack of root and scoped AGENTS.md files with validation commands and generated-file boundaries.
majiayu000/spellbook
Plans, produces or diagnoses evidence-backed product demo videos: script, capture plan, pacing checks and verified final media built on real product behavior.
majiayu000/spellbook
Single entry point that routes long or ambiguous agent tasks, checks live state, bounds autonomous loops and leaves a resumable handoff.
majiayu000/spellbook
Scans a repository, its lockfiles and node_modules for known malicious npm package versions and install-time indicators, using a read-only Python scanner.
majiayu000/spellbook
Product management helpers: a RICE scoring script, an interview transcript analyzer and PRD templates for prioritizing features, synthesizing research and writing requirements.
Categories
在本机 Mac 或 Apple Silicon 上部署 Gemma 4 12B。本地安装/升级 llama.cpp,下载 GGUF 量化模型,用 llama-server 暴露 OpenAI-compatible API,或用 Ollama 暴露本地模型服务;按用户需求在默认 Q4KM、64K/128K 长上下文、QAT Q40 @ 256K、左右对比演示之间选择,配置 tmux…. Gemma4 Local Deploy is an agent skill from majiayu000/spellbook.
Gemma4 Local Deploy fits situations like: tasks that involve LLM inference and serving.
Run `npx skills add majiayu000/spellbook --skill gemma4-local-deploy -a claude-code`. Or copy the skill folder (skills/gemma4-local-deploy in majiayu000/spellbook) into .claude/skills/gemma4-local-deploy in your project. Claude Code loads it when a task matches its description.
Run `npx skills add majiayu000/spellbook --skill gemma4-local-deploy -a codex`. Or copy the skill folder (skills/gemma4-local-deploy in majiayu000/spellbook) into .agents/skills/gemma4-local-deploy in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add majiayu000/spellbook --skill gemma4-local-deploy -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gemma4-local-deploy, .gemini/skills/gemma4-local-deploy, .github/skills/gemma4-local-deploy and .opencode/skills/gemma4-local-deploy in your project.
SKILL.md names no scripts, command-line tools or credentials: Gemma4 Local Deploy is instructions for the agent only. Its frontmatter pre-approves these tools: Bash, Read, WebSearch, WebFetch.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Gemma4 Local Deploy is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 875 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.3k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Gemma4 Local Deploy: Aider Delegate (amElnagdy/delegate-skills, 2.3k stars), Local Models (glebis/claude-skills, 391 stars), Vllm (magnus919/agent-skills, 115 stars) and Llama Cpp (magnus919/agent-skills, 115 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
majiayu000 (a GitHub user) maintains it in majiayu000/spellbook, which has 287 GitHub stars. The repository holds 97 skills in this directory. The repository was last updated on October 8, 2026.
Source: majiayu000/spellbook on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.