Build Your Own Skills | LanMate User Guide

Build Your Own Skills

LanMate ships with 24 built-in skills and the Skill Marketplace has 146, but there will always be needs that off-the-shelf skills can’t cover — such as your organization’s specific approval process, a particular data-format processing requirement, or a fixed work template. In these cases, you can create your own skills.

When to Create a Skill

First ask yourself three questions:

  1. Does this task recur? (If it’s a one-time thing, just use a conversation — no need to make a skill)
  2. Can existing skills handle it? (First check whether built-in skills and the Skill Marketplace already cover it)
  3. Does the task have clear steps and rules? (If the approach varies every time, a skill won’t help either)

Characteristics of tasks suited for skills:

What a Skill Is

Every skill is essentially an instruction file (SKILL.md) plus its supporting script resources. The instruction file defines the skill’s name, description, and invocation rules, which LanMate uses to decide in what scenarios to call it. Skills can access local files, Lansenger APIs, or external services.

Skill files support two formats:

Steps to Create a Skill

1. Clarify What the Skill Does

Think through these first:

2. Write SKILL.md

SKILL.md is the core of the skill. Basic structure:

---
name: my-custom-skill
description: A one-sentence description of what the skill does and what triggers it
---

# Skill Name

## What This Skill Does
(Briefly describe the skill's capabilities and applicable scenarios)

## Invocation Rules
(When to call this skill, and when not to)

## Execution Steps
1. What to do in the first step
2. What to do in the second step
...

## Output Format
(Specify the output file format, structure, etc.)

3. Upload to LanMate

  1. Open LanMate and click Skills in the upper-left corner
  2. Click Personal SkillsInstall Skill
  3. Select the .md or .zip file you wrote and upload it
  4. The system automatically validates the file, parses its content, and runs a security review
  5. Once passed, the skill appears in the list and is enabled by default

During upload, the system checks: file format (only .md and .zip), uniqueness (name cannot be duplicated), and security review (script content has no suspicious behavior).

4. Test and Iterate

After installation, test it in a conversation using the “Use /skill-name” command. If you’re not satisfied, modify the SKILL.md and re-upload to overwrite it.

Skill Example: Weekly Report Template

Suppose your organization’s weekly report has a fixed format and needs manual formatting every time. You can make a skill for it:

---
name: weekly-report-template
description: Generate a Word document using the organization's weekly report template. Triggers: write weekly report, generate weekly report, this week's work summary
---

# Weekly Report Template Skill

## Invocation Rules
Invoke this skill when the user asks to write or generate a weekly report.

## Execution Steps
1. Ask the user for the main work completed this week (skip if already provided in the conversation)
2. Generate the weekly report with the following structure:
   - 1. Main work completed this week (each item with work content and key results)
   - 2. Work in progress and progress percentage
   - 3. Next week's work plan (ordered by priority)
   - 4. Issues and risks needing coordination
3. Summarize each work item in one sentence, with key results or data attached
4. Output a Word document, file name format: WeeklyReport_YYYYMMDD.docx

## Output Format
Word document, headings in SimHei size 3, body text in FangSong size 4, paragraph spacing 1.5x.

Skill Example: Invoice Organizer

Need to regularly organize reimbursement invoice images, recognize amounts, and summarize them into Excel:

---
name: invoice-organizer
description: Batch-recognize invoice amounts, dates, and invoice numbers from images and summarize them into an Excel spreadsheet. Triggers: organize invoices, invoice summary, reimbursement
---

# Invoice Organizer Skill

## Invocation Rules
Invoke this skill when the user asks to organize invoices or summarize invoice information.

## Execution Steps
1. Read all invoice images (jpg/png) in the specified directory
2. Run OCR recognition on each image
3. Extract: invoice number, issue date, amount, tax amount, total (price + tax), seller name
4. Summarize into an Excel spreadsheet, sorted by date
5. Generate a total row at the end of the table
6. Mark fields that cannot be recognized as "to be verified"

## Output Format
Excel file, headers: No., Invoice No., Date, Amount, Tax, Total, Seller, Notes

Managing Personal Skills

Action Description
Open folder Locate the skill’s local file in the file manager
Delete Remove from the list; cannot be undone, requires re-uploading
Enable / Disable When disabled, the skill won’t be auto-invoked, but can still be called manually via the “Use” button

Security Notes