Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计通过

environment-setup环境设置

Agent Skill

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

总安装

1,934

周安装

79

GitHub Stars

11

下载量

626
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

用于处理应用配置与环境变量管理,提升多环境配置安全性与一致性。

  • 适合结构化 .env 文件、分离公私值、验证必要配置和减少配置漂移。
  • 使用时需明确哪些参数应设为环境变量,并建立清晰的前后继承规则。
  • 涉及敏感信息传递时应显式声明交接流程,避免硬编码或意外泄露。
  • environment-setup 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

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