Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

narrow-react-prop-types

Skill by humanlayer

Narrows React component prop types to match only the states that live application code reaches. It is for developers who want to remove optional props and fallbacks that were added for stories, tests, or demos.

  • Score 86
  • 6k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install narrow-react-prop-types

Built from the published package, never by AI.

git clone --depth 1 https://github.com/humanlayer/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/plugins/narrow-react-prop-types/skills/narrow-react-prop-types ~/.claude/skills/narrow-react-prop-types

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install narrow-react-prop-types in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The narrow-react-prop-types skill guides an assistant through tightening React component prop types so they describe only the states live application code actually reaches. It targets props that were widened for Storybook stories, tests, mocks, or demos. The skill says to find non-test, non-Storybook call sites first, then classify each prop as required, optional, or removed based on those call sites.

It also asks the assistant to derive types from existing APIs where possible, remove fallback logic for unsupported states, and update child components and shared variants together. Stories and tests should adapt to the stricter contract rather than making live props optional again. The source includes a response template for CI agents, where the final response becomes a PR body. It is written for developers maintaining React and TypeScript codebases.

Written from the project's SKILL.md and checked against it.

What it can do

  • Find live call sitesClassifies component usages as live code paths or support code such as stories and tests.
  • Derive prop typesMarks each prop as required, optional, or removed based on non-test, non-Storybook call sites.
  • Tighten public prop typesUpdates exported prop types so they allow only states observed in live code.
  • Tighten child propsMakes optional handlers required in internal row, menu, and button components.
  • Remove fallback logicDrops defaults such as ?? [] once the props they guard are required.
  • Validate the changeRuns package typechecks for the changed package and the apps that consume it.

What you need

  • A React codebase
  • TypeScript
  • Bun, for the monorepo validation command shown in the source

Try asking

  • Narrow the prop types for the ArchiveList component to match live usage
  • Remove optional callbacks from the menu component that live code always provides
  • Update the stories for TaskRow after making its props required

Good to know

  • Validation commands are repository-specific and the example uses a Bun monorepo
  • Guidance only, based on the call sites the assistant can find

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/narrow-react-prop-types/skills/narrow-react-prop-types/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • references/agent-narrow-component-props.yml11 KB
  • references/narrow-component-props-memory.md213 B
  • references/response-template.md2 KB

Alternatives to narrow-react-prop-types

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

narrow-react-prop-types: common questions

Does this skill make React prop types stricter?

Yes. It tightens exported and internal prop types so they match only states seen in non-test, non-Storybook call sites.

Should stories and tests be changed to fit the stricter types?

Yes. The skill says to fix stories and tests by providing realistic handlers and state, and to move verbose setup into support-code helpers.

Can this run in CI?

The source includes an example recurring GitHub Actions workflow that runs the skill through CodeLayer, with the final response formatted as a PR body.

How do I install narrow-react-prop-types?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is narrow-react-prop-types free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is narrow-react-prop-types safe to use?

It scores 86 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to narrow-react-prop-types?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

narrow-react-prop-types Install

Add to stack

Loading.