skill-creator
GitHub用于创建、编辑、重构和审核 memmy-agent 技能及其 SKILL.md 文件。提供技能目录结构规范、YAML 元数据定义及编写最佳实践,确保技能高效触发与组织。
Trigger Scenarios
Install
npx skills add MemTensor/memmy-agent --skill skill-creator -g -y
SKILL.md
Frontmatter
{
"name": "skill-creator",
"description": "Create, edit, improve, tidy, review, audit, or restructure memmy-agent skills and SKILL.md files."
}
Skill Creator
Use this skill when creating or maintaining a memmy-agent skill.
Core Principles
Keep the skill small enough to load quickly. Put only the essential workflow in SKILL.md; move detailed reference material into references/, reusable deterministic code into scripts/, and output assets into assets/.
Write for another agent that is already capable. Include the procedural details, constraints, commands, schemas, and examples that would be annoying or risky to rediscover.
Skill Shape
A skill is a directory with one required file and optional resources:
skill-name/
├── SKILL.md
├── scripts/
├── references/
└── assets/
SKILL.md must contain YAML frontmatter followed by Markdown instructions.
Required frontmatter:
---
name: my-skill
description: Do the specific workflow. Use when the agent needs to handle concrete trigger cases.
---
Supported memmy-agent frontmatter fields:
name: lowercase letters, digits, and hyphens only.description: the trigger text that decides when the skill is useful.metadata: optional memmy-agent runtime metadata.always: optional boolean for skills that should always load.license: optional license label.allowed-tools: optional tool guidance for consumers.
Use only metadata.memmy for runtime metadata:
metadata:
memmy:
always: true
manualOnly: false
requires:
bins: ["gh"]
env: ["GITHUB_TOKEN"]
Set metadata.memmy.manualOnly: true for a Skill that must stay out of the normal Skill index and load only when the current task explicitly references $skill-name. Do not combine it with startup initialization.
Creation Workflow
- Clarify the real use cases and triggering phrases.
- Pick a short hyphen-case name.
- Create
<workspace>/skills/<skill-name>/SKILL.md. - Add only the resource directories that are actually needed.
- Run the validator.
- Test any scripts by executing them on realistic inputs.
Create files directly. There is no required init scaffold command for memmy-agent skills.
Writing SKILL.md
Put all trigger information in the frontmatter description. The body is loaded only after the skill triggers, so a "when to use this skill" section in the body is too late to help discovery.
Use the body for:
- A short operating procedure.
- Commands that should be run exactly.
- References to bundled files and when to read them.
- Constraints that prevent common mistakes.
Avoid:
- README, changelog, installation guide, or process notes inside the skill root.
- Placeholder text such as TODO, "fill me in", or example-only resource files.
- Duplicating long reference material in both
SKILL.mdandreferences/.
Resource Guidance
Use scripts/ for repeatable operations where deterministic behavior matters. Prefer Python, shell, or other scripts that can run through an explicit interpreter command.
Use references/ for large instructions, schemas, API notes, policies, or examples that should be read only when relevant.
Use assets/ for templates, images, fonts, sample documents, or other files that are consumed as output resources rather than read into context.
Validation
Run the bundled quick validator before considering a skill ready:
python3 {baseDir}/scripts/quick-validate.py <skill-dir>
Replace {baseDir} with the path to this skill-creator directory. The validator checks the required frontmatter, memmy-agent metadata namespace, name format, placeholder descriptions, and root file organization.
If validation fails, fix the reported issue and run the command again.
Version History
- 211d521 Current 2026-08-02 21:47


