mcpField
D
doppler-workflows

doppler-workflows

github.com/terrylicaSecurity1128 installsUpdated today
Repository

About doppler-workflows

doppler-workflows is a skill for using Doppler CLI to inject and manage credentials across services. It covers publishing Python packages, AWS key rotation, multi-account patterns, and authentication troubleshooting.

Key features

  1. 01Inject credentials with Doppler CLI
  2. 02Publish Python packages to PyPI
  3. 03Rotate AWS access keys
  4. 04Manage credentials across services
  5. 05Troubleshoot authentication failures

Use cases

  1. 01Run a PyPI publish command with injected credentials
  2. 02Rotate AWS keys and update Doppler
  3. 03Diagnose a 403 or invalid AWS token
  4. 04Bind a project directory to a Doppler config

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/terrylica/cc-skills --skill doppler-workflows

After installing, type/doppler-workflowsin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AWS_SPECIFICATION.yaml
AWS_WORKFLOW.md
PYPI_REFERENCE.yaml
references/
aws-credentials.md
evolution-log.md
multi-service-patterns.md
pypi-publishing.md

Details

From the project README

Doppler Credential Workflows

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.

When to Use This Skill

Use this skill when:

  • Publishing Python packages to PyPI
  • Rotating AWS access keys
  • Managing credentials across multiple services
  • Troubleshooting authentication failures (403, InvalidClientTokenId)
  • Setting up Doppler credential injection patterns
  • Multi-token/multi-account strategies

Quick Reference

Core Pattern: Doppler CLI

Standard Usage:

doppler run --project <project> --config <config> --command='<command>'

Why --command flag:

  • Official Doppler pattern (auto-detects shell)
  • Ensures variables expand AFTER Doppler injects them
  • Without it: shell expands $VAR before Doppler runs → empty string

Quick Start Examples

PyPI Publishing
doppler run --project private-config --config dev \
  --command='uv publish --token "$PYPI_TOKEN"'
AWS Operations
doppler run --project aws-credentials --config dev \
  --command='aws s3 ls --region $AWS_DEFAULT_REGION'

Best Practices

  1. Always use --command flag for credential injection
  2. Use project-scoped tokens (PyPI) for better security
  3. Rotate credentials regularly (90 days recommended)
  4. Document with Doppler notes: doppler secrets notes set <SECRET> "<note>"
  5. Use stdin for storing secrets: echo -n 'secret' | doppler secrets set
  6. Test injection before using: echo ${#VAR} to verify length
  7. Multi-token naming: SERVICE_TOKEN_{ABBREV} for clarity

Reference Documentation

For detailed information, see:

Bundled Specifications:

  • PYPI_REFERENCE.yaml - Complete PyPI spec
  • AWS_SPECIFICATION.yaml - AWS credential architecture

Local Development: Directory-Scoped Doppler Config

For local development, bind the project directory to its Doppler project/config once, then scope each command with doppler run:

cd ~/project && doppler setup --project private-config --config prd --no-interactive
doppler run -- COMMAND   # secrets such as PYPI_TOKEN exist for this command only

For a value needed across several commands in one shell, export it explicitly: export PYPI_TOKEN="$(doppler secrets get PYPI_TOKEN --plain)".

Do NOT inject GitHub tokens this way (ADR 2026-06-21). GitHub multi-account auth is driven by the repo's origin host-alias ([email protected]<account>:…). A token resolves fresh per-repo via ~/.claude/tools/bin/gh-token-for-repo; an ambient GH_TOKEN outranks the isolated gh profile and 401s after a rotation. The .secrets/gh-token-* files are deleted.


PyPI Publishing Policy

For PyPI publishing, see pypi-doppler skill for LOCAL-ONLY workspace policy.

Do NOT configure PyPI publishing in GitHub Actions or CI/CD pipelines.


Troubleshooting

IssueCauseSolution
403 on PyPI publishToken expired or wrong scopeRegenerate project-scoped token, update in Doppler
InvalidClientTokenId (AWS)Access key rotated or deletedRun AWS key rotation workflow, update Doppler
Variable expands emptyUsing $VAR without --commandAlways use --command='...$VAR...' pattern
Doppler CLI not foundNot installedbrew install dopplerhq/cli/doppler
Wrong config selectedAmbiguous project/configSpecify both --project and --config explicitly
Wrong project picked upDirectory not bound or bound wronglydoppler configure to inspect; re-run doppler setup
Secret retrieval slowOne doppler secrets get per callFetch once per shell with export VAR="$(doppler secrets get VAR --plain)"
Token length mismatchCopied with extra whitespaceTrim token: echo -n 'secret' | doppler secrets set

Post-Execution Reflection

After this skill completes, check before closing:

  1. Did the command succeed? — If not, fix the instruction or error table that caused the failure.
  2. Did parameters or output change? — If the underlying tool's interface drifted, update Usage examples and Parameters table to match.
  3. Was a workaround needed? — If you had to improvise (different flags, extra steps), update this SKILL.md so the next invocation doesn't need the same workaround.

Only update if the issue is real and reproducible — not speculative.

Comments

Markdown supported