Skip to content

Skills

Skills are reusable capability bundles — a SKILL.md definition plus any supporting files (templates, reference docs, examples). They live in .agentsmesh/skills/{name}/ and can be referenced by agents, commands, and directly invoked by users.

Directory structure

  • Directory.agentsmesh/skills/
    • Directoryapi-generator/
      • SKILL.md Skill definition
      • template.hbs Handlebars template
      • Directoryexamples/
        • user-api.ts Example output
    • Directorysecurity-review/
      • SKILL.md
      • owasp-checklist.md Reference material
    • Directorycommit/
      • SKILL.md

SKILL.md format

---
description: Generate REST API endpoints from OpenAPI specs
---
Given an OpenAPI specification file, generate TypeScript route handlers
with request validation, error handling, and response typing.
Reference template: [template.hbs](./template.hbs)
See example: [user-api.ts](./examples/user-api.ts)

Frontmatter reference

FieldTypeDescription
descriptionstringShort description shown in skill menus.

Supporting files

Any file placed alongside SKILL.md is a supporting file. Supporting files are:

  • Preserved during agentsmesh generate — copied to the target skill directory
  • Preserved during agentsmesh import — restored from the tool directory
  • Referenced with relative paths in SKILL.md

Internal file references (e.g., [template.hbs](./template.hbs)) are rewritten from canonical paths to target-relative paths during generation, and restored on import.

Tool-specific behavior

ToolSupportNotes
Claude CodeNative.claude/skills/{name}/SKILL.md
CursorNative.cursor/skills/{name}/SKILL.md
CopilotNative.github/skills/{name}/SKILL.md
Gemini CLINative.gemini/skills/{name}/SKILL.md
ClineNative.cline/skills/{name}/SKILL.md
Codex CLINativeSkills embedded in AGENTS.md
WindsurfNative.windsurf/skills/{name}/SKILL.md
ContinueEmbeddedProjected with metadata
JunieEmbeddedProjected with metadata

Example skills

Commit skill

---
description: Create a conventional commit from current changes
---
Review the staged and unstaged git changes.
Analyze what was modified and why.
Draft a conventional commit message following: feat|fix|refactor|test|docs|chore(scope): message
Stage relevant files and commit.

Code review skill

---
description: Perform a structured code review of the current diff
---
Read the current git diff. For each changed file, evaluate:
1. **Correctness** — logic errors, off-by-one, null handling
2. **Security** — injections, auth bypasses, data exposure
3. **Performance** — N+1 queries, blocking operations, memory leaks
4. **Readability** — naming, complexity, documentation gaps
Output as a structured report grouped by severity: Critical, Major, Minor.

Referencing skills from agents

---
name: senior-developer
description: Senior developer assistant with full tooling
skills:
- commit
- security-review
- api-generator
---
You are a senior software engineer...