ops-credentials

GitHub

审计集成凭据配置状态,扫描环境变量、配置文件及密钥库,报告已配置与缺失项。支持按服务筛选、导出JSON及引导配置缺失服务,保障凭据安全展示。

claude-ops/skills/ops-credentials/SKILL.md Lifecycle-Innovations-Limited/claude-ops

Trigger Scenarios

用户询问当前有哪些集成凭据已配置 用户需要检查哪些服务尚未设置密钥 用户希望导出凭据审计报告

Install

npx skills add Lifecycle-Innovations-Limited/claude-ops --skill ops-credentials -g -y
More Options

Non-standard path

npx skills add https://github.com/Lifecycle-Innovations-Limited/claude-ops/tree/main/claude-ops/skills/ops-credentials -g -y

Use without installing

npx skills use Lifecycle-Innovations-Limited/claude-ops@ops-credentials

指定 Agent (Claude Code)

npx skills add Lifecycle-Innovations-Limited/claude-ops --skill ops-credentials -a claude-code -g -y

安装 repo 全部 skill

npx skills add Lifecycle-Innovations-Limited/claude-ops --all -g -y

预览 repo 内 skill

npx skills add Lifecycle-Innovations-Limited/claude-ops --list

SKILL.md

Frontmatter
{
    "name": "ops-credentials",
    "effort": "low",
    "maxTurns": 5,
    "description": "Audit which integration credentials are configured. Scans shell env, ops preferences.json, Doppler, macOS Keychain, and Dashlane to report a configured-vs-missing table per service. Never displays raw values — always masks as first6•••last4. Use when you want to see which integrations have keys set up and which still need \/ops:setup.",
    "allowed-tools": [
        "Bash",
        "Read",
        "AskUserQuestion"
    ],
    "argument-hint": "[--service <name>] [--json]"
}

OPS ► CREDENTIALS

CLI/API Reference

Command Output
bin/ops-credentials Human table — configured + missing per service
bin/ops-credentials --json JSON array, one entry per credential
bin/ops-credentials --service stripe Filter to one integration

The bin script is the source of truth. It scans these sources in order and reports the FIRST hit per credential:

  1. Shell env ($STRIPE_SECRET_KEY, etc.)
  2. $OPS_DATA_DIR/preferences.json (.revenue.stripe.secret_key, etc., including doppler:KEY references that get resolved live)
  3. macOS Keychain (security find-generic-password -s <name> -w)
  4. Dashlane (dcli password <keyword> --output json)

Values shorter than 12 chars print as •••; longer values print as first6•••last4.

Your task

When the user runs /ops:credentials:

  1. Run bin/ops-credentials and present the output verbatim — it's already formatted for the user's terminal (compact mode for SSH/mobile, table layout otherwise).

  2. Offer follow-ups via AskUserQuestion (max 4 options per Rule 1):

What would you like to do next?
  [Configure a missing service — pick one to set up now]
  [Re-audit a specific service]
  [Export to JSON]
  [Done]
  1. On "Configure missing": list missing services 4-at-a-time via AskUserQuestion. For each pick, call the /ops:setup <service> skill.

  2. On "Re-audit specific": ask for the service name and run bin/ops-credentials --service <name>.

  3. On "Export to JSON": run bin/ops-credentials --json and write the result to /tmp/ops-credentials-audit-$(date +%s).json. Print the path.

Why this skill exists

Claude Code's plugin settings UI cannot introspect external credential stores. If a user has STRIPE_SECRET_KEY in macOS Keychain or klaviyo_api_key in Doppler, the settings panel shows those fields as empty (because the value isn't stored in Claude Code's user-config). The user can't tell at a glance which integrations they've already wired up.

/ops:credentials solves that — one command, one table, complete picture of which integrations are ready to use vs which still need /ops:setup.

Homey Pro (Home Automation)

