This skill provides a systematic 6-phase workflow for investigating and understanding existing systems, codebases, and architectures. Unlike development workflows optimized for implementation, this workflow is optimized for exploration, understanding, and knowledge capture.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versioninvestigation-workflowExecute the skills CLI command in your project's root directory to begin installation:
Fetches investigation-workflow from rysweet/amplihack and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate investigation-workflow. Access via /investigation-workflow in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
1
total installs
1
this week
44
GitHub stars
0
upvotes
Run in your terminal
1
installs
1
this week
44
stars
This skill provides a systematic 6-phase workflow for investigating and understanding existing systems, codebases, and architectures. Unlike development workflows optimized for implementation, this workflow is optimized for exploration, understanding, and knowledge capture.
Investigation Tasks (use this workflow):
Development Tasks (use DEFAULT_WORKFLOW.md instead):
Exploration First: Define scope and strategy before diving into code Parallel Deep Dives: Deploy multiple agents simultaneously for efficient information gathering Verification Required: Test understanding through practical application Knowledge Capture: Document findings to prevent repeat investigations
Purpose: Define investigation boundaries and success criteria before any exploration.
Tasks:
Success Criteria:
Deliverables:
Purpose: Plan which agents to deploy and what to investigate, preventing inefficient random exploration.
Tasks:
Agent Selection Guidelines:
Success Criteria:
Deliverables:
Purpose: Deploy multiple exploration agents simultaneously to gather information efficiently.
CRITICAL: This phase uses PARALLEL EXECUTION by default.
Tasks:
[analyzer(module1), analyzer(module2), analyzer(module3)] - Multiple code areas[analyzer, patterns, security] - Multiple perspectives on same area[architect, database, integration] - System architecture explorationParallel Agent Examples:
Investigation: "How does the reflection system work?"
→ [analyzer(~/.amplihack/.claude/tools/amplihack/hooks/), patterns(reflection), integration(logging)]
Investigation: "Why is CI failing?"
→ [analyzer(ci-config), patterns(ci-failures), integration(github-actions)]
Investigation: "Understand authentication flow"
→ [analyzer(auth-module), security(auth), patterns(auth), integration(external-auth)]
Success Criteria:
Deliverables:
Purpose: Test and validate understanding through practical application.
Tasks:
Verification Examples:
Understanding: "Authentication uses JWT tokens"
Verification: Trace actual token creation and validation in code
Understanding: "CI fails because of dependency conflict"
Verification: Check CI logs, reproduce locally, verify fix works
Understanding: "Reflection analyzes all user messages"
Verification: Examine reflection logs, trace message processing
Success Criteria:
Deliverables:
Purpose: Compile findings into coherent explanation that answers original questions.
Tasks:
Synthesis Outputs:
Success Criteria:
Deliverables:
Purpose: Create durable documentation so this investigation never needs to be repeated.
Tasks:
store_discovery() from amplihack.memory.discoveriesDocumentation Guidelines:
## Discovery: [Brief Title]
**Context**: What was investigated and why
**Key Findings**:
- Main insight 1
- Main insight 2
- **Supporting Evidence**: Links to code, logs, or verification tests
- **Implications**: How this affects the project
- **Related Patterns**: Links to similar patterns in PATTERNS.md
Success Criteria:
Deliverables:
~/.amplihack/.claude/runtime/logs/After investigation completes, if the task requires implementation (not just understanding), transition to DEFAULT_WORKFLOW.md:
get_recent_discoveries()) and session logs to inform design decisionsExample Hybrid Workflow:
User: "/ultrathink investigate how authentication works, then add OAuth support"
Phase 1: Investigation
→ Run INVESTIGATION_WORKFLOW.md (6 phases)
→ Complete understanding of existing auth system
→ Store findings in memory via discoveries adapter
Phase 2: Development
→ Transition to DEFAULT_WORKFLOW.md
→ Resume at Step 4 (Research and Design)
→ Use investigation insights to design OAuth integration
→ Continue through Step 15 (implementation → testing → PR)
When to Transition:
Target Efficiency: This workflow targets a 30-40% reduction in message count compared to ad-hoc investigation.
| Ad-Hoc Approach | Investigation Workflow |
|---|---|
| 70-90 messages | 40-60 messages |
| Frequent backtracking | Planned exploration |
| Redundant investigation | Parallel deep dives |
| Unclear scope | Explicit scope definition |
| Lost knowledge | Documented insights |
Efficiency Gains Come From:
Both workflows share core principles:
| Aspect | Investigation Workflow | DEFAULT_WORKFLOW.md |
|---|---|---|
| Goal | Understanding | Implementation |
| Phases | 6 phases | Multi-step workflow |
| Execution | Exploration-first | Implementation-first |
| Parallel Focus | Phase 3 (Deep Dives) | Various steps |
| Testing | Understanding verification | Code validation |
| Deliverable | Documentation | Working code |
| Git Usage | Optional | Required (branches, PRs) |
| Investigation Phase | DEFAULT_WORKFLOW Equivalent | Purpose |
|---|---|---|
| Phase 1: Scope Definition | Step 1: Requirements Clarification | Define what success looks like |
| Phase 2: Exploration Strategy | Step 4: Research and Design | Plan the approach |
| Phase 3: Parallel Deep Dives | Step 5: Implementation | Execute the plan (explore vs. build) |
| Phase 4: Verification | Steps 7-8: Testing | Validate results |
| Phase 5: Synthesis | Step 11: Review | Ensure quality and completeness |
| Phase 6: Knowledge Capture | Step 15: Cleanup | Make results durable |
UltraThink Workflow Detection: When /ultrathink is invoked, it automatically detects investigation tasks using keywords and suggests this workflow.
Automatic Workflow Suggestion:
User: "/ultrathink investigate how authentication works"
UltraThink: Detected investigation task. Using INVESTIGATION_WORKFLOW.md
→ Reading workflow from .claude/workflow/INVESTIGATION_WORKFLOW.md
→ Following 6-phase investigation workflow
→ Starting Phase 1: Scope Definition
To customize this workflow:
~/.amplihack/.claude/workflow/INVESTIGATION_WORKFLOW.md to modify, add, or remove phasesChanges take effect immediately for future investigations.
Track these metrics to validate workflow effectiveness:
When in doubt about investigation vs. development:
~/.amplihack/.claude/workflow/INVESTIGATION_WORKFLOW.md (complete 436-line specification)~/.amplihack/.claude/agents/CATALOG.md for all available agents~/.amplihack/.claude/context/PATTERNS.md for reusable investigation patternsMake data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
mattpocock/skills
Useful defaults in investigation-workflow — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Solid pick for teams standardizing on skills: investigation-workflow is focused, and the summary matches what you get after install.
investigation-workflow has been reliable in day-to-day use. Documentation quality is above average for community skills.
investigation-workflow is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Keeps context tight: investigation-workflow is the kind of skill you can hand to a new teammate without a long onboarding doc.
Keeps context tight: investigation-workflow is the kind of skill you can hand to a new teammate without a long onboarding doc.
investigation-workflow is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
investigation-workflow has been reliable in day-to-day use. Documentation quality is above average for community skills.
Solid pick for teams standardizing on skills: investigation-workflow is focused, and the summary matches what you get after install.
Useful defaults in investigation-workflow — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
showing 1-10 of 70