Skip to content
Skill Authoring
Command

/eac-install

Install a coding resource. Usage: /eac-install <id>

From plugin
everything-ai-coding
20714 skills14 commands
$ npx -y skills add zgsm-ai/everything-ai-coding --agent claude-code

Command definition

eac-install.md
description: 'Install a coding resource. Usage: /eac-install <id>'
argument-hint: resource id

Everything AI Coding - Install

$ARGUMENTS

---

Language Detection

Determine the output language using the following priority chain (first match wins):

1. **Explicit parameter**: if `$ARGUMENTS` contains `lang:zh` or `lang:en`, use that (strip it from arguments) 2. **Conversation signal**: if the user's recent messages are clearly in one language, follow that 3. **System locale fallback**: run `echo $LANG` in Bash — if the value starts with `zh` (e.g. `zh_CN.UTF-8`), use Chinese; otherwise use English

Once determined, apply consistently:

  • **All output** (confirmation dialogs, status messages, error messages) MUST be in the detected language.
  • Command references and file paths stay as-is regardless of language.

Prompt Rendering Rule

Whenever a prompt asks the user to pick an option with letters (Y / n / edit / global / …), ALWAYS render each option with an explicit label describing what it does — never leave bare letters in Chinese output, as the letter alone is ambiguous. Use these bilingual templates:

| Pattern | English | Chinese | |---------|---------|---------| | `Y/n` (simple confirm) | `(Y = yes / n = no, skip)` | `(Y = 是,继续 / n = 否,跳过)` | | `Y/n` (keep-original preferred) | `(Y = customize it / n = keep original (recommended))` | `(Y = 开始定制 / n = 保持原样(默认推荐))` | | `Y/n/edit` (apply/adjust/reject) | `(Y = apply as shown / n = discard, keep original / edit = tell me what to tweak)` | `(Y = 应用改动 / n = 放弃,保留原样 / edit = 告诉我怎么改)` | | `Y/n/global` (install scope) | `(Y = install to current project / n = cancel / global = install to ~/.claude)` | `(Y = 装到当前项目 / n = 取消 / global = 装到全局 ~/.claude)` |

Every prompt line in this document that shows bare `(Y/n)` / `(Y/n/edit)` / `(Y/n/global)` MUST be expanded to the corresponding labeled form at render time.

Data Sources

**Note**: Apply GitHub Network Detection rules (see SKILL.md) to all GitHub URLs below. If `[network-config]` specifies a proxy, rewrite URLs accordingly.

Per-entry API: `https://zgsm-ai.github.io/everything-ai-coding/api/v1/{type}/{id}.json` Full index (fallback): `https://raw.githubusercontent.com/zgsm-ai/everything-ai-coding/main/catalog/index.json`

Execution Flow

1. Extract resource ID from `$ARGUMENTS` 2. Look up entry by ID via per-entry API (requires determining type and id from search index first):

  • Download search index: `curl -sf --compressed https://zgsm-ai.github.io/everything-ai-coding/api/v1/search-index.json`
  • Exact match on `id` field first; if no exact match, fuzzy match on name/id with Python to determine the entry's `type` and `id`
  • If exactly one match found, fetch full data: `curl -sf --compressed https://zgsm-ai.github.io/everything-ai-coding/api/v1/{type}/{id}.json`
  • If multiple matches, list them and let the user choose, then fetch the selected one

4. Show install preview (in user's language):

Structure:
  Section: "Install Confirmation"
  - Name: xxx
  - Type: MCP Server
  - Description: (use description_zh or description per Language Rule)
  - Source: xxx
  - Target: .claude/settings.json (project-level)
  - [if type is rule/prompt/skill]: "✨ Supports customization — you can tailor this to your project after install"

  Prompt: "Confirm install? (Y/n/global)"

Do NOT show the customization hint for MCP or plugin types.

For `plugin` type, the `(Y/n/global)` prompt collapses to `(Y/n)` — plugins are always user-global, no project-level scope exists. Render as `(Y = enable in ~/.claude / n = cancel)` in English, `(Y = 启用到 ~/.claude / n = 取消)` in Chinese.

For `plugin` type, the `Target` line should read `~/.claude/settings.json (user-global, plugins have no project scope)`.

5. Execute installation based on user confirmation and resource type:

MCP (type == "mcp")

  • Default: write to `.claude/settings.json`; if user chooses "global", write to `~/.claude/settings.json`
  • Read existing settings.json (create `{}` if not found)
  • Handle by `install.method`:

method == "mcp_config"

  • Merge `install.config` directly into the `mcpServers` field
  • If key already exists, ask whether to overwrite
  • If `install.config.env` contains any values → run **Post-Install Configuration Guide** (see below)

method == "mcp_config_template"

  • Write `install.config` into `mcpServers` field first (so entry exists even if user skips config)
  • Then run **Post-Install Configuration Guide** (see below)

Post-Install Configuration Guide

When the installed MCP config contains `env` fields (API keys, tokens, connection strings, etc.):

1. **Detect unconfigured env vars** — any env value that is empty, contains `<`, `YOUR_`, or placeholder-like patterns 2. **Fetch the project README for setup guidance**:

  • **Note**: Apply GitHub Network Detection rules (see SKILL.md) to `source_url` before fetching.
  • Use WebFetch on the entry's `source_url` with prompt: "Extract: 1) What API keys or environment variables are needed 2) How to obtain them (signup URL, steps) 3) Example configuration. Be concise, bullet points only."
  • If `source_url` is a GitHub monorepo subpath and fetch fails, try the repo root URL instead

3. **Present actionable guidance** to the user (in detected language):

Structure:
  Section: "Configuration Required"
  Per env var:
    - KEY_NAME: [guidance extracted from README — how to obtain, signup URL, etc.]
  Action: "Would you like me to help you fill in these values now?"

4. **If user provides values**, update the settings.json entry directly 5. **If README is unavailable**, fall back to showing env var names and `source_url` link

method == "manual"

No pre-built install config in the index — infer install method from project README. Steps:

**Step 1: Fetch README**

  • Construct raw URL from `source_url` (**Note**: Apply GitHub Network Detection rules from SKILL.md to these URLs):
  • Try `https://raw.githubusercontent.com/{owner
Read more
@zgsm-ai
Ships witheverything-ai-coding

聚合精选编程 AI 扩展资源:MCP Servers、Skills、Rules、Prompts,周更索引 + 一键安装。

Stars on GitHub

Momentum

stars in total
207
Star history of zgsm-ai/everything-ai-coding on GitHub, a chart by star-history.com

Other commands on everything-ai-coding.

More commands from other plugins.

skillopt-sleep

skillopt-sleep

Command

Run or manage the SkillOpt-Sleep self-evolution cycle (review past sessions, replay tasks through a selected backend, consolidate…

@microsoft@microsoftInstall Command