Analyze

From markmhendrickson/neotoma · View interactive version

Analyze is an AI agent skill from the GitHub repository markmhendrickson/neotoma. Analyze codebase or context per foundation analyze command.

How to use this skill

Skill file

Analyze Project

Analyze any project (URL or term) from both competitive and partnership perspectives relative to all repositories (comparative analysis across your repos). Load repo list from the truth layer (per neotoma_parquet_migration_rules.mdc).

Command

analyze <url_or_term>

Input

Accepts:

Examples:


Workflow Overview

This command performs systematic analysis following the framework defined in foundation/strategy/project_assessment_framework.md. The analysis type depends on the resource:

For Products/Projects:

  1. Load all repos from truth layer (per neotoma_parquet_migration_rules.mdc)
  2. Discover repo context for current repo and all repos in the loaded list
  3. Research target project via web scraper MCP (if ChatGPT/Twitter URL) or browser tools
  4. Generate competitive analysis using standardized template (compare target vs. each repo)
  5. Generate partnership analysis using standardized template (compare target vs. each repo)
  6. Save both analyses to private docs submodule
  7. Present summary to user (including comparative summary across repos)

For Content/Thought Leadership (Articles, Research, etc.):

  1. Load all repos from truth layer (per neotoma_parquet_migration_rules.mdc)
  2. Discover repo context for current repo and all repos in the loaded list
  3. Research target resource via web scraper MCP (if ChatGPT/Twitter URL) or browser tools
  4. Generate holistic relevance analysis using relevance template (applicable to each repo)
  5. Save analysis to private docs submodule
  6. Present summary to user (including relevance to each repo where applicable)

Output:


Execution Instructions

Step 1a: Load All Repos from Truth Layer (REQUIRED FIRST)

Objective: Load the list of all repositories so analysis is comparative across all your repos.

Actions:

  1. Load repo list from truth layer (per neotoma_parquet_migration_rules.mdc). For repositories: Neotoma first, then Parquet with data_type="repositories". If still no records: run execution/scripts/sync_repos_to_parquet.py with DATA_DIR set, then query again; or warn that comparison will use only the current repo.
  1. Store repo list and paths:

Critical: All subsequent discovery and comparison MUST use this repo list.


Step 1b: Discover Repo Context for Current and All Repos (REQUIRED)

Objective: Dynamically discover identity and positioning for the current repository and for every repo in the loaded list (so analysis is comparative).

Actions:

  1. For the current repo (workspace):
  1. For each other repo in the loaded list:
  1. Handle missing docs:
  1. Store discovered context keyed by repo name:

Critical: ALL subsequent analysis will compare the target against every repo's discovered context (comparative analysis across all repos).


Step 2: Research Target Resource

Objective: Gather comprehensive information about the target and determine resource type

Actions:

  1. Check if URL is supported by web scraper:

1a. If web scraper supported URL:

1b. If not web scraper supported or search term:

  1. Determine resource type:
  1. If Product/Project: Proceed to Steps 3-4 (Competitive & Partnership Analysis)
  2. If Content/Thought Leadership: Proceed to Step 3a (Relevance Analysis)
  1. Extract basic information:

For Products/Projects:

For Content/Thought Leadership:

  1. Analyze technology stack:
  1. Document business model:
  1. Identify positioning:
  1. Research additional context (optional):

Document all findings for use in templates.


Step 3a: Generate Relevance Analysis (For Content/Thought Leadership)

Objective: Create holistic relevance analysis document for non-product resources

Actions:

  1. Load template:
  1. Fill out all sections:
  1. Key areas to analyze:
  1. Generate filename:
  1. Save document:

Skip Steps 3-4 if resource is Content/Thought Leadership.


Step 3: Generate Competitive Analysis (For Products/Projects Only)

Objective: Create competitive assessment document

Actions:

  1. Load template:
  1. Fill out all sections:
  1. Key assessments to make:
  1. Special focus: Defensible Differentiation
  1. Generate filename:
  1. Save document:

Step 4: Generate Partnership Analysis

Objective: Create partnership assessment document

Actions:

  1. Load template:
  1. Fill out all sections:
  1. Key assessments to make:
  1. Integration scenarios (required):
  1. Risk assessment:
  1. Generate filename:
  1. Save document:

Step 5: Present Summary

Objective: Deliver concise summary to user

Actions:

  1. If Product/Project - Present competitive summary:

