memory-write
Original:🇺🇸 English
Translated
写入知识文件并自动更新 topics.md 索引
3installs
Sourceiyangl/memory-hub
Added on
NPX Install
npx skill4agent add iyangl/memory-hub memory-writeTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Purpose
Write knowledge content to a bucket file and automatically update the topics.md knowledge index.
Input
- : pm | architect | dev | qa
bucket - : filename within the bucket
file - : topic name for topics.md index
--topic - : one-line description for topics.md
--summary - (optional): anchor tag for topics.md reference
--anchor - (optional):
--mode(default) orappendoverwrite - Content via stdin
Required Flow
bash
memory-hub write <bucket> <file> \
--topic <name> --summary "<description>" \
[--anchor <anchor>] [--mode append|overwrite] <<'EOF'
<markdown content>
EOFOutput
JSON envelope with and write metadata.
data.bytes_writtenError Handling
- → invalid bucket name
INVALID_BUCKET - → no stdin content provided
NO_INPUT - → stdin content is empty
EMPTY_CONTENT