strategic-research-automation-template
CLAUDE.md19 starsChanged 13 months agoMITView on GitHub
- Reads credentials
- Installs packages
- Commits and pushes
In this repository15 other files it gives its agents.
- comparative-analyzerSkill
- compliance-analystSkill
- market-analystSkill
- opportunity-discoverySkill
- opportunity-scorerSkill
- quality-validatorSkill
- report-generatorSkill
- report-synthesizerSkill
- research-synthesizerSkill
- roadmap-plannerSkill
- solution-architectSkill
- sprint-executorSkill
- sprint-orchestratorSkill
- sprint-progress-trackerSkill
- technical-researcherSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
34 rules. About 0 are common, 27 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈27
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use map-reduce approach with parallel tasks and subtasks for research decomposition.
- Distinctive: line 15
Ensure each task or subtask reports back a very brief explanation on what was done, and what still needs to be done (if any).
- Distinctive: line 18
Ensure that in case of any problem that task or subtask experiences, it must spawn another [set of] subtask(s) to do necessary research …
- Distinctive: line 29
All claims must be supported by credible citations from:
- Very specific: line 37
Follow the citation style specified in config/project-config.yml (default: APA).
- Distinctive: line 54
All reports must serve both:
- Distinctive: line 59
Every research file must include:
- Distinctive: line 68
Use clear, descriptive filenames
- Distinctive: line 77
Commit research files as they are completed:
- Distinctive: line 85
Create a git tag/release after completing each sprint:
- Very specific: line 94
All project settings are in config/ directory:
- Distinctive: line 144
Stop for human input only for:
- Distinctive: line 151
If a skill encounters an issue:
- Distinctive: line 152
Document the issue clearly
- Distinctive: line 154
If unresolvable, flag in research notes and continue
- Distinctive: line 155
Never leave placeholders or "TODO" markers
- Distinctive: line 160
Write in markdown format
- Distinctive: line 162
Use clear section headings
- Distinctive: line 164
Add full reference list at end
- Very specific: line 169
Break up dense paragraphs: - Use bullet points, numbered lists, or <br/> tags
- Distinctive: line 170
Maximum 3-4 sentences per paragraph: before breaking or using bullets
- Distinctive: line 208
Blank line before table: - Always have empty line before first row
- Distinctive: line 209
Blank line after table: - Always have empty line after last row
- Very specific: line 210
Proper markdown syntax: - Use | pipes and |---| dashes for header separator
- Distinctive: line 212
Align columns: - Use spaces to align pipes for readability
- Distinctive: line 238
Keep table cell content readable with proper line breaks
- Distinctive: line 239
Use HTML line breaks for multi-line content in cells
- Very specific: line 258
Use <br/> to break long cell content into multiple lines
- Distinctive: line 261
If data doesn't fit, use nested tables or multiple tables
- Distinctive: line 262
Always preview tables in markdown viewer to verify formatting
- Distinctive: line 309
Blank line before list: - Always have empty line before first item
- Very specific: line 310
Proper syntax: - Use 1. for numbered, - for bullets
- Distinctive: line 311
Never inline numbers: - Don't write "1. Item 2. Item" in one line
- Very specific: line 312
Bold the label: - Use Label: for emphasis
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Code Guidelines for Strategic Research Automation
Task Execution Strategy
Context Optimization
Extensively use tasks and subtasks (Task tool) to optimize the context usage.
Parallel Execution
Extensively use parallel tasks and subtasks (multiple Task tools running in the same message) to make the work be done much faster.
Map-Reduce Approach
Use map-reduce approach with parallel tasks and subtasks for research decomposition.
Task Reporting
Ensure each task or subtask reports back a very brief explanation on what was done, and what still needs to be done (if any).
Problem Resolution
Ensure that in case of any problem that task or subtask experiences, it must spawn another [set of] subtask(s) to do necessary research and/or experiments in order to resolve the issue.
Planning and Tracking
Extensively use planning (with TodoWrite tool), so all work is being thoroughly and reliably tracked, and nothing is skipped or lost.
Parallelization Limits
The maximum number of tasks or subtasks running in parallel should not be more than CPU cores on this machine.
Research Principles
Evidence-Based Research
All claims must be supported by credible citations from:
- Industry regulations and standards
- Academic research and peer-reviewed journals
- Market reports from reputable firms
- Technical documentation and specifications
- Expert interviews (with permission)
Citation Format
Follow the citation style specified in config/project-config.yml (default: APA).
Source Quality Standards
Prioritize authoritative sources:
- Primary sources: Regulatory documents, standards, official specifications
- Secondary sources: Academic research, industry reports, technical documentation
- Tertiary sources: News articles, blog posts (use sparingly, verify with primary/secondary sources)
Cross-Referencing
Maintain internal consistency:
- Reference findings from other tasks within the sprint
- Link related research files
- Build upon previously established facts
Quality Standards
Dual-Audience Writing
All reports must serve both:
- Business Executives: Clear value propositions, ROI, strategic implications
- Technical Decision-Makers: Technical feasibility, architecture details, implementation requirements
Document Structure
Every research file must include:
- Executive Summary: 2-3 paragraphs summarizing key findings
- Key Findings: Bulleted list of main discoveries
- Supporting Evidence: Detailed analysis with citations
- References: Full citation list
File Organization
- Minimum 25 research files per sprint (configurable in
config/project-config.yml) - Each file should be focused and self-contained (500-5000 words)
- Use clear, descriptive filenames
- Organize files by task (01-technical, 02-market, 03-architecture, etc.)
Git Workflow
No Pull Requests
This is a solo research workflow - commit directly to main branch.
Commit Frequently
Commit research files as they are completed:
git add temp/sprint-XX/
git commit -m "Sprint XX, Task YY: [brief description of research completed]"
git pushSprint Milestones
Create a git tag/release after completing each sprint:
git tag -a sprint-XX-complete -m "Sprint XX: [Sprint Name] - Complete"
git push --tagsConfiguration Management
Project Configuration
All project settings are in config/ directory:
- project-config.yml: Project metadata, research parameters
- sprint-config.yml: Sprint definitions and task breakdown
- quality-standards.yml: Evidence requirements, quality thresholds
- scoring-rubric.yml: Opportunity scoring criteria
- glossary.yml: Industry-specific terminology
Environment Variables
Sensitive data goes in .env (never commit):
- API keys (ANTHROPIC_API_KEY, etc.)
- Credentials for external services
- Runtime configuration overrides
Context Files
Project-specific context in context/ directory:
- company-profile.md: Your company's capabilities, goals, constraints
- client-info.md: Client background, requirements, preferences
- industry-background.md: Industry-specific knowledge and context
Skills and Commands
Skills (Model-Invoked Agents)
Claude Code will automatically invoke skills based on task requirements:
- sprint-orchestrator: Coordinates multi-task sprint execution
- technical-researcher: Investigates regulatory, technical, standards
- market-analyst: Analyzes TAM/SAM/SOM, competitors, customers
- solution-architect: Designs system architecture and components
- compliance-analyst: Researches certification pathways and testing
- roadmap-planner: Creates implementation roadmaps and timelines
- report-synthesizer: Synthesizes final reports with scoring
Commands (User-Invoked)
Execute commands via Claude Code CLI:
/init-project: Initialize new research project/create-sprint <name>: Create new sprint directory structure/execute-sprint <id>: Execute all tasks in a sprint/execute-task <sprint-id> <task-id>: Execute single task/synthesize-report <sprint-id>: Create final sprint report/score-opportunity <sprint-id>: Score opportunity using rubric/validate-quality <sprint-id>: Run quality assurance checks
Automation Principles
Autonomous Operation
Skills operate autonomously within their domain:
- Skills make research decisions without asking for permission
- Skills parallelize research where beneficial
- Skills create comprehensive research files (not summaries)
Human Checkpoints
Stop for human input only for:
- Strategic decisions (which opportunities to pursue)
- Go/No-Go recommendations requiring business judgment
- Ambiguous requirements or conflicting information
- Budget or timeline constraints
Error Handling
If a skill encounters an issue:
- Document the issue clearly
- Attempt alternative approaches (different sources, search strategies)
- If unresolvable, flag in research notes and continue
- Never leave placeholders or "TODO" markers
Output Standards
Research Files
- Write in markdown format
- Include metadata header (title, date, author skill, sprint/task)
- Use clear section headings
- Include inline citations [Author, Year]
- Add full reference list at end
Text Formatting and Readability
General Principles
- Break up dense paragraphs - Use bullet points, numbered lists, or
<br/>tags - Maximum 3-4 sentences per paragraph before breaking or using bullets
- Use visual hierarchy - Headings, subheadings, lists to guide the eye
- Scannable content - Busy executives should grasp key points quickly
Dense Text - MUST Use Lists or Line Breaks
Example - INCORRECT (too dense):
Mega-Trend 1: Self-Driving Labs (SDL) Commercialization - Market Growth: Virtual and remote laboratories $1.32B (2024) → $3.11B (2033), 10% CAGR - Technology Maturation: Academic publications on SDL increased 10x from 2015 to 2024; cost reduction (3D printing, open-source hardware) lowering barriers - Key Drivers: DOE investment ($100M+ in autonomous experimentation initiatives), private sector (Recursion Pharmaceuticals acquired Strateos for drug discovery SDL), materials science (batteries, catalysts requiring rapid iteration) - SRS Opportunity: Verified AI is critical enabler for SDL autonomous operation—hallucination risk too high for unverified AI to run unsupervisedExample - CORRECT (bullet points):
**Mega-Trend 1: Self-Driving Labs (SDL) Commercialization**
- **Market Growth**: Virtual and remote laboratories $1.32B (2024) → $3.11B (2033), 10% CAGR
- **Technology Maturation**: Academic publications on SDL increased 10x from 2015 to 2024; cost reduction (3D printing, open-source hardware) lowering barriers
- **Key Drivers**:
- DOE investment ($100M+ in autonomous experimentation initiatives)
- Private sector (Recursion Pharmaceuticals acquired Strateos for drug discovery SDL)
- Materials science (batteries, catalysts requiring rapid iteration)
- **SRS Opportunity**: Verified AI is critical enabler for SDL autonomous operation—hallucination risk too high for unverified AI to run unsupervisedOR with <br/> tags:
**Mega-Trend 1: Self-Driving Labs (SDL) Commercialization**<br/>
**Market Growth**: Virtual and remote laboratories $1.32B (2024) → $3.11B (2033), 10% CAGR<br/>
**Technology Maturation**: Academic publications increased 10x from 2015 to 2024<br/>
**Key Drivers**: DOE investment ($100M+), private sector (Recursion acquired Strateos), materials science<br/>
**SRS Opportunity**: Verified AI is critical enabler—hallucination risk too high for unverified AITable Formatting
CRITICAL: Proper markdown table syntax required for HTML/PDF rendering.
Table Structure Rules:
- Blank line before table - Always have empty line before first row
- Blank line after table - Always have empty line after last row
- Proper markdown syntax - Use
|pipes and|---|dashes for header separator - Never inline tables - Each row on its own line
- Align columns - Use spaces to align pipes for readability
CORRECT:
Some text before table.
| Category | Weight | Score |
|----------|--------|-------|
| Market | 25% | 93.3 |
| Tech | 25% | 80.0 |
Some text after table.INCORRECT (no blank lines):
Some text before table.
| Category | Weight | Score |
|----------|--------|-------|
| Market | 25% | 93.3 |
Some text after table.Line Breaks Within Cells:
- ALWAYS use
<br/>tags for line breaks within table cells - NEVER rely on markdown line breaks in tables (they don't render properly)
- Keep table cell content readable with proper line breaks
- Use HTML line breaks for multi-line content in cells
Example - CORRECT:
| Segment | SOM | Customer Count |
|---------|-----|----------------|
| Pharmaceutical R&D | $28M<br/>45% | 50-60<br/>$445K CLV |
| Clinical Labs | $16M<br/>25% | 60-80<br/>$580K CLV |Example - INCORRECT:
| Segment | SOM | Customer Count |
|---------|-----|----------------|
| Pharmaceutical R&D | $28M | 45% | 50-60 | $445K | 12-24 mo | 40-50% |(Too many columns, wrapping makes it unreadable)
Rules:
- Use
<br/>to break long cell content into multiple lines - Group related data in single cells with line breaks
- Limit tables to 3-5 columns for readability
- If data doesn't fit, use nested tables or multiple tables
- Always preview tables in markdown viewer to verify formatting
Lists vs. Paragraphs - When to Use Each
Use bullet points when:
- Listing 3+ distinct items
- Describing multiple features/benefits
- Breaking down complex information
- Presenting parallel concepts
Use numbered lists when:
- Steps in a process
- Ranked/prioritized items
- Sequential information
- Timeline events
Use paragraphs when:
- Narrative flow is needed
- Explaining cause and effect
- Building an argument
- Content is 1-2 sentences
Use <br/> tags when:
- Within table cells
- Within headings that need breaks
- Short, related statements that don't warrant full bullets
- Preserving specific line structure
Markdown List Syntax - CRITICAL
NEVER use manual numbering - it renders as dense text, not actual lists.
INCORRECT (renders as paragraph):
Key Architectural Decisions: 1. Verification-First: Formal verification at center of architecture (not post-processing add-on), with verification gates at pre-calibration, real-time monitoring, and post-calibration 2. Hybrid Deployment: Support both on-premise (air-gapped metrology labs) and cloud SaaS (calibration service providers) with unified codebase 3. SMT-LIB Standard: All calibration models in SMT-LIB 2.6 format for portability and customer flexibilityCORRECT (renders as proper list):
**Key Architectural Decisions**:
1. **Verification-First**: Formal verification at center of architecture (not post-processing add-on), with verification gates at pre-calibration, real-time monitoring, and post-calibration
2. **Hybrid Deployment**: Support both on-premise (air-gapped metrology labs) and cloud SaaS (calibration service providers) with unified codebase
3. **SMT-LIB Standard**: All calibration models in SMT-LIB 2.6 format for portability and customer flexibilityRules for markdown lists:
- Blank line before list - Always have empty line before first item
- Proper syntax - Use
1.for numbered,-for bullets - Never inline numbers - Don't write "1. Item 2. Item" in one line
- Bold the label - Use
**Label**:for emphasis - One item per line - Each list item on its own line
Diagrams and Visualizations
Always Use Mermaid
- ALWAYS use Mermaid diagrams for all visual representations
- NEVER use ASCII art for diagrams (hard to read, unprofessional)
- Mermaid supports: flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, Gantt charts, pie charts, and more
- Benefits: Clean, professional, scalable, maintainable, renders beautifully in markdown viewers
Mermaid Label Quoting - CRITICAL
ALWAYS quote labels in Mermaid diagrams to prevent rendering failures.
Example - INCORRECT (may fail to render):
graph TD
A[Market Analysis] --> B[Technical Feasibility]
B --> C[Financial Modeling]
C --> D[Go/No-Go Decision]Problem: Special characters, spaces, or reserved words can break rendering
Example - CORRECT (always works):
graph TD
A["Market Analysis"] --> B["Technical Feasibility"]
B --> C["Financial Modeling"]
C --> D["Go/No-Go Decision"]
D -->|"Go"| E["Implementation Roadmap"]
D -->|"No-Go"| F["Archive & Learn"]Quoting Rules:
- Always use double quotes around all node labels:
A["Label"] - Always quote edge labels:
-->|"Label"| - Quote even simple labels:
A["Start"]notA[Start] - Escape quotes in labels:
A["Quote: \"text\""] - Use quotes for all diagram types: flowcharts, sequence, class, etc.
Why this matters:
- Prevents Mermaid parsing errors
- Handles special characters (parentheses, quotes, colons, etc.)
- Avoids reserved word conflicts
- Ensures diagrams render in all viewers (GitHub, HTML, PDF)
Common Mermaid Use Cases
- System architecture → Mermaid flowchart or C4 diagram
- Data flows → Mermaid flowchart or sequence diagram
- Process workflows → Mermaid flowchart or state diagram
- Database schemas → Mermaid ER diagram
- Project timelines → Mermaid Gantt chart
- Component relationships → Mermaid class or component diagram
PDF Export with Mermaid Diagrams
Mermaid diagrams are automatically rendered in PDF exports when mermaid-filter is installed:
- Install:
npm install -g @mermaid-js/mermaid-cli mermaid-filter - Diagrams convert to embedded images in PDFs
- Without filter: Diagrams appear as code blocks (not rendered)
- CI/CD: Filter automatically installed in GitHub Actions workflow
Final Reports
- Professional formatting suitable for stakeholder presentations
- Executive summary (1-2 pages)
- Detailed findings (10-30 pages depending on complexity)
- Appendices for supporting data
- Export in multiple formats (markdown, PDF, DOCX)
Deliverables
Each sprint produces:
- Research files in
temp/sprint-XX/ - Final report in
reports/sprint-XX-final-report.md - Opportunity score (0-100) with breakdown
- Go/No-Go recommendation with justification
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

