home / skills / plurigrid / asi / org-babel-execution
This skill enables literate programming across org-babel for polyglot execution, coordinating Julia, Python, and Clojure within narrative Org files.
npx playbooks add skill plurigrid/asi --skill org-babel-executionReview the files below or copy the command above to add this skill to your agents.
---
name: org-babel-execution
description: Literate programming execution engine via org-babel for polyglot skill execution
version: 1.0.0
trit: 0
---
# Org-Babel Execution Engine
> **Transform asi from knowledge graph to execution engine via literate programming**
**Trit**: 0 (COORDINATOR - orchestrates execution across languages)
## Overview
Enables literate programming across Julia, Python, Clojure via org-babel.
## Core Concept
Embed executable code in narrative .org files:
- Execute in-place (C-c C-c)
- Tangle to extract source files (C-c C-v t)
- Pass data between languages
- Generate documentation with results
## Template
```org
#+TITLE: Skill Name
#+PROPERTY: header-args:julia :tangle Skill.jl
* Implementation
#+BEGIN_SRC julia
function skill_operation(input)
# code here
end
#+END_SRC
* Tests
#+BEGIN_SRC julia :results output
@test skill_operation(42) == expected
#+END_SRC
```
## Related Skills
- `org` (0) - Org-mode syntax
- `emacs` (0) - Editor integration
- `julia-scientific` (+1) - Julia execution
- `python-development` (+1) - Python execution
## SDF Interleaving
This skill connects to **Software Design for Flexibility** (Hanson & Sussman, 2021):
### Primary Chapter: 2. Domain-Specific Languages
**Concepts**: DSL, wrapper, pattern-directed, embedding
### GF(3) Balanced Triad
```
org-babel-execution (+) + SDF.Ch2 (−) + [balancer] (○) = 0
```
**Skill Trit**: 1 (PLUS - generation)
### Connection Pattern
DSLs embed domain knowledge. This skill defines domain-specific operations.
This skill is a literate-programming execution engine built on org-babel that orchestrates polyglot code inside Org-mode documents. It enables embedding, executing, and tangling code blocks in languages like Julia, Python, and Clojure so documentation and runnable source stay in sync. The skill focuses on reproducible development, cross-language data exchange, and automated test/document generation.
You write code blocks inside .org files with language headers and execution directives. The engine executes blocks in place (C-c C-c), tangles source files (C-c C-v t), and propagates results back into the document for documentation and tests. It coordinates language kernels and marshalling so data can be passed between languages and test outputs included in generated docs.
How are variables shared between languages?
Use named results and explicit serialization formats (JSON, CSV) in code blocks; org-babel will capture outputs which other blocks can read and parse in their respective languages.
Can I run tests automatically in CI?
Yes. Include executable test blocks in the .org file and configure CI to run org-babel execution and verify the captured results or tangle the files and run language-specific test runners.