Platform package consumption audit

From Vrooli/Vrooli · View interactive version

Platform package consumption audit is an AI agent skill from the GitHub repository Vrooli/Vrooli. Analyze how scenarios consume `packages/{{PACKAGE}}/`, identify repeated friction and contract drift, and produce a prioritized improvement backlog that makes the package more reliable and easier to u

How to use this skill

Skill file

Platform focus: Package Consumption Audit

Analyze how scenarios consume packages/{{PACKAGE}}/, identify repeated friction and contract drift, and produce a prioritized improvement backlog that makes the package more reliable and easier to use without breaking downstream consumers.

Required reading:

Optional reading:


1. Scope Boundaries

In scope:

Out of scope:


2. Inputs

Derived:


3. Audit Workflow

Step A: Find consumers (cross-language)

Run broad discovery first, then narrow.

# Monorepo path references
rg -n "packages/{{PACKAGE}}/" -S .

# Go imports (common patterns)
rg -n "github\\.com/vrooli/{{PACKAGE}}|vrooli/.*/packages/{{PACKAGE}}" -S scenarios packages

# TS/JS workspace imports (common patterns)
rg -n "from\\s+['\\\"](@vrooli/{{PACKAGE}}|{{PACKAGE}}|\\.\\./\\.\\./packages/{{PACKAGE}}/)" -S scenarios packages

Produce a consumer list grouped by:

Step B: Identify usage clusters (convergence vs divergence)

For each cluster, answer:

Use a table:

| Seam | Consumers | Intended contract | Observed patterns | Friction | Likely fix layer |

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

| config precedence | ... | ... | ... | ... | package / docs |

| output contract | ... | ... | ... | ... | package |

| error handling | ... | ... | ... | ... | package |

Step C: Extract friction as promotion candidates

When you find repeated workaround prose (or repeated “here’s how to interpret this output”), treat it as a package/tool contract gap.

Record:

Step D: Propose improvements (compatibility-first)

For each proposed improvement:


4. Output Expectations

Must produce:

Must not:


5. Audit Artifact Template (Copy-Paste)

# Package Consumption Audit: {{PACKAGE}}

## Compatibility Envelope
- Package: `packages/{{PACKAGE}}/`
- Consumers (known): ...
- Supported environments: ...
- Stability promise: no breaking changes by default

## Consumer Inventory
| Consumer | Type | Language | Notes |
|---|---|---|---|
| scenarios/... | scenario | go/ts | ... |

## Seam Map
| Seam | Intended Contract | Observed Patterns | Friction | Fix Layer |
|---|---|---|---|---|
| ... | ... | ... | ... | package/docs/scenario |

## Findings (Prioritized)
### P0
- ...
### P1
- ...

## Promotion Candidates (Durable Fixes)
| Workaround | Promote To | Expected Benefit | Verification |
|---|---|---|---|
| ... | package API/output contract | ... | ... |

## Proposed Compat Set
| Consumer | Command/Test | Pass criteria |
|---|---|---|
| ... | ... | ... |
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.