agentleFS
libenxier-beeplibenxier-beep/codex-custom-skills/skills/khub-classifier-router/SKILL.md

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.

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
  1. Very specific:

    Follow the shared rules in ../workflow-principles.md: route before writing, dedupe before writing, preserve source trace, and stop instead …

    line 10
  2. Distinctive:

    Search for duplicate or append candidates when source ID, title, or meaning may overlap.

    line 45
  3. Distinctive:

    Do not return both for the same intake item.

    line 52
  4. Very specific:

    If no valid KHub type can be chosen, output no_fit.

    line 58
  5. Very specific:

    If type, template, or target area cannot be matched safely, output no_fit.

    line 59
  6. Very specific:

    If multiple candidates remain too close to call, output needs_human_decision.

    line 60
  7. Very specific:

    If the item is already covered with no material delta, output skip_duplicate for reporting and do not hand it to deposition for mutation.

    line 61
  8. Distinctive:

    Never create or update Obsidian notes from this skill.

    line 62
  9. Very specific:

    Run scripts/validate-route-plan.sh on any route-plan or decision-report saved as YAML.

    line 66
  10. Very specific:

    Check that blocked outputs have write_blocked: true.

    line 67
  11. Distinctive:

    Check that no final Obsidian Markdown or vault mutation was produced.

    line 68

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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, or prediction.
  • 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-intake first.
  • The input is an already validated route-plan and the task is to write notes. Use khub-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

  1. Parse each intake item into the required fields from contract.md.
  2. 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.
  3. Choose the smallest stable final type that does not overstate source maturity.
  4. Route to a valid existing KHub area and bucket; never create a new area silently.
  5. Select the mapped template and check whether its weight fits the source density.
  6. Search for duplicate or append candidates when source ID, title, or meaning may overlap.
  7. Emit exactly one output for each item: a write-safe route-plan or a blocked decision-report.

Output Contract

  • Return route-plan only when the item is safe for downstream deposition.
  • Return decision-report when no-fit, ambiguity, resolved duplicate, or human choice remains.
  • Do not return both for the same intake item.
  • For no_fit and needs_human_decision, set write_blocked: true.
  • A route-plan must 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_duplicate for 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-plan or decision-report saved 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-plan for no_fit or needs_human_decision.
  • Treating skip_duplicate as 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.