Community程式設計與開發github.com

DanhDue/secrets_env

管理環境變數與機密的 AI 代理工具。

secrets_env 是什麼?

此技能由 DanhDue/ai-agent-tools 提供,名為 secrets_env,專門設計給 AI 代理(如 Claude Code、Cursor、Codex 等)使用。其主要功能是安全地管理環境變數與機密資料,讓開發者不需將敏感資訊寫死在程式碼或設定檔中。支援多種平台與工作流程,可透過簡單的指令來設定、取得、列出或移除機密值,大幅提升開發安全與效率。使用方式依賴於標準的環境變數機制,並能與 CI/CD 管道或本機開發環境無縫整合。建議搭配 .env 檔案或其他金鑰管理服務,以達成更完善的機密管理策略。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/DanhDue/ai-agent-tools/tree/main/skills/secrets_env

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

secrets_env 是做什麼的?

來自 DanhDue/ai-agent-tools 的代理技能 'secrets_env'。

概述

secrets_env 技能提供了一套用於在 AI 代理內安全管理環境變數與機密的標準化方式。開發者可以利用此技能動態設定、取得、列出或刪除機密值,避免敏感資料外洩。

功能

  • 設定機密:透過代理指令安全地儲存新的環境變數或機密。
  • 取得機密:在需要時動態擷取已儲存的機密值。
  • 列出機密:檢視所有已定義的機密名稱(不會暴露值)。
  • 刪除機密:在不再需要時移除機密。

支援平台

  • Claude Code:無縫整合,可從 Claude 對話中直接管理機密。
  • Cursor:可在 Cursor 編輯器內使用,提升開發效率。
  • Codex:與 Codex 工作流程相容,確保機密安全。
  • 其他 AI 代理工具:只要支援標準環境變數介面即可適用。

使用方式

# 設定機密
secrets_env set MY_SECRET_KEY "your-secret-value"

# 取得機密
secrets_env get MY_SECRET_KEY

# 列出所有機密
secrets_env list

# 刪除機密
secrets_env delete MY_SECRET_KEY

組態

技能會自動使用作業系統的環境變數機制(如 $HOME/.bashrc、.env 檔案或系統金鑰鏈),無需額外組態即可運作。對於進階使用方式,建議搭配外部金鑰管理服務(如 AWS Secrets Manager、HashiCorp Vault)來集中管理機密。

安全考量

  • 機密值在記憶體中處理,並不會寫入日誌或顯示在代理對話中。
  • 使用前建議驗證機密是否存在,避免錯誤。
  • 定期輪換機密以降低洩漏風險。

錯誤處理

若指令失敗(例如機密不存在或權限不足),技能會回傳清晰的錯誤訊息,協助開發者快速除錯。

貢獻

歡迎透過 GitHub 回報問題或提交 PR 來改善此技能。請遵循專案的程式碼風格與測試規範。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

DanhDue/android-api-integration

Agent skill 'android-api-integration' from DanhDue/ai-agent-tools.

DanhDue/android-ui-audit

Agent skill 'android-ui-audit' from DanhDue/ai-agent-tools.

DanhDue/api_integration

Agent skill 'api_integration' from DanhDue/ai-agent-tools.

DanhDue/architecture-audit

Agent skill 'architecture-audit' from DanhDue/ai-agent-tools.

DanhDue/brainstorming

Agent skill 'brainstorming' from DanhDue/ai-agent-tools.

DanhDue/build_fix

Agent skill 'build_fix' from DanhDue/ai-agent-tools.

DanhDue/check_secure_files

Agent skill 'check_secure_files' from DanhDue/ai-agent-tools.

DanhDue/code-health-audit

Agent skill 'code-health-audit' from DanhDue/ai-agent-tools.

DanhDue/copy_secure_configurations

Agent skill 'copy_secure_configurations' from DanhDue/ai-agent-tools.

DanhDue/create_new_feature

Agent skill 'create_new_feature' from DanhDue/ai-agent-tools.

DanhDue/decision-records

Agent skill 'decision-records' from DanhDue/ai-agent-tools.

DanhDue/dev-brainstorming

Agent skill 'dev-brainstorming' from DanhDue/ai-agent-tools.

DanhDue/dev-designer

Agent skill 'dev-designer' from DanhDue/ai-agent-tools.

DanhDue/dev-implementation

Agent skill 'dev-implementation' from DanhDue/ai-agent-tools.

DanhDue/dev-lifecycle

Agent skill 'dev-lifecycle' from DanhDue/ai-agent-tools.

DanhDue/dispatching-parallel-agents

Agent skill 'dispatching-parallel-agents' from DanhDue/ai-agent-tools.

DanhDue/doc-brainstorming

Agent skill 'doc-brainstorming' from DanhDue/ai-agent-tools.

DanhDue/doc-designer

Agent skill 'doc-designer' from DanhDue/ai-agent-tools.

DanhDue/doc-implementation

Agent skill 'doc-implementation' from DanhDue/ai-agent-tools.

DanhDue/doc-lifecycle

Agent skill 'doc-lifecycle' from DanhDue/ai-agent-tools.

相關技能