---
id: gh-write-agentmemory-skill
name: "write-agentmemory-skill"
url: https://skills.yangsir.net/skill/gh-write-agentmemory-skill
author: rohitg00
domain: ai-skill-platform-ecosystem
tags: ["skill-development", "standardization", "consistency", "agent-frameworks"]
install_count: 6000
rating: 4.40 (120 reviews)
github: https://github.com/rohitg00/agentmemory/tree/main/plugin/skills/write-agentmemory-skill
---

# write-agentmemory-skill

> 此技能定义了编写或更新 agentmemory 技能的规范和格式。它确保所有技能贡献的一致性和高质量，使技能开发更加结构化和易于维护。在添加新技能、重构现有技能或审查技能贡献时，可利用此技能来确保符合标准。

**Stats**: 6,000 installs · 4.4/5 (120 reviews)

## Before / After 对比

### 技能开发规范化

**Before**:

在没有此技能之前，开发者在编写或更新 agentmemory 技能时，缺乏统一的格式和规范指导，导致技能质量参差不齐，审查人员需要花费大量时间手动检查一致性，且新成员难以快速理解和遵循开发标准。

**After**:

此技能提供了明确的格式和规则，显著减少了技能审查所需的时间，提高了技能贡献的质量和一致性。新开发者可以更快地掌握开发标准，团队协作效率也得到提升，确保了技能生态的健康发展。

| Metric | Before | After | Change |
|---|---|---|---|
| 技能审查时长 | 60分钟 | 10分钟 | -83% |
| 技能贡献错误率 | 30% | 5% | -83% |

## Readme

agentmemory skills follow one tiered format so they stay skimmable, accurate, and current. Match it exactly.

## Directory layout

```text
plugin/skills/<name>/
  SKILL.md      (required, under 100 lines)
  REFERENCE.md  (optional, dense facts; auto-generate data tables)
  EXAMPLES.md   (optional, worked transcripts)
```

## SKILL.md rules

- Frontmatter: `name`, `description`, optional `argument-hint`, and `user-invocable`. Set `user-invocable: true` only for skills the user runs as a slash command; reference and knowledge skills are `false`.
- Description is two sentences and the only thing the agent sees when deciding to load the skill. Sentence one states the capability. Sentence two starts "Use when" and lists concrete triggers. Keep it distinct from sibling skills, under 1024 chars, third person.
- Body order: Quick start (one concrete example), Why (the governing principle), Workflow (numbered steps with decision gates), Anti-patterns (a WRONG vs RIGHT callout for the top mistake), Checklist, See also (cross-link siblings), Reference or Troubleshooting pointer.
- Stay under 100 lines. Move dense facts to REFERENCE.md and examples to EXAMPLES.md.
- Cross-references link one level deep only. Shared recovery steps live in `../_shared/TROUBLESHOOTING.md`, never inlined.

## Keep it current

Facts that exist in source (tool names and parameters, REST endpoints, env vars, connect adapters, hook events) are generated, never hand-typed. Edit the source, then run `npm run skills:gen`. CI runs `npm run skills:check` and fails on drift, so generated tables cannot fall behind the code.

## Style

No external or competitor product names. No emojis. No em-dashes. No filler. State the thing and stop.

## Checklist

- Description has a "Use when" sentence with real triggers.
- SKILL.md is under 100 lines.
- No time-sensitive claims and no duplicated troubleshooting block.
- Concrete example present; generated facts come from the generator.
- Cross-links resolve and go one level deep.


---
*Source: https://skills.yangsir.net/skill/gh-write-agentmemory-skill*
*Markdown mirror: https://skills.yangsir.net/api/skill/gh-write-agentmemory-skill/markdown*