- Updated all 22 skill org files to use $OC_DATA_DIR/skills/ paths - Removed manually created .lisp file (tangling now targets XDG) - Files will now tangle to ~/.local/share/opencortex/skills/
30 lines
967 B
Org Mode
30 lines
967 B
Org Mode
#+TITLE: SKILL: Literate Programming (org-skill-literate-programming.org)
|
|
#+AUTHOR: Agent
|
|
#+FILETAGS: :system:literate:tangle:
|
|
#+PROPERTY: header-args:lisp :tangle $OC_DATA_DIR/skills/org-skill-literate-programming.lisp
|
|
|
|
* Overview
|
|
The *Literate Programming* skill ensures the synchronization between `.org` sources and `.lisp` artifacts.
|
|
|
|
* Implementation
|
|
|
|
** Synchronization Logic
|
|
#+begin_src lisp
|
|
(defun literate-check-block-balance (org-file)
|
|
"Verifies that all Lisp source blocks in an Org file are balanced."
|
|
(harness-log "LITERATE: Checking block balance for ~a" org-file)
|
|
t)
|
|
|
|
(defun check-tangle-sync (org-file lisp-file)
|
|
"Verifies that the Lisp file matches the tangled output of the Org file."
|
|
(harness-log "LITERATE: Checking tangle sync for ~a <-> ~a" org-file lisp-file)
|
|
t)
|
|
#+end_src
|
|
|
|
** Skill Registration
|
|
#+begin_src lisp
|
|
(defskill :skill-literate-programming
|
|
:priority 300
|
|
:trigger (lambda (ctx) (declare (ignore ctx)) nil))
|
|
#+end_src
|