explain

Solid

Use when an internal package, module, or shared component has little or no usage documentation and people (or future AI sessions) keep using it wrong — "document this", "write docs for our library", onboarding someone onto an internal API, or handing a package to another team.

AI & Automation 13 stars 2 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 80/100

Stars 20%
38
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Document Package — make an internal package self-explaining to any model Most internal packages ship with **no usage docs**, so every consumer — a teammate, *or an AI* — reads the source, guesses the intended usage, and gets the gotchas wrong. This skill fixes that: **one colocated usage doc per public unit**, capturing the API *and* the non-obvious rules, so the next reader is correct on the first try. It applies to **any** package — a UI component kit, a utils library, a services/API layer, a hooks package, an internal SDK. > **Why it matters for portability:** these docs are the layer that makes your package understandable to > *any* model. If you migrate from one AI to another (Claude → GPT → Gemini), the new model still > understands your package immediately — the knowledge lives in the repo, not in one model's head. ## Ask first — always This writes files into the user's repo. **Confirm before doing anything:** *"I can generate AI-friendly usage docs for `<package>` so any model (and teammate) understands it correctly — one doc per public unit, with the gotchas. Want me to? (I'll show one sample first.)"* Show a **sample doc** for one unit and get a thumbs-up before fanning out across the package. ## Method 1. **Discover the public units.** Read the package's public entry (`index.ts`/exports) for the real list — components, exported functions, hooks, services, classes. Note any existing docs' style and **match it**. 2. **Read the source of truth — don't guess....

Details

Author
mehrad-dm
Repository
mehrad-dm/mastermind
Created
2 weeks ago
Last Updated
4 days ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category