get-secret
Retrieve and decrypt secrets from the local encrypted credential store (~/.get_vars.json). Use when the user needs to access stored credentials, API keys, passwords, or other secrets that have been exported from 1Password. This reads from the encrypted JSON file created by the get_vars.sh script.
What this skill does
# Get Secret
Retrieve and decrypt secrets from the local encrypted credential store.
## Prerequisites
1. **GET_VARS_ENCRYPTION_KEY environment variable** - Must be set to decrypt values
2. **Encrypted store file** - Must exist at `~/.get_vars.json` (created by `scripts/get_vars.sh`)
3. **Required tools** - `jq` and `openssl` must be available
## How It Works
This skill reads the encrypted JSON file at `~/.get_vars.json` and decrypts specific secrets using the `GET_VARS_ENCRYPTION_KEY` environment variable. The file contains items exported from 1Password with all sensitive values encrypted using AES-256-CBC.
## Common Operations
### Search for Available Secrets
Before retrieving a secret, you can search for available items:
```bash
# List all items with titles and categories
jq -r '.items[] | "\(.title) (\(.category))"' ~/.get_vars.json
# Search for items by title
jq -r '.items[] | select(.title | contains("GitHub")) | "\(.title) - \(.category)"' ~/.get_vars.json
# List items by category
jq -r '.items[] | select(.category == "LOGIN") | .title' ~/.get_vars.json
```
### Retrieve and Decrypt a Secret
To get a decrypted secret value:
```bash
# Get a specific field from an item by title and field label
encrypted_value=$(jq -r '.items[] | select(.title=="GitHub Token") | .fields[] | select(.label=="password") | .encrypted_value' ~/.get_vars.json)
echo "$encrypted_value" | openssl enc -aes-256-cbc -d -a -pbkdf2 -pass pass:"$GET_VARS_ENCRYPTION_KEY"
```
### Common Patterns
**Get username and password from a login:**
```bash
# Get username
encrypted_username=$(jq -r '.items[] | select(.title=="Service Name") | .fields[] | select(.label=="username") | .encrypted_value' ~/.get_vars.json)
username=$(echo "$encrypted_username" | openssl enc -aes-256-cbc -d -a -pbkdf2 -pass pass:"$GET_VARS_ENCRYPTION_KEY")
# Get password
encrypted_password=$(jq -r '.items[] | select(.title=="Service Name") | .fields[] | select(.label=="password") | .encrypted_value' ~/.get_vars.json)
password=$(echo "$encrypted_password" | openssl enc -aes-256-cbc -d -a -pbkdf2 -pass pass:"$GET_VARS_ENCRYPTION_KEY")
```
**Get API credential:**
```bash
encrypted_api_key=$(jq -r '.items[] | select(.title=="Service API") | .fields[] | select(.label=="credential") | .encrypted_value' ~/.get_vars.json)
api_key=$(echo "$encrypted_api_key" | openssl enc -aes-256-cbc -d -a -pbkdf2 -pass pass:"$GET_VARS_ENCRYPTION_KEY")
```
**Get secret by category:**
```bash
# Get all API credentials
jq -r '.items[] | select(.category=="API CREDENTIAL") | .title' ~/.get_vars.json
```
### Helper Function
For repeated use, create a helper function:
```bash
get_secret() {
local item_title="$1"
local field_label="$2"
local encrypted_value=$(jq -r --arg title "$item_title" --arg label "$field_label" \
'.items[] | select(.title==$title) | .fields[] | select(.label==$label) | .encrypted_value' \
~/.get_vars.json)
if [[ -z "$encrypted_value" ]] || [[ "$encrypted_value" == "null" ]]; then
echo "Error: Secret not found: $item_title / $field_label" >&2
return 1
fi
echo "$encrypted_value" | openssl enc -aes-256-cbc -d -a -pbkdf2 -pass pass:"$GET_VARS_ENCRYPTION_KEY"
}
# Usage
password=$(get_secret "GitHub Token" "password")
api_key=$(get_secret "Service API" "credential")
```
## Workflow
When a user asks for a secret:
1. **Check prerequisites**:
- Verify `GET_VARS_ENCRYPTION_KEY` is set
- Verify `~/.get_vars.json` exists
- Verify `jq` and `openssl` are available
2. **Search for the item**:
- Use `jq` to list available items if needed
- Help the user identify the correct item title
3. **Identify the field**:
- Common field labels: `username`, `password`, `credential`, `api_key`, `token`
- Use `jq` to list fields for an item if needed
4. **Decrypt and provide**:
- Extract the encrypted value with `jq`
- Decrypt with `openssl`
- Provide the decrypted value to the user
## JSON Structure
The encrypted store has this structure:
```json
{
"exported_at": "2026-05-23T02:36:50Z",
"vault": "Personal",
"item_count": 5,
"items": [
{
"id": "abc123",
"title": "GitHub Token",
"category": "LOGIN",
"tags": "agents,automation",
"fields": [
{
"label": "username",
"type": "STRING",
"encrypted_value": "U2FsdGVkX1..."
},
{
"label": "password",
"type": "CONCEALED",
"encrypted_value": "U2FsdGVkX1..."
}
]
}
]
}
```
## Error Handling
### Encryption key not set
```bash
if [[ -z "${GET_VARS_ENCRYPTION_KEY:-}" ]]; then
echo "Error: GET_VARS_ENCRYPTION_KEY environment variable not set"
exit 1
fi
```
### File not found
```bash
if [[ ! -f ~/.get_vars.json ]]; then
echo "Error: Encrypted store not found at ~/.get_vars.json"
echo "Run scripts/get_vars.sh to create it"
exit 1
fi
```
### Secret not found
If `jq` returns `null` or empty string, the item or field doesn't exist. Help the user search for the correct item name.
### Decryption failure
If `openssl` fails, the encryption key is likely incorrect:
```bash
# Test decryption
if ! echo "$encrypted_value" | openssl enc -aes-256-cbc -d -a -pbkdf2 -pass pass:"$GET_VARS_ENCRYPTION_KEY" &> /dev/null; then
echo "Error: Failed to decrypt - check GET_VARS_ENCRYPTION_KEY"
exit 1
fi
```
## Categories Reference
Common 1Password categories you'll see:
- `LOGIN` - Username/password combinations
- `PASSWORD` - Simple passwords
- `API CREDENTIAL` - API keys and tokens
- `SECURE NOTE` - Secure notes with custom fields
- `DATABASE` - Database credentials
- `SERVER` - Server credentials
- `CREDIT CARD` - Credit card information
- `BANK ACCOUNT` - Bank account details
## Security Notes
1. **Never log or display decrypted values** - Handle them in memory only
2. **Clear variables after use** - `unset` sensitive variables when done
3. **Avoid writing to disk** - Don't save decrypted values to files
4. **Protect the encryption key** - Keep `GET_VARS_ENCRYPTION_KEY` secure
## Best Practices
1. **Always verify prerequisites** before attempting to decrypt
2. **Search first** if you're unsure of the exact item title
3. **Use exact matches** - Item titles and field labels are case-sensitive
4. **Handle errors gracefully** - Check for null/empty values before decrypting
5. **Use helper functions** for repeated operations to reduce errors
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.