Write Agentmemory Skill

作者 rohitg00007a1a7fe864无许可证29K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

The house format and rules for writing or updating an agentmemory skill. Use when adding a new skill, restructuring an existing one, or reviewing a skill contribution for consistency.

仅含说明AI & Agents
AI 生成的概览

定义编写或更新 agentmemory 技能的内部格式与规则。

功能
规定分层技能格式,涵盖目录结构、SKILL.md 前置元数据与正文顺序,以及可选的 REFERENCE.md 和 EXAMPLES.md 文件。它设定描述、行数限制、交叉引用、生成事实和风格的规则,并给出用于审查技能贡献的检查清单。
适用场景
适用于新增 agentmemory 技能、重构现有技能,或审查技能贡献的一致性。它面向技能编写与维护,而非最终用户任务。
运行要求
除智能体外无需脚本或工具,仅为说明性内容。其中提到用于重新生成和检查技能生成事实的 npm 命令。

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.

来源与署名

来源:rohitg00/agentmemory位于plugin/skills/write-agentmemory-skill提交007a1a7

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架