{
  "schemaVersion": "1.0",
  "item": {
    "slug": "api-credentials-hygiene",
    "name": "API credentials hygiene",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/KOwl64/api-credentials-hygiene",
    "canonicalUrl": "https://clawhub.ai/KOwl64/api-credentials-hygiene",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/api-credentials-hygiene",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=api-credentials-hygiene",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "assets/dotenv-template.example.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/api-credentials-hygiene"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/api-credentials-hygiene",
    "agentPageUrl": "https://openagent3.xyz/skills/api-credentials-hygiene/agent",
    "manifestUrl": "https://openagent3.xyz/skills/api-credentials-hygiene/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/api-credentials-hygiene/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "PURPOSE",
        "body": "Audits and hardens API credential handling (env vars, separation, rotation plan, least privilege, auditability)."
      },
      {
        "title": "WHEN TO USE",
        "body": "TRIGGERS:\n\nHarden the credentials setup for this integration and move secrets into env vars.\nDesign a key rotation plan for these APIs with minimal downtime.\nAudit this service for least-privilege access and document what each key can do.\nCreate an environment variable map and a secure .env template for this project.\nSet up credential separation for dev versus prod with clear audit trails.\n\n\nDO NOT USE WHEN…\n\nYou want to obtain keys without authorization or bypass security controls.\nYou need legal/compliance sign-off (this outputs technical documentation, not legal advice)."
      },
      {
        "title": "INPUTS",
        "body": "REQUIRED:\n\nList of integrations/APIs and where credentials are currently stored/used.\nDeployment context (local dev, server, container, n8n, etc.).\n\n\nOPTIONAL:\n\nCurrent config files/redacted snippets (.env, compose, systemd, n8n creds list).\nOrg rules (rotation intervals, secret manager preference).\n\n\nEXAMPLES:\n\n“Keys are hard-coded in a Node script and an n8n HTTP Request node.”\n“We have dev and prod n8n instances and need separation.”"
      },
      {
        "title": "OUTPUTS",
        "body": "Credential map (service → env vars → scopes/permissions → owner → rotation cadence).\nRotation runbook (steps + rollback).\nLeast-privilege checklist and audit log plan.\nOptional: .env template (placeholders only).\nSuccess = no secrets committed or embedded, permissions minimized, rotation steps documented, and auditability defined."
      },
      {
        "title": "WORKFLOW",
        "body": "Inventory credentials:\n\nwhere stored, where used, and who owns them.\n\n\nDefine separation:\n\ndev vs prod; human vs service accounts; per-integration boundaries.\n\n\nMove secrets to env vars / secret manager references:\n\ncreate an env var map and update config plan (no raw keys in code/workflows).\n\n\nLeast privilege:\n\nfor each API, enumerate required actions and reduce scopes/roles accordingly.\n\n\nRotation plan:\n\ndual-key overlap if supported; steps to rotate with minimal downtime; rollback.\n\n\nAuditability:\n\ndefine what events are logged (auth failures, token refresh, key use where available).\n\n\nSTOP AND ASK THE USER if:\n\nrequired operations are unknown,\nsecret injection method is unclear,\nrotation cadence/owners are unspecified."
      },
      {
        "title": "OUTPUT FORMAT",
        "body": "Credential map template:\n\nCREDENTIAL MAP\n- Integration: <name>\n  - Env vars:\n    - <VAR_NAME>: <purpose> (secret/non-secret)\n  - Permissions/scopes: <list>\n  - Used by: <service/workflow>\n  - Storage: <secret manager/env var>\n  - Rotation: <cadence> | <owner> | <procedure>\n  - Audit: <what is logged and where>\n\nIf providing a template, output assets/dotenv-template.example with placeholders only."
      },
      {
        "title": "SAFETY & EDGE CASES",
        "body": "Never output real secrets, tokens, or private keys. Use placeholders.\nRead-only by default; propose changes as a plan unless explicitly asked to modify files.\nAvoid over-broad scopes/roles unless justified by a documented requirement."
      },
      {
        "title": "EXAMPLES",
        "body": "Input: “n8n HTTP nodes contain API keys.”\nOutput: Env var map + plan to move to n8n credentials/env vars + rotation runbook.\n\n\nInput: “Need dev vs prod separation.”\nOutput: Two env maps + naming scheme + access boundary checklist."
      }
    ],
    "body": "API credentials hygiene: env vars, rotation, least privilege, auditability\nPURPOSE\n\nAudits and hardens API credential handling (env vars, separation, rotation plan, least privilege, auditability).\n\nWHEN TO USE\nTRIGGERS:\nHarden the credentials setup for this integration and move secrets into env vars.\nDesign a key rotation plan for these APIs with minimal downtime.\nAudit this service for least-privilege access and document what each key can do.\nCreate an environment variable map and a secure .env template for this project.\nSet up credential separation for dev versus prod with clear audit trails.\nDO NOT USE WHEN…\nYou want to obtain keys without authorization or bypass security controls.\nYou need legal/compliance sign-off (this outputs technical documentation, not legal advice).\nINPUTS\nREQUIRED:\nList of integrations/APIs and where credentials are currently stored/used.\nDeployment context (local dev, server, container, n8n, etc.).\nOPTIONAL:\nCurrent config files/redacted snippets (.env, compose, systemd, n8n creds list).\nOrg rules (rotation intervals, secret manager preference).\nEXAMPLES:\n“Keys are hard-coded in a Node script and an n8n HTTP Request node.”\n“We have dev and prod n8n instances and need separation.”\nOUTPUTS\nCredential map (service → env vars → scopes/permissions → owner → rotation cadence).\nRotation runbook (steps + rollback).\nLeast-privilege checklist and audit log plan.\nOptional: .env template (placeholders only). Success = no secrets committed or embedded, permissions minimized, rotation steps documented, and auditability defined.\nWORKFLOW\nInventory credentials:\nwhere stored, where used, and who owns them.\nDefine separation:\ndev vs prod; human vs service accounts; per-integration boundaries.\nMove secrets to env vars / secret manager references:\ncreate an env var map and update config plan (no raw keys in code/workflows).\nLeast privilege:\nfor each API, enumerate required actions and reduce scopes/roles accordingly.\nRotation plan:\ndual-key overlap if supported; steps to rotate with minimal downtime; rollback.\nAuditability:\ndefine what events are logged (auth failures, token refresh, key use where available).\nSTOP AND ASK THE USER if:\nrequired operations are unknown,\nsecret injection method is unclear,\nrotation cadence/owners are unspecified.\nOUTPUT FORMAT\n\nCredential map template:\n\nCREDENTIAL MAP\n- Integration: <name>\n  - Env vars:\n    - <VAR_NAME>: <purpose> (secret/non-secret)\n  - Permissions/scopes: <list>\n  - Used by: <service/workflow>\n  - Storage: <secret manager/env var>\n  - Rotation: <cadence> | <owner> | <procedure>\n  - Audit: <what is logged and where>\n\n\nIf providing a template, output assets/dotenv-template.example with placeholders only.\n\nSAFETY & EDGE CASES\nNever output real secrets, tokens, or private keys. Use placeholders.\nRead-only by default; propose changes as a plan unless explicitly asked to modify files.\nAvoid over-broad scopes/roles unless justified by a documented requirement.\nEXAMPLES\n\nInput: “n8n HTTP nodes contain API keys.”\nOutput: Env var map + plan to move to n8n credentials/env vars + rotation runbook.\n\nInput: “Need dev vs prod separation.”\nOutput: Two env maps + naming scheme + access boundary checklist."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/KOwl64/api-credentials-hygiene",
    "publisherUrl": "https://clawhub.ai/KOwl64/api-credentials-hygiene",
    "owner": "KOwl64",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/api-credentials-hygiene",
    "downloadUrl": "https://openagent3.xyz/downloads/api-credentials-hygiene",
    "agentUrl": "https://openagent3.xyz/skills/api-credentials-hygiene/agent",
    "manifestUrl": "https://openagent3.xyz/skills/api-credentials-hygiene/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/api-credentials-hygiene/agent.md"
  }
}