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.

Install it, pinned
mdr add yazelin/ching-tech-os/ctos-architecture@git:20260611.7838f52

Pins 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

The exact contents, by fingerprint
mdr add yazelin/ching-tech-os/ctos-architecture@sha256:7a3c109443fdc98f

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_6yvk7pdfmmfqq2ob.svg)](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.

versioncommittedcommitsizeaudit
git:20260611.7838f52 latest2026-06-11 7838f52 9,259 BB view

Audit of the latest version

B  16 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from yazelin/ching-tech-os

ctos-deploy SKILL.md skill
yazelin/ching-tech-os · .claude/skills/ctos-deploy/SKILL.md · 將 ching-tech-os(CTOS)更新部署到正式機。當使用者要求「部署 CTOS」「更新正式機」「把最新版上 production」「重啟並更新 ching-tech-os 服務」時使用。涵蓋 SSH 到部署機、執行…
git:20260817.48a9697 · audit A · 33 stars
ctos-kb SKILL.md skill
yazelin/ching-tech-os · .claude/skills/ctos-kb/SKILL.md · 透過 ctos CLI 遠端存取 ching-tech-os(CTOS)的公司資料:知識庫(kb-NNN)、圖書館、NAS 掛載區(專案圖面 projects / 線路圖…
git:20260611.2b2ed47 · audit A · 33 stars
openspec-apply-change SKILL.md skill
yazelin/ching-tech-os · .claude/skills/openspec-apply-change/SKILL.md · Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or…
v1.0 · audit A · 33 stars
openspec-archive-change SKILL.md skill
yazelin/ching-tech-os · .claude/skills/openspec-archive-change/SKILL.md · Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after…
v1.0 · audit A · 33 stars
openspec-bulk-archive-change SKILL.md skill
yazelin/ching-tech-os · .claude/skills/openspec-bulk-archive-change/SKILL.md · Archive multiple completed changes at once. Use when archiving several parallel changes.
v1.0 · audit A · 33 stars
openspec-continue-change SKILL.md skill
yazelin/ching-tech-os · .claude/skills/openspec-continue-change/SKILL.md · Continue working on an OpenSpec change by creating the next artifact. Use when the user wants to progress their change…
v1.0 · audit A · 33 stars
openspec-explore SKILL.md skill
yazelin/ching-tech-os · .claude/skills/openspec-explore/SKILL.md · Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use…
v1.0 · audit A · 33 stars
openspec-ff-change SKILL.md skill
yazelin/ching-tech-os · .claude/skills/openspec-ff-change/SKILL.md · Fast-forward through OpenSpec artifact creation. Use when the user wants to quickly create all artifacts needed for…
v1.0 · audit A · 33 stars
openspec-new-change SKILL.md skill
yazelin/ching-tech-os · .claude/skills/openspec-new-change/SKILL.md · Start a new OpenSpec change using the experimental artifact workflow. Use when the user wants to create a new feature…
v1.0 · audit A · 33 stars
openspec-onboard SKILL.md skill
yazelin/ching-tech-os · .claude/skills/openspec-onboard/SKILL.md · Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
v1.0 · audit A · 33 stars
openspec-sync-specs SKILL.md skill
yazelin/ching-tech-os · .claude/skills/openspec-sync-specs/SKILL.md · Sync delta specs from a change to main specs. Use when the user wants to update main specs with changes from a delta…
v1.0 · audit A · 33 stars
openspec-verify-change SKILL.md skill
yazelin/ching-tech-os · .claude/skills/openspec-verify-change/SKILL.md · Verify implementation matches change artifacts. Use when the user wants to validate that implementation is complete…
v1.0 · audit A · 33 stars

Every file in yazelin/ching-tech-os

Browse by kind, by grade B, or by owner.