agentleFS
openwizdevopenwizdev/WizSkills/skills/ghost/SKILL.md

ghost

Skill2 starsChanged 2 days agoApache-2.0View on GitHub

Set up ghost text on this machine and learn phrases from what you send, keeping a change only when the bench does not drop.

12 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Ask once, write the answers, then run this from the skill folder.

    line 22

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ghost

The per-user brain for ghost text. Setup runs on this machine. The learn pass runs while the user's own agent is idle. A fixture run is not a live bench and not a live pairing.

Source: new, original to OpenWiz. Not adapted from Matt Pocock's skills.

Guards

  • Install a model server only when the answers file says model is exactly yes. Any other value, including a repeated key, installs nothing. If openwiz ghost model install exits 2, that command is absent: continue, and ghost text stays on recall.
  • The state directory is the CLI's: OPENWIZ_STATE_DIR, else ~/Library/Application Support/openwiz on macOS, else $XDG_STATE_HOME/openwiz or ~/.local/state/openwiz. The opt-in log is ghost/events.jsonl under it. Read it only when ghost/settings.json is exactly {"logging":true}. openwiz ghost forget deletes that events file and nothing else. Do not open the network, and do not delete an events file yourself.
  • Bench the rewritten skill.json and lexicon.json in a private folder beside them, and replace the live files only when that second report does not drop acceptance_rate or chars_saved_per_message. Until then the live files stay as they were; a cancelled bench leaves them too.
  • A bench that fails, unreadable output, or a report that is not a ghost.v1 bench report with source sent, keeps the previous files. One key twice is a bad report.

Setup

Ask once, write the answers, then run this from the skill folder. The file has exactly the keys model and log, each yes or no.

python3 -I scripts/setup.py --home <home> --answers <answers.json>

The script checks openwiz ghost --help, tries openwiz ghost model install only for yes (exit 2 means recall and setup continues), runs openwiz ghost pair, and writes ghost/settings.json once under the state directory.

Learn

The skill file is the engine's: ghost/skill.json under the state directory, exactly {"phrases":[...],"tone":"...","never_suggest":[...]}, the context pack's skill. The lexicon is ghost/lexicon.json beside it, {"terms":[{"term":"...","meaning":"..."}]}; learned codes such as J12 or #42 go there. On a first run, write those two files empty. Put the user's own sent messages in sent.jsonl (one {"text":"..."} line each) and a held-out replay in replay.json, inside the home. Then:

python3 -I scripts/learn.py --home <home>

The script runs openwiz ghost bench --source sent --replay on replay.json with OPENWIZ_GHOST_HOME set to the live ghost folder, then again with it set to the staged candidate. never_suggest holds suggestion text: the engine drops any suggestion containing an entry, ignoring case, and the learn pass drops learned phrases the same way and keeps every entry. A ghost.v1 event line carries a suggestion id, not its text, so the learn pass checks the log only while settings say logging is on and writes nothing from it. After forget, the skill file holds nothing from that log.

Verify

python3 -I -m unittest discover -s skills/ghost/tests -v

Fixtures prove the keep-or-restore gate and that setup installs only on an explicit yes. They do not prove a live model, a live bench, or a real pairing code.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.