agentleFS
vosslabvosslab/vosslab-skills/skills/experts/geometry-expert/SKILL.md

geometry-expert

Skill5 starsChanged 21 days agoMITView on GitHub

Use when computational-geometry robustness, topology, predicates, intersections, tessellation, motion planning, or realizability determines correctness.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 12 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read references/task_selection.md, then route through references/topic_index.md.

    line 22
  2. Very specific:

    Use the repo's existing docs location, or create docs/GEOMETRY_MODEL.md for frames, units, dimensions, primitives, polygon conventions, …

    line 31
  3. Distinctive:

    Read references/project_workflow.md for both paths.

    line 34
  4. Very specific:

    Use references/local_books.md to choose a book from local-only/, then confirm the topic, section, and grep term in …

    line 37
  5. Distinctive:

    Read the surrounding passage, not just the matching line.

    line 40
  6. Distinctive:

    When the corpus is absent, coverage is thin, or an API is version-sensitive, use official library documentation plus first-principles …

    line 42
  7. Distinctive:

    Read references/testing_and_oracles.md.

    line 50
  8. Distinctive:

    Read references/algorithm_design.md and references/robustness_and_numerics.md.

    line 58
  9. Distinctive:

    Run the geometry review checklist, then make one change tied to a failing case.

    line 69
  10. Distinctive:

    Use a computer algebra system for ideal membership, elimination, and Groebner-basis work.

    line 76
  11. Distinctive:

    Use exact arithmetic or filtered predicates when topology depends on a sign.

    line 79
  12. Distinctive:

    Document the coordinate system and tolerance policy.

    line 86
  13. Distinctive:

    Keep predicates in one place and compare against an oracle on small cases.

    line 87
  14. Distinctive:

    When using this skill, aim to produce:

    line 95

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Geometry expert

Overview

Turn vague geometry requests into explicit tasks with stated primitives, dimension, exactness, topology, and scale. Route classical computation, discrete realizability, algebraic geometry, and conformal surfaces as distinct branches. Build project evidence and validate against an oracle or invariant.

Workflow

  1. Classify the geometry branch and route the task.
  • Name the primitive, dimension, construction vs query, exact vs approximate, static vs dynamic, and required topological guarantees.
  • Separate classical algorithms, discrete theory, algebraic computation, conformal surface processing, and motion planning before choosing a method.
  • Read references/task_selection.md, then route through references/topic_index.md.
  1. Detect the project shape, then write the geometry contract.
  • Existing: inventory the files owning primitives, predicates, algorithms, serialization/import, rendering/debug output, and tests; then update the contract from that evidence.
  • Greenfield: write the contract first, then choose the kernel/library strategy before data structures harden.
  • Use the repo's existing docs location, or create docs/GEOMETRY_MODEL.md for frames, units, dimensions, primitives, polygon conventions, tolerance, valid inputs, and degeneracy behavior.
  • Read references/project_workflow.md for both paths.
  1. Consult the strongest available evidence.
  • Use references/local_books.md to choose a book from local-only/, then confirm the topic, section, and grep term in references/reference_survey.md.
  • Read the surrounding passage, not just the matching line. Corroborate damaged equations or OCR with a second book.
  • When the corpus is absent, coverage is thin, or an API is version-sensitive, use official library documentation plus first-principles reasoning.
  1. Build the test corpus before feature code.
  • Existing: capture representative and degenerate fixtures plus characterization tests around current behavior before changing algorithms.
  • Greenfield: seed happy-path, boundary, degenerate, and randomized small cases with oracle expectations; then build the smallest validated geometry kernel.
  • Read references/testing_and_oracles.md.
  1. Choose the simplest method that meets the profile.
  • Match the algorithm to object count, static vs dynamic use, batch vs interactive use, and worst-case vs typical behavior.
  • Centralize robust predicates and exactness decisions in one place.
  • For algebraic and conformal branches, preserve the mathematical model and topological preconditions before optimizing implementation details.
  • Read references/algorithm_design.md and references/robustness_and_numerics.md.
  1. Validate against an oracle and emit an artifact.
  • Compare to a trusted library, computer algebra system, brute force, or a theorem-derived invariant, then add property and randomized stress tests.
  • Emit an inspectable artifact such as SVG, PNG, OBJ, JSON, a mesh-quality report, or an overlay for representative and degenerate cases.
  • Read references/testing_and_oracles.md.
  1. Review and iterate one change at a time.
  • Run the geometry review checklist, then make one change tied to a failing case.

Implementation defaults

  • Reach for well-tested geometry libraries before custom kernels: CGAL for exact 2D/3D kernels and meshing, scipy.spatial for Qhull and k-d tree workflows, Shapely/GEOS for polygon topology, and Boost.Geometry for C++.
  • Use a computer algebra system for ideal membership, elimination, and Groebner-basis work.
  • Centralize orientation, in-circle, containment, and tolerance decisions.
  • Use exact arithmetic or filtered predicates when topology depends on a sign.
  • Load the best-matched local book when present; use the passage-verified survey rather than book reputation or raw match counts.

Quality bar

  • Favor correct-on-degeneracies over fast-on-the-happy-path.
  • Document the coordinate system and tolerance policy.
  • Keep predicates in one place and compare against an oracle on small cases.
  • State model assumptions such as simple polygons, manifold meshes, generic position, orientability, or exact polynomial input.
  • Make one change at a time, tied to a failing case.
  • State unsupported cases, such as self-intersecting input or near-degenerate precision.

Output expectations

When using this skill, aim to produce:

  • A framed geometry task with its branch, primitives, dimension, exactness, topology, scale, and topic-index route.
  • For implementation: a contract, fixtures, justified method, degeneracy handling, oracle/property tests, inspectable artifact, and next bounded change.

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.