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:
- Does this task recur? (If it’s a one-time thing, just use a conversation — no need to make a skill)
- Can existing skills handle it? (First check whether built-in skills and the Skill Marketplace already cover it)
- 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:
- Fixed process: The execution steps are basically the same each time
- Clear rules: Inputs and outputs have a standard format
- Recurring: Used at least weekly
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:
- .md file: A pure instruction file that defines invocation rules and methodology, with no scripts
- .zip archive: Contains SKILL.md and supporting scripts (Python), reference materials, etc.
Steps to Create a Skill
1. Clarify What the Skill Does
Think through these first:
- Trigger scenario: What the user says that should invoke this skill
- Input: What the skill needs as input (files, text, parameters)
- Output: What the skill produces (files, text, data)
- Steps: What the execution flow is
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
- Open LanMate and click Skills in the upper-left corner
- Click Personal Skills → Install Skill
- Select the .md or .zip file you wrote and upload it
- The system automatically validates the file, parses its content, and runs a security review
- 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
- Before creating a skill, confirm the script content doesn’t contain dangerous operations (deleting system files, accessing sensitive directories, etc.)
- A skill’s access scope is determined by your local authorization configuration — a skill cannot access unauthorized directories
- Do not install third-party skills from unknown sources; use the “Security Review” feature to examine script content before installation
- Personal skills are only visible to you and do not enter the Skill Marketplace