Field Value
Service name Homey Pro
Category Home Automation
Keys HOMEY_LOCAL_URL, HOMEY_LOCAL_TOKEN, HOMEY_CLOUD_TOKEN, HOMEY_ID
Storage $PREFS_PATH.home_automation.homey_local_url, .homey_local_token, .homey_cloud_token, .homey_id
Required HOMEY_LOCAL_URL, HOMEY_LOCAL_TOKEN
Optional HOMEY_CLOUD_TOKEN (off-LAN fallback), HOMEY_ID (cloud API only)

Rotation: Revoke the current token at https://my.homey.app/manager/tokens, generate a new one, then rerun /ops:setup --section home to save the replacement.


Privacy guarantees

  • Never prints raw values. All output is masked.
  • Never copies values to disk. Reads happen in-process; the JSON export contains only {service, label, configured, masked, source}, never the raw secret.
  • Read-only. Does not write to keychain, Doppler, or preferences.

Mobile / SSH (Rule 7)

When $SSH_CONNECTION / $SSH_CLIENT / $SSH_TTY is set or $OPS_MOBILE=1, the bin script auto-switches to compact one-line-per-cred format. Skill output should pass it through unchanged.

Version History

  • 64bad13 Current 2026-08-12 09:00

Same Skill Collection

claude-ops/skills/boss/SKILL.md
claude-ops/skills/flow/SKILL.md
claude-ops/skills/ledger/SKILL.md
claude-ops/skills/ops-accounts/SKILL.md
claude-ops/skills/ops-ar/SKILL.md
claude-ops/skills/ops-aws-audit/SKILL.md
claude-ops/skills/ops-comms/SKILL.md
claude-ops/skills/ops-competitors/SKILL.md
claude-ops/skills/ops-daemon/SKILL.md
claude-ops/skills/ops-dash/SKILL.md
claude-ops/skills/ops-deploy-fix/SKILL.md
claude-ops/skills/ops-deploy/SKILL.md
claude-ops/skills/ops-desktop/SKILL.md
claude-ops/skills/ops-doctor/SKILL.md
claude-ops/skills/ops-ecom/SKILL.md
claude-ops/skills/ops-feature-dev/SKILL.md
claude-ops/skills/ops-fires/SKILL.md
claude-ops/skills/ops-fleet/SKILL.md
claude-ops/skills/ops-go/SKILL.md
claude-ops/skills/ops-gtm/SKILL.md
claude-ops/skills/ops-home/SKILL.md
claude-ops/skills/ops-inbox/SKILL.md
claude-ops/skills/ops-integrate/SKILL.md
claude-ops/skills/ops-leadgen/SKILL.md
claude-ops/skills/ops-linear/SKILL.md
claude-ops/skills/ops-mac/SKILL.md
claude-ops/skills/ops-marketing/SKILL.md
claude-ops/skills/ops-mcp/SKILL.md
claude-ops/skills/ops-merge/SKILL.md
claude-ops/skills/ops-monitor/SKILL.md
claude-ops/skills/ops-next/SKILL.md
claude-ops/skills/ops-orchestrate/SKILL.md
claude-ops/skills/ops-package/SKILL.md
claude-ops/skills/ops-pocket/SKILL.md
claude-ops/skills/ops-projects/SKILL.md
claude-ops/skills/ops-recap/SKILL.md
claude-ops/skills/ops-release/SKILL.md
claude-ops/skills/ops-resume/SKILL.md
claude-ops/skills/ops-revenue/SKILL.md
claude-ops/skills/ops-rotate-setup/SKILL.md
claude-ops/skills/ops-rotate/SKILL.md
claude-ops/skills/ops-secret-sync/SKILL.md
claude-ops/skills/ops-settings/SKILL.md
claude-ops/skills/ops-ship/SKILL.md
claude-ops/skills/ops-speedup/SKILL.md
claude-ops/skills/ops-status/SKILL.md
claude-ops/skills/ops-triage/SKILL.md
claude-ops/skills/ops-unifi/SKILL.md
claude-ops/skills/ops-update/SKILL.md

Metadata

Files
0
Version
2dbf8cb
Hash
eb624831
Indexed
2026-08-12 09:00

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-12 23:51
浙ICP备14020137号-1 $Гость$