Token导航 LogoToken导航

Agent Skill · 前端设计

environment-setup(环境设置)

environment-setup 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

environment-setup 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 2,752。

总安装 1,934周安装 79GitHub Stars 11下载 626核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:environment-setup(环境设置)
来源仓库:https://github.com/akillness/oh-my-skills
仓库路径:skills/environment-setup
安装命令:
npx skills add https://github.com/akillness/oh-my-skills --skill environment-setup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/akillness/oh-my-skills --skill environment-setup

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于处理应用配置与环境变量管理,提升多环境配置安全性与一致性。适合结构化 .env 文件、分离公私值、验证必要配置和减少配置漂移。使用时需明确哪些参数应设为环境变量,并建立清晰的前后继承规则。涉及敏感信息传递时应显式声明交接流程,避免硬编码或意外泄露。

environment-setup 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/environment-setup

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/akillness/oh-my-skills --skill environment-set…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

environment-setup 怎么安装?

在终端执行 npx skills add https://github.com/akillness/oh-my-skills --skill environment-setup。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

environment-setup 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

environment-setup 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

environment-setup 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

environment-setup 用的人多吗?

公开数据是累计安装 1,934 次,近一周安装 79 次,下载 626 次,GitHub 11 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

environment-setup 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
environment-setup

环境设置 · 本页

1,93411接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Environment Configuration

Use this skill as the repository's narrower application-config and .env compatibility skill.

The job is to make app configuration clear and safe across environments:

  • decide what belongs in env vars,
  • structure .env files and precedence rules,
  • validate required config,
  • separate public/private values,
  • reduce config drift between local, CI, staging, and production,
  • make secret handoff explicit.

Read references/env-patterns.md and references/scope-boundaries.md before unusual cases or when deciding whether the real need belongs in system-environment-setup.

If the user mainly needs:

  • toolchains, local services, Docker Compose, devcontainers, or onboarding → route to system-environment-setup
  • deployment or CI secret wiring → pair with deployment-automation
  • security architecture or policy → pair with security-best-practices

When to use this skill

  • Design .env.example, .env.local, or per-environment config structure
  • Explain env precedence and which values should or should not be committed
  • Validate required env vars with typed/runtime checks
  • Separate server-only vs client-exposed env values
  • Reduce drift between local, CI, staging, and production config
  • Clean up a repo where env files, secret docs, and runtime expectations disagree
  • Decide when env vars are enough and when secret-manager injection is needed

When not to use this skill

  • The main task is making the full repo runnable across machines → use system-environment-setup
  • The main task is local service orchestration, Docker, or devcontainers → use system-environment-setup
  • The main task is deployment automation or production rollout → use deployment-automation
  • The main task is broader security review rather than config organization → pair with security-best-practices

Instructions

Step 1: Classify the config problem

Normalize the request into this intake first:

env_config_intake:
  primary_goal: env-structure | validation | secret-handoff | public-private-split | drift-cleanup | framework-rules | unknown
  app_shape: backend | frontend | fullstack | monorepo | unknown
  current_storage: env-files | framework-config | secret-manager | mixed | unknown
  drift_surface:
    - missing-required-vars
    - duplicate-env-files
    - CI-local-mismatch
    - public-private-leak-risk
    - undocumented-secret-source
    - framework-prefix-confusion
    - unclear
  confidence: high | medium | low

Step 2: Choose one primary mode

Pick exactly one mode for the run:

  1. env-file-structure

- Use when the main need is file layout, naming, and precedence.

  1. env-validation

- Use when missing or malformed values are causing runtime/build pain.

  1. secret-handoff-boundary

- Use when .env files are colliding with secret-manager or credential-delivery concerns.

  1. framework-config-rules

- Use when the main problem is framework-specific env behavior (public/private prefixes, build-time vs runtime exposure, etc.).

  1. drift-cleanup

- Use when env templates, docs, CI vars, and actual runtime expectations disagree.

Step 3: Apply config rules

  • Keep deploy-specific values out of source code and commit only safe templates.
  • Separate committed templates from developer-local values.
  • Make public/client-exposed env vars visually distinct from server-only values.
  • Prefer typed validation when the app is large enough for env drift to be expensive.
  • Record the source of secrets: local file, secret manager, CI variable, or cloud platform.
  • Route outward when the actual blocker is machine setup, Docker, or local services rather than config design.

Step 4: Build the config brief

Return this exact structure:

# Environment Config Brief

## Recommended mode
- Mode: env-file-structure | env-validation | secret-handoff-boundary | framework-config-rules | drift-cleanup
- Why this mode fits: ...

## Current config surface
- App shape: ...
- Config sources: ...
- Main drift or risk: ...
- Confidence: high | medium | low

## Recommended config layout
1. ...
2. ...
3. ...

## Example files / checks

...


## Why this layout is safer

- ...
- ...

## Watch-outs

- ...
- ...

## Adjacent handoff

- Use `system-environment-setup` for...
- Use `deployment-automation` for...
- Use `security-best-practices` for...

Step 5: Use mode-specific guidance

For env-file-structure

  • Define the committed template files first.
  • Call out local-only overrides and ignored files explicitly.
  • Make precedence easy to explain.

For env-validation

  • Choose a schema/validation layer appropriate for the stack.
  • Fail fast with clear missing-variable messages.
  • Keep validation close to app startup.

For secret-handoff-boundary

  • Name which values are safe in templates and which must come from a secret source.
  • Document how a developer obtains sensitive values.
  • Avoid pretending secret-manager adoption removes the need for local conventions.

For framework-config-rules

  • Explain public/private env prefixes and build-time/runtime behavior.
  • Call out framework-specific exposure risks.

For drift-cleanup

  • Compare templates, runtime code, CI vars, and docs.
  • Remove duplicate or stale env file conventions.
  • Make one source of truth obvious.

Step 6: Keep boundaries sharp

Before finalizing:

  • Do not turn this into a Docker/devcontainer tutorial.
  • Do not bury public/private env exposure risk.
  • Do not assume .env files are enough for all secret workflows.
  • Do not keep this as a peer duplicate of system-environment-setup; route broader setup work outward.

Examples

Example 1: Env template cleanup

Input: "Help me structure .env.example and .env.local so new devs stop guessing values." Output: chooses env-file-structure, defines committed templates vs local overrides, and keeps the scope at app config.

Example 2: Validation hardening

Input: "We keep forgetting env vars until runtime." Output: chooses env-validation, recommends typed validation, and shows how to fail fast.

Example 3: Framework split

Input: "Which env vars can be exposed to the frontend and which must stay server-only?" Output: chooses framework-config-rules, explains the client/server split, and avoids broad setup drift.

Best practices

  1. Treat this as the app-config layer, not the whole-machine setup skill.
  2. Make secret sources explicit rather than implied.
  3. Prefer committed templates plus local-only overrides.
  4. Add validation once env drift becomes expensive.
  5. Route broader runnable-repo work to system-environment-setup.

References

平台分布

Codex

36.27%
按下载量换算227

Claude

31.92%
按下载量换算200

Cursor

18.46%
按下载量换算116

Gemini CLI

9.72%
按下载量换算61

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills