Agent skill

Create Secret

by harness in harness/harness-skills

Generate Harness Secret definitions and manage secrets via MCP v2 tools.

Apache-2.0Auto-check passedDevOps & Cloud

Install Create Secret

skills CLI
$ npx skills add harness/harness-skills --skill create-secret -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install harness/harness-skills create-secret --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/harness/harness-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/create-secret .claude/skills/create-secret && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
create-secret
GitHub stars
115
Token cost
~1.7k tokens
SKILL.md length
504 words
Files
2 (incl. references)
Skills in repo
24
Repo updated
First seen
Licence
Apache-2.0

At a glance

Generate Harness Secret definitions and manage secrets via MCP v2 tools.

  • Works in 4 steps: Determine Requirements → Check for Existing Secrets → Create the Secret → …
  • Asked to create a secret
  • SKILL.md covers MCP v2 Tools Used, Secret Types, Secret Scopes and Instructions, plus 7 more sections
  • Needs DB_PASSWORD

What it does

Create Secret is an agent skill from harness/harness-skills. Generate Harness Secret definitions and manage secrets via MCP v2 tools. Supports SecretText, SecretFile, SSHKey, and WinRmCredentials types with configurable secret managers (Harness built-in, HashiCorp Vault, AWS Secrets Manager, Azure Key Vault, GCP Secret Manager). Use when asked to create a secret, store credentials, manage API keys, set up SSH keys, configure WinRM credentials, rotate secrets, or reference secrets in pipelines. Trigger phrases: create secret, secret text, secret file, SSH key, API key…

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/secret-types.md`). Compatibility notes: Requires Harness MCP v2 server (harness-mcp-v2)

It sits in DevOps & Cloud. It works with Model Context Protocol, Amazon Web Services, Azure Key Vault and Google Cloud. The repository describes itself as: A collection of structured AI agent skills that enable Claude Code, Cursor, GitHub Copilot, and other AI coding assistants to create, operate, debug, and govern Harness CI/CD… The licence is Apache-2.0.

When your agent uses it

  • Asked to create a secret
  • Store credentials
  • Manage API keys
  • Set up SSH keys

Example prompts

  • “/create-secret”

Requirements

  • Compatibility (from SKILL.md): Requires Harness MCP v2 server (harness-mcp-v2)

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Determine Requirements
  2. Check for Existing Secrets
  3. Create the Secret
  4. Verify Creation

What it can do on your machine

Read from SKILL.md and the folder at commit c25faee. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • DB_PASSWORD

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires Harness MCP v2 server (harness-mcp-v2)

    From compatibility in the SKILL.md frontmatter.

Context cost

Create Secret loads about 1.7k tokens when it runs, and up to ~2.4k if it reads all its reference files. Until then it costs about 145 tokens; SKILL.md has 504 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~145
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from harness/harness-skills at commit c25faee, republished under its Apache-2.0 licence (© harness). 504 words, ~1,729 tokens.

Download SKILL.mdSave it as .claude/skills/create-secret/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
create-secret
description
Generate Harness Secret definitions and manage secrets via MCP v2 tools. Supports SecretText, SecretFile, SSHKey, and WinRmCredentials types with configurable secret managers (Harness built-in, HashiCorp Vault, AWS Secrets Manager, Azure Key Vault, GCP Secret Manager). Use when asked to create a secret, store credentials, manage API keys, set up SSH keys, configure WinRM credentials, rotate secrets, or reference secrets in pipelines. Trigger phrases: create secret, secret text, secret file, SSH key, API key, password, credentials, secret manager, store secret.
compatibility
Requires Harness MCP v2 server (harness-mcp-v2)
metadata.author
Harness
metadata.version
1.0.0
metadata.mcp-server
harness-mcp-v2
license
Apache-2.0

Create Secret Skill

Generate Harness Secret definitions and manage secrets via MCP v2 tools.

MCP v2 Tools Used

ToolResource TypePurpose
harness_listsecretList existing secrets
harness_getsecretGet secret metadata (not the value)
harness_createsecretCreate a new secret
harness_updatesecretUpdate secret metadata or value
harness_deletesecretDelete a secret
harness_describesecretDiscover secret resource schema

Secret Types

SecretText

Stores text-based secrets: passwords, API tokens, connection strings.

yaml
secret:
  identifier: my_api_key
  name: My API Key
  description: API key for external service
  type: SecretText
  spec:
    secretManagerIdentifier: harnessSecretManager
    valueType: Inline
    value: <secret_value>

For other secret types (SecretFile, SSHKey with KeyReference/KeyPath/Password, WinRmCredentials with NTLM/Kerberos) and secret manager configuration, consult references/secret-types.md.

Secret Scopes

ScopeVisibilityMCP Parameters
ProjectOnly within the projectorg_id + project_id
OrganizationAll projects in the orgorg_id only
AccountAll orgs and projectsNeither org_id nor project_id

Instructions

Step 1: Determine Requirements
  • Secret type: SecretText, SecretFile, SSHKey, or WinRmCredentials
  • Secret manager: Harness built-in or external
  • Scope: project, org, or account
  • Tags and description for organization
Step 2: Check for Existing Secrets
harness_list(
  resource_type="secret",
  org_id="<org>",
  project_id="<project>",
  search_term="<keyword>"
)
Step 3: Create the Secret
harness_create(
  resource_type="secret",
  org_id="<org>",
  project_id="<project>",
  body={
    "secret": {
      "identifier": "my_api_key",
      "name": "My API Key",
      "type": "SecretText",
      "spec": {
        "secret_manager_identifier": "harnessSecretManager",
        "value_type": "Inline",
        "value": "<value>"
      }
    }
  }
)
Step 4: Verify Creation
harness_get(
  resource_type="secret",
  resource_id="my_api_key",
  org_id="<org>",
  project_id="<project>"
)

Referencing Secrets in Pipelines

yaml
# Project-level secret
<+secrets.getValue("my_api_key")>

# Org-level secret
<+secrets.getValue("org.my_api_key")>

# Account-level secret
<+secrets.getValue("account.my_api_key")>

In connector configuration:

yaml
connector:
  spec:
    authentication:
      spec:
        tokenRef: github_pat   # secret identifier

In service variables:

yaml
variables:
  - name: DB_PASSWORD
    type: Secret
    value: <+secrets.getValue("db_password")>

Naming Conventions

Secret TypePatternExample
API Keys{service}_api_keygithub_api_key
Passwords{system}_passwordprod_db_password
Tokens{provider}_tokenslack_token
SSH Keysssh_{purpose}ssh_deploy_key
Certificates{service}_certssl_prod_cert

Identifier must match: ^[a-zA-Z_][0-9a-zA-Z_]{0,127}$

Examples

Create a GitHub PAT secret
/create-secret
Create a SecretText for a GitHub personal access token at the project level
using the Harness built-in secret manager
Create SSH credentials
/create-secret
Create an SSH key secret for deploying to production servers as the "deploy" user
Create a Vault-referenced secret
/create-secret
Create a secret that references the database password stored in HashiCorp Vault
at secret/data/production/database#password
List secrets
/create-secret
Show me all secrets in the payments project
Create WinRM credentials
/create-secret
Create WinRM NTLM credentials for the Windows deployment servers

Error Handling

ErrorCauseSolution
Duplicate identifierSecret with same ID existsUse unique identifier or update existing
Secret manager not foundInvalid secretManagerIdentifierVerify the secret manager connector exists
Encryption failedSecret manager connectivity issueCheck delegate connectivity to secret manager
Invalid secret typeUnsupported type stringUse SecretText, SecretFile, SSHKey, or WinRmCredentials
Invalid valueTypeCase mismatchUse Inline or Reference (case-sensitive)

Performance Notes

  • Never include actual secret values in generated YAML. Use placeholder references only.
  • Verify the correct scope (account, org, project) before creating — secrets at the wrong scope will not be accessible.
  • Confirm the secret manager exists and is accessible before creating secrets.
Show full SKILL.md (183 more words)Show less

Troubleshooting

Secret Not Accessible in Pipeline
  1. Check scope -- project secrets need no prefix, org secrets need org. prefix, account secrets need account. prefix
  2. Verify the pipeline's project has access to the secret's scope
  3. Confirm the user/service account running the pipeline has core_secret_view permission
External Secret Manager Errors
  1. Verify the secret manager connector is healthy (harness_get on the connector)
  2. For Vault: check the path format includes #key suffix for specific keys
  3. For AWS SM: ensure IAM permissions allow secretsmanager:GetSecretValue
  4. Delegate must have network access to the external secret manager
SSH Key Connection Failures
  1. Verify the private key is in PEM format
  2. Check that the target server accepts key-based authentication
  3. If using KeyPath, confirm the key file exists on the delegate host
  4. Test with credentialType: Password first to isolate key-specific issues

Security Best Practices

  • Use external secret managers (Vault, AWS SM) for production secrets
  • Scope secrets as narrowly as possible -- prefer project over account
  • Never output secret values in pipeline logs
  • Rotate secrets regularly and update references
  • Audit secret access via the /audit-report skill

© harness, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/create-secret of harness/harness-skills.

  • SKILL.md
  • references/secret-types.md

Open the folder on GitHubat commit c25faee

Compare with similar skills

Create Secret next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Create Secret compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create Secret this skillharness/harness-skills115—~1.7kAutomated safety check: PassApache-2.0
Secrets Vault Manageralirezarezvani/claude-skills28k1 repos~3.6kAutomated safety check: NotesMIT
Ak Dev New Secret Provideryaalalabs/agent-kernel191—~2.6kAutomated safety check: PassApache-2.0
Terravision Cloud Diagramspatrickchugh/terravision1.6k—~5.6kAutomated safety check: NotesAGPL-3.0-only
Spotinfoalexei-led/spotinfo164—~1.8kAutomated safety check: PassApache-2.0
Integrating Secrets Managersjeremylongshore/tons-of-skills-marketplace2.8k—~1.2kAutomated safety check: PassMIT

Similar skills

  • Secrets Vault Manager

    alirezarezvani/claude-skills

    A skill your agent uses when the user asks to set up secret management infrastructure, integrate HashiCorp Vault, configure cloud secret stores (AWS Secrets Manager, Azure Key Vault, GCP Secret…

    28k GitHub starsUsed in 1 repo~3.6k tokens
    DevOps & CloudAuto-check: notes
  • Ak Dev New Secret Provider

    yaalalabs/agent-kernel

    Step-by-step guide for adding a new built-in secret provider to Agent Kernel's secret-resolution capability (beyond env and awsssm).

    191 GitHub stars~2.6k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Terravision Cloud Diagrams

    patrickchugh/terravision

    Draw cloud architecture diagrams for AWS, Azure or GCP with the official provider icon sets, using TerraVision.

    1.6k GitHub stars~5.6k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • Spotinfo

    alexei-led/spotinfo

    Query Spot/preemptible VM prices, savings and interruption risk across AWS, GCP and Azure with the spotinfo CLI.

    164 GitHub stars~1.8k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Integrating Secrets Managers

    jeremylongshore/tons-of-skills-marketplace

    Manage this skill enables AI assistant to seamlessly integrate with various secrets managers like hashicorp vault and aws secrets manager.

    2.8k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Fieldflow CLI

    guillaumegay13/fieldflow

    Use FieldFlow to inspect and reduce noisy JSON CLI output before it reaches model context.

    110 GitHub stars~872 tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed

More from harness/harness-skills

All 24 skills in this repo
  • Audit Report

    harness/harness-skills

    Generate audit reports and compliance trails using Harness audit trail data via MCP v2 tools.

    115 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Chaos Dr Test

    harness/harness-skills

    A skill your agent uses when working with Chaos Engineering steps inside a Harness pipeline.

    115 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check passed
  • Chaos Experiment

    harness/harness-skills

    A skill your agent uses when the user asks to create, edit, update, design, or configure a Harness Chaos Experiment — including faults, probes, actions, experiment YAML, fault injection, pod-delete…

    115 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Cleanup Feature Flags

    harness/harness-skills

    Remove a launched Harness FME feature flag from application code, keeping the treatment FME serves today, and open a pull request.

    115 GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Configure Repo Scan

    harness/harness-skills

    Configure code scanning in Harness pipelines using STO security scanners.

    115 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • Create Agent Template

    harness/harness-skills

    Generate Harness Agent Template files for AI-powered automation agents.

    115 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Create Secret

What does Create Secret do?

Generate Harness Secret definitions and manage secrets via MCP v2 tools. Create Secret is an agent skill from harness/harness-skills. Generate Harness Secret definitions and manage secrets via MCP v2 tools.

When should I use Create Secret?

Create Secret fits situations like: asked to create a secret; store credentials; manage API keys; set up SSH keys.

How do I install Create Secret in Claude Code?

Run `npx skills add harness/harness-skills --skill create-secret -a claude-code`. Or copy the skill folder (skills/create-secret in harness/harness-skills) into .claude/skills/create-secret in your project. Claude Code loads it when a task matches its description.

How do I install Create Secret in Codex?

Run `npx skills add harness/harness-skills --skill create-secret -a codex`. Or copy the skill folder (skills/create-secret in harness/harness-skills) into .agents/skills/create-secret in your project. Codex loads it when a task matches its description.

Can I use Create Secret in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add harness/harness-skills --skill create-secret -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-secret, .gemini/skills/create-secret, .github/skills/create-secret and .opencode/skills/create-secret in your project.

What does Create Secret need to run?

Going by SKILL.md and its folder, Create Secret needs credentials named DB_PASSWORD. Compatibility (from SKILL.md): Requires Harness MCP v2 server (harness-mcp-v2).

Does Create Secret access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Create Secret safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Create Secret use?

Create Secret is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Create Secret use?

About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 693 tokens, read only when the agent opens those files.

What are the alternatives to Create Secret?

Skills that share tags, products or a category with Create Secret: Secrets Vault Manager (alirezarezvani/claude-skills, 28k stars), Ak Dev New Secret Provider (yaalalabs/agent-kernel, 191 stars), Terravision Cloud Diagrams (patrickchugh/terravision, 1.6k stars) and Spotinfo (alexei-led/spotinfo, 164 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create Secret?

harness (a GitHub organization) maintains it in harness/harness-skills, which has 115 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 6, 2026.

Source: harness/harness-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.