You will learn#
- what memory, skills and prompts are, and where the files are;
- how to write each one, in the editor and from the command line;
- why an imported skill waits for you to read it before an agent sees it.
The idea#
Three kinds of file make up your library:
- Memory: one fact per note, with what was learned ("my audience prefers hooks under three seconds").
- Skills: procedures an agent follows, in the open Agent Skills format. A skill is text an agent reads. Stuarty never runs a script that comes with a skill: the script is stored as an inert file and flagged.
- Prompts: a reusable text with
{{variables}}.
The files are the truth: Markdown in the library/ folder of your workspace, which you can copy. When you have an account, each file is encrypted with your key, so a copy of the folder shows nothing while Stuarty is locked; a plain file you put there from outside is picked up and encrypted, and an encrypted file cannot be edited outside Stuarty. The search index is built in memory when the workspace is unlocked and is never written to disk in plaintext.
Quick start#
-
Open Memory, Skills or Prompts in the Agent group of the sidebar. Each page is a list on the left, with a search box, and the entry you choose on the right. New note, New skill or New prompt starts a new one. Read the files again rereads the folder if you changed a file by hand.
-
Or from a terminal:
Terminal stuarty memory:write audience-hooks --description "Hooks under three seconds work best for this audience" \ --body "Start on the result, not on the greeting." stuarty prompt:write script-short --description "A short script" \ --body "Write a {{seconds}} second script about {{topic}}." --default seconds=10 stuarty prompt:render script-short --value topic="a first sourdough loaf" stuarty library:search sourdough hooksprompt:renderfills the variables and prints the text; nothing is sent anywhere.library:searchfinds across the three kinds. -
To share a skill with your own agent, export it:
stuarty skill:exportwrites the skills as folders in the Agent Skills layout, ready to install.
A skill you did not write waits for you#
A skill you import (stuarty skill:import <folder or archive>, or Import or export skills on the page) starts unreviewed. It is listed as "Not reviewed: not offered to agents", and it is not offered to an agent until you open it in Skills, read its text and its files, and choose Mark as read. Any change to its text takes the mark away. stuarty skill:lint <name> checks a skill's structure and names its findings.
A note an agent wrote waits for you#
A memory note that an agent wrote is not offered to agents until you keep it. In Memory, the list has the tabs All, Pending and Kept. Open a pending note and choose Keep this note, or Reject this note, which removes it. A note you write yourself in the app is kept at once.
What an agent sees#
Everything that comes out of the library toward an agent is delimited as untrusted text, even what you wrote, because a note can have been written by another agent. An agent reads memory and prompts through the CLI and the library tool, and can write a note; it cannot mark a skill reviewed.
Common mistakes#
- Putting a secret in a note. A note is for facts you want an agent to read: keep keys in the vault, which is in Connections.
- Expecting a skill's script to run. It never does.
- Editing a reviewed skill and wondering why an agent stopped seeing it: the review mark goes away with a change; read it again and mark it.