output-build-workflow
Implement an Output SDK workflow from a plan document. Use when the user asks to build, implement, or code a workflow from an…
Store and reference encrypted secrets in Output SDK workflows using @outputai/core/credentials. Use when integrating API keys, database passwords, or third-party tokens.
Claude Code
$ npx -y skills add growthxai/output --skill output-dev-credentials --agent claude-code
Codex
$ npx skills add growthxai/output --skill output-dev-credentials -a codex -y
Cursor
$ npx skills add growthxai/output --skill output-dev-credentials -a cursor -y
Gemini CLI
$ npx skills add growthxai/output --skill output-dev-credentials -a gemini-cli -y
GitHub Copilot
$ npx skills add growthxai/output --skill output-dev-credentials -a github-copilot -y
OpenCode
$ npx skills add growthxai/output --skill output-dev-credentials -a opencode -y
Windsurf
$ npx skills add growthxai/output --skill output-dev-credentials -a windsurf -y
name: output-dev-credentials description: Store and reference encrypted secrets in Output SDK workflows using @outputai/core/credentials. Use when integrating API keys, database passwords, or third-party tokens. allowed-tools: [Read, Write, Edit, Bash, Glob]
The `@outputai/core/credentials` package provides encrypted secrets management for Output SDK workflows. It replaces `process.env` patterns with a structured, encrypted YAML-based system that supports scoped credentials with deep merging.
import { credentials } from '@outputai/core/credentials';Safe read with optional default. Never throws.
// Returns value or undefined
const region = credentials.get('aws.region');
// Returns value or default
const region = credentials.get('aws.region', 'us-east-1');Strict read. Throws `MissingCredentialError` if not found.
const apiKey = credentials.require('anthropic.api_key');| Error | Thrown When | Fix | |-------|------------|-----| | `MissingCredentialError` | `credentials.require()` path not found | Add the credential via `output credentials edit` | | `MissingKeyError` | No decryption key available | Set `OUTPUT_CREDENTIALS_KEY` env var or create `.key` file | | `InvalidCredentialsKeyError` | Key doesn't match the encrypted file, or the file is corrupted | Use the key the file was encrypted with | | `MalformedCredentialsKeyError` | Key isn't exactly 64 hex characters | Check the key for typos, whitespace, or truncation |
All four extend `FatalError`, so a step that throws one fails without retries. A key error while resolving `credential:` env vars stops the worker at startup.
# Initialize credentials (generates key + encrypted YAML template) output credentials init # Global output credentials init -e production # Environment-specific output credentials init -w payment_processing # Workflow-specific # Edit credentials (decrypts, opens $EDITOR, re-encrypts on save) output credentials edit # Global output credentials edit -e production # Environment output credentials edit -w payment_processing # Workflow # Show decrypted credentials (debugging) output credentials show # Global output credentials show -e development # Environment # Set a single credential value (no editor needed) output credentials set anthropic.api_key sk-ant-... # Global output credentials set stripe.key sk_live_... -w payment_processing # Workflow # Get single credential value output credentials get anthropic.api_key # Global output credentials get stripe.key -w payment_processing # Workflow
**Flags:**
config/credentials.yml.enc # Encrypted YAML config/credentials.key # Decryption key (DO NOT COMMIT)
Key env var: `OUTPUT_CREDENTIALS_KEY`
config/credentials/production.yml.enc config/credentials/production.key
Key env var: `OUTPUT_CREDENTIALS_KEY_PRODUCTION`
src/workflows/{name}/credentials.yml.enc
src/workflows/{name}/credentials.keyKey env var: `OUTPUT_CREDENTIALS_KEY_{WORKFLOW_NAME}` (uppercased)
For each scope, the key is resolved in order:
1. **Environment variable** (`OUTPUT_CREDENTIALS_KEY`, `OUTPUT_CREDENTIALS_KEY_{ENV}`, or `OUTPUT_CREDENTIALS_KEY_{WORKFLOW}`) 2. **Key file** on disk (e.g., `config/credentials.key`) 3. **Throws `MissingKeyError`** if neither found
Workflow credentials fall back to the global key if no workflow-specific key exists.
When a workflow has its own credentials, they deep-merge over global credentials. Workflow values win at the same path:
# Global (config/credentials.yml.enc) anthropic: api_key: sk-ant-global aws: region: us-east-1 # Workflow (src/workflows/my_workflow/credentials.yml.enc) anthropic: api_key: sk-ant-workflow-specific stripe: secret_key: sk_live_workflow # Merged result at runtime: # anthropic.api_key -> sk-ant-workflow-specific (overridden by workflow) # aws.region -> us-east-1 (from global) # stripe.secret_key -> sk_live_workflow (added by workflow)
import { createKyClient } from '@outputai/core/http';
const API_KEY = process.env.SERVICE_API_KEY || '';
const client = createKyClient({
prefix: 'https://api.service.com',
headers: { Authorization: `Bearer ${API_KEY}` }
});import { createKyClient } from '@outputai/core/http';
import { credentials } from '@outputai/core/credentials';
const apiKey = credentials.require('service.api_key');
const client = createKyClient({
prefix: 'https://api.service.com',
headers: { Authorization: `BeThe open-source TypeScript framework for building AI workflows and agents. Designed for Claude Code — describe what you want, Claude builds it, with all the best practices already in place. One framework.
Implement an Output SDK workflow from a plan document. Use when the user asks to build, implement, or code a workflow from an…
View, edit, and set encrypted credentials in an Output.ai project. Use when adding secrets, updating API keys, verifying…
Wire encrypted credentials to environment variables using the credential: convention. Use when setting up LLM provider keys…
Initialize encrypted credentials for an Output.ai project. Use when setting up credentials for the first time, adding…
Debug Output SDK workflow issues. Use when user reports a workflow failing, erroring, hanging, producing wrong results, or asks…
Use the Agent class for multi-step tool loops, conversation history, streaming progress, and reusable LLM agents. Use when…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.