adopting-generated-api-types
adopting-generated-api-types is a Frontend state & data fetching skill for AI agents, published by PostHog in the posthog repository on GitHub. Skillspace rates adopting-generated-api-types C (73/100) and it passed the safety scan; a judge model has also reviewed it.
Use when migrating frontend code from manual API client calls (`api.get`, `api.create`, `api.surveys.get`, `api.dashboards.list`, `new ApiRequest()`) and handwritten TypeScript interfaces to generated API functions and types. Triggers on files importing from `lib/api`, files with `api.get<`, `api.create<`, `api.<entity>.<method>`, manual interface definitions that duplicate backend serializers, or any frontend file that constructs API URLs by hand. Covers the full replacement workflow — finding the generated equivalent, swapping imports, adapting call sites, and removing dead manual types.
- Grade
- C
- Quality
- 73 / 100
- Safety
- Passed
- GitHub stars
- 35,560
Placed #3 of 6 in the judged category final for Frontend state & data fetching.
Not launch-quality. It is graded C with a clean safety verdict, but our quality filters exclude it: a model that read it found it written only for the repository it lives in. So it is not in our launch-quality set, the skills our MCP server searches and recommends. How launch-quality is decided
Our two independent classifiers differ on this skill's category, so treat the placement as provisional.
This rating describes the version of the repository we crawled; it may have changed since, so go by its current files.
Our review
- Architecture
- 97 / 100
- Maturity
- Structured: ships references or scripts
- Security scan
- No issues found
- License
- Not declared. Check the repository before reusing it.
- Adoption
- Adopted by 1 other repositories, in 1 collections
- Scope
- Repo-internal: written for the repository it lives in. Migrates that repo's frontend to its generated API modules
Judge review
Placed #3 of 6 in the judged category final for Frontend state & data fetching.
- Trigger
88 88 - Instructions
88 88 - Specificity
90 90 - Safety
85 85 - Disclosure
85 85 - Maintenance
75 75
Grep-ready trigger patterns and a concrete six-step migration workflow make this immediately actionable.
Not checked yet
- No blind task eval yet
- Sibling files (scripts, references) not fetched; security scan covers SKILL.md only
Skillspace indexes and rates this skill; it does not host or endorse it. Run third-party skills at your own risk.