Agent Skillsaiming-lab/MetaClaw › secrets-management

secrets-management

GitHub

处理API密钥、密码等敏感凭据的安全规范。禁止硬编码,推荐环境变量或专业密钥管理服务,强调.gitignore配置及泄露后的紧急轮换机制,并提供CI扫描工具建议以防止凭证泄露。

memory_data/skills/secrets-management/SKILL.md aiming-lab/MetaClaw

Trigger Scenarios

涉及API keys, passwords, tokens的硬编码风险 需要配置生产环境密钥管理 发现凭据可能已泄露需轮换 任务描述中包含key, token, password, secret

Install

npx skills add aiming-lab/MetaClaw --skill secrets-management -g -y
More Options

Non-standard path

npx skills add https://github.com/aiming-lab/MetaClaw/tree/main/memory_data/skills/secrets-management -g -y

Use without installing

npx skills use aiming-lab/MetaClaw@secrets-management

指定 Agent (Claude Code)

npx skills add aiming-lab/MetaClaw --skill secrets-management -a claude-code -g -y

安装 repo 全部 skill

npx skills add aiming-lab/MetaClaw --all -g -y

预览 repo 内 skill

npx skills add aiming-lab/MetaClaw --list

SKILL.md

Frontmatter
{
    "name": "secrets-management",
    "category": "security",
    "description": "Use this skill when handling API keys, passwords, tokens, private keys, or any sensitive credential. Never hardcode secrets in source code — apply this whenever the word \"key\", \"token\", \"password\", or \"secret\" appears in the task."
}

Secrets Management

Rules:

  1. Never hardcode secrets in source files, configs committed to git, or logs.
  2. Use environment variables for local development (python-dotenv).
  3. Use a secrets manager (AWS Secrets Manager, HashiCorp Vault, 1Password CLI) in production.
  4. Add .env and *.pem to .gitignore before the first commit.
  5. Rotate secrets immediately if they are exposed (leaked in a commit, log, or error message).

Scanning: Use ggshield, truffleHog, or git-secrets in CI to block secret commits.

Anti-patterns:

  • os.environ.get('KEY', 'hardcoded_default') in production code.
  • Logging full request/response bodies that may contain tokens.

Version History

  • 922caf3 Current 2026-07-25 11:08

Same Skill Collection

memory_data/skills/agent-task-handoff/SKILL.md
memory_data/skills/async-communication-etiquette/SKILL.md
memory_data/skills/audience-aware-communication/SKILL.md
memory_data/skills/auth-and-authorization-patterns/SKILL.md
memory_data/skills/avoid-acting-on-assumptions/SKILL.md
memory_data/skills/avoid-hallucinating-specifics/SKILL.md
memory_data/skills/avoid-scope-creep/SKILL.md
memory_data/skills/clarify-ambiguous-requests/SKILL.md
memory_data/skills/codebase-navigation/SKILL.md
memory_data/skills/context-window-management/SKILL.md
memory_data/skills/data-validation-first/SKILL.md
memory_data/skills/debug-systematically/SKILL.md
memory_data/skills/do-not-retry-without-diagnosis/SKILL.md
memory_data/skills/git-workflow/SKILL.md
memory_data/skills/graceful-error-recovery/SKILL.md
memory_data/skills/idempotent-script-design/SKILL.md
memory_data/skills/input-validation-and-sanitization/SKILL.md
memory_data/skills/plan-before-multi-step-execution/SKILL.md
memory_data/skills/prioritize-by-impact/SKILL.md
memory_data/skills/professional-email-drafting/SKILL.md
memory_data/skills/robust-error-handling-in-scripts/SKILL.md
memory_data/skills/secure-code-review/SKILL.md
memory_data/skills/source-evaluation/SKILL.md
memory_data/skills/sql-best-practices/SKILL.md
memory_data/skills/structured-logging-and-observability/SKILL.md
memory_data/skills/structured-progress-update/SKILL.md
memory_data/skills/structured-research-workflow/SKILL.md
memory_data/skills/structured-step-by-step-reasoning/SKILL.md
memory_data/skills/task-decomposition/SKILL.md
memory_data/skills/technical-writing-clarity/SKILL.md
memory_data/skills/test-before-ship/SKILL.md
memory_data/skills/tool-selection-strategy/SKILL.md
memory_data/skills/uncertainty-acknowledgment/SKILL.md
memory_data/skills/verify-before-irreversible-action/SKILL.md
memory_data/skills/visualization-selection/SKILL.md

Metadata

Files
0
Version
922caf3
Hash
31022f24
Indexed
2026-07-25 11:08

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 13:39
浙ICP备14020137号-1 $Гость$