- Updated 22 skill org files to use %%SKILLS_DIR%% placeholder - Modified opencortex.sh setup to replace placeholder with XDG path - Modified doctor_repair to handle placeholder replacement - Removed hardcoded absolute path
27 lines
790 B
Org Mode
27 lines
790 B
Org Mode
#+TITLE: SKILL: Scribe (org-skill-scribe.org)
|
|
#+AUTHOR: Agent
|
|
#+FILETAGS: :skill:scribe:documentation:
|
|
#+PROPERTY: header-args:lisp :tangle %%SKILLS_DIR%%/org-skill-scribe.lisp
|
|
|
|
* Overview
|
|
The *Scribe Skill* manages the agent's internal documentation and logs.
|
|
|
|
* Implementation
|
|
|
|
** Documentation Logic
|
|
#+begin_src lisp
|
|
(defun scribe-log-event (signal)
|
|
"Logs a metabolic signal for later analysis."
|
|
(let ((type (getf signal :type))
|
|
(payload (getf signal :payload)))
|
|
(harness-log "SCRIBE: [~a] ~s" type payload)))
|
|
#+end_src
|
|
|
|
** Skill Registration
|
|
#+begin_src lisp
|
|
(defskill :skill-scribe
|
|
:priority 100
|
|
:trigger (lambda (ctx) (member (getf ctx :type) '(:LOG :STATUS)))
|
|
:deterministic (lambda (action ctx) (declare (ignore action)) (scribe-log-event ctx) nil))
|
|
#+end_src
|