Use when implementing plan-build-improve cycles for content updates. Triggers on "knowledge workflow", "plan then build", "spec-driven implementation".
Guide for managing the complete plan-build-improve cycle when making knowledge base updates. The spec-as-contract pattern ensures review before implementation.
Before any implementation, create a spec document:
Analyze the requirement
Write spec to .claude/.cache/specs/knowledge/{slug}-spec.md
# Spec: {Title}
## Requirement
{Original user requirement}
## Analysis
- Existing coverage: {files that touch this topic}
- Gap identified: {what's missing}
- Entry strategy: {new | extend | journal}
## Plan
- Target file: {absolute path}
- Changes: {bullet list of content additions}
- Cross-references: {other files to update}
- Voice notes: {tone guidance from existing content}
## Verification
- [ ] Content aligns with STYLE_GUIDE.md
- [ ] Frontmatter updated (last_updated, tags)
- [ ] Cross-references added
Present spec to user before proceeding:
If user declines: Save spec path, report how to resume later. This is valid - not an error.
Execute the spec faithfully:
last_updated in frontmatterAfter successful build, extract learnings:
Note: Improve stage is optional. If it fails, log but don't fail overall workflow.
## Knowledge Workflow Complete
**Requirement:** {original requirement}
### Stages
| Stage | Status | Output |
|-------|--------|--------|
| Plan | Complete | {spec_path} |
| Build | Complete | {file_count} files modified |
| Improve | Complete/Skipped | {expertise notes} |
### Files Modified
- {list of absolute paths with brief descriptions}
### Specification
Saved at: {spec_path}
Resume later with: "Build from spec at {spec_path}"
Spec-as-Contract Pattern
Sequential Execution
User Control Points
Graceful Degradation
User: "Add insight about prompt caching to chapter 4"
Plan:
- Grep chapter 4 for existing caching content
- Determine best section to extend
- Write spec with specific additions
Build:
- Read target section
- Add caching insight preserving voice
- Update frontmatter
Report: "Added to chapters/4-context/2-context-strategies.md"
User: "Create entry for 'specs as source code' mental model"
Plan:
- Check chapter 8 structure
- Identify next section number
- Write spec for new file
Build:
- Create chapters/8-mental-models/3-specs-as-source-code.md
- Add proper frontmatter
- Write content following STYLE_GUIDE
Report: "Created new entry with frontmatter order 3.8.3"
User: "Build from spec at .claude/.cache/specs/knowledge/prompt-caching-spec.md"
Skip plan stage (spec exists)
Skip review stage (user explicitly requesting build)
Execute build from spec
Run improve stage
Plan stage completes, spec written
User: "No, stop here - I'll review the spec first"
Report:
- Spec location: {path}
- Resume with: "Build from spec at {path}"
- Workflow paused (valid outcome)
npx skills add jayminwest/协调知识工作流下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes). Use when a user asks OpenClaw to add a note, list notes, search notes, or manage note folders.
Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
Use when you need to control Slack from OpenClaw via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
Manage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
Manage Trello boards, lists, and cards via the Trello REST API.
Category:productivity