memory-write

📁 iyangl/memory-hub 📅 Today
4
总安装量
4
周安装量
#53156
全站排名
安装命令
npx skills add https://github.com/iyangl/memory-hub --skill memory-write

Agent 安装分布

codex 4
opencode 3
gemini-cli 3
antigravity 3
claude-code 3
github-copilot 3

Skill 文档

Purpose

Write knowledge content to a bucket file and automatically update the topics.md knowledge index.

Input

  • bucket: pm | architect | dev | qa
  • file: filename within the bucket
  • --topic: topic name for topics.md index
  • --summary: one-line description for topics.md
  • --anchor (optional): anchor tag for topics.md reference
  • --mode (optional): append (default) or overwrite
  • Content via stdin

Required Flow

memory-hub write <bucket> <file> \
  --topic <name> --summary "<description>" \
  [--anchor <anchor>] [--mode append|overwrite] <<'EOF'
<markdown content>
EOF

Output

JSON envelope with data.bytes_written and write metadata.

Error Handling

  • INVALID_BUCKET → invalid bucket name
  • NO_INPUT → no stdin content provided
  • EMPTY_CONTENT → stdin content is empty