Logotipo de Lov Env Management

Lov Env Management

Organización
lovstudio
lov-env-management

统一管理平台、账号与多组 API Key,维护有效期和启用状态,安全同步到 zsh 或用户会话环境,并提供脱敏 Dashboard;用户说“管理环境变量”“rotate API keys”时使用。

Descripción general

Editorlovstudio
Repositorioskills
Nombre de la habilidadlov-env-management
Estrellas
67
Forks
17
Archivos incluidos
19
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • 19 archivos incluidos

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por lovstudio en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Lov Env Management en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/lovstudio/skills/tree/main/skills/env-management
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lovstudio/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/env-management .claude/skills/lov-env-management
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Lov Env Management en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Lov Env Management automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Lov Env Management no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

凭据管家 · Credential Keeper

把散落的开发环境变量收进“平台 → 账号 → Key”账本,明确每个 Key 的生命周期、验证状态和当前投影目标,并在不回显秘密的前提下同步 Shell 或用户图形会话环境。

Triggers

Activate when

  • 用户说“管理我的环境变量”“同一个平台有多个账号和 API Key”“把这个 Key 轮换到 zsh”或“打开环境变量 Dashboard”。
  • User asks to “manage API keys”, “rotate an environment variable”, “switch the active account”, or “audit expiring keys”.
  • 用户需要维护 Key 的生效时间、过期时间、远端验证结果,或在多个 Key 中选择一个投影到指定变量。

Do not activate when

  • 用户只要给当前单次命令临时传一个环境变量;直接使用当前 Shell 的 invocation-scoped environment。
  • 用户要把云端 Secret 写入 Vercel、GitHub Actions、Supabase 或 Kubernetes;使用目标平台的 Secret 管理流程,本 Skill 只可提供经过确认的变量名清单。
  • 用户要管理登录密码、信用卡或恢复码;使用密码管理器。1Password 仅作为本 Skill 的可选秘密来源。
  • 用户要新增 zsh 快捷命令或函数而不是环境变量;交给 lov-zsh-alias。

Security Invariants

  • 绝不把 Key 值写入聊天、Profile、日志、Dashboard、URL、命令参数或版本库。
  • 新增 Key 只接受隐藏交互输入或标准输入;CLI 故意不提供 --value。
  • Registry 只保存脱敏元数据。默认 macOS 使用 Keychain,其他系统使用权限为 0600 的本地 vault;也支持 op:// 引用和已有环境变量引用。
  • ~/.zshenv 只写一个受哨兵标记管理的 source 块,实际导出位于权限为 0600 的生成文件。
  • 同一 target 和变量名只允许一个 binding。切换账号或 Key 是替换 binding,不是复制多份 export。
  • Dashboard 只绑定 127.0.0.1,不展示秘密,也不提供秘密录入框;所有写操作需要当前进程生成的临时 token 和同源请求。
  • 不自动把 Key 写入 /etc/environment、LaunchAgent plist 或仓库 .env 文件。系统投影仅作用于当前用户会话,并要求显式确认进程环境暴露风险。

User Profile (cross-session)

每次运行先读取 skill.yaml 声明的 user-profile/v1。Profile 只保存安全的工作偏好,例如默认秘密后端、过期预警天数、Shell rc 文件和 Dashboard 是否自动打开;所有 Key 值及秘密引用都留在专用存储,不进入 Profile。

当用户直接声明需要跨 session 保存的非秘密偏好时,通过 scripts/profile_store.py record --skill-id lov-env-management --confirm 写入 records 并报告保存路径。凭据、token、cookie 和任何 secret-like 字段不得写入 Profile。完整契约见 references/user-profile.md。

Skill Group Composition

运行前阅读 references/skill-composition.md。外部 Skill 只通过脱敏变量清单或秘密引用进行可选交接,不是隐藏依赖。

Workflow (MANDATORY)

Step 0: Resolve context and inspect without secrets

  1. Resolve SKILL_DIR, then run profile_store.py read for safe defaults.
  2. Resolve storage with this precedence: current CLI flag, LOV_ENV_HOME, Skill Profile, then the platform-safe config directory.
  3. Start with list or audit; never search broad home-directory globs for credentials.
  4. Separate requested targets: current command, zsh startup, current user GUI session, or a platform-specific remote Secret store.
bash
python3 "$SKILL_DIR/scripts/env_manager.py" list
python3 "$SKILL_DIR/scripts/env_manager.py" audit

Step 1: Model platform, account, and Key identity

Use stable kebab-case IDs. A Key locator is platform/account/key, for example openai/personal/primary or openai/work/rotation-2026-08.

Add every rotated Key as a new record so history stays attributable. Do not overwrite an existing key ID. Choose a secret backend automatically unless the user named one:

  1. keychain on macOS when available;
  2. file vault with mode 0600 elsewhere;
  3. op for an explicit op:// reference;
  4. env only when an existing variable is the intended source.
bash
python3 "$SKILL_DIR/scripts/env_manager.py" add \
  --platform openai --account personal --key rotation-2026-08 \
  --env-var OPENAI_API_KEY --backend auto \
  --status standby --expires-at 2026-12-31

