Skip to main content 홈 크리에이터 terrylica cc-skills doppler-secret-validation
doppler-secret-validation Validate and test Doppler secrets. TRIGGERS - add to Doppler, store secret, validate token, test credentials.
설치로 이동 Skills Marketplace 커뮤니티가 만든 AI 스킬을 발견하고 탐색하세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/terrylica/cc-skills --skill doppler-secret-validation명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Zip 다운로드 다운로드 중... Park a draft message/text in macOS Notes for the operator to review and edit, then read it back before acting (e.g. before sending to a real person). Notes is the source of truth (AppleScript CRUD, iCloud-synced, provenance-stamped with the Claude Code session UUID); Stickies is a best-effort view-only desktop mirror. Use whenever you draft something a human should confirm/edit before it is sent or committed — messages, replies, announcements, anything outbound. TRIGGERS - park this draft, park the message, hold this draft, let me edit first, draft for my approval, save to notes for review, read back the draft.
name doppler-secret-validation description Validate and test Doppler secrets. TRIGGERS - add to Doppler, store secret, validate token, test credentials. allowed-tools Read, Bash
Doppler Secret Validation
Self-Evolving Skill : This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
Overview
Workflow for securely adding, validating, and testing API tokens and credentials in Doppler secrets management.
When to Use This Skill
Use this skill when:
User provides API tokens or credentials (PyPI, GitHub, AWS, etc.)
User mentions "add to Doppler", "store secret", "validate token"
User wants to test authentication before production use
User needs to verify secret storage and retrieval
Workflow
Step 1: Test Token Format (Before Adding to Doppler)
Before storing in Doppler, validate token format:
python3 -c "token = 'TOKEN_VALUE'; print(f'Prefix: {token[:20]}...'); print(f'Length: {len(token)}')"
Common token formats :
PyPI: pypi-... (179 chars)
GitHub: ghp_... (40+ chars)
AWS: 20-char access key + 40-char secret
Step 2: Add Secret to Doppler
doppler secrets SECRET_NAME= --project PROJECT --config CONFIG
set
"value"
doppler secrets set PYPI_TOKEN="pypi-AgEI..." \
--project claude-config --config prd
Important : CLI doesn't support --note. Add notes via dashboard:
Step 3: Validate Storage Use the bundled validation script:
/usr/bin/env bash << 'VALIDATE_EOF'
ROOT="$(cc-plugin-root devops-tools) "
cd "$ROOT /skills/doppler-secret-validation"
uv run scripts/validate_secret.py \
--project PROJECT \
--config CONFIG \
--secret SECRET_NAME
VALIDATE_EOF
Secret exists in Doppler
Secret retrieval works
Environment injection works via doppler run
uv run scripts/validate_secret.py \
--project claude-config \
--config prd \
--secret PYPI_TOKEN
Step 4: Test API Authentication Use the bundled auth test script (adapt test_api_authentication() for specific API):
/usr/bin/env bash << 'CONFIG_EOF'
ROOT="$(cc-plugin-root devops-tools) "
doppler run --project PROJECT --config CONFIG -- \
"$ROOT /skills/doppler-secret-validation/scripts/test_api_auth.py" \
--secret SECRET_NAME \
--api-url API_ENDPOINT
CONFIG_EOF
doppler run --project claude-config --config prd -- \
uv run scripts/test_api_auth.py \
--secret PYPI_TOKEN \
--api-url https://upload.pypi.org/legacy/
Step 5: Document Usage After validation, document the usage pattern for the user:
/usr/bin/env bash << 'CONFIG_EOF_2'
doppler run --project PROJECT --config CONFIG -- COMMAND
export SECRET_NAME=$(doppler secrets get SECRET_NAME \
--project PROJECT --config CONFIG --plain)
CONFIG_EOF_2
Step 5b: mise [env] Integration (Recommended for Local Development) For multi-account GitHub setups or per-directory credential needs, integrate Doppler secrets with mise [env]:
[env]
GH_TOKEN = "{{ exec(command='doppler secrets get GH_TOKEN --project myproject --config prd --plain') }}"
GITHUB_TOKEN = "{{ exec(command='doppler secrets get GH_TOKEN --project myproject --config prd --plain') }}"
GH_TOKEN = "{{ cache(key='gh_token', duration='1h', run='doppler secrets get GH_TOKEN --project myproject --config prd --plain') }}"
GITHUB_TOKEN = "{{ cache(key='gh_token', duration='1h', run='doppler secrets get GH_TOKEN --project myproject --config prd --plain') }}"
Note : Set BOTH GH_TOKEN and GITHUB_TOKEN - different tools check different variable names (gh CLI vs npm scripts).
Why mise [env]? Doppler doppler run is session-scoped; mise [env] provides directory-scoped credentials that persist across commands.
Common Patterns
Multiple Configs (dev, stg, prd) Add secret to multiple environments:
doppler secrets set TOKEN="prod-value" --project foo --config prd
doppler secrets set TOKEN="dev-value" --project foo --config dev
Verify Secret Across Configs /usr/bin/env bash << 'CONFIG_EOF_3'
for config in dev stg prd; do
echo "=== $config ==="
doppler secrets get TOKEN --project foo --config $config --plain | head -c 20
echo "..."
done
CONFIG_EOF_3
Security Guidelines
Never log full secrets : Use ${SECRET:0:20}... masking
Prefer doppler run : Scopes secrets to single command
Use --plain only for piping : Human-readable view masks secrets
Separate configs per environment : dev/stg/prd isolation
Bundled Resources
scripts/validate_secret.py - Complete validation suite (existence, retrieval, injection)
scripts/test_api_auth.py - Template for API authentication testing
references/doppler-patterns.md - Common CLI patterns and examples
Reference
Troubleshooting Issue Cause Solution Secret not found Wrong project/config specified Verify with doppler secrets ls --project X --config Auth test fails with 401 Token expired or invalid Regenerate token, re-add to Doppler doppler run hangs CLI waiting for input Add --no-interactive flag Token prefix mismatch Wrong token type used Check expected format (pypi-, ghp-, AKIA, etc.) Validation script not found Wrong directory context Use cc-plugin-root devops-tools to find the plugin root, then cd to the skill directory Secret retrieval empty Secret name typo List secrets: doppler secrets ls --project X mise cache stale Duration expired Clear cache or reduce duration setting Multiple configs confusion Secrets differ across envs Use explicit --config flag for each command
Post-Execution Reflection After this skill completes, reflect before closing the task:
Locate yourself. — Find this SKILL.md's canonical path before editing.
What failed? — Fix the instruction that caused it.
What worked better than expected? — Promote to recommended practice.
What drifted? — Fix any script, reference, or dependency that no longer matches reality.
Log it. — Evolution-log entry with trigger, fix, and evidence.
Do NOT defer. The next invocation inherits whatever you leave behind.