agentleFS
mtctmtct/skill-editor/.github/copilot-instructions.md

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:

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
  1. Very specific:

    Never use TypeScript: All source files must be .jsx or .js.

    line 32
  2. Distinctive:

    No backend calls: All processing happens in the browser.

    line 33
  3. Very specific:

    Add a beforeunload listener to warn users of unsaved changes.

    line 37
  4. Very specific:

    Add: only to scripts/, references/, or assets/.

    line 131
  5. Very specific:

    SKILL.md: always protected; no delete allowed.

    line 133
  6. Distinctive:

    Use lazy loading for file content in large ZIP archives.

    line 137
  7. Distinctive:

    Avoid reading all file contents eagerly on load.

    line 138

≈ “Common” is an estimate: at least 1 in 5 of the 3,894 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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

ToolPurpose
React (JavaScript)UI framework — no TypeScript
ViteDev server & bundler
JSZipClient-side ZIP read/write
CodeMirror 6Code editor with syntax highlighting
Tailwind CSSStyling
js-yamlYAML parsing and validation

Development Commands

npm run dev      # Start development server
npm run build    # Production build
npm run preview  # Preview production build

Coding Rules

  • Never use TypeScript. All source files must be .jsx or .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 .skill files are displayed/edited only — never executed.
  • Add a beforeunload listener to warn users of unsaved changes.

Architecture

Two-screen flow

  1. UploadScreen — drag & drop or file input to load a .skill file.
  2. 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.js

Application state (useSkillState)

StateTypeDescription
appState'upload' | 'editing'Current screen
skillStructureobjectIn-memory ZIP contents
selectedFilestringActive file path in editor
validationErrorsarrayPre-export validation errors
isModifiedbooleanUnsaved 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

OperationAPI
LoadJSZip.loadAsync(file)
Exportjszip.generateAsync({ type: 'blob' })

CodeMirror 6 Syntax Highlighting

Detect language from file extension and apply the correct language package:

ExtensionPackage
.md@codemirror/lang-markdown
.yaml / .yml@codemirror/lang-yaml
.py@codemirror/lang-python
.js / .sh@codemirror/lang-javascript

Validation (pre-export)

  1. SKILL.md must exist and cannot be deleted.
  2. SKILL.md frontmatter must parse as valid YAML with name and description fields.
  3. Directory structure must follow the allowed layout above.

File Management Rules

  • Add: only to scripts/, references/, or assets/.
  • 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.