ctos-architecture SKILL.md skillB
ctos-architecture from yazelin/ching-tech-os is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add yazelin/ching-tech-os/ctos-architecture@git:20260611.7838f52Pins git:20260611.7838f52 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- yazelin/ching-tech-os
- Path
.claude/skills/ctos-architecture/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260611.7838f52, committed Jun 11, 2026
- Size
- 9,259 bytes
- Repository stars
- 33
- License
- MIT
CTOS(ching-tech-os)架構導覽與改動定位指南。當使用者要在 ching-tech-os 加新功能、新前端 App、新後端內建模組、extends 外部模組,或新增 CTOS AI Skill 時使用。提供「改哪一層」決策樹、內建 App 逐檔 checklist、contributes.yaml 四種貢獻規格,以及 CTOS AI Skill 與 Claude Code skill 的區分。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# CTOS 架構與功能擴充指南
CTOS 是 FastAPI + PostgreSQL(asyncpg + Alembic)+ 原生 JS(IIFE,無框架)的內部平台。
加功能前先用下面的決策樹定位「要動哪一層」,再照對應 checklist 逐檔處理。
本 skill 只給骨架;**細節以 repo 內文件為準**,動手前先讀「必讀文件」一節列的檔案。
## 1. 決策樹:功能該放哪一層
```
這個需求是?
├─ 修改/擴充既有功能(加欄位、加端點、改 UI)
│ → 直接改既有模組。先查 docs/module-index.md 的
│ 「常見修改場景速查」定位檔案,不要新開模組。
│
├─ 全新的平台功能,所有部署都該有(如知識庫、分享管理這類)
│ → 內建新 App:在 backend/src/ching_tech_os/modules.py 的
│ BUILTIN_MODULES 加 entry。見第 2 節 checklist。
│
├─ 需要獨立授權 / 獨立版控 / 客戶特定(如 his、law、erpnext)
│ → extends 外部模組:git submodule + contributes.yaml 宣告,
│ 不修改主系統任何程式碼。見第 3 節。
│
└─ 要給 CTOS 的 AI(Bot / AI 助手)新能力(prompt + 工具 + 可選前端 App)
→ CTOS AI Skill:SKILL.md(frontmatter 含 metadata.ctos /
contributes),由 SkillManager 掃描載入。見第 4 節。
```
判斷補充:
- 模組啟停由 `.env` 的 `ENABLED_MODULES` 控制(`*` 全開,或逗號分隔清單;`core` 永遠啟用)。`modules.py` 的 `is_module_enabled()` 是判斷點。
- extends 模組裡的工具有三種提供方式(in-process `mcp_tools` / 外部 `mcp_servers` / Skill Script),選擇矩陣在 `docs/extends-module.md` 的「三種工具提供方式的選擇」表格,別憑感覺選。
## 2. 內建新 App 逐檔 checklist
### 2.1 後端
- [ ] `backend/src/ching_tech_os/modules.py`:在 `BUILTIN_MODULES` 加 entry。欄位依 `ModuleInfo` TypedDict:
- `id`(必填,模組 ID,同時是 `ENABLED_MODULES` 的 key)
…Read the whole file at its exact version.
How to install
mdr add yazelin/ching-tech-os/ctos-architecture@sha256:7a3c109443fdc98fThe line at the top of this page pins the label git:20260611.7838f52, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_6yvk7pdfmmfqq2ob)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Jun 11, 2026.
Audit of the latest version
- fail: No script tag (matched: <script)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (9259 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
yazelin/ching-tech-os · 33 stars · license MIT · pushed 2026-09-18 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_6yvk7pdfmmfqq2ob GET https://markdownregistry.com/api/v1/resolve?ref=yazelin/ching-tech-os/ctos-architecture GET https://markdownregistry.com/api/v1/blob/7a3c109443fdc98f82704d2939dc9d32c51c3afba199f781f53fc07970412844
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.