request-refactor-plan

द्वारा mattpocock

उपयोगकर्ता साक्षात्कार के माध्यम से छोटे-छोटे कमिट्स के साथ एक विस्तृत रीफैक्टर योजना बनाएं, फिर इसे GitHub मुद्दे के रूप में दर्ज करें। इसका उपयोग तब करें जब उपयोगकर्ता रीफैक्टर की योजना बनाना चाहता हो, रीफैक्टरिंग RFC बनाना चाहता हो, या रीफैक्टर को सुरक्षित क्रमिक चरणों में विभाजित करना चाहता हो।

npx skills add https://github.com/mattpocock/skills --skill request-refactor-plan

This skill will be invoked when the user wants to create a refactor request. You should go through the steps below. You may skip steps if you don't consider them necessary.

  1. Ask the user for a long, detailed description of the problem they want to solve and any potential ideas for solutions.

  2. Explore the repo to verify their assertions and understand the current state of the codebase.

  3. Ask whether they have considered other options, and present other options to them.

  4. Interview the user about the implementation. Be extremely detailed and thorough.

  5. Hammer out the exact scope of the implementation. Work out what you plan to change and what you plan not to change.

  6. Look in the codebase to check for test coverage of this area of the codebase. If there is insufficient test coverage, ask the user what their plans for testing are.

  7. Break the implementation into a plan of tiny commits. Remember Martin Fowler's advice to "make each refactoring step as small as possible, so that you can always see the program working."

  8. Create a GitHub issue with the refactor plan. Use the following template for the issue description:

Problem Statement

The problem that the developer is facing, from the developer's perspective.

Solution

The solution to the problem, from the developer's perspective.

Commits

A LONG, detailed implementation plan. Write the plan in plain English, breaking down the implementation into the tiniest commits possible. Each commit should leave the codebase in a working state.

Decision Document

A list of implementation decisions that were made. This can include:

  • The modules that will be built/modified
  • The interfaces of those modules that will be modified
  • Technical clarifications from the developer
  • Architectural decisions
  • Schema changes
  • API contracts
  • Specific interactions

Do NOT include specific file paths or code snippets. They may end up being outdated very quickly.

Testing Decisions

A list of testing decisions that were made. Include:

  • A description of what makes a good test (only test external behavior, not implementation details)
  • Which modules will be tested
  • Prior art for the tests (i.e. similar types of tests in the codebase)

Out of Scope

A description of the things that are out of scope for this refactor.

Further Notes (optional)

Any further notes about the refactor.

mattpocock की और Skills

improve-codebase-architecture
mattpocock
कोडबेस में गहन अवसर खोजें, जो CONTEXT.md में डोमेन भाषा और docs/adr/ में निर्णयों से प्रेरित हो। इसका उपयोग तब करें जब उपयोगकर्ता आर्किटेक्चर में सुधार करना चाहता हो, रीफैक्टरिंग के अवसर खोजना चाहता हो, कसकर जुड़े मॉड्यूल को समेकित करना चाहता हो, या कोडबेस को अधिक परीक्षण योग्य और AI-नेविगेट करने योग्य बनाना चाहता हो।
developmentcode-reviewapi
tdd
mattpocock
लाल-हरा-पुनर्संरचना चक्र के साथ परीक्षण-संचालित विकास। इसका उपयोग तब करें जब उपयोगकर्ता TDD का उपयोग करके सुविधाएँ बनाना या बग ठीक करना चाहता है, "लाल-हरा-पुनर्संरचना" का उल्लेख करता है, एकीकरण परीक्षण चाहता है, या परीक्षण-प्रथम विकास के लिए पूछता है।
developmenttesting
handoff
mattpocock
वर्तमान वार्तालाप को संक्षिप्त करके एक हैंडऑफ दस्तावेज़ तैयार करें, जिसे कोई अन्य एजेंट आगे ले सके।
communicationproject-managementdocument
prototype
mattpocock
एक प्रयोगात्मक प्रोटोटाइप बनाएं ताकि डिज़ाइन को अंतिम रूप देने से पहले उसे विकसित किया जा सके। दो शाखाओं के बीच मार्ग बनाएं — एक चलाने योग्य टर्मिनल ऐप जो स्थिति/व्यावसायिक-तर्क प्रश्नों के लिए हो, या एक मार्ग से टॉगल करने योग्य कई मौलिक रूप से भिन्न UI विविधताएँ। इसका उपयोग तब करें जब उपयोगकर्ता प्रोटोटाइप बनाना चाहता है, डेटा मॉडल या स्टेट मशीन की जाँच करना चाहता है,
developmentdesigncreative
triage
mattpocock
ट्राइएज भूमिकाओं द्वारा संचालित स्टेट मशीन के माध्यम से मुद्दों का ट्राइएज करें। उपयोग तब करें जब उपयोगकर्ता कोई मुद्दा बनाना चाहता हो, मुद्दों का ट्राइएज करना चाहता हो, आने वाले बग या फीचर अनुरोधों की समीक्षा करनी हो, AFK एजेंट के लिए मुद्दे तैयार करने हों, या मुद्दा वर्कफ़्लो प्रबंधित करना हो।
developmentproject-managementcommunication
obsidian-vault
mattpocock
ऑब्सिडियन वॉल्ट में विकिलिंक और इंडेक्स नोट्स के साथ नोट्स खोजें, बनाएं और प्रबंधित करें। जब उपयोगकर्ता ऑब्सिडियन में नोट्स ढूंढना, बनाना या व्यवस्थित करना चाहे तब उपयोग करें।
productivitydocument
edit-article
mattpocock
लेखों के अनुभागों को पुनर्गठित करके, स्पष्टता में सुधार करके और गद्य को संक्षिप्त बनाकर उन्हें संपादित और बेहतर बनाएं। इसका उपयोग तब करें जब उपयोगकर्ता किसी लेख के मसौदे को संपादित, संशोधित या बेहतर बनाना चाहता हो।
documentcreative
writing-great-skills
mattpocock
कौशल को अच्छी तरह लिखने और संपादित करने का संदर्भ — वह शब्दावली और सिद्धांत जो कौशल को पूर्वानुमेय बनाते हैं।
documentdevelopment