agentleFS
spytensorspytensor/openmozi/skills/skill-authoring/SKILL.md

skill-authoring

Skill423 starsChanged 4 months agoMITView on GitHub

How to install a skill package a user hands over (.skill/.zip/.tar.gz), and how to write a new skill into this runtime so it is listed, enabled and usable. Use when the user says 安装这个技能/装一下这个 SKILL/install this skill, uploads a skill package, or asks MOZI to 做一个技能/写一个 SKILL/把这个流程存成技能 — anything that ends with a skill living inside MOZI.

  • Reads credentials

58 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use observability, incident-response and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 7 projects that use this

  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 5 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 3 projects that use this

  • jacobraskSkill

    knowledge-base

    Manage your personal knowledge base of curated resources, bookmarks, and excerpts. Triggers include "knowledge base", "kb", "add to knowledge", "add tabs to", "what do I have on", "what do we know about", "find resources about". Use with safari-tabs skill for bulk ingestion from Safari windows. Location is ~/knowledge/.

    Also in 3 projects that use this

  • UnitOneAISkill

    threat-modeling

    Runs a structured STRIDE threat model on any system design, API specification, or codebase. Auto-invoked when the user discusses architecture, shares a system diagram or design document, or asks "what could go wrong?" Produces threat actor profiles, component-threat matrix, a threat register with STRIDE classification, data-flow diagram template, trust boundary identification, and prioritized mitigations mapped to MITRE ATT&CK techniques.

    Also in 3 projects that use this

  • ElasticSkill

    accessibility

    Accessibility guidance for Kibana. Use this skill when working with or reviewing EUI components, resolving a11y-related (@elastic/eui) ESLint issues, and ensuring proper use of ARIA attributes, focus management, keyboard interactions, and accessible naming conventions.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 52 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add "overwrite": true only when replacing a skill of the same name.

    line 40
  2. Distinctive:

    If it refuses, the message says why.

    line 47
  3. Distinctive:

    When the user asks MOZI to turn a workflow into a skill:

    line 58
  4. Very specific:

    Confirm before you report success: Call list_runtime_skills (or validate_skill) and check the skill is listed, enabled and eligible.

    line 99

“Common” is measured: kept by at least 6 in 10 of the 52 edited versions of this file we could read. “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
SKILL.md

Skill authoring and installation

This is MOZI's own runtime contract for skills. It is not the same as Claude Code's — skill-creator in this catalog is Anthropic's asset and describes .claude/ conventions and a claude -p eval loop that do not apply here. Follow this skill for anything that has to end up installed in MOZI.

Installing a package the user handed over

A skill package is an archive. .skill is the standard format (it is a zip); users also send plain .zip, and it is common for the archive to contain the .skill next to unrelated files they used while building it.

Pass the archive straight to install_skill. Do not unpack it first.

install_skill { "source": "path", "source_path": "<absolute path to the archive>" }
  • Uploaded files arrive with their absolute path in your turn context. Use that path verbatim.
  • source: "path" also accepts a directory containing SKILL.md, or the SKILL.md file itself.
  • source: "bundled" is only for reinstalling a skill MOZI already ships. It is never the right choice for a user's package — it needs skill_id, and a user's skill has no bundled id.
  • Add "overwrite": true only when replacing a skill of the same name.

The runtime unpacks the archive, finds SKILL.md (at the root, in a single wrapper directory, or in a single nested .skill), copies it into the workspace skill directory, and reloads the catalog. The result includes eligible and any missing_bins / missing_env.

If it refuses, the message says why. Act on it rather than retrying:

MessageWhat to do
No SKILL.md found inside <file>Not a skill package. Look inside with shell_exec and tell the user what it actually contains.
contains N skillsAsk which one, then point source_path at that directory after unpacking.
Workspace skill already existsConfirm with the user, then repeat with "overwrite": true.
missing_bins / missing_env non-emptyIt installed but cannot run yet. Tell the user exactly which binary or key is missing.

Writing a new skill

When the user asks MOZI to turn a workflow into a skill:

  1. Write the files into a folder you can write — the workspace, or beside the files this turn is already working with. A skill is a directory:

    <name>/
      SKILL.md          # required
      references/       # optional supporting docs
      scripts/          # optional executable helpers
  2. SKILL.md starts with YAML frontmatter. name and description are required; everything else is optional:

    ---
    name: weekly-pnl-brief
    description: "What it does, and — just as important — when it should trigger. Include the phrasings a user would actually type, in their language."
    version: "1.0.0"
    category: utility        # utility | coding | research | communication | media | system
    user-invocable: true     # false = model-only, not callable by name
    requires:
      bins: [python3]        # checked at load; missing ones make the skill ineligible
      env: [SOME_API_KEY]
    ---

    The body below the frontmatter is the procedure, and it is what gets loaded into context when the skill activates. Write it as steps, not prose.

  3. Install it — this is the step that makes it real:

    install_skill { "source": "path", "source_path": "<the folder you just wrote>" }

    Installing copies the folder into the workspace skill directory and refreshes the catalog. Writing SKILL.md somewhere and stopping does not install anything.

  4. Confirm before you report success. Call list_runtime_skills (or validate_skill) and check the skill is listed, enabled and eligible. Report what the runtime returned, not what you intended.

description decides whether the skill is ever used again: it is the only line in the catalog, so it must carry both what the skill does and when to reach for it. A description that only says what it does will never trigger.

Two things that are not this

  • propose_skill persists a draft into the autogen namespace with user-invocable: false. It is for a workflow you judged reusable mid-task — not for a skill the user asked you to make. Autogen drafts are hidden from the operator's Skills page, so a user who asked for a skill would see nothing there.
  • Editing an installed skill is install_skill with "overwrite": true, or the operator editing SKILL.md on the Skills page. Do not hand-patch files under the workspace skill directory and assume the catalog noticed; call reload_skills if you do.

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.