clarify scripts vs workflows distinction in create-skills and standard.md

This commit is contained in:
lyn
2026-04-17 15:26:34 +00:00
parent db3539917c
commit 240e52a76e
2 changed files with 21 additions and 10 deletions

View File

@@ -26,6 +26,11 @@ description: {when-to-use}
> **All skill-related documentation must be written in English.**
## When to Use Scripts vs Workflows
- **Scripts** — handle logic/flow that is completely fixed. When the steps are predictable and always the same, encode them in a script.
- **Workflows** — handle flexible situations semantically. When context matters, decisions are needed, or the process is nuanced, describe it in a workflow document.
## Script Hint
When a script needs to behave differently based on the calling agent, use these environment variables: