Files
passepartout/skills/org-skill-scribe.org
Amr Gharbeia 1eb8a3db92 refactor(skills): use %%SKILLS_DIR%% placeholder for portable tangling
- 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
2026-04-30 11:14:31 -04:00

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