diff options
| author | Agando <roduccomm@gmail.com> | 2026-06-09 06:00:43 +0200 |
|---|---|---|
| committer | Agando <roduccomm@gmail.com> | 2026-06-09 06:00:43 +0200 |
| commit | 9f60030e39feecc76f11671a4b9d82303c83670c (patch) | |
| tree | cd4d35985f98aef0f4e688e4bcc283a476c8cd3b /skills/module-editing-workflow.json | |
| parent | b562e1491513163921593985f3542d4ee8ae0e75 (diff) | |
auto: 2026-06-09_06:00 changes
Diffstat (limited to 'skills/module-editing-workflow.json')
| -rw-r--r-- | skills/module-editing-workflow.json | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/skills/module-editing-workflow.json b/skills/module-editing-workflow.json new file mode 100644 index 0000000..7c37e76 --- /dev/null +++ b/skills/module-editing-workflow.json @@ -0,0 +1,9 @@ +{ + "name": "module-editing-workflow", + "description": "Step-by-step procedure for editing a WebX11 module: view → edit → test → keep or reload.", + "tags": [], + "category": "general", + "created": "2026-06-08T20:27:43.109Z", + "updated": "2026-06-08T20:27:43.109Z", + "content": "---\nname: module-editing-workflow\ndescription: Edit a WebX11 module safely — view source, edit in /_mods/, test live, reload if broken.\ncategory: dev\ntags: modules,editing,workflow,dev\n---\n\n# Module Editing Workflow\n\n## When to use\nUser asks to modify, fix, or improve a WebX11 module's behavior.\n\n## Steps\n\n1. **Get current state**\n - Call `get_module_status()` to see what's loaded, modified, and where source lives.\n\n2. **Read the source**\n - Call `view_module(name)` to read the current source of the target module.\n - Identify the exact section/function the user wants changed.\n\n3. **Open the editor**\n - Call `edit_module(name)` — this copies the module into `/<name>/index.js` (or similar) and opens an editor.\n - **CONFIRM WITH USER FIRST** — this is destructive and overwrites their local copy.\n\n4. **Make the change**\n - Edit only what was requested. Don't refactor surrounding code.\n - Preserve the module's public API (class name, exported methods) unless told otherwise.\n\n5. **Test live**\n - Call `test_module(name)` to load the edited version from `/_mods/`.\n - If the test errors: call `reload_module(name)` to discard edits and restore the original.\n - If the test works: tell the user it's live. They can keep it or reload.\n\n6. **Document the change**\n - After a successful edit, consider `create_skill` if the change is a reusable pattern.\n\n## Anti-loop notes\n- Never call `view_module` on a module you don't intend to edit.\n- Never call `test_module` twice in a row without a change in between.\n- If `edit_module` says \"no changes detected\" — stop, don't re-call.\n\n## Rollback\n- `reload_module(name)` — always works, restores the original from the source URL.\n- `list_modified_modules()` — see what's currently in a modified state.\n" +}
\ No newline at end of file |