ask-matt
MAmattpocock/skills337k近 7 天新增 4,978 个 star
Create, test and install physical skills for an Autonomous lamp (lampOS V2) - things the lamp does in the room by noticing something with its senses and answering with its body, light and voice. Use when someone says "Lamp, learn to ...", asks to teach the lamp a new behaviour, or to change, test or install one of its skills. Not for software-only skills for Claude Code or Codex.
A physical skill is something the lamp does in the room: it notices something with its senses (topics on the lamp's bus) and answers with its body, its light and its voice (services). This skill helps an owner make one for their own lamp, test it on the lamp's own recordings, and install it.
Read references/senses-and-actions.md
before writing anything: a skill can only use what is listed there. The
lamp's design is lampOS/docs/skills.md in its repository; you do not need
it to write a skill, and if it disagrees with these files, it is right.
The person is usually the lamp's owner, not a programmer. They said "Lamp, learn to ..." out loud; the lamp handed it to you. Speak plainly. Never ask them about topics, TOML or JSON; ask about what they want the lamp to do, when, and how it should feel in the room.
Get these, from what they said first and as few questions as possible:
tool the model calls
(references/skill-folder.md), and it takes no
number: "for 25 minutes" is the voice's own timer, not the skill's.Every skill is judged by what a person in the room sees and hears, not by whether its trigger fired. Before writing one, ask: would a person or a pet do this here?
[[while]] on voice/state, and
nothing keeps it quiet while the lamp is paused: say so to the owner
before installing.skill.toml, never in the prose of a say: the runtime
applies durations and cooldowns, the model never compares numbers.[permissions] lists, and without the table it may do nothing: the
runtime refuses one that reads a topic or makes a step it does not give.
Give exactly what it uses, and tell the owner what that is. A fixed hum
still needs speech permission; rest intents need body permission, and
private output ceilings need their separate output_limits grant. Keep
unmeasured routines disabled; installation alone does not qualify them.<name>/
SKILL.md name, description, and how the lamp talks about it
skill.toml needs, kind, version, permissions, a trigger (or a tool), ask, do
tests/ recordings of the bus and what the skill should do in each
moves/ lights/ sounds/ optional data
The format and every field: references/skill-folder.md.
Use the name the owner would use, in lower case with hyphens:
stretch-break, not ergonomic-reminder-v2.
No code unless the data truly cannot say it. A run.py is optional in the
design, but the first skills prove a new skill needs none; do not write one
without saying why.
A skill is not finished until it has passed on the lamp's own recordings:
How to record and replay, and the test file: references/testing.md. If no recording exists for a case, record one on the lamp (with the owner's yes) or say which case is untested. Never claim a test you did not run.
Copy the folder to the lamp's skills folder; the runtime reloads it live. references/installing.md says how, and how to take it back out. Ask the owner before touching their lamp, and say what will move or light up.
The owner keeps a skill only after seeing it. The live runtime times
for, gap and cooldown by when messages arrive, so a recording replayed
fast does not set off a 50-minute skill; the tests (recorded time) are the
proof it is right, and the showing is only for the owner to see it:
<name>-demo whose durations are cut to seconds
(for = "3s", gap and absent_for the same, cooldown = "1m"), beside
the real one, which waits for its real durations.lamp-bus pub humans/faces/tracked latest '...' --type lamp_msgs/Faces; an air/state with the CO2 high). It acts once, in the
room.Then ask "Keep it?": keep it, change it, or take it out. A skill they did not keep is removed.
Tell the owner, in their words, what the lamp will now do and when, and that it can be taken out whenever they like. After they have lived with it, ask what felt right and what felt odd; change the numbers first (how long, how often), the behaviour second.
If something here is not true of the lamp (a topic renamed, a field the
runtime refuses), the lamp's own lampOS/docs/skills.md and the runtime's
error are right and this file is stale: follow them, and say what was wrong
so the skill creator can be mended.
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
OBobra/superpowers331k近 7 天新增 4,772 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star