Workflow

From hugoduncan/psi · View interactive version

Workflow is an AI agent skill from the GitHub repository hugoduncan/psi. Repository-specific guidance for understanding, creating, and updating psi workflows.

How to use this skill

Skill file

Workflow

Use this skill when understanding an existing workflow, creating a new workflow, or updating an existing workflow in psi.

Start with the authoritative docs

Read these first and prefer them over incidental examples:

Where workflows live

Workflow definitions are discovered from .psi/workflows/ in the project, plus the normal user/global workflow roots described in doc/workflows.md.

Authoring forms:

Prefer the converged target-authored workflow grammar for new work:

Do not invent parallel workflow shapes when the existing grammar already covers the need.

Canonical examples in this repository

Use current repository examples before inventing new patterns:

Also use doc/workflows.md for example-led guidance and current conventions.

Authoring guidance

When changing a workflow:

When creating a workflow:

  1. read the grammar and concepts docs first
  2. find the nearest existing workflow example with the same shape
  3. author the smallest workflow that satisfies the task
  4. prefer clear step boundaries over hidden coupling
  5. verify with the relevant parser/compiler/runtime tests before treating the workflow as done

When updating a workflow:

  1. read the current workflow file fully before editing
  2. trace the workflow's prompt/data-flow/routing contract
  3. inspect neighboring examples and tests that prove the same behavior class
  4. update docs or companion prompt files when the workflow contract changes
  5. reload and re-verify rather than assuming authored EDN or markdown is valid

Key implementation seams

Workflow loading / authoring / compilation:

Representative workflow-loader tests:

Workflow runtime seams:

Editing loop

Use the normal workflow authoring loop from doc/workflows.md:

Built-in skill and discovery seams

This workflow-authoring skill itself is a built-in packaged skill. Relevant skill/discovery seams when debugging skill availability are:

Verification checklist

For workflow work, prove the relevant structural surfaces:

Testing stance

Prefer narrow tests that exercise real parser/compiler/runtime seams and observable workflow outputs. Avoid mock-heavy tests when real local workflow components provide stronger proof.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.