Skill: Architectural Governance

> **Skill ID**: `SKILL_ARCHITECT`

23 stars

Best use case

Skill: Architectural Governance is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

> **Skill ID**: `SKILL_ARCHITECT`

Teams using Skill: Architectural Governance should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/architect/SKILL.md --create-dirs "https://raw.githubusercontent.com/wangjianjq/Skill/main/.agents/skills/architect/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/architect/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Skill: Architectural Governance Compares

Feature / AgentSkill: Architectural GovernanceStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

> **Skill ID**: `SKILL_ARCHITECT`

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Skill: Architectural Governance

> **Skill ID**: `SKILL_ARCHITECT`
> **Tags**: `architecture`, `design-patterns`, `rigor`, `structural-governance`
> **Version**: 1.0

## 1. Structural Rigor (Mandatory)

**Trigger**: Before starting any non-trivial feature or project initialization.

### 1.1 Structural Audit

The AI must define the architectural pattern:

- **Criteria**: Is it a Monolith, Microservice, Layered (N-Tier), or Hexagonal (Ports & Adapters)?
- **Requirement**: Create an index file `ARCHITECTURE.md` in the project root if it doesn't exist.

### 1.2 Design Principles (Enforcement)

- **SOLID**: Every change must adhere to Single Responsibility and Open-Closed principles.
- **DRY/AHA**: Prioritize "Avoid Hasty Abstractions" over "Don't Repeat Yourself". Maintain code readability.
- **Dependency Rule**: Inner layers (Domain/Business Logic) must not depend on outer layers (Infrastructure/UI).

## 2. Technical Debt & Safety

- **Rule 1**: No "God Objects". Classes/Models must have specific bounded contexts.
- **Rule 2**: Security-First. Inputs MUST be validated; secrets MUST be stored in `.env` (never committed).
- **Rule 3**: Performance. Optimize O(n^2) operations or justify them in comments.

## 3. Governance Workflow

### 3.1 Architectural Review

Before implementing a complex story:

1. **Define**: Briefly outline the data flow and class relationships.
2. **Review**: Check for circular dependencies.
3. **Ratify**: Document the decision in `PROJECT_STATUS.md` under "Architectural Decisions".

## 4. Design Patterns (The "Super Architect" Toolkit)

The AI should proactively suggest:

- **Factory/Builder**: For complex object creation.
- **Strategy**: For interchangeable algorithms.
- **Observer**: For decoupled event handling.
- **Adapter**: For integrating third-party libraries (especially i18n/Design).