# Formula Authoring

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

- Skill: `a5c-ai/formula-authoring` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add a5c-ai/formula-authoring`
- Raw SKILL.md: https://api.skillmd.com/api/skills/a5c-ai/formula-authoring/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: a5c-ai (https://skillmd.com/u/a5c-ai)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/a5c-ai/formula-authoring

---


- 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`

