formula-authoring

Author TOML-based Formula workflow templates that become Protomolecules and active Molecules in Gas Town's durable workflow system.

509 stars

Best use case

formula-authoring is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Author TOML-based Formula workflow templates that become Protomolecules and active Molecules in Gas Town's durable workflow system.

Teams using formula-authoring should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/formula-authoring/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/methodologies/gastown/skills/formula-authoring/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/formula-authoring/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How formula-authoring Compares

Feature / Agentformula-authoringStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Author TOML-based Formula workflow templates that become Protomolecules and active Molecules in Gas Town's durable workflow system.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Formula Authoring

## Overview

Create and manage TOML-based Formula templates that define repeatable multi-step workflows. Formulas are cooked into Protomolecules (frozen, ready to instantiate) and then activated as Molecules (durable, checkpoint-able workflows).

## When to Use

- Defining repeatable workflow templates
- Creating multi-step processes with variable binding
- Building workflows that must survive restarts
- When NDI (Nondeterministic Idempotence) is needed

## Process

1. **Define** formula steps and variables in TOML format
2. **Validate** formula structure and dependencies
3. **Cook** into protomolecule (resolve variables, freeze)
4. **Test** by instantiating a trial molecule
5. **Register** in the formula library for reuse

## Formula Lifecycle

```
Formula (TOML template) -> Protomolecule (frozen) -> Molecule (active, durable)
```

## Key Concepts

- **Formula**: TOML-based workflow template with variables
- **Protomolecule**: Frozen template ready to instantiate
- **Molecule**: Active durable workflow surviving restarts
- **NDI**: Nondeterministic Idempotence - useful outcomes from unreliable processes

## Tool Use

Invoke via babysitter process: `methodologies/gastown/gastown-molecule`