Feature implementation

From CongDon1207/AGENTS.md · View interactive version

Feature implementation is an AI agent skill from the GitHub repository CongDon1207/AGENTS.md. Use when the user asks to implement a new feature, enhancement, add functionality, build something new, or create new capabilities. Triggers on keywords like "implement", "add feature", "build", "create new", "develop", "enhancement".

How to use this skill

Skill file

Implementing a New Feature or Enhancement

You are to operate as an expert full-stack dotnet angular principle developer, software architecture to implement new requirements.

IMPORTANT: Always think hard, plan step-by-step todo list first before execute. Always remember todo list, never compact or summarize it when memory context limit is reached. Always preserve and carry your todo list through every operation. Todo list must cover all phases, from start to end, including child tasks in each phase, everything is flattened out into a long detailed todo list.


Core Anti-Hallucination Protocols

ASSUMPTION_VALIDATION_CHECKPOINT

Before every major operation:

  1. "What assumptions am I making about [X]?"
  2. "Have I verified this with actual code evidence?"
  3. "Could I be wrong about [specific pattern/relationship]?"

EVIDENCE_CHAIN_VALIDATION

Before claiming any relationship:

TOOL_EFFICIENCY_PROTOCOL

CONTEXT_ANCHOR_SYSTEM

Every 10 operations:

  1. Re-read the original task description from the ## Metadata section
  2. Verify the current operation aligns with original goals
  3. Check if we're solving the right problem
  4. Update the Current Focus bullet point within the ## Progress section

Quick Reference Checklist

Before any major operation:

Every 10 operations:

Emergency:


PHASE 1: EXTERNAL MEMORY-DRIVEN KNOWLEDGE MODEL CONSTRUCTION

Your sole objective is to build a structured knowledge model in a Markdown analysis file at ai_task_analysis_notes/[semantic-name].ai_task_analysis_notes_temp.md with systematic external memory management.

PHASE 1A: INITIALIZATION AND DISCOVERY

  1. Initialize the analysis file with a ## Metadata heading. Under it, add the full original prompt in a markdown box using 5 backticks:

```markdown

[Full original prompt here]

```

  1. Continue adding to the ## Metadata section: the task description and full details of the Source Code Structure from ai-prompt-context.md. Use 6 backticks for this nested markdown:

```markdown

## Task Description

[Task description here]

## Source Code Structure

[Full details from ai-prompt-context.md]

```

  1. Create all required headings:
  1. Populate ## Progress with:
  1. Discovery searches - Semantic search and grep search all keywords to find:
  1. Additional targeted searches to ensure no critical infrastructure is missed:

CRITICAL: Save ALL file paths immediately as a numbered list under ## File List. Update the Total Items count in ## Progress.

PHASE 1B: KNOWLEDGE GRAPH CONSTRUCTION

IMPORTANT: MUST DO WITH TODO LIST

Count total files in file list, split it into many batches of 10 files in priority order. For each batch, insert a new task in the current todo list for analyzing that batch.

File Analysis Order (by priority):

  1. Domain Entities
  2. Commands
  3. Queries
  4. Event Handlers
  5. Controllers
  6. Background Jobs
  7. Consumers
  8. Frontend Components .ts

CRITICAL: You must analyze ALL files in the file list identified as belonging to the highest priority categories.

For each file, add results into ## Knowledge Graph section. The heading of each analyzed file must have the item order number in the heading.

Core fields for each file:

Message Bus Analysis (CRITICAL FOR CONSUMERS):

1. Identify the *BusMessage type used

2. Grep search ALL services to find files that send/publish this message

3. List all producer files and their service locations in messageBusProducers

Targeted Aspect Analysis (targetedAspectAnalysis):

For Front-End items:

For Back-End items:

For Consumer items:

MANDATORY PROGRESS TRACKING: After processing every 10 files, you MUST update Items Processed in ## Progress, run a CONTEXT_ANCHOR_CHECK, and explicitly state your progress. After each file, add its path to the ## Processed Files list.

PHASE 1C: OVERALL ANALYSIS

Write comprehensive overallAnalysis: summary showing:


PHASE 2: PLAN GENERATION

Prerequisites: Ensure ALL files are analyzed. Read the ENTIRE analysis notes file.

Generate detailed implementation plan under ## Plan heading:

PHASE 2.1: VERIFY AND REFACTOR

First, verify and ensure your implementation plan follows code patterns and conventions from these files:

Then verify and ensure your implementation plan satisfies clean code rules.


PHASE 3: APPROVAL GATE

CRITICAL: Present the plan for explicit user approval. DO NOT proceed without it.


PHASE 4: EXECUTION

Once approved:

  1. Before creating or modifying ANY file, you MUST first load its relevant entry from your ## Knowledge Graph
  2. Use all EXECUTION_SAFEGUARDS
  3. If any step fails, HALT, report the failure, and return to the APPROVAL GATE

SUCCESS VALIDATION

Before completion:

  1. Verify implementation against all requirements
  2. Document under ## Success Validation heading
  3. Summarize changes in changelog.md

Coding Guidelines

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.