{ "name":"", "owner":{ "name":"" }, "metadata":{ "description":"", "homepage":"" }, "plugins":[ { "name":"nidhogg", "version":"0.1.0", "source":"./nidhogg", "description":"Persistent conversation memory and structured context system for Claude Code" } ] }
这里需要注意的是:
manifest 只描述“插件是什么”
并不涉及任何具体逻辑
Claude Code 会通过它发现并加载 plugin
3.接着创建 slash command:
1
mkdir nidhogg-marketplace/commands
4.创建具体命令,命令名就是文件名,比如我的是 save,哪就应该是 save.md:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
--- description: Save the current conversation into Nidhogg for long-term memory and future reuse ---
# Save Conversation
This conversation appears to be complete and ready to be preserved.
You should: 1. Identify the main topic and purpose of the conversation. 2. Write a concise summary suitable for future recall. 3. Extract any important decisions, conclusions, or design outcomes. 4. Assign relevant tags. 5. Call the Nidhogg MCP tool to persist: - the full conversation as Markdown - structured metadata as JSON
Ensure the saved output is clean, structured, and optimized for long-term retrieval.
你需要在这个 Markdown 中明确告诉模型:
当前命令的目的是什么
应该如何理解当前上下文
需要调用哪些工具
输出应该满足什么结构和质量要求
完成这个文件之后,一个 Slash command 就已经“实现”了。
4.我们可以使用 claude –plugin-dir ./nidhogg-marketplace 方式来做个测试,可以看到我们的命令: