# z91772524-ai/pojia-next architecture

> Architecture diagram of the GitHub repository z91772524-ai/pojia-next, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/z91772524-ai/pojia-next
- Repository: https://github.com/z91772524-ai/pojia-next

## Overview

破甲一键通 is a Windows utility for replacing AI coding clients’ built-in instructions with a shared persona. The user scans installed clients, previews or applies file-level patches, restarts a client, and verifies the injected persona with a fixed phrase; patches can be reverted from backups. The README also describes environment setup, skill management, and logs. The listed tree does not contain the documented GUI or core implementation files, so capability nodes use null paths and edges cite the README; implementation-level calls cannot be verified.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User interface"]
  node_gui["Native GUI"]
  node_cli["CLI"]
end

subgraph group_patching["Persona patching"]
  node_persona["Persona editor"]
  node_discovery["Client discovery"]
  node_preview["Dry-run preview"]
  node_patcher["File patching"]
  node_backup[("Backup and revert")]
end

subgraph group_targets["Client integrations"]
  node_targets["15 client adapters"]
  node_verification["Persona verification"]
end

subgraph group_utilities["Supporting capabilities"]
  node_environment["Environment setup"]
  node_skills["Skill management"]
  node_logs["Execution logs"]
end

node_user(("User"))
node_ai_client(("AI client"))

node_user -->|"opens"| node_gui
node_user -->|"runs"| node_cli
node_gui -->|"scans clients"| node_discovery
node_cli -->|"scans clients"| node_discovery
node_user -->|"edits"| node_persona
node_gui -->|"previews changes"| node_preview
node_cli -->|"previews changes"| node_preview
node_gui -->|"applies patches"| node_patcher
node_cli -->|"applies patches"| node_patcher
node_discovery -->|"selects installed"| node_targets
node_patcher -->|"patches files"| node_targets
node_patcher -->|"reads"| node_persona
node_patcher -->|"backs up changes"| node_backup
node_gui -->|"requests restore"| node_backup
node_cli -->|"requests restore"| node_backup
node_user -->|"sends test phrase"| node_verification
node_verification -->|"checks reply"| node_ai_client
node_user -->|"requests setup"| node_environment
node_gui -->|"offers downloads"| node_environment
node_user -->|"manages skills"| node_skills
node_gui -->|"browses and installs"| node_skills
node_gui -->|"shows execution"| node_logs
node_cli -->|"records execution"| node_logs

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_gui,node_cli,node_user,node_ai_client toneBlue
class node_persona,node_discovery,node_preview,node_patcher,node_backup toneAmber
class node_targets,node_verification toneMint
class node_environment,node_skills,node_logs toneRose
```

## Components

### User interface

- **Native GUI**
- **CLI**

### Persona patching

- **Persona editor**
- **Client discovery**
- **Dry-run preview**
- **File patching**
- **Backup and revert**

### Client integrations

- **15 client adapters**
- **Persona verification**

### Supporting capabilities

- **Environment setup**
- **Skill management**
- **Execution logs**

### Other components

- **User**
- **AI client**

## Connections

- User → Native GUI: opens (evidence: `README.md`)
- User → CLI: runs (evidence: `README.md`)
- Native GUI → Client discovery: scans clients (evidence: `README.md`)
- CLI → Client discovery: scans clients (evidence: `README.md`)
- User → Persona editor: edits (evidence: `README.md`)
- Native GUI → Dry-run preview: previews changes (evidence: `README.md`)
- CLI → Dry-run preview: previews changes (evidence: `README.md`)
- Native GUI → File patching: applies patches (evidence: `README.md`)
- CLI → File patching: applies patches (evidence: `README.md`)
- Client discovery → 15 client adapters: selects installed (evidence: `README.md`)
- File patching → 15 client adapters: patches files (evidence: `README.md`)
- File patching → Persona editor: reads (evidence: `README.md`)
- File patching → Backup and revert: backs up changes (evidence: `README.md`)
- Native GUI → Backup and revert: requests restore (evidence: `README.md`)
- CLI → Backup and revert: requests restore (evidence: `README.md`)
- User → Persona verification: sends test phrase (evidence: `README.md`)
- Persona verification → AI client: checks reply (evidence: `README.md`)
- User → Environment setup: requests setup (evidence: `README.md`)
- Native GUI → Environment setup: offers downloads (evidence: `README.md`)
- User → Skill management: manages skills (evidence: `README.md`)
- Native GUI → Skill management: browses and installs (evidence: `README.md`)
- Native GUI → Execution logs: shows execution (evidence: `README.md`)
- CLI → Execution logs: records execution (evidence: `README.md`)
