SG

shanraisshan/gemini-cli-best-practice

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

79 stars 质量 67 趋势 18MIT

从氛围编码到代理工程——练习让双子座完美无缺

概览

从氛围编码到代理工程——实践使双子座完美无缺 Gemini 会请求你的设备,从 Open-Meteo 获取温度,写入 SVG 卡,并打印路径。完整命令提示符:.gemini/commands/weather-orchestrator.toml。 所有主要工作流程都汇聚在同一架构模式上:。 注意:黄色标签是子循环——在父步骤内重复的步骤(例如每个任务、每个故事,或直到验证条件通过)。 GEMINI.md 及其嵌套变体拥有持久的上下文。保持专注——这里也适用Claude Code使用的懒惰加载模式。 Gemini CLI 钩子 Claude Code 最佳实践 Claude 代码钩子 Codex CLI 最佳实践 代码 CLI 钩子 如果你喜欢我的作品,请给我买个doodh patti 🍵 on。

概述(AI 翻译)

从氛围编码到代理工程——实践使双子座完美无缺

-white?style=flat&labelColor=555)

= 特工 ·= 技能 ·= 指挥

🧠 概念

特色 地点 描述
子代理 .gemini/agents/ .md 具有隔离上下文、作用域工具和自定义系统提示的专用演员 ·自动委托或显式 @agent 调用 ·内置:codebase_investigator,cli_help,generalist,browser_agent(v0.38.1+)
特工技能 .gemini/skills/ /SKILL.md 一流原始(v0.23.0+)——name + description 仅前言,可选 scripts/ / references/ / assets/ 子文件夹 ·通过activate_skill工具,用户同意逐步披露 ·工作区>用户>扩展优先级
命令 .gemini/commands/ .toml 带有{{args}}、!{shell}和@path注入的TOML提示模板。子文件夹创建命名空间(git/commit.toml → /git:commit)。
工作流程 .gemini/commands/weather-orchestrator.toml 命令 → 代理 → 技能
MCP 服务器 '.gemini/settings.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

gemini-cli-best-practice

from vibe coding to agentic engineering — practice makes gemini perfect

= Agents · = Skills · = Commands

🧠 CONCEPTS

Feature Location Description
Subagents .gemini/agents/.md Specialized actors with isolated context, scoped tools, and custom system prompts · auto-delegate or explicit @agent invocation · built-ins: codebase_investigator, cli_help, generalist, browser_agent (v0.38.1+)
Agent Skills .gemini/skills//SKILL.md First-class primitive (v0.23.0+) — name + description only frontmatter, optional scripts/ / references/ / assets/ subfolders · progressive disclosure via activate_skill tool with user consent · Workspace > User > Extension precedence
Commands .gemini/commands/.toml TOML prompt templates with {{args}}, !{shell}, and @path injection. Sub-folders create namespaces (git/commit.toml → /git:commit).
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add shanraisshan/gemini-cli-best-practice
新手?先看 mcpskill.org 教程 →