Agent skill
research-reports
Format and structure research reports with citations and metadata
Install this agent skill to your Project
npx add-skill https://github.com/nikeyes/stepwise-dev/tree/main/research/skills/research-reports
SKILL.md
Research Reports Skill
This skill provides utilities for formatting and managing research reports generated by the stepwise-research plugin.
When to Use This Skill
Claude Code will automatically invoke this skill when:
- A research report needs standardized formatting
- YAML frontmatter needs to be generated for a report
- Bibliography formatting needs to be standardized
- Metadata needs to be extracted from research findings
Available Scripts
generate-report
Purpose: Generate a properly formatted research report with YAML frontmatter, citations, and structured sections.
Usage:
research/skills/research-reports/scripts/generate-report \
--title "Research on [Topic]" \
--query "Original research question" \
--keywords "keyword1,keyword2,keyword3" \
--agent-count N \
--source-count M \
--output-file "thoughts/shared/research/filename.md" \
--executive-summary "Summary text" \
--findings "Findings text with citations" \
--conclusions "Conclusion text" \
--bibliography "Bibliography entries"
Parameters:
--title(required): Report title--query(required): Original research question--keywords(required): Comma-separated keywords--agent-count(required): Number of research agents spawned--source-count(required): Total unique sources cited--output-file(required): Output path (should be in thoughts/shared/research/)--executive-summary(optional): Executive summary section content--findings(optional): Detailed findings section content--conclusions(optional): Conclusions section content--bibliography(optional): Bibliography entries (numbered list)
Output: Generates a markdown file with this structure:
---
title: [Title]
date: YYYY-MM-DD
query: [Query]
keywords: [keywords]
status: complete
agent_count: N
source_count: M
---
# [Title]
## Executive Summary
[Content]
## Detailed Findings
[Content with citations]
## Conclusions
[Content]
## Bibliography
[Numbered citations]
---
*Research conducted by stepwise-research multi-agent system*
*Generated: [timestamp]*
Report Structure Standards
YAML Frontmatter Fields
title: Human-readable report titledate: ISO 8601 date (YYYY-MM-DD)query: Original research question (verbatim)keywords: 5-8 extracted key termsstatus:complete|draft|in-progressagent_count: Number of research agents usedsource_count: Total unique sources cited
Required Sections
- Executive Summary: 3-5 sentence overview answering the research question
- Detailed Findings: Organized by theme/topic with subsections
- Conclusions: 3-5 bullet points summarizing key takeaways
- Bibliography: Numbered list with format:
[N] Source Title - URL
Optional Sections
- Cross-References and Contradictions: Areas of consensus/disagreement
- Methodology: How research was conducted (if relevant)
- Limitations: Gaps or constraints in the research
Citation Format
Citations must follow this format:
In-text:
Docker uses containerd as its default runtime [1] [2].
Bibliography:
[1] Docker Documentation - https://docs.docker.com/engine/
[2] Containerd Official Site - https://containerd.io/
Integration with Thoughts System
Reports are saved to:
thoughts/shared/research/[sanitized-topic]-[YYYY-MM-DD].md
Filename sanitization rules:
- Convert to lowercase
- Replace spaces with hyphens
- Remove special characters (keep only alphanumeric and hyphens)
- Truncate to 60 characters max
- Append date suffix
Example:
- Query: "What is Kubernetes and how does it work?"
- Filename:
what-is-kubernetes-and-how-does-it-work-2026-02-19.md
After report creation, the thoughts-management Skill will automatically sync hardlinks to thoughts/searchable/.
Script Implementation Notes
The generate-report script:
- Validates all required parameters
- Generates properly formatted YAML frontmatter
- Ensures consistent section ordering
- Adds generation metadata footer
- Creates parent directories if needed
- Returns success/failure status
Error Handling
If report generation fails:
- Check that
thoughts/shared/research/directory exists - Verify all required parameters are provided
- Check for write permissions
- Validate YAML frontmatter syntax
Future Enhancements
Potential future additions to this skill:
validate-report: Check report structure and citation formatexport-report: Convert to PDF, HTML, or other formatsmerge-reports: Combine multiple research reportsextract-citations: Pull bibliography from existing reports
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
thoughts-management
Manage thoughts directory operations including initialization, synchronization, and metadata generation. Use after creating or modifying research documents, implementation plans, or notes to keep the searchable directory synchronized. Also use when gathering git metadata for document frontmatter.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
scaffold-exercises
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
git-guardrails-claude-code
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.
Didn't find tool you were looking for?