
sister-script
Document-first automation ā the doc is the source of truth
by SimHacker|Open Source
šÆ Sister Script
Document-first development. Automate only what's proven.
MOOLLM K-Lines
| K-Line | Why Related |
|---|---|
| moollm/ | Core MOOLLM methodology |
| play-learn-lift/ | Sister scripts ARE the LIFT stage output |
| skill/ | Sister scripts become skills |
| sniffable-python/ | Sister scripts follow this structure |
| plain-text/ | Scripts persist as files |
| yaml-jazz/ | Comments carry meaning |
| constructionism/ | Document ā Procedure ā Automation |
| postel/ | Liberal input, conservative output |
| debugging/ | Document how you debugged |
Quick Links:
- Full Specification ā complete protocol
- Template: PROCEDURE.md ā procedure template
- Template: SISTER.yml ā script relationship
Overview
The document is the source of truth. Scripts are its children. This is the LIFT stage of play-learn-lift.
Sister scripts follow sniffable-python conventions ā structured so both humans and LLMs can understand them from the first 50 lines.
The Pattern
š Document ā š» Commands ā š Procedure ā š¤ Sister Script (Sniffable Python)
- Start with natural language (PLAY)
- Add manual commands (PLAY/LEARN)
- Document working procedures (LEARN)
- Generate automation (LIFT) ā sniffable-python format
Sniffable Structure
Sister scripts should be structured so the LLM can sniff the header:
#!/usr/bin/env python3
"""tool-name: One-line description.
Docstring becomes --help AND is visible to LLM.
"""
import argparse
def main():
"""CLI structure ā sniff this to understand the tool."""
parser = argparse.ArgumentParser(description=__doc__.split('\n')[0])
# ... CLI tree here ...
One sniff and you smell success.
Bidirectional Evolution
- Document ā Script: Proven procedures become automated
- Script ā Document: Automation insights improve docs