bashrc-credential-guard
Always check ~/.bashrc for credentials, API keys, passwords, and configuration values before asking user
What this skill does
# Bashrc Credential Guard ## Purpose Guide Claude to always check `~/.bashrc` for any credentials, API keys, passwords, GCP projects, and configuration values BEFORE asking the user or looking elsewhere. ## Trigger phrases - Questions about API credentials, passwords, or secrets - Requests for deployment environment setup or configuration - Missing environment variables or credentials - GCP project configuration - Email credentials or SMTP settings - Any credential or configuration lookup ## Mandatory Protocol ๐ **ALWAYS CHECK ~/.bashrc FIRST**: โ ๏ธ MANDATORY - BEFORE asking user or looking elsewhere - Read `~/.bashrc` using the Read tool to find exported values - Common patterns to search for: - `export API_KEY="..."` - `export EMAIL_USER="..."` - `export EMAIL_PASS="..."` - `export PASSWORD="..."` - `export GCP_PROJECT="..."` - `export GEMINI_API_KEY="..."` - `export GITHUB_TOKEN="..."` - Any `export VAR_NAME="value"` pattern ## Configuration Sources (Priority Order) 1. **~/.bashrc** - PRIMARY SOURCE (check FIRST, ALWAYS) 2. `.env` files - Secondary for local development 3. Platform secret managers - GitHub Secrets, GCP Secret Manager 4. User input - LAST RESORT (only if not found in bashrc) ## Common Use Cases ### 1. API Keys and Credentials ```bash # Read ~/.bashrc to find: export GEMINI_API_KEY="AIzaSy..." export ANTHROPIC_API_KEY="sk-ant-..." export GITHUB_TOKEN="ghp_..." ``` ### 2. Email Configuration ```bash # Read ~/.bashrc to find: export EMAIL_USER="[email protected]" export EMAIL_PASS="app-password-here" ``` ### 3. GCP Project Configuration ```bash # Read ~/.bashrc to find: export GCP_PROJECT="worldai" export GCP_REGION="us-central1" ``` ### 4. Database and Service URLs ```bash # Read ~/.bashrc to find: export DATABASE_URL="postgresql://..." export REDIS_URL="redis://..." ``` ## Security Best Practices ### Never Commit Secrets - Never commit real keys to git repositories - Store them in `~/.bashrc` (gitignored by default) - Reference `.env.example` for required variables without actual values ### Use Bashrc Values for CI/CD - When setting GitHub Secrets, use values from `~/.bashrc` - When configuring GCP Secret Manager, source from `~/.bashrc` - When updating environment variables, check `~/.bashrc` first ### Offer Redacted Examples - When showing credential examples, redact sensitive parts - Example: `export API_KEY="AIzaSy...XXX"` (showing only prefix) ## Troubleshooting Flow 1. **Missing Credential Error** - FIRST: Read `~/.bashrc` to check if credential exists - Check pattern: `grep CREDENTIAL_NAME ~/.bashrc` - If found: Use the value from bashrc - If not found: Ask user to add it to bashrc 2. **Configuration Mismatch** - FIRST: Read `~/.bashrc` for the canonical value - Compare with current configuration - Update configuration to match bashrc value 3. **Deployment Failures** - FIRST: Read `~/.bashrc` to verify all required credentials - Check if CI/CD secrets match bashrc values - Update secrets if they differ from bashrc ## Response Structure 1. Acknowledge the need for credentials/configuration 2. Read `~/.bashrc` FIRST to check for existing values 3. If found: Use the values from bashrc 4. If not found: Guide user to add them to bashrc 5. Provide commands to verify the values are set correctly ## Integration with Other Systems ### GitHub Secrets - Source all secret values from `~/.bashrc` - Use `gh secret set` commands with bashrc values - Example: `gh secret set EMAIL_USER --body "$EMAIL_USER"` ### GCP Configuration - Read GCP project from `~/.bashrc` first - Use bashrc values for deployment configuration - Ensure `.github/workflows/*.yml` matches bashrc values ### Local Development - `.env` files should mirror bashrc values - Use bashrc as the single source of truth - Sync .env files with bashrc when values change ## Common Patterns in Bashrc ```bash # API Keys export GEMINI_API_KEY="AIzaSy..." export ANTHROPIC_API_KEY="sk-ant-..." export OPENAI_API_KEY="sk-..." # Email/SMTP export EMAIL_USER="[email protected]" export EMAIL_PASS="app-password" # Cloud Platforms export GCP_PROJECT="worldai" export AWS_REGION="us-east-1" # GitHub export GITHUB_TOKEN="ghp_..." export GITHUB_USER="username" # Database export DATABASE_URL="postgresql://..." export REDIS_URL="redis://..." ``` ## Remember - **~/.bashrc is the FIRST place to check** - Not the last resort - **Always read before asking** - Don't ask user for values that are in bashrc - **Verify values exist** - Use `grep` or Read tool to confirm - **Use bashrc for CI/CD** - All secrets should come from bashrc - **Single source of truth** - Bashrc is the canonical source for credentials
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.