Khub deposition update
Skill libenxier-beep/codex-custom-skills/skills/khub-deposition-update
Production-grade Codex skills with explicit triggers, deterministic validation, and reusable AI agent workflows.
npx -y skills add libenxier-beep/codex-custom-skills --skill khub-deposition-updateAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
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.
SKILL.md
4.4 KB, as published. Nobody here has run it
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.