zcodium-project/zcodium-community-famous-plugins-and-skills/secret
Claude Code and agent skill by zcodium-project/zcodium-community-famous-plugins-and-skills
- community
Checking that the SKILL.md file is still in the repository.
List, set, delete, or synchronize GitHub Actions repository secrets without exposing secret values. Use when the user explicitly wants to manage GitHub secret storage, not ordinary environment files or repository variables.
Install
npx vskill@latest install zcodium-project/zcodium-community-famous-plugins-and-skills/secretSKILL.md
The same SKILL.md was published earlier as zai-org/zcode-plugins/secret.
Repository Secrets
Manage repository secrets for GitHub Actions using the GitHub CLI (gh).
Arguments
$ARGUMENTS
Format: [action] [args...]
list- List secrets (names only, values are hidden)set <name>- Set a secretdelete <name>- Delete a secretsync- Sync secrets from .env file
Examples
Instructions
Required GitHub CLI preflight
Before any workflow step, read ../../references/github-cli-preflight.md and complete it. Do not run workflow commands until gh installation and authentication are verified.
List Secrets
Format output:
Note: Secret values are never displayed.
Set Secret
- Never accept or request a raw secret value in chat or command arguments.
Ask the user for the name of an existing environment variable or a local file that already contains the value. Never print either value.
- Validate secret name:
- Must start with letter or underscore
- Can only contain alphanumeric and underscores
- Cannot start with GITHUB_ prefix
- Set the secret without putting its value in argv:
Show the verified repository and secret name and require explicit confirmation before reading or submitting the value. Then run: ```bash # From an existing environment variable (do not echo the value) secret_env_name="<ENV_VAR_NAME>" printenv "$secret_env_name" | gh secret set <name>
# From file gh secret set <name> < secret.txt ```
- Confirm:
`` Secret 'API_KEY' has been set. ``
Delete Secret
- Require explicit confirmation: Show the verified repository and secret
name. Do not delete until the user confirms that exact target.
- Delete:
``bash gh secret delete <name> ``
- Confirm deletion:
`` Secret 'OLD_SECRET' has been deleted. ``
Sync from .env File
- Validate the path without printing file contents. Never run
caton a
secrets file. Resolve the requested path, require a regular non-symlink file, and reject device files, directories, and paths outside the intended workspace unless the user explicitly selected them.
- Generate an exact preview: Locate the bundled
../../scripts/secret_sync.py relative to this Skill's installed directory. Its preview and apply commands share one parser and reject duplicate, multiline, ambiguous, symlink, or non-regular inputs. It prints names only. ``bash python3 <plugin_root>/scripts/secret_sync.py preview --file "$secret_file" ` Record the SHA256 value printed to stderr as <preview_sha256>`. This digest binds the later import to the exact file the user reviewed.
- Show preview: Compare the exact names with
gh secret listif the user
needs new/existing status. Never claim per-name created/updated results unless that comparison was actually performed. ``` Will sync the following secrets:
- API_KEY (new)
- DATABASE_URL (update)
- CACHE_HOST (new)
Continue? [y/N] ```
- Require final confirmation: Show the verified repository, source path,
and exact secret names. Do not show values. Import only after explicit confirmation.
- Import the same validated file: Pass the verified repository explicitly.
The helper sends each value to gh secret set through stdin, never argv. ``bash python3 <plugin_root>/scripts/secret_sync.py apply \ --file "$secret_file" \ --repo "<host>/<owner>/<repo>" \ --expect-sha256 <preview_sha256> `` If the file changed after preview, the helper stops and requires a new preview and confirmation.
- Report only verified results:
``` Synced 3 secrets from .env.production Names submitted:
- API_KEY
- DATABASE_URL
- CACHE_HOST
```
Environment Secrets
For organization-level or environment-specific secrets:
Security Notes
- NEVER echo or log secret values
- NEVER put secret values in command arguments
- NEVER commit secrets to the repository
- Recommend using
.env.examplewith placeholder values - Secrets are encrypted and only exposed to workflows
Error Handling
- If not in repo: "Error: Not in a git repository"
- If no write access: "Error: You don't have permission to manage secrets"
- If secret not found: "Error: Secret '<name>' not found"
- If invalid name: "Error: Secret name must start with letter/underscore and contain only alphanumeric/underscores"
Important
- This manages repository secrets, not environment variables
- For environment-specific secrets, use
--env <environment> - Changes take effect on next workflow run
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingzcodium-plugins/github/skills/secret/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zcodium-project/zcodium-community-famous-plugins-and-skills/secret)