secrets-validate
Validate credentials without exposing them
- License 许可
- MIT
- 所属仓库
- cooneycw/skillc
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- secrets-validate
- description
- Validate credentials without exposing them
03 SKILL.md 正文
<!-- GENERATED by claude-power-pack - scripts/codex-skill-sync.py; edit .claude/commands/secrets/validate.md instead -->
Validate Credentials
Test that credentials are configured and accessible without displaying actual values.
Usage
/secrets-validate [--env] [--aws] [--db]
Options
--env- Validate environment variables (DB_HOST, DB_USER, etc.)--aws- Validate AWS credentials (test sts:GetCallerIdentity)--db- Test database connection- (default) - Run all validations
Checks Performed
Environment (--env)
- DB_HOST is set
- DB_USER is set
- DB_PASSWORD is set (shown as ****)
- DB_NAME is set
- .env file exists
AWS (--aws)
- AWS_ACCESS_KEY_ID is set (shows first 4 chars)
- AWS_SECRET_ACCESS_KEY is set (shown as ****)
- AWS_DEFAULT_REGION is set
- Credentials are valid (via aws sts get-caller-identity)
Database (--db)
- Credentials load successfully
- PostgreSQL connection works (if psql available)
Example Output
=== Environment Variables ===
✓ DB_HOST is set: localhost
✓ DB_USER is set: developer
✓ DB_PASSWORD is set: ****
✓ DB_NAME is set: myapp_dev
✓ .env file exists
=== AWS Credentials ===
✓ AWS_ACCESS_KEY_ID is set: AKIA...
✓ AWS_SECRET_ACCESS_KEY is set: ****
✓ AWS_DEFAULT_REGION: us-east-1
✓ AWS credentials valid: arn:aws:iam::123456789:user/developer
=== Database Connection ===
✓ Credentials loaded: postgresql://developer:****@localhost:5432/myapp_dev
✓ Database connection successful
Run Command
PYTHONPATH="${HOME}/Projects/claude-power-pack" uv run --project "${HOME}/Projects/claude-power-pack" python -m lib.creds validate "$@"
04 同仓库更多 Skills
tiny-check
Run the tiny project check
tiny-check
A synthetic gate selection fixture.
flow-check
Use when you are asked to run a project's quality checks (tests, lint, type checks, security scan): runs them in one step and reports what failed, without committing.
flow-check
Use when you are asked to run a project's quality checks (tests, lint, type checks, security scan): runs them in one step and reports what failed, without committing.
flow-check
Use when you are asked to run a project's quality checks (tests, lint, type checks, security scan): runs them in one step and reports what failed, without committing.
flow-check
Use when you are asked to run a project's quality checks (tests, lint, type checks, security scan): runs them in one step and reports what failed, without committing.