skill-editor
Copilot instructions4 starsChanged 9 months agoMITView on GitHub
Claude Skill Editor is a client-only React SPA for editing .skill files (ZIP archives). Users load a .skill file, edit its structure (SKILL.md, scripts, references, assets), and export the modified archive. There is no backend. A .skill file is a ZIP archive: Parse with regex: /^---\n([\s\S]*?)\n---\n([\s\S]*)$/ Validate with js-yaml (safe parse only). Detect language from file extension and apply the correct language package:
In this repository19 other files it gives its agents.
The file
We split this copilot-instructions.md into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Never use TypeScript: All source files must be .jsx or .js.
- Distinctive: line 33
No backend calls: All processing happens in the browser.
- Very specific: line 37
Add a beforeunload listener to warn users of unsaved changes.
- Very specific: line 131
Add: only to scripts/, references/, or assets/.
- Very specific: line 133
SKILL.md: always protected; no delete allowed.
- Distinctive: line 137
Use lazy loading for file content in large ZIP archives.
- Distinctive: line 138
Avoid reading all file contents eagerly on load.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
Skill Editor — GitHub Copilot Instructions
Project
Claude Skill Editor is a client-only React SPA for editing .skill files (ZIP archives). Users load a .skill file, edit its structure (SKILL.md, scripts, references, assets), and export the modified archive. There is no backend.
Tech Stack
| Tool | Purpose |
| React (JavaScript) | UI framework — no TypeScript |
| Vite | Dev server & bundler |
| JSZip | Client-side ZIP read/write |
| CodeMirror 6 | Code editor with syntax highlighting |
| Tailwind CSS | Styling |
| js-yaml | YAML parsing and validation |
Development Commands
npm run dev # Start development server
npm run build # Production build
npm run preview # Preview production buildCoding Rules
- Never use TypeScript. All source files must be
.jsxor.js. - No backend calls. All processing happens in the browser.
- No persistence. State lives only in memory for the current session.
- UI copy is in Italian (e.g., "SALVA", "TRASCINA QUI IL FILE").
- Scripts loaded from
.skillfiles are displayed/edited only — never executed. - Add a
beforeunloadlistener to warn users of unsaved changes.
Architecture
Two-screen flow
- UploadScreen — drag & drop or file input to load a
.skillfile. - SkillEditor — main editing interface:
Header— filename + "SALVA" button.Sidebar— tree view with 🗑️ delete icons (SKILL.md is protected).EditorPanel— CodeMirror 6 with per-file-type syntax highlighting.
Key source files
src/
App.jsx
components/
AddFileDialog.jsx
EditorPanel.jsx
Header.jsx
Sidebar.jsx
SkillEditor.jsx
UploadScreen.jsx
ValidationToast.jsx
constants/messages.js
hooks/useSkillState.js
utils/
fileUtils.js
yamlParser.js
zipHandler.jsApplication state (useSkillState)
| State | Type | Description |
appState | 'upload' | 'editing' | Current screen |
skillStructure | object | In-memory ZIP contents |
selectedFile | string | Active file path in editor |
validationErrors | array | Pre-export validation errors |
isModified | boolean | Unsaved changes flag |
.skill File Format
A .skill file is a ZIP archive:
SKILL.md ← required; YAML frontmatter + Markdown body
scripts/ ← optional; Python, JS, shell scripts
references/ ← optional; reference documentation
assets/ ← optional; binary assets (images, fonts…)SKILL.md frontmatter
---
name: skill-name
description: Skill description
---
Markdown content here...Parse with regex: /^---\n([\s\S]*?)\n---\n([\s\S]*)$/
Validate with js-yaml (safe parse only).
ZIP Operations
| Operation | API |
| Load | JSZip.loadAsync(file) |
| Export | jszip.generateAsync({ type: 'blob' }) |
CodeMirror 6 Syntax Highlighting
Detect language from file extension and apply the correct language package:
| Extension | Package |
.md | @codemirror/lang-markdown |
.yaml / .yml | @codemirror/lang-yaml |
.py | @codemirror/lang-python |
.js / .sh | @codemirror/lang-javascript |
Validation (pre-export)
SKILL.mdmust exist and cannot be deleted.SKILL.mdfrontmatter must parse as valid YAML withnameanddescriptionfields.- Directory structure must follow the allowed layout above.
File Management Rules
- Add: only to
scripts/,references/, orassets/. - Delete: any file except
SKILL.md. - SKILL.md: always protected; no delete allowed.
Performance Notes
- Use lazy loading for file content in large ZIP archives.
- Avoid reading all file contents eagerly on load.
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.

