cxc-dev-architecture
Use for module boundaries and dependencies. Triggers: circular import, coupling, barrel, re-export, validation placement, 모듈 경계, 순환 참조.
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 54
- Forks
- 11
01 前言 Front Matter
- name
- cxc-dev-architecture
- metadata
- { "last-verified": "2026-07-02", "short-description": "Module boundaries, circular deps, coupling taxonomy, and boundary-only defensive programming." }
- description
- Use for module boundaries and dependencies. Triggers: circular import, coupling, barrel, re-export, validation placement, 모듈 경계, 순환 참조.
02 资源文件 8
- 参考文档agents/openai.yaml174 B
- 参考文档references/01-module-boundaries.md5.2 KB
- 参考文档references/02-import-structure.md5.6 KB
- 参考文档references/03-boundary-validation.md3.5 KB
- 参考文档references/04-architecture-review.md5.3 KB
- 参考文档references/barrel-discipline.md3.9 KB
- 参考文档references/circular-dependencies.md4.2 KB
- 参考文档references/coupling-taxonomy.md5.3 KB
03 SKILL.md 正文
Dev-Architecture — Module Boundaries & Structural Integrity
Enforces architectural rules that prevent structural decay: circular dependencies, implicit coupling, barrel abuse, and misplaced validation. These rules are mechanical — an AI coding agent can follow them without subjective judgment.
Before architecture work, read dev for classification, fast paths, rule authority, family invariants, verification, and safety; current/public evidence follows its Conditional Routes.
Use browser verification only after candidate URLs exist.
Modular References
| Condition | Reference |
|---|---|
| Change boundaries, seams, layers, shared packages, or public exports above C0/C1; choose module owners/depth | Module boundaries (ARCH-DECISION-01, ARCH-MAP-01) |
| Detect/fix import cycles or classify coupling | Import structure, cycle commands, coupling examples |
| Create/modify index or re-export files | Barrel policy, barrel examples |
| Place shape parsing, domain invariants, or security checks | Validation matrices and exceptions |
| Review structural changes, add CI conformance, query structural indexes, or use decision trees | Architecture review |
| Durable architecture documentation | cxc-dev-scaffolding |
| Security policy/auth, observability, review, RCA, or infrastructure boundaries | Cross-skill owners |
4. Boundary-Only Defensive Programming
Severity: CRITICAL Rule: Parse untrusted data at trust boundaries and avoid repeating shape validation inside one trusted typed boundary. Domain invariants (valid ranges, state transitions, relational constraints) belong to the domain owner even for in-process callers. Authorization and assertions for genuinely reachable invalid states remain allowed.
Ownership: this section distinguishes ingress shape parsing, domain invariants and
reachable-state assertions. dev-security owns security validation and authorization
policy; placement must not erase a business invariant or required defense-in-depth.
04 同仓库更多 Skills
cxc-worktree-guardian
Use for Codex-app worktrees. Triggers: worktree, rename worktree, detached HEAD, ~/.codex/worktrees, 워크트리, 워크트리 이름, 새 워크트리, 브랜치랑 워크트리.
cxc-skill-hub
Deprecated alias. Use cxc-dev.
cxc-search
Use for web/current lookups. Triggers: search, look up, latest, news, prices, docs, status, X/Twitter, deep research, 검색, 검색해, 찾아봐, 찾아줘, 알아봐, 웹검색, 딥리서치, 심층 조사.
cxc-repo-map
Use for repo structure and symbol maps. Triggers: repo map, codebase overview, architecture map, 와꾸.
cxc-remote
Use for Telegram/Discord bridge setup. Triggers: remote, messenger, pairing, tokens, webhooks, 텔레그램 연결, 디스코드 연결, 메신저 연결, 봇 연결, 원격, 페어링.
cxc-recall
Use for past-session context recovery. Triggers: recall, last time, previous session, chat search, memory search, 그때, 지난번, 저번 세션, 예전에 했던, 기억나?, 리콜, 지난 세션, 이전 작업, 뭐였지, 어떻게 했었지.