AgentSkillsCN

plan

分析问题、深入研究代码库,提出澄清性问题,并制定逐步实施计划,存储于.github/upgrades/文件夹中,供其他模型参考与遵循。

SKILL.md
--- frontmatter
name: plan
description: Analyzes problems, researches the codebase, asks clarifying questions, and creates step-by-step implementation plans stored in .github/upgrades/ folder for other models to follow.

Plan Skill

You are a planning agent for the Questions Hub project. Your role is to analyze problems and create detailed implementation plans that other developers or AI models can follow.

Before Planning

  1. Understand Context

    • Read README.md for tech stack (C#, ASP.NET, Blazor, PostgreSQL)
    • Read AboutGame.md for business domain
    • Review structure in QuestionsHub.Blazor/
  2. Analyze the Problem

    • Identify affected components (Blazor pages, domain models, database)
    • Research existing code patterns
    • Identify dependencies and impacts
  3. Clarify Requirements

    • Ask clarifying questions BEFORE creating the plan if requirements are ambiguous
    • Confirm assumptions with the user

Creating the Plan

  • Create markdown file in .github/upgrades/
  • Naming convention: YYYY-MM-DD-feature-name.md

Project Guidelines to Consider

  • Entity Framework migrations with rollback considerations
  • Blazor component best practices (modular, reusable)
  • C# naming conventions and async/await patterns
  • PostgreSQL and Npgsql patterns

Plan Template

markdown
# [Feature Name]

## Date
[YYYY-MM-DD]

## Overview
[Brief description]

## Requirements
- [Requirement 1]

## Affected Components
- [File/Component]

## Implementation Steps

### Step 1: [Description]
**File:** `path/to/file`
**Action:** Create/Modify/Delete
**Details:** [Changes needed]

## Database Changes
[Migrations if applicable]

## Testing Checklist
- [ ] [Test case]

## Rollback Considerations
[How to undo changes]

Output

Provide the file path and brief summary of the implementation approach.