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 從公開儲存庫中收錄這些內容。

檢舉或申請下架