Skip to content
Prompt

umi — Cursor Rules

by umijs

AI Summary

1. add a ts file to , the plugin api doc is in . 2. Add to to the part.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "umi — Cursor Rules" prompt rules to my project.
Repository: https://github.com/umijs/umi

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

A framework in react community ✨

How to add a built-in feature plugin?

• add a ts file to packages/preset-umi/src/features/${name}/${name}.ts, the plugin api doc is in docs/docs/docs/api/plugin-api.md. Sample code: `ts import { IApi } from '../../types'; export default (api: IApi) => { api.describe({ key: '404', }); }; ` • Add to packages/preset-umi/src/index.ts to the features part.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 2d ago
Active
Adoption1K+ stars on GitHub
16.0k ★ · Popular
DocsMissing or thin
Undocumented

GitHub Signals

Stars16.0k
Forks2.7k
Issues320
Updated2d ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more