Sniffable python

From SimHacker/moollm · View interactive version

Sniffable python is an AI agent skill from the GitHub repository SimHacker/moollm. How to mark and sniff Python (and other files) at multiple depths. Moo and other tools use this convention.

How to use this skill

Skill file

Sniffable Python — depth levels and abstractions

How to mark and sniff Python (and other files) at multiple depths. Moo and other tools use this convention.


1. Sniff depth levels (three, extensible)

Three standard depth levels for structural sniffing. Higher depth includes all lower levels.

| Level | Name | Numeric | Python: what is included |

|-------|------------|---------|---------------------------|

| 1 | glance | 1 | Section comments: # ---, # SECTION, # UPPERCASE_LABEL, # Title Case (single-line). Module-level outline only. |

| 2 | structure | 2 | Glance + class, def, async def, @decorator. The skeleton of the file. |

| 3 | full | 3 | Structure + any other line the sniffer classifies as "smelly" (structural). Everything the sniffer emits. |

Other levels or names are allowed: tools should accept numeric depth (1, 2, 3, …) or canonical names (glance, structure, full) and may support file-type-specific semantics.


2. Marking Python (optional override)

By default, the sniffer assigns depth by line kind (section = 1, class/def/decorator = 2, rest = 3). Authors can override with a comment on the previous line:

Alternative form:

Only the line immediately following the comment is overridden. Use to promote a line into a shallower depth (e.g. a key function into glance) or to demote (e.g. treat a decorator as full-only).


3. Other file types

Depth semantics can differ by type:

Moo (and this skill) define the Python mapping explicitly; other types may be added with their own depth tables. The same numeric/name convention (1/2/3, glance/structure/full) is reused where it fits.


4. Abstractions beyond depth

Beyond structural depth, files can have abstractions that are not just "which lines to show":

These are not depth levels; they are separate axes. A tool might offer:

Design leaves room for more abstraction kinds and providers without overloading the depth semantics.


5. Moo integration

Part of MOOLLM. See repo README and skills/README.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.