```

## Competitive Analysis: [Target] vs. [Current Repo]

Overall Assessment: [Direct / Adjacent / Complementary / None]

Risk Level: [High / Medium / Low / None]

Key Insights:

Strategic Recommendations:

Full analysis: docs/private/competitive/[target_name]_competitive_analysis.md

```

  1. If Product/Project - Present partnership summary:

```

## Partnership Analysis: [Target] partnership with [Current Repo]

Overall Assessment: [High / Moderate / Low / Not Viable]

Integration Feasibility: [High / Medium / Low / Not Feasible]

Partnership Recommendation: [Pursue / Explore / Monitor / Pass]

Key Opportunities:

Next Steps:

Full analysis: docs/private/partnerships/[target_name]_partnership_analysis.md

```

  1. If Content/Thought Leadership - Present relevance summary:

```

## Relevance Analysis: [Resource] relevance to [Current Repo]

Overall Relevance: [High / Moderate / Low / Not Relevant]

Primary Relevance Areas:

Key Insights:

Actionable Recommendations:

Full analysis: docs/private/insights/[target_name]_relevance_analysis.md

```

  1. Provide file paths:

Error Handling

Scenario: No Foundational Docs

If no foundational docs exist:

⚠️ Warning: No foundational documents found in `docs/foundation/`.
Analysis will proceed without repo-specific context.

Recommendation: Create foundational documents for better analysis:
- docs/foundation/core_identity.md
- docs/foundation/product_positioning.md
- docs/foundation/problem_statement.md

Proceed? (yes/no)

Scenario: Invalid URL

If URL cannot be accessed:

❌ Error: Cannot access URL "[url]"

Options:
1. Try web search for "[term]"
2. Provide alternative URL
3. Cancel analysis

Enter choice (1/2/3):

Scenario: No Private Docs Directory

If docs/private/ doesn't exist:

⚠️ Warning: Private docs directory not found at `docs/private/`.

Output will be saved to:
- docs/competitive/[target_name]_competitive_analysis.md
- docs/partnerships/[target_name]_partnership_analysis.md

Recommendation: Set up private docs submodule.
See: foundation/README.md (Private Docs Submodule Setup)

Proceed? (yes/no)

Scenario: Web Scraper MCP Not Available

If web scraper URL is provided but MCP server is not configured:

⚠️ Notice: Web scraper MCP server not configured for URL "[url]".

Falling back to browser tools for research.

To enable web scraper for ChatGPT/Twitter URLs:
1. Add web scraper submodule: git submodule add https://github.com/markmhendrickson/mcp-server-web-scraper.git mcp/web-scraper
2. Configure in .cursor/mcp.json (see Configuration section)

Proceeding with browser tools...

If web scraper MCP tool fails:

⚠️ Warning: Web scraper failed for URL "[url]".

Error: [error message]

Falling back to browser tools...

Proceeding with browser tools...

Configuration

MCP Server Configuration

Web Scraper MCP Server Setup:

The analyze command automatically uses the web scraper MCP server for ChatGPT and Twitter/X URLs when configured. To set up:

  1. Add web scraper as submodule (if not already added):

```bash

git submodule add https://github.com/markmhendrickson/mcp-server-web-scraper.git mcp/web-scraper

git submodule update --init mcp/web-scraper

```

  1. Install dependencies:

```bash

cd mcp/web-scraper

pip install -r requirements.txt

playwright install chromium

```

  1. Configure in .cursor/mcp.json:

```json

{

"mcpServers": {

"web-scraper": {

"command": "/absolute/path/to/mcp/web-scraper/run-web-scraper-mcp.sh",

"cwd": "/absolute/path/to/mcp/web-scraper"

}

}

}

```

  1. Optional: Configure Apify API token (for Apify scraping method):

Supported URLs:

Note: If web scraper MCP server is not configured, the command will fall back to browser tools for all URLs.

Analysis Configuration

Optional configuration in foundation-config.yaml:

strategy:
  competitive_analysis:
    enabled: true
    output_directory: "docs/private/competitive/"
  partnership_analysis:
    enabled: true
    output_directory: "docs/private/partnerships/"
  relevance_analysis:
    enabled: true
    output_directory: "docs/private/insights/"
  
private_docs:
  enabled: true
  repo_url: "https://github.com/user/private-docs.git"
  path: "docs/private"

If configuration doesn't exist, use defaults:


Related Documents


Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.