.claude/skills/feature-investigation/SKILL.md
Use when the user asks to investigate, understand, explore, or explain how a feature works, asks about existing logic, or wants to understand code flow. Triggers on keywords like "how does", "explain", "investigate", "understand", "what does", "where is", "how works", "logic flow", "trace", "explore feature".
npx skillsauth add CongDon1207/AGENTS.md feature-investigationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are to operate as an expert full-stack dotnet angular principle developer and software architect to investigate and explain how existing features work, trace logic flows, and provide comprehensive understanding of code behavior.
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.
Before every major operation:
Before claiming any relationship:
Every 10 operations:
## Metadata sectionCurrent Focus bullet point within the ## Progress sectionBefore any major operation:
Every 10 operations:
## Progress sectionEmergency:
## Metadata sectionYour sole objective is to build a structured knowledge model in a Markdown analysis file at ai_task_analysis_notes/[feature-name]-investigation.ai_task_analysis_notes_temp.md with systematic external memory management.
Initialize the analysis file with a ## Metadata heading. Under it, add the full original prompt/question in a markdown box using 5 backticks:
[Full original prompt/question here]
Continue adding to the ## Metadata section: the investigation question and full details of the Source Code Structure from ai-prompt-context.md. Use 6 backticks for this nested markdown:
## Investigation Question
[Investigation question here]
## Source Code Structure
[Full details from ai-prompt-context.md]
Create all required headings:
## Progress## Investigation Questions## Assumption Validations## Processed Files## File List## Knowledge Graph## Logic Flow Map## Entry Points## Data FlowPopulate ## Progress with:
Populate ## Investigation Questions with:
Discovery searches - Semantic search and grep search all keywords to find:
Additional targeted searches:
grep search patterns: .*EventHandler.*{FeatureName}|{FeatureName}.*EventHandlergrep search patterns: .*BackgroundJob.*{FeatureName}|{FeatureName}.*BackgroundJobgrep search patterns: .*Consumer.*{FeatureName}|{FeatureName}.*Consumergrep search patterns: .*Service.*{FeatureName}|{FeatureName}.*Servicegrep search patterns: .*Helper.*{FeatureName}|{FeatureName}.*Helper**/*.{cs,ts,html}CRITICAL: Save ALL file paths immediately as a numbered list under ## File List. Update the Total Items count in ## Progress.
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):
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:
filePath: Full path to the filetype: Component classificationarchitecturalPattern: Design pattern usedcontent: Purpose and logic summarysymbols: Classes, interfaces, methodsdependencies: Imports/using statementsbusinessContext: Comprehensive detail of all business logicreferenceFiles: Files using this file's symbolsrelevanceScore: 1-10evidenceLevel: "verified" or "inferred"uncertainties: Unclear aspectsplatformAbstractions: Platform base classes usedserviceContext: Microservice ownershipdependencyInjection: DI registrationsgenericTypeParameters: Generic type relationshipsMessage Bus Analysis (CRITICAL FOR CONSUMERS):
messageBusAnalysis: When analyzing Consumer files (*Consumer.cs extending PlatformApplicationMessageBusConsumer<T>):
*BusMessage type usedmessageBusProducersTargeted Aspect Analysis (targetedAspectAnalysis):
For Front-End items:
componentHierarchy, routeConfig, routeGuardsstateManagementStores, dataBindingPatterns, validationStrategiesFor Back-End items:
authorizationPolicies, commands, queriesdomainEntities, repositoryPatterns, businessRuleImplementationsFor Consumer items:
messageBusMessage, messageBusProducerscrossServiceIntegration, handleLogicWorkflowMANDATORY 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.
Document under ## Logic Flow Map:
Entry Points: Where does the feature start? (API endpoint, UI action, scheduled job, message consumer)
Request Flow: Trace the complete path:
Data Flow: Track how data moves:
Event Flow: Map triggered events:
Error Handling Flow: Document error paths:
Write comprehensive overallAnalysis: summary showing:
Prerequisites: Ensure ALL files are analyzed. Read the ENTIRE analysis notes file.
Generate comprehensive investigation report under ## Investigation Report heading:
[Entry Point] → [Validation] → [Business Logic] → [Persistence] → [Side Effects] → [Response]
For each major claim, provide:
Address each question from ## Investigation Questions with:
Verify your investigation findings align with code patterns from these files:
.github/copilot-instructions.md - Platform patterns.github/instructions/frontend-angular.instructions.md - Frontend patterns.github/instructions/backend-dotnet.instructions.md - Backend patterns.github/instructions/clean-code.instructions.md - Clean code rulesPresent findings to the user in a clear, structured format:
development
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications, OR when they provide screenshots/images/designs to replicate or draw inspiration from. For screenshot inputs, extracts design guidelines first using ai-multimodal analysis, then implements code following those guidelines. Generates creative, polished code that avoids generic AI aesthetics.
development
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".
development
Use when the user asks to generate comprehensive feature documentation with verified test cases, create feature README with code evidence, or document a complete feature with test verification. Triggers on keywords like "feature documentation", "document feature", "comprehensive docs", "feature README", "test verification", "verified documentation".
development
Use AFTER any code changes (feature implementation, bug fix, refactor) to enforce mandatory dual-pass review. First pass reviews unstaged changes for correctness and convention compliance. Second pass ONLY executes if first pass made any corrections. Ensures work follows project conventions, development rules, and best practices before task completion.