Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

prototype

БесплатноЗапускает вложенные скриптыНе проверен

MOOLLM's object model: objects delegate to parents listed in inherits:, Self-style, with no classes. How to declare parents, how lookup resolves a slot, and…

SimHackerот SimHacker★ 63 звезды на GitHub11 установок в других каталогах

Об этом скилле

PROTOTYPE

"Objects all the way down."

Part of MOOLLM · This skill's directory

MOOLLM has no classes. Every object is concrete: a directory, a file, or a map inside a file. An object that lacks a slot asks its parents, in order, and the first one that has it answers. That's Self's model, applied to a filesystem an LLM walks.

Self in one page

A Self object is a set of slots. Some hold data, some hold code, and some, marked with *, are parent slots:

cat: (|
  name <- "Terpie".
  meow = (| | "Meow!" |).
  traits* = catTraits.
|)

Sending meow looks in the object's own slots, then in each parent, then in their parents. First match wins. There can be several parent slots, and they can be reassigned at run time, so an object can change what it is by pointing a parent somewhere else. New objects are made by cloning an existing one and changing what differs. Classes, mixins, traits and generic functions can all be built from this; none of them is needed to start.

The schemapedia describes Self as a mechanism (self); this skill's CARD inherits from it.

MOOLLM keeps that model and changes the storage: slots are YAML keys and files, objects are directories, and lookup is something both a script and an LLM can do by following paths.

Objects

Object Address Slots
directory examples/adventure-4/pub the top-level keys of its interface files, merged, plus its files and subdirectories
file examples/adventure-4/maze/grue.yml its top-level keys
embedded garden/ROOM.yml#objects.bench the keys of that map

Files are flat: slots at the top level, no wrapper key repeating the filename (room: inside ROOM.yml) and no object: envelope. An UPPERCASE file (ROOM.yml, CHARACTER.yml, RUN.yml) is an interface: it holds the slots that belong to that role, and a directory has as many interfaces as it has interface files. A data slot must not share a name with a child directory.

Declaring parents

inherits:
  - skills/animal                     # repo path
  - ../characters/fictional/grue      # relative path
  - real-being                        # bare id: nearest skills/<id>, characters/<id>, ...
  - EDITH-BUNKER                      # K-line: latent, the model knows it
  - "Garfield, the comic-strip cat"   # prose: latent
  - aisle-e/PROTOTYPES.yml#prototypes.wine-rack   # an embedded object
  - { ref: skills/cat, gets: [PAT, FEED], overrides: [PAT], why: "a cat with opinions" }
  - { ref: EDITH-BUNKER, but: "Dutch, and forty years younger" }
traits*: skills/cat                   # named parent: a role that can be reassigned
mood*: moods/sleepy

inherits: is a list, most specific first. An entry is a reference string, or a map with ref: and clauses:

Clause Means Read by
a comment on the line which aspect is inherited the LLM
why: the same, as data the LLM, reports
gets: / overrides: / except: methods taken from this parent, redefined here, refused the LLM; no script checks them yet
but: how this object differs from a latent parent the LLM
as: a role name; same as writing role*: ref lookup

A key ending in * is a named parent, Self's parent slot. Use one when the parent is a role that changes (a mood, a costume, a current owner), so it can be reassigned without touching the others. Named parents come after inherits: in lookup order, in the order they're written.

A reference that names no file is latent: the model's own knowledge stands in for the file. That is legitimate for K-lines and prose. A path-shaped reference that names no file is a broken link.

Implied parents. An interface file implies the skill its name names: ROOM.yml implies room, RUN.yml implies run. The parent is the skill's prototype file, named for the interface (skills/room/ROOM.yml): a concrete room holding the defaults and methods every room has, written as valid YAML with comments describing the slots instances fill in. The skill's GLANCE, CARD and README describe the skill to readers and are not inherited. The skill is looked up in enclosing scopes first, so an experiment can own experiment/skills/run/ and its runs inherit it before any repo-wide one. If no scope defines it, the parent is the latent K-line RUN until somebody writes the skill. An embedded object implies the skill of its collection key (objects: → object, exits: → exit). Implied parents come last, because they're the most generic.

Lookup

  1. The object's own slots.
  2. Each declared parent in order (inherits:, then named parents), depth-first.
  3. defaults: of enclosing containers, nearest first (see Containers).
  4. Implied parents, the most generic.
  5. First match wins. A cycle is skipped and reported.
  6. A dotted slot (stomach.contents)
Полный SKILL.md на GitHub

Установить prototype в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

read_file
run_terminal_cmd

Вложенные файлы

CARD.ymlCHARACTER.ymlGLANCE.ymlREADME.mdexamples/lookup/README.mdexamples/lookup/animal/OBJECT.ymlexamples/lookup/biscuit/OBJECT.ymlexamples/lookup/cat/OBJECT.ymlexamples/lookup/cellar/CONTAINER.ymlexamples/lookup/cellar/deep/CONTAINER.ymlexamples/lookup/cellar/deep/well/ROOM.ymlexamples/lookup/cellar/lamp-room/ROOM.ymlexamples/lookup/cellar/vault/ROOM.ymlexamples/lookup/cellar/vault/coin.ymlexamples/lookup/experiment/runs/first/RUN.ymlexamples/lookup/experiment/skills/run/CARD.ymlexamples/lookup/experiment/skills/run/RUN.ymlexamples/lookup/experiment/skills/run/SKILL.mdexamples/lookup/garden/GLANCE.ymlexamples/lookup/garden/ROOM.ymlexamples/lookup/loop-a/OBJECT.ymlexamples/lookup/loop-b/OBJECT.ymlexamples/lookup/pet/OBJECT.ymlexamples/lookup/sleepy/OBJECT.ymlscripts/behavior_survey.pyscripts/flatten.pyscripts/layers_lint.pyscripts/layers_survey.pyscripts/private_leaks.pyscripts/refs.pyscripts/resolve.pyscripts/schema_lint.pyscripts/test_layers_lint.pyscripts/test_refs.pyscripts/test_resolve.pyscripts/test_schema_lint.pyscripts/test_visibility.pyscripts/visibility.pyscripts/vocab_survey.pyskill-snitch-report.md

FAQ

Что делает скилл prototype?

MOOLLM's object model: objects delegate to parents listed in inherits:, Self-style, with no classes. How to declare parents, how lookup resolves a slot, and resolve.py to check it.

Как установить скилл prototype?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл prototype запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить prototype с