agentleFS
telagodtelagod/code-abyss/skills/designing-architectures/SKILL.md

designing-architectures

Skill242 starsChanged 5 months agoMITView on GitHub

Architecture knowledge reference covering API design, security architecture, cloud-native patterns, caching strategies, message queues, and data security. Use when designing system architecture, APIs, or cloud-native infrastructure.

The file

Files
SKILL.md

阵法秘典 · 架构设计

判断先于执行:决定「是否做 / 选什么 / 如何取舍」(栈、方案、架构、权衡)前,先读领域判断内核 skills/_kernel/backend/SKILL.md——它管 judgment,本秘典管 execution;冲突时以内核判断为准。

路由

意图秘典核心
API 设计api-designRESTful、GraphQL、gRPC、OpenAPI
安全架构security-arch零信任、IAM、威胁建模、合规
云原生cloud-native容器、K8s、Serverless、Service Mesh
消息队列message-queueKafka、RabbitMQ、事件驱动、CQRS
缓存cachingRedis、CDN、一致性、穿透/雪崩

决策矩阵

决策点选项 A选项 B判据
同步 vs 异步REST/gRPC 同步调用消息队列异步延迟敏感→同步;解耦/削峰→异步
单体 vs 微服务单体(模块化)微服务团队<5→单体;独立部署需求→微服务
SQL vs NoSQLRDBMSMongoDB/DynamoDB强一致/关联→SQL;灵活 schema/高吞吐→NoSQL
缓存策略Cache-AsideWrite-Through读多写少→Aside;写后即读→Through
API 风格RESTGraphQL资源型 CRUD→REST;复杂聚合/前端驱动→GraphQL
事件架构事件通知事件溯源(ES)简单解耦→通知;审计/回溯→ES+CQRS

原则

SOLID: S单一职责 O开闭 L里氏替换 I接口隔离 D依赖倒置
分布式: CAP定理 | BASE最终一致 | 幂等设计
安全: 纵深防御 | 最小权限 | 零信任
扩展: 水平优先 | 无状态服务 | 数据分片

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.