khub-classifier-router
Skill0 starsChanged 5 months agoMITView on GitHub
Use when standardized intake material must be classified for KHub, routed to an area, matched to a template, deduped, or blocked before any Obsidian note is created or updated.
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-deposition-updateSkill
- 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, 4 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
7
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: route before writing, dedupe before writing, preserve source trace, and stop instead …
- Distinctive: line 45
Search for duplicate or append candidates when source ID, title, or meaning may overlap.
- Distinctive: line 52
Do not return both for the same intake item.
- Very specific: line 58
If no valid KHub type can be chosen, output no_fit.
- Very specific: line 59
If type, template, or target area cannot be matched safely, output no_fit.
- Very specific: line 60
If multiple candidates remain too close to call, output needs_human_decision.
- Very specific: line 61
If the item is already covered with no material delta, output skip_duplicate for reporting and do not hand it to deposition for mutation.
- Distinctive: line 62
Never create or update Obsidian notes from this skill.
- Very specific: line 66
Run scripts/validate-route-plan.sh on any route-plan or decision-report saved as YAML.
- Very specific: line 67
Check that blocked outputs have write_blocked: true.
- Distinctive: line 68
Check that no final Obsidian Markdown or vault mutation was produced.
≈ “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 Classifier Router
Classify standardized intake into a write-safe KHub route decision. This is the decision layer only: it may produce a route-plan or a decision-report, but it must not create or update Obsidian notes.
Follow the shared rules in ../workflow-principles.md: route before writing, dedupe before writing, preserve source trace, and stop instead of forcing weak material into heavy templates.
Use When
- A prepared intake item needs final KHub type selection:
seed,cognition,concept,viewpoint,playbook, orprediction. - The task asks where a memo belongs in KHub, which template fits, whether to create or append, or whether a note should be blocked.
- Duplicate, append, split, no-fit, or human-decision handling is needed before deposition.
- Source material may be too thin for a heavy template and needs a density check.
Do Not Use When
- The user only needs raw Flomo collection. Use
flomo-daily-intakefirst. - The input is an already validated
route-planand the task is to write notes. Usekhub-deposition-update. - The user is asking to draft prose, summarize an article, or update non-KHub notes.
- There is no standardized intake or source material to classify.
Inputs
- A standardized intake artifact such as the output of
flomo-daily-intake - Current KHub taxonomy and folder layout
- Current KHub template map
- Existing-note candidates from vault search when dedupe or append is needed
Procedure
- Parse each intake item into the required fields from contract.md.
- Load only the references needed for the current decision:
- references/taxonomy.md for note type selection.
- references/area-routing.md for target area and bucket.
- references/dedupe-policy.md when existing notes may match.
- references/fit-check-policy.md when type, area, template, or density is uncertain.
- references/decision-states.md when choosing the final state.
- Choose the smallest stable final type that does not overstate source maturity.
- Route to a valid existing KHub area and bucket; never create a new area silently.
- Select the mapped template and check whether its weight fits the source density.
- Search for duplicate or append candidates when source ID, title, or meaning may overlap.
- Emit exactly one output for each item: a write-safe
route-planor a blockeddecision-report.
Output Contract
- Return
route-planonly when the item is safe for downstream deposition. - Return
decision-reportwhen no-fit, ambiguity, resolved duplicate, or human choice remains. - Do not return both for the same intake item.
- For
no_fitandneeds_human_decision, setwrite_blocked: true. - A
route-planmust include the fields required by contract.md.
Stop Rules
- If no valid KHub type can be chosen, output
no_fit. - If type, template, or target area cannot be matched safely, output
no_fit. - If multiple candidates remain too close to call, output
needs_human_decision. - If the item is already covered with no material delta, output
skip_duplicatefor reporting and do not hand it to deposition for mutation. - Never create or update Obsidian notes from this skill.
Validation
- Run scripts/validate-route-plan.sh on any
route-planordecision-reportsaved as YAML. - Check that blocked outputs have
write_blocked: true. - Check that no final Obsidian Markdown or vault mutation was produced.
- For trigger maintenance, use evals/trigger-prompts.csv.
Common Mistakes
- Classifying directly from raw Flomo without an intake artifact.
- Picking a heavier template because the idea feels important, even though the source is thin.
- Returning a
route-planforno_fitorneeds_human_decision. - Treating
skip_duplicateas permission to mutate the vault. - Hiding uncertainty instead of producing a decision report.
See contract.md for the I/O shape 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.

