Skip to main content

env-abstraction

Handles abstraction of environment-specific commands between Jetski and Gemini-CLI. Use when switching execution context between local terminal environments. Do not use for debugging logic issues.

来源信息

仓库
nodejs/node
最近来源活动
2026年10月4日 21:04
检测到的 SKILL.md 语言
英语
星标
122,301
分支
39,450

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
env-abstraction
description
Handles abstraction of environment-specific commands between Jetski and Gemini-CLI. Use when switching execution context between local terminal environments. Do not use for debugging logic issues.
# Environment Abstraction Skill This skill provides a layer of abstraction over environment-specific tools and commands, allowing skills to be reused across different platforms like `jetski` and `gemini-cli`. ## Core Principles 1. **Decoupling**: Keep tool calls independent from platform specific implementations inside general workflow skills. 2. **Detection**: Determine the environment at startup (e.g., via environment variables or tool availability). 3. **Mapping**: Map abstract actions to concrete commands or tool calls based on the environment. ## Environment Definitions ### Jetski Environment - **Characteristics**: Rich set of specialized tools (e.g., `code_search`, `moma_search`, `gdb-mcp`, `v8-utils`). - **Usage**: Prefer specialized tools over generic shell commands to maximize efficiency and respect workspace constraints (e.g., avoid heavy searches in large workspaces). ### Gemini-CLI Environment - **Characteristics**: May rely more on standard shell commands or a different set of MCP servers. - **Usage**: Fall back to standard tools like `grep`, `find`, or standard `gdb` via `run_command` if specialized Jetski tools are unavailable. ## Abstract Action Mapping When performing common actions, refer to this mapping to choose the correct tool: | Abstract Action | Jetski Implementation | Gemini-CLI Implementation (Fallback) | | :--- | :--- | :--- | | **Code Search** | `code_search` | `grep_search` (if outside Google3) or standard `grep` | | **File Search** | `find_by_name` (if safe) | Standard `find` or `fd` | | **Debugging** | `gdb-mcp` | Standard `gdb` via `run_command` | | **Building** | `tools/dev/gm.py` (use `use_remoteexec=true`) | `tools/dev/gm.py` | | **Testing** | `tools/run-tests.py` | `tools/run-tests.py` | | **Starting Agents** | `invoke_subagent` (tool) | `agentapi new-conversation` (CLI) | ## Implementation Guidelines - When writing or updating skills, refer to actions by their abstract names. - Check for the existence of specialized tools before falling back to generic commands. - Document any environment-specific assumptions in the skill file.
在 GitHub 查看