askill
find-credential-usage

find-credential-usageSafety 75Repository

Search your entire system to find all instances where a specific API key, token, or credential has been used or stored. Use this skill when the user asks to locate, audit, or track where a credential appears across files, environment variables, configuration files, logs, or shell history. Helps identify security risks and credential exposure.

0 stars
1.2k downloads
Updated 2/20/2026

Package Files

Loading files...
SKILL.md

Find Credential Usage

Input Parameters

ParameterRequiredDescriptionExample
credential_to_searchYesThe API key, token, password, or credential string to search forsk-svcacct-2HXNWxbX0cap
search_scopeNofull (entire home directory), projects (Code/Herd only), or critical (.env and config files only)full

Procedure

  1. Ask for the credential to search if not provided

  2. Search each location and collect results:

    # Environment variables
    env | grep -i "{{SEARCH_TERM}}"
    
    # Shell profiles
    grep -r "{{SEARCH_TERM}}" ~/.zshrc ~/.bashrc ~/.bash_profile ~/.profile ~/.zprofile 2>/dev/null
    
    # Shell history
    history | grep -i "{{SEARCH_TERM}}"
    
    # .env files (home directory, 3 levels deep)
    cd ~ && find . -maxdepth 3 -type f -name "*.env*" -exec grep -l "{{SEARCH_TERM}}" {} \; 2>/dev/null
    
    # Project directories
    grep -r "{{SEARCH_TERM}}" ~/Code ~/Herd 2>/dev/null | head -50
    
    # macOS Keychain
    security find-generic-password -w -s "{{SEARCH_TERM}}" 2>/dev/null || echo "Not found in Keychain"
    
  3. Compile results into a markdown report organized by location type (env vars, shell profiles, .env files, keychain, project files)

  4. Display a summary with total instance count and file paths

Notes

  • Search runs locally — credentials are not transmitted externally
  • Results may include sensitive information; handle the generated report carefully
  • Large searches may take several minutes
  • Shell history is unsearchable if history logging is disabled

Example

find all instances where I have used this API key across my system
where is this token stored on my machine
audit where this API key appears in my files
check if this credential is exposed anywhere on my system
scan my projects and config files for this secret

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

83/100Analyzed 2/24/2026

Well-structured skill with clear procedure and comprehensive search locations. Includes useful tags and clear description. Minor issues: inconsistent placeholder names (credential_to_search vs SEARCH_TERM), macOS-only Keychain support, and lacks explicit guidance on safely handling sensitive results. Bonus rules applied for when-to-use section, structured steps, tags, and being in a dedicated skills folder.

75
90
80
85
85

Metadata

Licenseunknown
Version-
Updated2/20/2026
Publisherdalehurley

Tags

apici-cdobservabilitysecurity