# mel0nyrame/chaoxing-skill architecture

> Architecture diagram of the GitHub repository mel0nyrame/chaoxing-skill, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mel0nyrame/chaoxing-skill
- Repository: https://github.com/mel0nyrame/chaoxing-skill

## Overview

This repository packages a Chaoxing homework-answering skill for AI coding assistants, with browser control supplied by its bundled web-access skill. The principal workflow is: the assistant uses the skill on an open homework page, reads and analyzes supported questions, fills answers through the browser, and leaves submission to the user. The graph also shows browser selection and proxy setup, plus web-access site matching and browser-history URL search. Domain stages are documented in the README; unsampled skill instructions are not treated as inspected implementation.

Main entry points: [`skills/chaoxing/web-access/scripts/cdp-proxy.mjs`](https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/web-access/scripts/cdp-proxy.mjs) (CDP proxy), [`skills/chaoxing/SKILL.md`](https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/SKILL.md) (Homework page), [`skills/chaoxing/web-access/scripts/check-deps.mjs`](https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/web-access/scripts/check-deps.mjs) (Proxy readiness), [`skills/chaoxing/web-access/scripts/browser-discovery.mjs`](https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/web-access/scripts/browser-discovery.mjs) (Browser selection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_homework["Homework workflow"]
  node_skill["Chaoxing skill<br/>[SKILL.md]"]
  node_assignment["Homework page<br/>[SKILL.md]"]
  node_questions["Question reading<br/>[SKILL.md]"]
  node_answers["Answer analysis<br/>[SKILL.md]"]
  node_filling["Answer filling<br/>[SKILL.md]"]
end

subgraph group_browser["Browser access"]
  node_proxy["CDP proxy<br/>[cdp-proxy.mjs]"]
  node_setup["Proxy readiness<br/>[check-deps.mjs]"]
end

subgraph group_discovery["Browser discovery"]
  node_discovery["Browser selection"]
end

subgraph group_utilities["Web utilities"]
  node_sitepatterns["Site patterns"]
  node_sitematch["Site matching<br/>[match-site.mjs]"]
  node_urlsearch["Bookmark/history search<br/>[find-url.mjs]"]
end

node_assistant(("AI assistant"))
node_user(("User"))
node_browser["Chrome or Edge"]

node_assistant -->|"invokes"| node_skill
node_skill -->|"targets"| node_assignment
node_assignment -->|"provides"| node_questions
node_questions -->|"informs"| node_answers
node_answers -->|"guides"| node_filling
node_filling -->|"controls browser"| node_proxy
node_proxy -->|"sends CDP commands"| node_browser
node_user -->|"opens homework"| node_browser
node_user -->|"reviews and submits"| node_assignment
node_setup -->|"selects browser"| node_discovery
node_proxy -->|"discovers browser"| node_discovery
node_setup -->|"starts proxy"| node_proxy
node_sitematch -->|"reads patterns"| node_sitepatterns

click node_skill "https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/SKILL.md"
click node_assignment "https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/SKILL.md"
click node_questions "https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/SKILL.md"
click node_answers "https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/SKILL.md"
click node_filling "https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/SKILL.md"
click node_proxy "https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/web-access/scripts/cdp-proxy.mjs"
click node_setup "https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/web-access/scripts/check-deps.mjs"
click node_discovery "https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/web-access/scripts/browser-discovery.mjs"
click node_sitepatterns "https://github.com/mel0nyrame/chaoxing-skill/tree/main/skills/chaoxing/web-access/references/site-patterns"
click node_sitematch "https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/web-access/scripts/match-site.mjs"
click node_urlsearch "https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/web-access/scripts/find-url.mjs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_skill,node_assignment,node_questions,node_answers,node_filling,node_user toneBlue
class node_proxy,node_setup toneAmber
class node_discovery toneMint
class node_sitepatterns,node_sitematch,node_urlsearch toneRose
class node_assistant,node_browser toneIndigo
```

## Components

### Homework workflow

- [Chaoxing skill](https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/SKILL.md): `skills/chaoxing/SKILL.md`
- [Homework page](https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/SKILL.md): `skills/chaoxing/SKILL.md`
- [Question reading](https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/SKILL.md): `skills/chaoxing/SKILL.md`
- [Answer analysis](https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/SKILL.md): `skills/chaoxing/SKILL.md`
- [Answer filling](https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/SKILL.md): `skills/chaoxing/SKILL.md`

### Browser access

- [CDP proxy](https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/web-access/scripts/cdp-proxy.mjs): `skills/chaoxing/web-access/scripts/cdp-proxy.mjs`
- [Proxy readiness](https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/web-access/scripts/check-deps.mjs): `skills/chaoxing/web-access/scripts/check-deps.mjs`

### Browser discovery

- [Browser selection](https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/web-access/scripts/browser-discovery.mjs): `skills/chaoxing/web-access/scripts/browser-discovery.mjs`

### Web utilities

- [Site patterns](https://github.com/mel0nyrame/chaoxing-skill/tree/main/skills/chaoxing/web-access/references/site-patterns): `skills/chaoxing/web-access/references/site-patterns`
- [Site matching](https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/web-access/scripts/match-site.mjs): `skills/chaoxing/web-access/scripts/match-site.mjs`
- [Bookmark/history search](https://github.com/mel0nyrame/chaoxing-skill/blob/main/skills/chaoxing/web-access/scripts/find-url.mjs): `skills/chaoxing/web-access/scripts/find-url.mjs`

### Other components

- **AI assistant**
- **User**
- **Chrome or Edge**

## Connections

- AI assistant → Chaoxing skill: invokes (evidence: `README.md`)
- Chaoxing skill → Homework page: targets (evidence: `README.md`)
- Homework page → Question reading: provides (evidence: `README.md`)
- Question reading → Answer analysis: informs (evidence: `README.md`)
- Answer analysis → Answer filling: guides (evidence: `README.md`)
- Answer filling → CDP proxy: controls browser (evidence: `README.md`)
- CDP proxy → Chrome or Edge: sends CDP commands (evidence: `skills/chaoxing/web-access/scripts/cdp-proxy.mjs`)
- User → Chrome or Edge: opens homework (evidence: `README.md`)
- User → Homework page: reviews and submits (evidence: `README.md`)
- Proxy readiness → Browser selection: selects browser (evidence: `skills/chaoxing/web-access/scripts/check-deps.mjs`)
- CDP proxy → Browser selection: discovers browser (evidence: `skills/chaoxing/web-access/scripts/cdp-proxy.mjs`)
- Proxy readiness → CDP proxy: starts proxy (evidence: `skills/chaoxing/web-access/scripts/check-deps.mjs`)
- Site matching → Site patterns: reads patterns (evidence: `skills/chaoxing/web-access/scripts/match-site.mjs`)
