xiaohongshu
xiaohongshu
feature-investigation
Investigate and explain how existing features/logic work. READ-ONLY exploration. Triggers: how does, explain, what is the logic, investigate, understand, where is, trace, walk through, show me how. NOT for: implementing (use feature-implementation), debugging (use debugging).
Full skill instructions
READ-ONLY exploration skill for understanding existing features. No code changes.
| Mode | Use When | Workflow |
|---|---|---|
| Interactive | User available, exploratory question | Real-time collaboration, iterative tracing |
| Autonomous | Deep analysis, complex cross-service tracing | Structured 4-phase workflow with analysis artifact |
IMPORTANT: You MUST read these files before starting. Do NOT skip.
.claude/skills/shared/anti-hallucination-protocol.md — Assumption validation, evidence chains, context anchoring.claude/skills/shared/knowledge-graph-template.md — Per-file analysis structureIf preceded by /scout: Use Scout's numbered file list as analysis targets. Skip redundant discovery. Prioritize HIGH PRIORITY files first.
.*EventHandler.*{FeatureName}|{FeatureName}.*EventHandler
.*BackgroundJob.*{FeatureName}|{FeatureName}.*BackgroundJob
.*Consumer.*{FeatureName}|{FeatureName}.*Consumer
.*Service.*{FeatureName}|{FeatureName}.*Service
.*Component.*{FeatureName}|{FeatureName}.*Component
UseCaseCommands/, UseCaseQueries/)UseCaseEvents/, *EventHandler.cs)Controllers/, *Controller.cs)*Consumer.cs, *BusMessage.cs)*BackgroundJob*.cs, *Job.cs)*.component.ts, *.store.ts)*Service.cs, *Helper.cs)| Looking for | Search pattern |
|---|---|
| Who calls this method | Grep method name across *.cs |
| Who injects this service | Grep interface name in constructors |
| What events this entity raises | Grep PlatformCqrsEntityEvent<EntityName> |
| Cross-service consumers | Grep *BusMessage type across all services |
| Repository usage | Grep IRepository<EntityName> or IPlatformQueryableRootRepository<EntityName |
| Looking for | Search pattern |
|---|---|
| Who uses this component | Grep selector app-component-name in *.html |
| Who imports this service | Grep service class name in *.ts |
| Store effects chain | Trace effectSimple -> API call -> tapResponse -> state update |
| Route entry | Grep component name in *routing*.ts |
Document flow as text diagram:
[Entry Point] --> [Step 1: Validation] --> [Step 2: Processing] --> [Step 3: Persistence]
|
v
[Side Effect: Event]
PlatformCqrsCommand / PlatformCqrsQuery - CQRS entry pointsPlatformCqrsEntityEventApplicationHandler - Side effectsPlatformApplicationMessageBusConsumer - Cross-service consumersIPlatformQueryableRootRepository - Data accessPlatformValidationResult - Validation logic[PlatformAuthorize] - AuthorizationAppBaseVmStoreComponent - State management componentsPlatformVmStore - Store implementationseffectSimple / tapResponse - Effect handlingobserverLoadingErrorState - Loading/error statesPlatformApiServiceAutonomous mode writes analysis to .ai/workspace/analysis/[feature-name]-investigation.md with:
## Metadata
> Original question: [user's exact question]
## Investigation Question
[Clearly stated investigation goal]
## Progress
- **Phase**: 1
- **Items Processed**: 0 / [total]
- **Current Focus**: [original question]
## File List
[All discovered files, grouped by priority]
## Knowledge Graph
[Per-file analysis entries - see template below]
## Data Flow
[Flow diagrams and pipeline documentation]
## Findings
[Populated in Phase 2+]
For each file, document in ## Knowledge Graph:
filePath: Full pathtype: Component classification (Entity, Command, Handler, Controller, Component, Store, etc.)architecturalPattern: Design pattern usedcontent: Purpose and logic summarysymbols: Key classes, interfaces, methodsdependencies: Imports/injectionsrelevanceScore: 1-10 (to investigation question)evidenceLevel: "verified" or "inferred"entryPoints: How this code is triggered/calledoutputPoints: What this code produces/returnsdataTransformations: How data is modifiedconditionalLogic: Key decision points and brancheserrorScenarios: What can go wrong, error handlingexternalDependencies: External services, APIs, databasesmessageBusMessage: Message type consumed/producedmessageBusProducers: Who sends this messagecrossServiceIntegration: Cross-service data flowRule: After every 10 files, update progress and re-check alignment with original question.
file:line references+-----------+ +-----------+ +-----------+
| Component |---->| Command |---->| Handler |
+-----------+ +-----------+ +-----------+
|
v
+-----------+
|Repository |
+-----------+
## Answer
[Direct answer in 1-2 paragraphs]
## How It Works
### 1. [Step] - [Explanation with `file:line` reference]
### 2. [Step] - [Explanation with `file:line` reference]
## Key Files
| File | Purpose |
| ---- | ------- |
## Data Flow
[Text diagram: Entry -> Processing -> Persistence -> Side Effects]
## Want to Know More?
- [Subtopic 1]
- [Subtopic 2]
feature-implementation - Implementing new features (code changes)debugging - Debugging and fixing issuesscout - Quick codebase discovery (run before investigation)xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience