Global Workflows
Workflows placed in ~/.archon/.archon/workflows/ are loaded globally — they appear in
every project’s workflow list and can be invoked from any repository.
~/.archon/.archon/workflows/Or, if you have set ARCHON_HOME:
$ARCHON_HOME/.archon/workflows/Create the directory if it does not exist:
mkdir -p ~/.archon/.archon/workflowsLoad Priority
Section titled “Load Priority”- Bundled defaults (lowest priority)
- Global workflows —
~/.archon/.archon/workflows/(override bundled by filename) - Repo-specific workflows —
.archon/workflows/(override global by filename)
If a global workflow has the same filename as a bundled default, the global version wins. If a repo-specific workflow has the same filename as a global one, the repo-specific version wins.
Practical Examples
Section titled “Practical Examples”Global workflows are useful for personal standards that you want enforced everywhere, regardless of the project.
Personal Code Review
Section titled “Personal Code Review”A workflow that runs your preferred review checklist on every project:
name: my-reviewdescription: Personal code review with my standardsmodel: sonnet
nodes: - id: review prompt: | Review the changes on this branch against main. Check for: error handling, test coverage, naming conventions, and unnecessary complexity. Be direct and specific.Custom Linting or Formatting Check
Section titled “Custom Linting or Formatting Check”A workflow that runs project-agnostic checks:
name: lint-checkdescription: Check for common code quality issues across any project
nodes: - id: check prompt: | Scan this codebase for: 1. Functions longer than 50 lines 2. Deeply nested conditionals (>3 levels) 3. TODO/FIXME comments without issue references Report findings as a prioritized list.Quick Explain
Section titled “Quick Explain”A simple workflow for understanding unfamiliar codebases:
name: explaindescription: Quick explanation of a codebase or modulemodel: haiku
nodes: - id: explain prompt: | Give a concise explanation of this codebase. Focus on: what it does, key entry points, and how the main pieces connect. Keep it under 500 words. Topic: $ARGUMENTSSyncing with Dotfiles
Section titled “Syncing with Dotfiles”If you manage your configuration with a dotfiles repository, you can include your global workflows:
# In your dotfiles repodotfiles/└── archon/ └── .archon/ └── workflows/ ├── my-review.yaml └── explain.yamlThen symlink during dotfiles setup:
ln -sf ~/dotfiles/archon/.archon/workflows ~/.archon/.archon/workflowsOr copy them as part of your dotfiles install script:
mkdir -p ~/.archon/.archon/workflowscp ~/dotfiles/archon/.archon/workflows/*.yaml ~/.archon/.archon/workflows/This way your personal workflows travel with you across machines.
CLI Support
Section titled “CLI Support”Both the CLI and the server discover global workflows automatically:
# Lists bundled + global + repo-specific workflowsarchon workflow list
# Run a global workflow from any repoarchon workflow run my-reviewTroubleshooting
Section titled “Troubleshooting”Workflow Not Appearing in List
Section titled “Workflow Not Appearing in List”-
Check the path — The directory must be exactly
~/.archon/.archon/workflows/(note the double.archon). The first.archonis the Archon home directory, the second is the standard config directory structure within it.Terminal window ls ~/.archon/.archon/workflows/ -
Check file extension — Workflow files must end in
.yamlor.yml. -
Check YAML validity — A syntax error in the YAML will cause the workflow to appear in the errors list rather than the workflow list. Run:
Terminal window archon validate workflows my-workflow -
Check for name conflicts — If a repo-specific workflow has the same filename, it overrides the global one. The global version will not appear when you are in that repo.
-
Check ARCHON_HOME — If you have set
ARCHON_HOMEto a custom path, global workflows must be at$ARCHON_HOME/.archon/workflows/, not~/.archon/.archon/workflows/.