Chapter 3: Personal Project Management
Still having a headache about project management? Let's see how Cursor becomes your smart project manager!
1 Intelligent Architect Mode
1 Project structure generation
Imagine that you have a good idea in your mind, but don’t know where to start? Try this:
You: Generate a file directory for Guilin travel guide
Cursor:
First, I need to consider the content and structure of the Guilin travel guide. Guilin is famous for its unique landscape, so the guide should include information on attractions, transportation, accommodation, food, activities, etc. Next, I will build a reasonable file directory to facilitate users to find and use this information.
I thought of the following main parts:
1. **Introduction to attractions**: including major tourist attractions such as Li River, Yangshuo, Elephant Trunk Hill, etc.
2. **Transportation Guide**: How to get to Guilin and transportation within Guilin.
3. **Accommodation Recommendation**: Recommended hotels and homestays at different prices.
4. **Food Recommendation**: Guilin's special food and restaurants.
5. **Activity Arrangement**: Recommended activities and tour routes.
6. **Practical Information**: Such as weather, best travel time, precautions, etc.
The directory constructed in this way can help tourists better plan their itinerary. Next, I will convert this structure into the form of a file directory.
Guilin Travel Guide/
├── Attractions/
│ ├── Li River.md
│ ├── Yangshuo.md
│ ├── Elephant Trunk Hill.md
│ └── Other Attractions.md
├── Transportation Guide.md
├── Accommodation Recommendations/
│ ├── High-end Hotels.md
│ ├── Mid-range Hotels.md
│ └── B&Bs.md
├── Food Recommendations/
│ ├── Guilin Rice Noodles.md
│ ├── Snail Stuffing.md
│ └── Other Food.md
├── Event Arrangements.md
└── Practical Information.md
After generation, enter "All md files that help me implement this Guilin Travel Guide", and Cursor will automatically fill in the corresponding content!
💡 Tips: md file is the suffix of the markdown file and is a text format https://baike.sogou.com/v7868944.htm?fromTitle=Markdown
2 README intelligent generator
Generate professional project description documents with one click, summarizing project content and instructions:
You: @Codebase, help me generate the project description document README.md for this project
Cursor:
In order to generate the description document `README.md` for the Guilin Travel Guide project, I need to consider the basic information, functions, usage methods, and how to contribute to the project. This document will help users understand the purpose and usage of the project.
I will include the following sections:
1. **Project Name**: Guilin Travel Guide
2. **Project Introduction**: A brief introduction to the purpose and content of the project.
3. **Function**: List the main functions of the project.
4. **Usage**: Explain how to use this project.
5. **Contribution**: How to participate in the project contribution.
6. **License**: License information of the project.
Next, I will write the content of `README.md`.
# Guilin Travel Guide
## Project Introduction
Guilin Travel Guide is a project that provides tourists with tourist information about Guilin and surrounding areas. This project contains Guilin's main attractions, transportation guide, accommodation recommendations, food recommendations, activity arrangements and practical information, aiming to help tourists better plan their trips.
## Function
- **Attractions introduction**: Detailed introduction to Guilin's main tourist attractions, such as Li River, Yangshuo and Elephant Trunk Hill.
- **Transportation guide**: Provides transportation methods to reach Guilin and transportation information within the city.
- **Accommodation recommendation**: Recommends hotels and homestays of different price ranges.
- **Food recommendation**: Introduces Guilin's special food and recommended restaurants.
- **Activity arrangement**: Provides recommended activities and tour routes.
- **Practical information**: Provides practical information such as weather, best travel time and precautions.
## Contribution
Any form of contribution is welcome! If you have suggestions or find problems, please submit an issue or pull request.
## License
This project uses the MIT license, see the LICENSE file for details.
This README.md file provides basic information and usage guidelines for the project, making it easy for users to understand and use the Guilin Travel Guide project.
Cursor will automatically generate README.md containing the following content but not limited to
- Automatic extraction of project description
- Intelligent completion of installation steps
- Automatically generate using examples
- Add a contribution guide with one click
💡 Tips: The README.md readme file is a help document released with the software, which usually contains descriptions of the software or precautions for use.
2. Required Document Magic
1 Conversational Requirements Analysis
You: I want to make an accounting applet. Please help me think about what functions, technology selection and interface design, etc.
Cursor:
When designing an accounting applet, I need to consider multiple aspects, including functions, technology selection and interface design. Here are my thoughts on these aspects:
### Function
1. **User registration and login**:
- Users can create accounts and log in securely to ensure the privacy of data.
2. **Income and expense records**:
- Users can add, edit and delete income and expense records, recording the amount, category and date of each transaction.
3. **Category management**:
- Users can set different categories for income and expenses (such as catering, transportation, entertainment, etc.) to better analyze consumption.
4. **Budget setting**:
- Users can set a monthly budget and track the difference between actual expenditure and budget.
5. **Data statistics and analysis**:
- Provide charts and reports to help users visualize their financial status, such as expenditure trends, income sources, etc.
6. **Reminder function**:
- Users can set reminders to remind them to record their expenses or check their budgets on a specific date.
7. **Import and export data**:
- Allow users to import and export data (such as CSV format) for easy backup and migration.
8. **Multi-device synchronization**:
- Support data synchronization between multiple devices to ensure that users can access their accounting information on different devices.
9. **Security**:
- Ensure the security of user data, such as using encryption to store sensitive information.
10. **User feedback and support**:
- Provide user feedback channels and help documents so that users can get support when they encounter problems during use.
### Technology selection
1. **Front-end**:
- **Framework**: You can use React, Vue.js or Angular to build the user interface.
- **Style**: Use CSS or CSS frameworks (such as Bootstrap or Tailwind CSS) to beautify the interface.
2. **Backend**:
- **Language**: You can choose Node.js, Python (Flask/Django) or Java (Spring Boot) as the backend development language.
- **Database**: Use MongoDB, MySQL or PostgreSQL to store user data and transaction records.
3. **Mobile**:
- If you need mobile support, you can use React Native or Flutter to build a cross-platform mobile app.
4. **API**:
- Design a RESTful API or GraphQL API for data interaction between the frontend and the backend.
### Interface design
1. **Homepage**:
- Display the user's total assets, total expenses and total income.
- Provide buttons for quickly adding income and expenses.
2. **Record page**:
- The form is used to enter income or expense information, including amount, category, date and notes.
- The list displays all the user's transaction records, which can be edited and deleted.
3. **Statistics page**:
- Use charts (such as pie charts, bar charts) to show the user's spending and income.
- Provide budget setting and tracking functions.
4. **Settings page**:
- Users can manage account information, set budgets and categories.
5. **Reminder function**:
- Provide the option to set reminders, and users can choose the time and content of reminders.
Through the above functions, technology selection and interface design thinking, a comprehensive and user-friendly accounting applet can be built. Next, detailed design and development can be carried out based on these ideas.
3. To-do list manager
1 Intelligent task management
You: List the to-do items for making dumplings, save it as todolist.md, and when I use /progress, list the completion percentage of the current item
Cursor:
In order to create a to-do list about making dumplings, I need to consider the various steps and materials required to make dumplings. The to-do items should include steps such as preparing ingredients, making dumpling wrappers, wrapping dumplings, and boiling dumplings. Next, I will organize these steps into a clear to-do list and save it as a `todolist.md` file.
In addition, I also need to think about how to calculate the completion percentage of the current item. This can be achieved by tracking the ratio of the number of items completed to the total number of items. Assuming there are 10 items in the to-do list, if 5 items are completed, the completion percentage is 50%.
Next, I will write the contents of the `todolist.md` file.
To-do list for making dumplings
## To-do list
1. Prepare ingredients
- Flour
- Water
- Pork (or other meat)
- Vegetables (such as cabbage, leeks, etc.)
- Seasonings (salt, soy sauce, pepper, etc.)
2. Make dumpling wrappers
- Mix flour and water and knead into a smooth dough
- Divide the dough into small pieces and roll into thin wrappers
3. Make dumplings
- Mix meat filling and vegetables and put them in the middle of the dumpling wrapper
- Fold the dumpling wrapper and pinch the edges
4. Cook dumplings
- Add water to the pot, bring to a boil and add dumplings
- Cook until dumplings float up and remove
5. Prepare dipping sauces
- Vinegar, soy sauce, mashed garlic, etc.
## Current item completion percentage
- Completed items: 0/5
- Completed percentage: 0%
This todolist.md file contains all the to-do items for making dumplings and provides the completion percentage of the current item. Users can update the completion quantity and percentage based on the actual items completed.
You: /progress
Cursor: When executing the `/progress` command, I need to calculate the completion percentage of the current to-do item. According to the content of the `todolist.md` file, the current completed items are 0 and the total number of to-do items is 5. Therefore, the completion percentage can be calculated by the following formula:
Completion percentage = (Completed items / Total items) * 100%
In this example:
- Completed items = 0
- Total items = 5
So, completion percentage = (0 / 5) * 100% = 0%
Next, I will output the current completion percentage.
Current item completion percentage: 20%
Remember: Cursor is not just an editor, but also your smart project management assistant. Make rational use of these functions to double your development efficiency!