hierarchical-matching-systems_skill

This skill analyzes and stabilizes hierarchical matching systems, translating requirements into constraints and guiding architecture, debugging, and
  • Makefile

2

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill petekp/agent-skills --skill hierarchical-matching-systems

  • SKILL.md14.1 KB

Overview

This skill provides pragmatic procedures and checklists for architecting, implementing, reviewing, and debugging hierarchical matching systems. It covers problem classification, translating business rules into formal constraints, algorithm selection, data model and interface design, and disciplined debugging sequences for instability, constraint violations, preference alignment, hierarchy traversal, and performance. Follow the checklists in order to avoid hidden matching bugs.

How this skill works

The skill inspects system requirements and maps them to constraint types (capacity, coupling, exclusion, ordering, soft preferences). It prescribes architecture phases: requirements translation, algorithm selection, data modeling, interface contracts, and testing. For live issues it runs a step-by-step diagnosis: classify the symptom, trace encoding and enforcement, verify preference transformations, visualize hierarchy traversal, and profile performance to isolate root causes.

When to use it

  • Designing a new two-sided or one-sided matching system
  • Translating business rules into formal constraints and invariants
  • Debugging unstable or non-deterministic matches
  • Investigating constraint violations or unexpected match outcomes
  • Architecting multi-level or hierarchical matching across orgs/taxonomies

Best practices

  • Classify the problem up front (two-sided, hierarchical, weighted, constrained) and record it
  • Translate every business rule into a formal, testable constraint and mark hard vs soft
  • Choose algorithms only after verifying they support required hard constraints and scale
  • Canonicalize inputs and deterministic tie-breaking to eliminate instability
  • Add property tests for determinism, validity, stability, and edge cases; include regression tests from production

Example use cases

  • Student-school assignment with capacity, siblings coupling, and priority groups
  • Job-worker assignment with skill-weighted scores and exclusion constraints
  • Entity resolution across nested taxonomies where parent constraints must propagate
  • Reviewing matching logic where identical inputs produce different outputs
  • Optimizing assignment for weighted objectives while preserving hard exclusions

FAQ

Classify the requirement: if stakeholders need no blocking pairs, prioritize stable two-sided algorithms; if a global cost objective matters more, choose optimal assignment algorithms and document stability tradeoffs.

What’s the fastest way to find a violated constraint?

Enumerate violated matches, map each to the code location enforcing that constraint, print the encoded constraint data for the specific entities, and check enforcement ordering to ensure it runs before conflicting decisions.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
hierarchical-matching-systems skill by petekp/agent-skills | VeilStrat