一键导入
write-mempalace-skill
How to author new mempalace skills for Claude Code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
How to author new mempalace skills for Claude Code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Diagnose mempalace setup (config, palace path, MCP, FTS/index health)
List or inspect people/project entities tracked in the mempalace graph
Mine a project directory into the mempalace corpus (drawers, rooms, wings)
Hybrid search over the mempalace corpus (BM25 + vectors + optional graph)
Show mempalace palace status (drawers, wings, rooms, health)
Trace a file, function, or line back to the agent session that produced its current commit
| name | write-mempalace-skill |
| description | How to author new mempalace skills for Claude Code |
A mempalace skill is a directory under plugin/skills/<name>/ containing:
SKILL.md -- the skill definition (required, under 100 lines for action skills)EXAMPLES.md -- usage examples with expected output (action skills only)_shared/TROUBLESHOOTING.md -- common failures and fixes (action skills only)Reference skills have only SKILL.md.
Required structure with YAML frontmatter, quick start, why, workflow, and anti-patterns sections. All code fences must have a language identifier (markdownlint MD040). See any existing action skill (e.g., recall/, forget/) for the canonical example.
Top-level sections:
---
name: my-skill
description: One-line description of what the skill does
argument-hint: "[args]"
user-invocable: true
---
Context prompt for the agent: $ARGUMENTS
## Quick start
Brief 1-2 line example.
## Why
One sentence explaining the purpose.
## Workflow
1. Step one
2. Step two
## Anti-patterns
**WRONG** -- bad approach:
// Bad code example
**RIGHT** -- good approach:
// Good code example
> See TROUBLESHOOTING.md and EXAMPLES.md for more.
Reference skills are simpler -- only SKILL.md with frontmatter and content:
---
name: mempalace-xxx
description: Brief description
---
## Content
Reference data, tables, links.
recall, forget, handoff)mempalace- prefix (mempalace-config, mempalace-mcp-tools)SKILL.md.name, description, argument-hint, user-invocable.argument-hint and user-invocable.agentmemory- prefix -- use mempalace-.$ARGUMENTS placeholder in the body is replaced with the user's input at invocation time.