# biokraft/my-cursor-framework architecture

> Architecture diagram of the GitHub repository biokraft/my-cursor-framework, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/biokraft/my-cursor-framework
- Repository: https://github.com/biokraft/my-cursor-framework

## Overview

##### Project Type and Purpose
- This repository is *not* a traditional application or service—it’s a structured **documentation/content framework** for Cursor AI.
- Its purpose is to provide best‐practice rules, workflows, and tutorials (in Markdown) for both non-developers (“Cursor for Everyone”) and developers (“Cursor for Developers”).
- Key indicators:
- `.cursor/rules/…` directory with reusable rule files
- Two top‐level content modules: `01-Cursor-for-Everyone/` and `02-Cursor-for-Developers/`
- A static README and Yolo-README for orientation

##### File Structure Analysis
- Top-Level
- `.cursor/` – rule definitions consumed by the Cursor AI plugin/engine
- `01-Cursor-for-Everyone/` – user-focused guides
- `02-Cursor-for-Developers/` – developer-focused guides
- `README.md`, `Yolo-README.md` – entry points for the site
- `assets/` – images and other static resources
- Patterns
- Separation of content into two major modules
- `.cursor/rules` as a plug-in configuration directory
- Markdown-Driven Planning and Custom Modes as key themes
- Build/Deployment
- No explicit build scripts; likely rendered via a static site generator or viewed in an editor with Cursor integration
- GitHub Actions (implied by Bitbucket rule docs) could be used for CI/CD

##### README Insights
- Describes the two major parts (Everyone vs Devs)
- Mentions external integrations (Star-History API, Docs feature, MCP ecosystem)
- Encourages CI/CD, rule reuse, and mode customization

