khub-deposition-update
Skill0 starsChanged 5 months agoMITView on GitHub
Use when a validated KHub route-plan must become an Obsidian note creation or append operation with source trace, template mapping, write guards, and execution reporting.
In this repository13 other files it gives its agents.
- autoresearchSkill
- bluegrid-xhs-illustrationsSkill
- brainstormingSkill
- dbsSkill
- domain-knowledge-distillerSkill
- flomo-daily-intakeSkill
- github-engineering-pattern-knowledgeSkill
- khub-classifier-routerSkill
- lijigang-roundtableSkill
- pm-discoverSkill
- recall-facadeSkill
- tavily-researchSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 2 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Follow the shared rules in ../workflow-principles.md: preserve source trace, honor write gates, and report exactly what changed.
- Very specific: line 54
If blocked or conflicted, set write_attempted: false unless a write genuinely happened before the conflict was detected.
- Distinctive: line 55
Do not produce a new classification, target area, template, or route plan.
- Very specific: line 59
If write_blocked: true, stop immediately.
- Very specific: line 60
If kind is not route-plan, stop immediately.
- Very specific: line 61
If status is no_fit or needs_human_decision, stop immediately.
- Very specific: line 62
If template_id, target_note_path, or final_type is missing, stop immediately.
- Very specific: line 63
If append placement is unsafe or unclear, return conflict instead of forcing a write.
- Distinctive: line 64
If Obsidian access is unavailable, stop with the exact blocker and do not emulate success.
- Very specific: line 68
Run scripts/validate-note-payload.sh before rendering or writing a payload saved as YAML.
- Very specific: line 69
Run scripts/validate-execution-report.sh on the final report saved as YAML.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
KHub Deposition Update
Turn a validated KHub route-plan into a safe Obsidian create or append operation. This is the execution layer only: it must not reclassify material, change routing, or recover from blocked decisions by guessing.
Follow the shared rules in ../workflow-principles.md: preserve source trace, honor write gates, and report exactly what changed.
Use When
- The input is a validated
route-planfromkhub-classifier-router. - The requested operation is
createorappendfor an Obsidian KHub note. - The task needs a structured note payload before writing.
- The user asks for an execution report after KHub note creation or update.
Do Not Use When
- The input is raw Flomo or an unclassified intake artifact.
- The input is a
decision-report,no_fit,needs_human_decision, orwrite_blocked: true. - The route operation is
skip_duplicate; report it without vault mutation instead of using this execution layer. - The task asks to choose a note type, area, or template. Use
khub-classifier-router. - The target is Feishu, a non-KHub Obsidian note, or a general writing task.
Inputs
- A valid
route-plan - The original intake item for traceability
- The selected KHub template
- Existing note content when
operation=append
Procedure
- Validate that input is a
route-planand thatwrite_blockedis false. - Refuse immediately if any stop rule from contract.md applies.
- Load only the references needed for the operation:
- references/template-mapping.md to confirm
final_typeandtemplate_id. - references/source-trace-policy.md for provenance and fidelity.
- references/frontmatter-policy.md before rendering frontmatter.
- references/append-policy.md for append operations.
- references/conflict-handling.md when target content or placement is unclear.
- references/tool-contracts.md when renderer, writer, dry-run, or failure behavior is unclear.
- references/template-mapping.md to confirm
- Build a structured
note-payloadbefore rendering Markdown. - Render final Obsidian Markdown through the available Obsidian markdown path.
- Execute vault operations through the available structured Obsidian path.
- Return an
execution-reportthat says whether writing was attempted and what changed.
Output Contract
- Produce a structured
note-payloadbefore any write. - Produce an
execution-reportfor every attempted or refused execution. - If blocked or conflicted, set
write_attempted: falseunless a write genuinely happened before the conflict was detected. - Do not produce a new classification, target area, template, or route plan.
Stop Rules
- If
write_blocked: true, stop immediately. - If
kindis notroute-plan, stop immediately. - If
statusisno_fitorneeds_human_decision, stop immediately. - If
template_id,target_note_path, orfinal_typeis missing, stop immediately. - If append placement is unsafe or unclear, return
conflictinstead of forcing a write. - If Obsidian access is unavailable, stop with the exact blocker and do not emulate success.
Validation
- Run scripts/validate-note-payload.sh before rendering or writing a payload saved as YAML.
- Run scripts/validate-execution-report.sh on the final report saved as YAML.
- Confirm the report's
write_attemptedvalue matches the actual command path. - Confirm source trace remains present after create or append.
- For trigger maintenance, use evals/trigger-prompts.csv.
Common Mistakes
- Reclassifying or rerouting when the route plan feels imperfect.
- Writing a blocked
decision-reportinto KHub. - Rendering Markdown before preserving source trace in the structured payload.
- Appending into an unclear section instead of returning
conflict. - Reporting success without checking the actual vault operation.
See contract.md for the execution contract and ../workflow-principles.md for cross-layer workflow principles.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

