843 B
843 B
SKILL: Emacs Edit (org-skill-emacs-edit.org)
Overview
The Emacs Edit skill provides the agent with the capability to read and modify Org-mode files via the Emacs client.
Implementation
Package Context
(in-package :opencortex)
Emacs Interface Logic
(defun emacs-edit-read-file (filepath)
"Reads a file via Emacs."
(harness-log "EMACS: Reading ~a" filepath))
(defun emacs-edit-modify (filepath id changes)
"Modifies an Org node via Emacs."
(harness-log "EMACS: Modifying ~a in ~a" id filepath))
Skill Registration
(defskill :skill-emacs-edit
:priority 100
:trigger (lambda (ctx) (declare (ignore ctx)) nil))