a. Main Components
1. Content Repository (GitHub)
2. Static Site Generator / Viewer (e.g., Docsify, Hugo, or Cursor’s built-in preview)
3. Cursor AI Plugin/Engine (reads `.cursor/rules` + content for code/documentation assistance)
4. CI/CD Pipeline (e.g., GitHub Actions)
5. CDN / Hosting (GitHub Pages or alternative)
6. External Services
– Star-History API for badge generation
– Docs/Confluence/Jira integrations via MCP
b. Relationships & Data Flow
- Authors commit Markdown & rule files → pushed to GitHub (Content Repo)
- CI/CD pipeline triggers → runs static site build → publishes to CDN/Pages
- End users (browsers or editors) fetch site/content from CDN or clone repo locally
- Cursor Plugin loads `.cursor/rules` + Markdown context → provides in-editor AI assistance
- Star-History API calls embed historical star data at build or runtime
- MCP endpoints connect to Jira/Confluence/DBHub for enriched context
c. Architectural Patterns & Principles
- **Separation of Concerns**: Content vs. Rules vs. Build vs. Hosting
- **Modular Documentation**: Two distinct modules for different audiences
- **Plug-in Architecture**: `.cursor/rules` directory as an extension point
- **Serverless/Static Delivery**: Lean hosting via static pages + client-side JS
- **API-Driven Badges & Integrations**: External data fetch at build/runtime
d. Technologies & Frameworks
- Markdown & MDC (Markdown Custom rules)
- Cursor AI Plugin & MCP protocols
- Static Site Generator of choice (Hugo, Docsify, etc.)
- GitHub Pages / CDN for hosting
- GitHub Actions (or Bitbucket Pipelines) for CI/CD
- Star-History API for badges
- Potential external MCP integrations: Jira, Confluence, DBHub

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Actors
    Author["Author"]:::actor

    %% Content Repository
    subgraph "Content Repository"
        Repo["Content Repo (GitHub)"]:::repo

        subgraph "Content Modules"
            Everyone["01-Cursor-for-Everyone"]:::module
            Devs["02-Cursor-for-Developers"]:::module
        end

        subgraph "Rules Directory"
            Rules[".cursor/rules"]:::rules
            RuleCore["00-cursor-rules.mdc"]:::rulefile
            AWS["aws/"]:::rulefile
            BB["bitbucket/"]:::rulefile
            Docker["docker/"]:::rulefile
            HTML["html/"]:::rulefile
            Python["python/"]:::rulefile
            React["react/"]:::rulefile
            TS["typescript/"]:::rulefile
            Vitest["vitest/"]:::rulefile
        end

        Assets["assets"]:::data
        Entry["README.md & Yolo-README.md"]:::data
    end

    %% Pipeline and Hosting
    CI["CI/CD (GitHub Actions)"]:::pipeline
    Build["Static Site Generator"]:::build
    StarAPI["Star-History API"]:::external
    Host["CDN / GitHub Pages"]:::host

    %% Users & Plugin
    Users["End Users (Browser / Local Clone)"]:::user
    Plugin["Cursor AI Plugin/Engine"]:::plugin
    MCP["MCP Integrations (Jira/Confluence/DBHub)"]:::external

    %% Flows
    Author -->|"commit Markdown & Rules"| Repo
    Repo --> CI
    CI --> Build
    Build -->|fetch badges| StarAPI
    Build --> Host
    Host --> Users
    Users -->|clone repo| Repo
    Users -->|view site| Host

    %% Plugin flows
    Users -->|in-editor| Plugin
    Plugin -->|loads rules & content| Rules
    Plugin -->|syncs context| MCP

    %% Click Events
    click Repo "https://github.com/biokraft/my-cursor-framework/tree/main//"
    click Everyone "https://github.com/biokraft/my-cursor-framework/tree/main//01-Cursor-for-Everyone/"
    click Devs "https://github.com/biokraft/my-cursor-framework/tree/main//02-Cursor-for-Developers/"
    click Rules "https://github.com/biokraft/my-cursor-framework/tree/main//.cursor/rules/"
    click RuleCore "https://github.com/biokraft/my-cursor-framework/blob/main//.cursor/rules/00-cursor-rules.mdc"
    click AWS "https://github.com/biokraft/my-cursor-framework/tree/main//.cursor/rules/aws/"
    click BB "https://github.com/biokraft/my-cursor-framework/tree/main//.cursor/rules/bitbucket/"
    click Docker "https://github.com/biokraft/my-cursor-framework/tree/main//.cursor/rules/docker/"
    click HTML "https://github.com/biokraft/my-cursor-framework/tree/main//.cursor/rules/html/"
    click Python "https://github.com/biokraft/my-cursor-framework/tree/main//.cursor/rules/python/"
    click React "https://github.com/biokraft/my-cursor-framework/tree/main//.cursor/rules/react/"
    click TS "https://github.com/biokraft/my-cursor-framework/tree/main//.cursor/rules/typescript/"
    click Vitest "https://github.com/biokraft/my-cursor-framework/tree/main//.cursor/rules/vitest/"
    click Assets "https://github.com/biokraft/my-cursor-framework/tree/main//assets/"
    click Entry "https://github.com/biokraft/my-cursor-framework/blob/main//README.md"

    %% Styles
    classDef actor fill:#FFD580,stroke:#E69500,color:#000
    classDef repo fill:#CDE7FF,stroke:#6BAED6,color:#000
    classDef module fill:#E2F0D9,stroke:#82B366,color:#000
    classDef rules fill:#FDE9D9,stroke:#D99694,color:#000
    classDef rulefile fill:#FCE4D6,stroke:#B45F06,color:#000
    classDef data fill:#D9D2E9,stroke:#8E7CC3,color:#000
    classDef pipeline fill:#DDEBF7,stroke:#538DD5,color:#000
    classDef build fill:#FFF2CC,stroke:#BF9000,color:#000
    classDef host fill:#E2EFDA,stroke:#76923C,color:#000
    classDef user fill:#F3F3F3,stroke:#969696,color:#000
    classDef plugin fill:#D9EAD3,stroke:#6AA84F,color:#000
    classDef external fill:#E7E6E6,stroke:#7F7F7F,color:#000
```
