Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Workflow architect/Trigger-condition-patterns
Reference · Workflow architect

Trigger-condition-patterns

Part of Workflow architect. Install the skill and your agent reads this page when it needs the depth.

Trigger Condition Patterns

This reference documents the canonical patterns for writing trigger conditions in the output bundle's sub-skills. The bundle-builder uses these patterns when generating each sub-skill's description field and "When to use" section.

Trigger conditions tell the agent loader when to activate a skill. The more precise the trigger, the less friction the user experiences.


Trigger Categories

1. Keyword-Based

The most common pattern. The skill activates when the user mentions specific terms. Multiple keywords expand recall.

Pattern:

description: >-
  Use when the user mentions [keyword], [keyword], or [keyword]. Also
  use when [context description].

Examples:

Best practices:


2. Context-Based

The skill activates based on session state, not just user messages.

Pattern:

description: >-
  [Bare description of when it applies, since context-based triggers are
  agent-determined rather than keyword-driven.]

Examples:

Best practices:


3. Signal-Based

The skill activates on behavioral patterns, not explicit keywords.

Pattern:

description: >-
  Use when the user [behavior description]. Activates on [signal type].

Examples:

Best practices:


4. Time-Based

The skill activates on a schedule, not in response to user input.

Pattern (for cron/scheduled skills):

description: >-
  Cron skill. Runs [schedule] to [purpose]. Use when setting up recurring
  tasks or automated workflows.

Examples:

Best practices:


Writing Trigger Descriptions

Each generated sub-skill's description field should follow this formula:

Use when [who] [does what] [under what conditions].
[Optional: what the skill provides.]

Examples:

Keywords to Include

Pull from the phase's typical_openers and typical_tools discovered during the interview:


Trigger Condition Manifest Format

The output bundle's manifest.yaml maps skills to their trigger conditions:

# manifest.yaml
bundle_name: my-workflow
generated: 2026-05-29
archetype: morning-triage-deep-work

skills:
  - name: morning-triage
    file: skills/morning-triage.md
    trigger:
      type: keyword
      keywords: [check, review, overnight, what's new, start, morning]
      description: >-
        Loads when the user opens with status checks,
        review requests, or morning intake language.

  - name: deep-work
    file: skills/deep-work.md
    trigger:
      type: keyword+context
      keywords: [build, write, create, implement, focus]
      context: After morning triage is complete or user skips
                directly to a specific task
      description: >-
        Loads when the user shifts into building or creating mode,
        either after triage or as the session opener.

  - name: wrap
    file: skills/wrap.md
    trigger:
      type: keyword
      keywords: [wrap, done, save, close, ship, summarize]
      description: >-
        Loads when the user signals session completion or wraps up work.

Each trigger can have type one of: keyword, context, signal, time, or a compound type like keyword+context.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.