一键导入
software-architecture-monolith
Guides the design and implementation of monolithic architecture, focusing on best practices and pitfalls in monolithic systems.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guides the design and implementation of monolithic architecture, focusing on best practices and pitfalls in monolithic systems.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Implements v1 ConfigMap manifests for injecting configuration data into pods via environment variables, volume mounts, and command-line arguments.
Implements apps/v1 Deployment YAML manifests with rolling update strategies, replica scaling, and rollback procedures for stateless application workloads.
Implements networking.k8s.io/v1 Ingress resources with HTTP/HTTPS routing, TLS termination, path-based routing, and ingress controller configuration.
Implements Istio service mesh patterns (sidecar injection, traffic splitting, circuit breaking, retries, and mTLS) for advanced traffic management and zero-downtime deployments in Kubernetes.
Implements networking.k8s.io/v1 NetworkPolicy resources with ingress and egress rules, pod selector targeting, and network segmentation for microservice isolation.
Implements v1 PersistentVolume, StorageClass, and PersistentVolumeClaim manifests with static/dynamic provisioning, access modes, and reclaim policies for Kubernetes storage.
| name | software-architecture-monolith |
| description | Guides the design and implementation of monolithic architecture, focusing on best practices and pitfalls in monolithic systems. |
| license | MIT |
| compatibility | opencode |
| metadata | {"version":"1.0.0","domain":"coding","triggers":"monolith, monolithic architecture, monolith design, monolith patterns","archetypes":["tactical","generation"],"anti_triggers":["brainstorming","vague ideation","code golf","over-engineering"],"response_profile":{"verbosity":"low","directive_strength":"high","abstraction_level":"operational"},"role":"implementation","scope":"implementation","output-format":"code","related-skills":"software-architecture-microservices, software-architecture-event-driven, software-architecture-hexagonal"} |
archetypes: tactical, educational anti_triggers: microservices response_profile: verbosity: medium directive_strength: high abstraction_level: tactical
Guides the design and implementation of monolithic architecture, focusing on best practices and pitfalls in monolithic systems.
Verbosity: Medium
Directive Strength: High
Abstraction Level: Tactical
When building small to medium-sized applications.
For applications that require a quick go-to-market strategy.
When simplicity is prioritized over scalability.
Order Management Example – Here’s an example of managing orders within a monolithic architecture:
class OrderService:
def __init__(self):
self.orders = []
def add_order(self, order):
self.orders.append(order)
# Logic to persist order in a database
print(f'Added order: {order}')
# Example of Order and OrderService classes usage:
order_service = OrderService()
order_service.add_order({"item": "Laptop", "quantity": 1})
Product Catalog Example – A common approach for managing product catalogs:
class Product:
def __init__(self, name, price):
self.name = name
self.price = price
class ProductService:
def __init__(self):
self.products = []
def add_product(self, product):
self.products.append(product)
# Logic to save product to the database
print(f'Added product: {product.name}')
# Example usage:
product_service = ProductService()
product_service.add_product(Product('Smartphone', 599.99))
Performance Optimization Example – Using efficient memory management and caching strategies:
class Cache:
def __init__(self):
self.data = {}
def get(self, key):
return self.data.get(key)
def set(self, key, value):
self.data[key] = value
# Logic for caching results
Best Practices – A guide for scalability and maintainability of the monolith:
Order Management Example – Here’s an example of managing orders within a monolithic architecture:
class OrderService:
def __init__(self):
self.orders = []
def add_order(self, order):
self.orders.append(order)
# Logic to persist order in a database
print(f'Added order: {order}')
# Example of Order and OrderService classes usage:
order_service = OrderService()
order_service.add_order({"item": "Laptop", "quantity": 1})
This shows how orders can be added and managed directly within a single application flow.
Product Catalog Example – A common approach for managing product catalogs:
class Product:
def __init__(self, name, price):
self.name = name
self.price = price
class ProductService:
def __init__(self):
self.products = []
def add_product(self, product):
self.products.append(product)
# Logic to save product to the database
print(f'Added product: {product.name}')
# Example usage:
product_service = ProductService()
product_service.add_product(Product('Smartphone', 599.99))
Performance Optimization Example – Using efficient memory management and caching strategies:
class Cache:
def __init__(self):
self.data = {}
def get(self, key):
return self.data.get(key)
def set(self, key, value):
self.data[key] = value
# Logic for caching results
Best Practices – A guide for scalability and maintainability of the monolith:
class Order:
def __init__(self, item, quantity):
self.item = item
self.quantity = quantity
class OrderService:
def __init__(self):
self.orders = []
def add_order(self, order):
self.orders.append(order)
# Persist order in a monolithic database