# b4ian0-1980/allmight-core architecture

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

- Interactive diagram: https://gitdiagram.com/b4ian0-1980/allmight-core
- Repository: https://github.com/b4ian0-1980/allmight-core

## Overview

AllMight-Core is a portable AI-assisted software-engineering framework combining operational modes, on-demand engineering skills, and a searchable technical knowledge base, alongside standalone applications. The documented user workflow is to invoke the terminal assistant and use its skills and knowledge resources as needed. README documents the application capabilities and knowledge-search design, but no source excerpts were available, so internal calls between those systems are not asserted.

Main entry points: [`.agent/knowledge`](https://github.com/b4ian0-1980/allmight-core/tree/main/.agent/knowledge) (Technical Manuals), [`apps/freellmapi`](https://github.com/b4ian0-1980/allmight-core/tree/main/apps/freellmapi) (FreeLLM APIs), [`.agent/skills`](https://github.com/b4ian0-1980/allmight-core/tree/main/.agent/skills) (Engineering Skills), [`.agent/knowledge/_dados/knowledge.sqlite`](https://github.com/b4ian0-1980/allmight-core/blob/main/.agent/knowledge/_dados/knowledge.sqlite) (Knowledge SQLite)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_framework["Engineering Framework"]
  node_modes["Operating Modes<br/>[rules]"]
  node_skills["Engineering Skills<br/>[skills]"]
end

subgraph group_knowledge["Knowledge Engine"]
  node_knowledgebase["Technical Manuals<br/>[knowledge]"]
  node_router["Knowledge Router<br/>[knowledge]"]
  node_search["FTS5 Search<br/>[knowledge]"]
  node_database[("Knowledge SQLite<br/>[knowledge.sqlite]")]
end

subgraph group_applications["Executable Apps"]
  node_opencode["OpenCode Assistant"]
  node_llamafactory["LlamaFactory"]
  node_freellmapi["FreeLLM APIs"]
  node_media["Media Generation"]
end

subgraph group_integrations["External Services"]
  node_providers{{"LLM Providers"}}
end

node_engineer(("Engineer"))

node_engineer -->|"uses"| node_opencode
node_engineer -->|"loads on demand"| node_skills
node_engineer -->|"searches"| node_knowledgebase
node_knowledgebase -->|"routes hierarchically"| node_router
node_search -->|"queries"| node_database
node_engineer -->|"fine-tunes with"| node_llamafactory
node_engineer -->|"generates media"| node_media
node_engineer -->|"requests models"| node_freellmapi
node_freellmapi -->|"falls back across"| node_providers

click node_opencode "https://github.com/b4ian0-1980/allmight-core/tree/main/apps/opencode"
click node_modes "https://github.com/b4ian0-1980/allmight-core/tree/main/.agent/rules"
click node_skills "https://github.com/b4ian0-1980/allmight-core/tree/main/.agent/skills"
click node_knowledgebase "https://github.com/b4ian0-1980/allmight-core/tree/main/.agent/knowledge"
click node_router "https://github.com/b4ian0-1980/allmight-core/tree/main/.agent/knowledge"
click node_search "https://github.com/b4ian0-1980/allmight-core/tree/main/.agent/knowledge"
click node_database "https://github.com/b4ian0-1980/allmight-core/blob/main/.agent/knowledge/_dados/knowledge.sqlite"
click node_llamafactory "https://github.com/b4ian0-1980/allmight-core/tree/main/apps/LlamaFactory"
click node_freellmapi "https://github.com/b4ian0-1980/allmight-core/tree/main/apps/freellmapi"
click node_media "https://github.com/b4ian0-1980/allmight-core/tree/main/apps/MoneyPrinterTurbo"

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_modes,node_skills toneBlue
class node_knowledgebase,node_router,node_search,node_database toneAmber
class node_opencode,node_llamafactory,node_freellmapi,node_media toneMint
class node_providers toneRose
class node_engineer toneIndigo
```

## Components

### Engineering Framework

- [Operating Modes](https://github.com/b4ian0-1980/allmight-core/tree/main/.agent/rules): `.agent/rules`
- [Engineering Skills](https://github.com/b4ian0-1980/allmight-core/tree/main/.agent/skills): `.agent/skills`

### Knowledge Engine

- [Technical Manuals](https://github.com/b4ian0-1980/allmight-core/tree/main/.agent/knowledge): `.agent/knowledge`
- [Knowledge Router](https://github.com/b4ian0-1980/allmight-core/tree/main/.agent/knowledge): `.agent/knowledge`
- [FTS5 Search](https://github.com/b4ian0-1980/allmight-core/tree/main/.agent/knowledge): `.agent/knowledge`
- [Knowledge SQLite](https://github.com/b4ian0-1980/allmight-core/blob/main/.agent/knowledge/_dados/knowledge.sqlite): `.agent/knowledge/_dados/knowledge.sqlite`

### Executable Apps

- [OpenCode Assistant](https://github.com/b4ian0-1980/allmight-core/tree/main/apps/opencode): `apps/opencode`
- [LlamaFactory](https://github.com/b4ian0-1980/allmight-core/tree/main/apps/LlamaFactory): `apps/LlamaFactory`
- [FreeLLM APIs](https://github.com/b4ian0-1980/allmight-core/tree/main/apps/freellmapi): `apps/freellmapi`
- [Media Generation](https://github.com/b4ian0-1980/allmight-core/tree/main/apps/MoneyPrinterTurbo): `apps/MoneyPrinterTurbo`

### External Services

- **LLM Providers**

### Other components

- **Engineer**

## Connections

- Engineer → OpenCode Assistant: uses (evidence: `README.md`)
- Engineer → Engineering Skills: loads on demand (evidence: `README.md`)
- Engineer → Technical Manuals: searches (evidence: `README.md`)
- Technical Manuals → Knowledge Router: routes hierarchically (evidence: `README.md`)
- FTS5 Search → Knowledge SQLite: queries (evidence: `README.md`)
- Engineer → LlamaFactory: fine-tunes with (evidence: `README.md`)
- Engineer → Media Generation: generates media (evidence: `README.md`)
- Engineer → FreeLLM APIs: requests models (evidence: `README.md`)
- FreeLLM APIs → LLM Providers: falls back across (evidence: `README.md`)
