home / skills / plutowang / term.conf / workflow-env

workflow-env skill

/opencode/skills/global/workflow-env

npx playbooks add skill plutowang/term.conf --skill workflow-env

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
655 B
---
name: workflow-env
description: Global workflow rule that enforces sourcing env.sh (if present) before running build, run, or deployment commands.
---

# Environment Loading Protocol

## Rule

Before any build/run/deploy command, check for `env.sh`:

1. **If present**: Source it, then run the command.
   - Syntax: `. ./env.sh && <command>`
2. **If absent**: Run the command normally.

## Applies To

- Node: `pnpm`, `bun` scripts (`dev`, `build`, `start`)
- Compilers: `zig`, `go`, `cargo`, `dotnet`
- Task runners: `make`, `just`, `rake`
- Infra: `docker`, `docker-compose`, `terraform`, `kubectl`

## Example

```bash
. ./env.sh && pnpm build
```