The command prompts without echo. For automation, pipe the value and add --secret-stdin; never place it in a shell argument.

Step 2: Maintain lifecycle and validity evidence

Read references/data-model.md before changing lifecycle fields.

  • active: eligible for a binding.
  • standby: stored for rotation but not preferred.
  • disabled: temporarily excluded.
  • revoked: permanently excluded; keep metadata for audit history.
  • Effective health additionally accounts for not_before, expires_at, and the latest validation result.

Use status for administrative state and probe for remote evidence. probe sends the Key only in an HTTPS header, blocks redirects, never stores a response body, and records only origin, status code, time, and redacted result.

bash
python3 "$SKILL_DIR/scripts/env_manager.py" status \
  openai/personal/rotation-2026-08 --status active

python3 "$SKILL_DIR/scripts/env_manager.py" probe \
  openai/personal/rotation-2026-08 \
  --url https://api.openai.com/v1/models --auth bearer

If a service cannot be probed generically, use mark-validation --result valid|invalid|unknown after a real platform-specific check and record a non-secret note.

Step 3: Bind exactly one Key per target variable

Bindings are independent for shell and system. The binding is the atomic switch point for multiple accounts and multiple keys.

bash
python3 "$SKILL_DIR/scripts/env_manager.py" bind \
  --target shell --env-var OPENAI_API_KEY \
  openai/personal/rotation-2026-08

Reject expired, invalid, disabled, revoked, or not-yet-valid Keys. Only use --allow-unhealthy when the user explicitly accepts the reason and the resulting risk.

Step 4: Preview, apply, and verify environment projection

Read references/environment-targets.md. Every sync is a preview unless --apply is present.

bash
python3 "$SKILL_DIR/scripts/env_manager.py" sync-shell --rcfile "$HOME/.zshenv"
python3 "$SKILL_DIR/scripts/env_manager.py" sync-shell --rcfile "$HOME/.zshenv" --apply
python3 "$SKILL_DIR/scripts/env_manager.py" audit

After applying zsh projection, verify in a new clean zsh process by checking presence or a fingerprint only; never print the value. sync-system targets the current user login session, not machine-wide state, and requires --acknowledge-process-env-risk --apply.

Step 5: Use the local Dashboard

bash
python3 "$SKILL_DIR/scripts/env_manager.py" dashboard --open

The Dashboard shows accounts, effective health, expiry windows, validation age, and target bindings. It can switch bindings and update administrative or validation status, but adding, reading, exporting, or deleting secret values remains terminal-only. See references/dashboard.md.

Step 6: Report evidence

Report only:

  • platform/account/key locators;
  • variable names and selected targets;
  • effective health, dates, validation age, and fingerprint when requested;
  • files changed, their modes, backup path, and audit result;
  • copyable context_id for errors.

Never report a raw Key, secret reference path, generated export content, or a command containing a secret.

CLI Summary

CommandOutcome
initCreate the registry and secure storage directory
addAdd one platform/account/key record and secret source
list, showReturn redacted inventory and effective health
status, mark-validationMaintain administrative and validation state
probeValidate one Key through a guarded HTTPS request
bind, unbindSelect the only Key used by a target variable
sync-shellPreview or update generated zsh exports and ~/.zshenv source block
sync-systemPreview or update current user session environment
auditDetect unsafe permissions, dangling bindings, unhealthy selections, and expiry warnings
dashboardRun the redacted local operations console

All commands support --json. Mutating output names changed records but never secret values.

Dependencies

  • Python 3.9+ standard library.
  • Optional macOS security command for Keychain storage.
  • Optional 1Password CLI op for op:// secret references.
  • zsh for sync-shell; macOS launchctl or Linux systemctl --user for sync-system.

Validation

bash
python3 "$SKILL_DIR/scripts/validate_skill.py" "$SKILL_DIR"
python3 -m unittest discover -s "$SKILL_DIR/tests" -v

通用反馈闭环

用户在 Skill 驱动任务中提出修改意见时,继续当前产物前必须执行:

  1. 先判断意见是 task-specific(仅本次)还是 reusable(可跨任务复用)。
  2. task-specific 只修改当前任务,不改 Skill。
  3. reusable 先确定作用域:领域规则先更新对应 canonical Skill;适用于所有 Skill 的规则先更新共享规范。
  4. 完成规则更新、版本、lint 与分发核验后,再把修改应用到当前任务。
  5. reusable 修改会使此前的“确认”“继续”“发吧”失效;完成当前产物修改和回读后必须停下,等待用户下一步指示,不自动进入发布、提交或其他外部写入。

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Se ofrecen como archivos de lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Lov Env Management?

统一管理平台、账号与多组 API Key,维护有效期和启用状态,安全同步到 zsh 或用户会话环境,并提供脱敏 Dashboard;用户说“管理环境变量”“rotate API keys”时使用。

¿Por qué usar Lov Env Management en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Lov Env Management está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Lov Env Management en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/lovstudio/skills/tree/main/skills/env-management. TypingMind lee su archivo SKILL.md, empaqueta sus archivos y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Lov Env Management?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Lov Env Management?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Lov Env Management con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Lov Env Management?

Sí. lovstudio la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