Coding agents
Should you use a skill or local MCP for your component library?
A skill can point the agent to your component examples. A local MCP server can look them up for it. Start with the skill and test whether adding the lookup helps the agent use the right components and props.
Try the same dialog twice
Choose a dialog your app already uses and find the example that disables its confirmation button. Write a short skill that points to those docs and tells the agent to reuse your library's components.
In two fresh sessions, give the same model this request: “Add a delete confirmation using our existing dialog. Disable confirmation until the user types DELETE.” Start both from the same app code. Give one session the skill alone. Give the other the skill and a local MCP server that can find components, props, and examples for the installed version.
Check whether each result uses the existing dialog and disables confirmation correctly. Then try a change the agent will need to look up: in a test branch, rename a documented dialog prop and update its example. Repeat the task with both setups from that changed starting point.
Look for the renamed prop in the generated code and test the dialog. If both setups find the example and use it correctly, the MCP lookup hasn't shown a benefit in this test. You can keep the skill alone and test more components as the library grows.
Which library version should the agent look up?
Use the version installed in your app. An example from a newer release may include props your version lacks. If the lookup can’t find the installed version, it should report that instead of substituting the latest docs.