Skip to content
Back to skills

Export Credentials

ASecurity

Securely export credentials from local credential stores without exposing them to the AI. Use this skill when the user needs to: - Add credentials to GitHub Secrets or other repository secrets - Deploy credentials to cloud development environments - Manage credentials across multiple repositories or services - Create secure configuration files without logging secrets The skill reads credentials from the user's local credential store (macOS Keychain, Linux pass, Windows Credential Manager, o...

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 22, 2026
ai-agentsrustshellbashawsazuregitapisecurity

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 22, 2026

npx -y skills add osloer-industries/vakt --skill export-credentials --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Export Credentials?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Export Credentials
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/osloer-industries-export-credentials/badge)](https://www.skillsdirectory.com/skills/osloer-industries-export-credentials)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: export-credentials
version: 0.0.1
global: true
allowed-tools: [Bash, Read, Write]
description: |
  Securely export credentials from local credential stores without exposing them to the AI.

  Use this skill when the user needs to:
  - Add credentials to GitHub Secrets or other repository secrets
  - Deploy credentials to cloud development environments
  - Manage credentials across multiple repositories or services
  - Create secure configuration files without logging secrets

  The skill reads credentials from the user's local credential store (macOS Keychain,
  Linux pass, Windows Credential Manager, or environment), auto-detects what's available,
  and generates scripts to deploy them securely. Secrets never enter the AI context —
  this is a zero-trust approach where credentials are read and used only locally.
---

# Export Credentials Securely

Manage credentials across repositories and environments without exposing them to the AI.
This skill reads from your local credential store, auto-discovers available credentials, and
generates scripts to deploy them safely.

## How it Works

1. **Read credentials locally** — Queries your credential store (Keychain, pass, Windows CM, etc.)
2. **Never expose secrets to AI** — Only credential names appear in the AI response; values stay local
3. **Generate deployment scripts** — Creates shell scripts that use credentials without exposing them
4. **Execute with approval** — Runs scripts locally on your machine; you review before execution
5. **Report results** — Confirms success/failure (✓ added X secrets) without showing values

## What You Can Do

**Add credentials to GitHub Secrets:**
```
Add my credentials to owner/repo
```

**Create a secure local .env file:**
```
Generate a .env file with my API keys (don't commit this!)
```

**Deploy credentials to a service:**
```
Set up secrets for my repository
```

## How to Use

When you ask the AI to manage credentials, tell it:

1. **What credentials** (or "all credentials" to auto-detect)
2. **Where they're stored** (or rely on defaults: Keychain on macOS, `pass` on Linux, etc.)
3. **What to do with them** (add to GitHub, create .env, deploy, etc.)

### Examples

```
"Add all my credentials from Keychain to github.com/owner/repo"
```

```
"Create a .env file with these API keys: OPENAI_API_KEY, ANTHROPIC_API_KEY"
```

```
"Deploy my credentials to owner/repo"
```

## Behind the Scenes

- Detects available credentials (queries local credential store)
- Generates Bash scripts for execution
- Shows you the script before execution for review
- Executes the script with your approval
- Reports results securely (no credential values logged or exposed)

## Security Guarantees

✓ Credentials read only by local scripts
✓ No credential values exposed to AI or logs
✓ Scripts are human-reviewable before execution
✓ Supports multiple credential stores (Keychain, pass, Windows CM, environment)
✓ Only success/failure reported back

## Supported Credential Stores

The skill auto-detects and uses:
- **macOS**: Keychain (`security` command)
- **Linux**: `pass` (password manager) or environment variables
- **Windows**: Credential Manager (`cmdkey` command)
- **Any OS**: Environment variables as fallback

## Supported Deployment Targets

- GitHub Secrets
- Local `.env` files (with security warnings)
- Future: AWS Secrets Manager, Azure Key Vault, etc.

## Pipeline Integration

Works standalone or as part of the credential skills pipeline:

1. **credential-best-practices** — Set up your credential store and profile
2. **audit-credentials** — Validate compliance, get a score
3. **export-credentials** (this skill) — Deploy only credentials that passed audit

If `~/.agents/audit-report.json` exists, credentials listed as `failed` are
automatically skipped. Use `SKIP_AUDIT=true` to bypass.

## Requirements

- **Shell**: Bash
- **Platforms**: macOS, Linux, WSL
- **Tools**: Requires `gh` CLI for GitHub operations (optional for other operations)

## Works With

This skill is AI-agnostic and works with any assistant on Unix/Linux/macOS:
- Claude (Claude.ai, Claude Code)
- OpenCode
- Gemini
- Any AI with Bash execution capability

Files in this skill

  • README.md5.1 KB
  • SKILL.md4.1 KB
  • scripts/add-to-github.sh4 KB
  • scripts/create-env.sh3.1 KB
  • scripts/detect-credentials.sh3.5 KB
  • scripts/test-credential-security.sh7.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.