infisical-agent
This skill guides users through configuring the Infisical Agent, a daemon that authenticates to Infisical using platform-native methods (AWS IAM, Kubernetes…
Community author
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
- License
- MIT (permissive)
- Pin
- d7e7fa4pinned Oct 9, 2026
- Context cost
- about 910 tokenswhen the skill loads
- GitHub stars
- 31on infisical/ai-skills
- Scripts
- None found
What it does
“Guide for configuring the Infisical Agent — a client daemon that manages token lifecycle and renders secrets via Go templates without modifying application code. Covers the full YAML config format, all 6 agent auth methods (universal-auth, kubernetes, aws-iam, azure, gcp-id-token, gcp-iam), sinks, template functions (listSecrets, listSecretsByProjectSlug, getSecretByName, dynamicSecret), polling, on-change commands, retry strategy, and persistent caching. Use this skill when someone asks about: Infisical Agent, agent config file, agent templates, rendering secrets to files, sidecar secret injection, init container secrets, token renewal, infisical agent command, or 'how do I use the Infisical Agent to inject secrets'. Not for Kubernetes Secrets or ConfigMaps managed by a controller (infisical-kubernetes-operator), nor `infisical run` (infisical-setup).”
Generated summary from the skill's own text
This skill guides users through configuring the Infisical Agent, a daemon that authenticates to Infisical using platform-native methods (AWS IAM, Kubernetes, Azure, GCP) and renders secrets to files via Go templates. It covers the complete YAML config format, six authentication methods, template functions for retrieving secrets, polling intervals, and deployment across Docker, Kubernetes, ECS and other environments.
When to use it
- Agent needs to render secrets to files for applications that read config files
- Deploying in Kubernetes, AWS, Azure, or GCP with platform-native authentication available
- Building .env files or config files populated with secrets from Infisical
- Managing dynamic secrets that require automatic token renewal and leasing
When not to
- Managing Kubernetes Secrets or ConfigMaps cluster-wide with the Infisical operator
- Using infisical run command to wrap and inject secrets into processes
- Pushing secrets to third-party services via syncs
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add infisical/ai-skills --skill infisical-agentInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install infisical/ai-skills infisical-agent@d7e7fa443893d7ba10895f926407da27751ea096Installs the commit we checked (d7e7fa4).
Copy by hand
Download the folder at d7e7fa4 and put it in .claude/skills/infisical-agent for Claude Code and in .agents/skills/infisical-agent for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "infisical-agent" by Infisical. Source, pinned to commit d7e7fa443893d7ba10895f926407da27751ea096: https://github.com/infisical/ai-skills/tree/d7e7fa443893d7ba10895f926407da27751ea096/skills/infisical-agent 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/infisical-agent/ for Claude Code and .agents/skills/infisical-agent/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/infisical/infisical-agent
SKILL.md at the pin
--- name: infisical-agent description: "Guide for configuring the Infisical Agent — a client daemon that manages token lifecycle and renders secrets via Go templates without modifying application code. Covers the full YAML config format, all 6 agent auth methods (universal-auth, kubernetes, aws-iam, azure, gcp-id-token, gcp-iam), sinks, template functions (listSecrets, listSecretsByProjectSlug, getSecretByName, dynamicSecret), polling, on-change commands, retry strategy, and persistent caching. Use this skill when someone asks about: Infisical Agent, agent config file, agent templates, rendering secrets to files, sidecar secret injection, init container secrets, token renewal, infisical agent command, or 'how do I use the Infisical Agent to inject secrets'. Not for Kubernetes Secrets or ConfigMaps managed by a controller (infisical-kubernetes-operator), nor `infisical run` (infisical-setup)." --- # Infisical Agent Guide You are a setup assistant helping users configure the Infisical Agent — a client daemon that simplifies secret management by automatically authenticating, renewing tokens, and rendering secrets to files via Go templates. ## Not this skill The Agent writes secrets to **files** on a host or in a container. Route elsewhere for: | If the user wants... | Use | |----------------------|-----| | Kubernetes Secrets or ConfigMaps managed by a controller | `infisical-kubernetes-operator` | | `infisical run` wrapping a process | `infisical-setup` | | An SDK call from application code | `infisical-setup` | | To configure the machine identity the agent authenticates with | `infisical-setup` | | To push secrets to a third-party service | `infisical-secret-syncs` | | To configure the dynamic secret the agent leases | `infisical-dynamic-secrets` | Operator vs Agent, stated plainly: the **operator** manages Kubernetes API objects cluster-wide; the **agent** writes files next to your app. If the app reads env vars from a Secret, use the operator. If it reads a config file, use the agent. ## How to use this skill Start by understanding the user's deployment context, then guide them through: 1. **Auth method** — Which authentication method fits their platform 2. **Config file** — The YAML config structure with auth, sinks, and templates 3. **Templates** — Go template syntax with the correct template functions 4. **Deployment** — Running the agent in their environment (Docker, K8s, ECS, etc.) Read the relevant reference file(s), then walk them through building their config file step by step. ## Reference files | File | When to read | |------|-------------| | `references/agent-config.md` | User needs the full config file format, field reference, auth methods, sinks, or caching | | `references/template-functions.md` | User needs to write templates — all available functions with signatures, parameters, and examples | | `references/deployment-examples.md` | User needs example configs for specific platforms (Docker Compose, ECS, Kubernetes, basic) | ## Guiding principles - **Platform-native auth first.** On AWS, recommend `aws-iam`. On Kubernetes, recommend `kubernetes`. On Azure, recommend `azure`. Only fall back to `universal-auth` (client ID/secret) when platform-native auth isn't available. - **Templates over sinks for secrets.** Sinks deposit access tokens. Templates render actual secrets. Most users want templates, not raw access tokens. - **Use `listSecrets` or `listSecretsByProjectSlug` for .env files.** These are the most common template functions — they render all secrets in an environment to a key=value file. - **Use `dynamicSecret` for database credentials.** This function creates and auto-renews dynamic secret leases directly in templates. - **SSH dynamic secrets need the 6th `principals` argument.** `dynamicSecret` takes an optional trailing comma-separated principals string, and it is **required** for SSH dynamic secrets (e.g. `"root,deploy"`). SSH leases return `PRIVATE_KEY` and `SIGNED_KEY`. - **Polling interval matters.** Default is 5 minutes. For latency-sensitive apps, reduce it. For stable configs, increase it to reduce API calls. - **`exit-after-auth: true` for init containers.** In Kubernetes init containers or one-shot setups, set this so the agent renders secrets once and exits. - **On-change commands for reloads.** Use `execute.command` to trigger application restarts or config reloads when secrets change. - **Never log secret values.** The agent writes to files — ensure the destination paths have correct permissions and aren't exposed.
From infisical/ai-skills at d7e7fa4, shown as plain text under its license: MIT (permissive). The license text is in LICENSE.
View SKILL.md on GitHub at d7e7fa4Files
- SKILL.md4.6 KB · 884aaf2fd9d0
- references/
- agent-config.md5.1 KB · c8195fae5c7e
- deployment-examples.md6.7 KB · 702668580496
- template-functions.md5.9 KB · 81be8ba28143
4 files, 22 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at d7e7fa4Related in Cloud and DevOps
azure
This skill guides agents in Azure cloud development, covering Infrastructure-as-Code with ARM templates and Bicep, CI/CD through Azure Pipelines, Kubernetes…
by MindrallyCommunity
Claude Code, Codex, Cursor +4 · about 540 tokens · pinned 6 days ago
debug-openshell-cluster
Diagnoses OpenShell gateway deployment problems across Docker, Podman, Kubernetes, and VM compute platforms.
by NVIDIAOfficial publisher
Claude Code, Codex, Cursor +4 · about 19.1K tokens · pinned 6 days ago
architect-for-startups
Provides stage-appropriate AWS architecture guidance for startups from pre-revenue through Series B+, considering runway, team size, and AWS credits.
by Amazon (AWS)Official publisher
Claude Code, Codex, Cursor +4 · about 3.4K tokens · pinned 6 days ago
aws-containers
Provides domain expertise for deploying and managing containerized workloads on AWS using EKS, ECS, Fargate, and Elastic Beanstalk.
by Amazon (AWS)Official publisher
Claude Code, Codex, Cursor +4 · about 1.4K tokens · pinned 6 days ago
azure-to-aws
This skill guides agents through migrating Azure workloads to AWS across six phases: discovering Azure resources from Terraform, live CLI, app code, and…
by Amazon (AWS)Official publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 4.3K tokens · pinned 6 days ago
gcp-to-aws
Migrates workloads from Google Cloud Platform to AWS, including AI and agentic applications from any provider.
by Amazon (AWS)Official publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 14.3K tokens · pinned 6 days ago