agentsclimarketplace

Pre work research

Skill troykelly/claude-skills/skills/pre-work-research

Use before starting implementation - research repository documentation, codebase patterns, and external resources to inform the approachFrom its SKILL.md

Install
npx -y skills add troykelly/claude-skills --skill pre-work-research

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 11 stars11 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.8 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it

Pre-Work Research

Overview

Research before coding. Understand the landscape before changing it.

Core principle: Measure twice, cut once.

Announce at start: "I'm researching the codebase and documentation before implementing."

When to Research

Research is appropriate when:

SituationResearch Needed
Unfamiliar area of codebaseYes
New library or APIYes
Complex integrationYes
Performance-sensitive codeYes
Security-sensitive codeYes
Simple, isolated changeMinimal

The Research Protocol

Step 1: Understand Requirements

Before researching implementation:

  • Read the full issue description
  • Review all acceptance criteria
  • Note any constraints mentioned
  • Identify unknowns

Step 2: Research Repository Documentation

# Project overview
cat README.md

# Architecture/design docs
ls -la docs/
find . -name "*.md" -path "./docs/*"

# Contributing guidelines
cat CONTRIBUTING.md

# API documentation
cat docs/api*.md
cat docs/architecture*.md

Look for:

  • Architecture decisions
  • Design patterns used
  • Coding conventions
  • Testing requirements
  • Deployment considerations

Step 3: Research Existing Codebase

Find Similar Implementations

# Find similar features
grep -r "similar keyword" src/

# Find related tests
grep -r "similar keyword" **/*.test.*

# Find imports of relevant modules
grep -r "import.*ModuleName" src/

Understand Patterns

# How are similar things done?
# Look at 2-3 examples of similar functionality

# Example: If adding an API endpoint
grep -r "router\." src/routes/
cat src/routes/[existing-endpoint].ts

# Example: If adding a service
ls -la src/services/
cat src/services/[existing-service].ts

Check for Utilities

# What utilities exist?
ls -la src/utils/
cat src/utils/[relevant-util].ts

# Are there shared helpers?
grep -r "export function" src/utils/

Step 4: Research External Resources

When using external APIs or libraries:

Official Documentation

# Read the docs for dependencies
pnpm info [package-name]
# Then visit documentation URL
Search: "[library-name] documentation"
Search: "[library-name] getting started"
Search: "[library-name] [specific feature]"

API References

For external APIs:

  • Authentication requirements
  • Rate limits
  • Error handling
  • Response formats
  • Versioning

Community Resources

  • GitHub issues for common problems
  • Stack Overflow for patterns
  • Blog posts for best practices

Step 5: Document Findings

Create a research summary:

## Pre-Work Research: Issue #[NUMBER]

### Requirements Understanding
- [Key requirement 1]
- [Key requirement 2]

### Codebase Patterns
- Pattern for [X]: See `src/example/pattern.ts`
- Utilities available: `src/utils/helper.ts`
- Test pattern: See `src/example/example.test.ts`

### External Dependencies
- [Library]: [Key findings]
- [API]: [Authentication method, rate limits]

### Approach
Based on research, the approach is:
1. [Step 1]
2. [Step 2]
3. [Step 3]

### Risks/Considerations
- [Risk 1]
- [Consideration 1]

Step 6: Update Issue (If Significant)

If research reveals important context:

gh issue comment [ISSUE_NUMBER] --body "## Pre-Implementation Research

### Approach
[Summary of planned approach]

### Considerations
- [Important finding 1]
- [Important finding 2]

### Questions (if any)
- [Question needing clarification]
"

Research Depth by Task Size

Task SizeResearch Depth
Trivial (typo, config)None needed
Small (single file)Quick pattern check
Medium (feature)Full protocol
Large (system)Extended research

Quick Pattern Check (5 min)

# Just verify pattern
grep -r "pattern" src/ | head -5
cat src/similar/example.ts | head -50

Full Protocol (15-30 min)

Complete Steps 1-6 above.

Extended Research (1+ hour)

  • Read all relevant documentation
  • Trace through existing implementations
  • Create proof-of-concept if needed
  • Document architectural considerations

What to Look For

In Documentation

Look ForWhy
Architecture diagramsUnderstand system structure
Coding standardsMatch existing style
Decision recordsUnderstand why things are done a way
API contractsMaintain compatibility

In Codebase

Look ForWhy
Similar featuresFollow established patterns
Test patternsWrite consistent tests
Error handlingHandle errors consistently
Logging patternsLog appropriately

In External Resources

Look ForWhy
Official examplesUse recommended patterns
Common pitfallsAvoid known issues
Performance tipsOptimize appropriately
Security guidanceImplement securely

Research Outputs

After research, you should know:

  • How similar features are implemented
  • What patterns to follow
  • What utilities are available
  • What the testing approach should be
  • Any risks or special considerations

Checklist

Before starting implementation:

  • Issue requirements understood
  • Repository docs checked
  • Similar code patterns found
  • Relevant utilities identified
  • External resources researched (if applicable)
  • Approach documented
  • Issue updated (if significant findings)

Integration

This skill is called by:

  • issue-driven-development - Step 5

This skill informs:

  • tdd-full-coverage - How to write tests
  • strict-typing - Type patterns to use
  • inline-documentation - Documentation patterns

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Gives 0 of the 12 instructions most research analysis skills give in ~1.3k tokens

Counted across 1,063 of the 1,754 authors here whose files we hold, read 2026-08-07

  • Generate a markdown reportin 32 of 1063, across 23 files
  • Cite each claim's sourcein 30 of 1063, across 15 files
  • Define the ideal customer profilein 20 of 1063, across 2 files
  • Search for companies matching the criteriain 20 of 1063, across 2 files
  • Assign a fit score from one to tenin 20 of 1063, across 2 files
  • Analyze the codebase to understand the productin 19 of 1063, across 1 file
  • Ask clarifying questions about the value propositionin 19 of 1063, across 1 file
  • Look for signals of immediate needin 19 of 1063, across 1 file
  • Identify the target decision maker rolein 19 of 1063, across 1 file
  • Suggest a personalized contact strategyin 19 of 1063, across 1 file
  • Provide conversation starters for outreachin 19 of 1063, across 1 file
  • Format results in a scannable markdown templatein 19 of 1063, across 1 file

Said here and by no other author read

  • announce research before implementing
  • read the full issue description
  • review all acceptance criteria
  • check repository documentation
  • research external resources
  • create a research summary

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 326,852. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.