make-editable
Skill0 starsChanged 7 days agoMITView on GitHub
Add a click-to-edit and click-to-comment overlay to a static HTML artifact. Stamps data-edit ids, injects editor_overlay.js, and creates the edits session directory. Use when user says "make it editable", "let me click to edit", "click to comment", "edit mode", or runs /make-editable.
In this repository30 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- animated-videoSkill
- apply-editsSkill
- apply-tweaksSkill
- copy-exampleSkill
- create-design-systemSkill
- doctorSkill
- export-pdfSkill
- export-pptxSkill
- export-standaloneSkill
- governance-reviewSkill
- handoffSkill
- ingest-documentSkill
- ingest-figmaSkill
- ingest-githubSkill
- ingest-screenshotSkill
- inspectSkill
- interactive-prototypeSkill
- live-reloadSkill
- local-commentsSkill
- make-deckSkill
- make-tweakableSkill
- publishSkill
- register-assetSkill
- ship-branchSkill
- snapshotSkill
- sync-design-systemSkill
- use-design-systemSkill
- verify-artifactSkill
- wireframeSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
If the tag was absent: Bash(cp starters/editor_overlay.js artifacts/<dir>/) (literal directory) and Edit the final </body> to
- Very specific: line 48
Ensure <link rel="icon" href="data:,"/> is in <head>.
- Distinctive: line 60
If the block exists but the meta is missing, add only the meta.
- Very specific: line 68
Write artifacts/edits/<session-id>/pending.yaml (empty) Write artifacts/edits/<session-id>/comments.yaml (empty) Write …
- Very specific: line 69
Write artifacts/edits/<session-id>/comments.yaml (empty) Write artifacts/edits/<session-id>/state.yaml: target_html: <$0> phase: idle …
- Very specific: line 70
Write artifacts/edits/<session-id>/state.yaml: target_html: <$0> phase: idle last_applied_at: null
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Make editable
Shift+E in the preview outlines every stamped element; clicking one opens a
panel for its text (leaf elements only), an allowlisted set of CSS properties,
and a hide toggle. Shift+C switches to comment mode. Nothing touches the HTML
until /apply-edits runs. Spec: docs/plans/local-editor-plan.md §2.
Prerequisites
$0is an HTML file underartifacts/.- Static HTML only.
Grep$0fortype="text/babel". If found, stop with: "This artifact uses React + Babel (type="text/babel"). Click-to-edit only supports static HTML because text and style edits cannot be written back into JSX deterministically. Use/make-tweakablefor typed knobs instead."
Phase 1 — Idempotency check
Grep $0 for data-edit="e. Note the highest number N found (0 if none).
Grep for editor_overlay.js; remember whether the tag already exists.
Phase 2 — Stamp ids
Read $0. Walk <body> in document order. Candidates: h1 h2 h3 h4 p li a
button blockquote figcaption img and any element with a class attribute.
Skip anything inside <script>, <style>, <template>, <svg>,
#tweaks-panel, and anything already carrying data-edit. For each
candidate, in order, Edit its opening tag to insert data-edit="eNNN"
right after the tag name, NNN = N+1, N+2, … zero-padded to 3 digits. Use the
full opening tag as old_string; if it is not unique, include the previous
line. Stop after 80 new ids and report the remaining count.
Phase 3 — Starter and tag
If the tag was absent: Bash(cp starters/editor_overlay.js artifacts/<dir>/)
(literal directory) and Edit the final </body> to
<script src="./editor_overlay.js" data-dev-only></script>
</body>Ensure <link rel="icon" href="data:,"/> is in <head>.
Grep for id="__edits". If absent, Edit to insert immediately before
</head> (exact text, the base rule is what makes hidden work against
author display rules):
<meta name="edits-generation" content="0">
<style id="__edits">
/* generated by /apply-edits — one rule per (target, prop); do not hand-edit */
[data-edit][hidden] { display: none !important; }
</style>If the block exists but the meta is missing, add only the meta.
Phase 4 — Session directory
session-id = edits-{slug}-{YYYYMMDD} (slug: basename without extension,
lowercase, non-alphanumerics to -).
Bash(mkdir -p artifacts/edits/<session-id>/applied)
Write artifacts/edits/<session-id>/pending.yaml (empty)
Write artifacts/edits/<session-id>/comments.yaml (empty)
Write artifacts/edits/<session-id>/state.yaml:
target_html: <$0>
phase: idle
last_applied_at: nullVerify
/serve if needed, then /done http://127.0.0.1:4567/<relative path>.
Console clean. press_key Shift+E then take_snapshot: the panel text
"Click an outlined element." is present. press_key Escape.
Report
"Editable. In the preview press Shift+E to edit or Shift+C to comment.
Click 'Link pending.yaml' and pick artifacts/edits/<session-id>/pending.yaml
(and the same for comments.yaml) so the panel writes live. When done, say
'apply edits' or run /apply-edits <path>. Stamped K elements (ids eAAA–eBBB)."
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
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.

