Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

architect-first建筑师第一

Agent Skill

architect-first 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

282

周安装

12

GitHub Stars

2,763

下载量

99
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:architect-first(建筑师第一)
来源仓库:https://github.com/synkraai/aiox-core
仓库路径:skills/architect-first
安装命令:
npx skills add https://github.com/synkraai/aiox-core --skill architect-first
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/synkraai/aiox-core --skill architect-first

简介

architect-first 强调架构优先的开发理念,要求先完成高质量设计和测试再进入实现阶段。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中进行系统重构、新特性开发和质量管控。
  • 通过 GitHub 安装,使用 npx skills add 命令添加技能,强制前置文档和测试用例编写。
  • 安装前建议确认权限范围,注意是否会触发文件创建、测试运行或构建流程。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Architect First

Overview

This skill embodies the "Architect-First" development philosophy: Perfect architecture, pragmatic execution, quality guaranteed by tests. Apply this skill when making architectural decisions, starting new features, refactoring existing systems, or when quality gates need to be enforced.

The core principle: Architecture and documentation are non-negotiable and must precede implementation. Code quality is negotiable IF backed by tests as a safety net (escape hatch).

Core Philosophy

Mantra

"Arquitetura perfeita, execução pragmática, qualidade garantida por testes"

Quality Gates

Non-Negotiable (STOP if violated):

  • Architecture: Complete design and documentation BEFORE any code
  • Documentation: Must precede and accompany implementation
  • Capability Preservation: Never lose capability/granularity vs previous versions
  • Zero Coupling: Expansion packs must be independent
  • Multi-Agent Validation: Structural decisions validated by PO/Architect/User

Negotiable (with escape hatch):

  • Code Style: Acceptable if backed by tests as safety net
  • Feature Completeness: 80% acceptable IF core use case works
  • Quick & Dirty Code: Allowed ONLY with test plan and minimal logging

Decision Modes

Architect-First Mode (default):

  • Design and document completely before coding
  • Map structure and pointers before proposing implementation
  • Validate architecture with multiple agents/perspectives
  • Externalize all mutable configurations to YAML

Fast Mode (post-validation only):

  • Binary decisions and rapid delegation
  • Activated ONLY after architectural validation is complete
  • Speed through automation, not shortcuts

Workflow Decision Tree

New Task/Feature Request
    ↓
┌──────────────────────────────────────┐
│ Is this a structural/architectural   │
│ decision?                            │
└──────────────────────────────────────┘
    ↓ YES                    ↓ NO
    ↓                        ↓
[Architecture Flow]    [Execution Flow]

Architecture Flow (Structural Decisions)

STOP and follow this sequence:

  1. Map Before Modify

- Document current state completely - Identify all dependencies and touch points - Create architectural diagrams/flows - Load references/architecture-checklist.md for validation

  1. Multi-Agent Validation

- Present A/B/C options with explicit trade-offs - Get validation from: - Product Owner (business alignment) - Architect (technical soundness) - User (final decision) - Document decision rationale

  1. Design Documentation

- Complete design document BEFORE code - Include: - System architecture diagrams - Component interactions - Data flows - Configuration schema (YAML) - Integration points - Use templates from assets/architecture-template.md

  1. Gold Standard Baseline

- Ensure new design meets/exceeds capability baseline - Validate: Does this maintain ALL previous capabilities? - STOP if capability loss detected → restore or redesign

  1. Zero Coupling Validation

- Run validation script: scripts/check_coupling.py - Ensure expansion pack independence - No hardcoded cross-module dependencies

  1. Proceed to Implementation

- Now and only now: write code - Follow execution flow for implementation

Execution Flow (Implementation)

  1. Pre-Implementation Checklist

- Architecture documented and validated? - Core use case clearly defined? - Configuration externalized to YAML? - Test strategy defined? - Use references/pre-implementation-checklist.md

  1. Test-Driven Safety Net

- Define test plan FIRST - Identify logging/observation points - Tests permit temporary imperfection (escape hatch) - Quality validation via: tests + logs + manual inspection

  1. Implementation Style ACCEPTABLE: ✓ "Ugly" code WITH comprehensive tests ✓ 80% feature completeness IF core case works ✓ Quick implementation WITH test plan + logging REJECTED: ✗ "Ugly" code WITHOUT tests ✗ Capability loss without explicit justification ✗ Hardcoded mutable values (must be YAML) ✗ Deployment without core case working
  2. Debugging Philosophy

- Observational via logs (console/logging) > static analysis - Add strategic log points before debugging - Inspect actual runtime behavior - Validate through execution, not just reading code

  1. Documentation

- Update docs as code evolves - Keep short and actionable: "How to customize" - Include code examples - Document configuration options

Heuristics (Decision Rules)

Apply these heuristics when making decisions:

  1. Gold Standard Baseline: 22 artifacts minimum (adjust to your context)
  2. Never Lose Capability: Accumulate, never reduce
  3. Architect Before Build: Design/docs before code, always
  4. Zero Coupling, Max Modularity: Independent expansion packs
  5. Config > Hardcoding: Externalize to YAML for all mutable values
  6. Map Before Modify: Document structure before changing it
  7. Binary Decision Post-Validation: Fast execution after architectural validation
  8. Speed via Automation: Not via shortcuts or cutting corners
  9. Quality Escape Hatch: Tests permit temporary imperfection

Stop Rules (Hard Boundaries)

STOP immediately if detecting:

  • Capability loss vs baseline
  • Structural decision without multi-agent validation
  • Coupling between modules
  • Missing architectural documentation
  • Quick & dirty code WITHOUT test plan and logs
  • Hardcoded mutable configuration values

When stopped, consult references/stop-rules-guide.md for remediation.

Risk Mitigation

Common risks and their mitigations:

RiskMitigation Strategy
Excessive planningTime-box + mandatory POC before full formalization
Perfectionism cascadeRule of 3: simple pilot → 2 iterations → formalize
Premature configurationGeneralize only after ≥2 real scenarios
Context switchingChecklist of pending items at each pivot

Use scripts/validate_risk_mitigation.py to check risk mitigation coverage.

Collaboration Contract

When working with this skill, follow these collaboration patterns:

Do:

  • Present A/B/C options with explicit trade-offs
  • Map structure and pointers before proposing code
  • Externalize configs in YAML; nothing mutable hardcoded
  • Deliver short, actionable docs ("how to customize")
  • For quick code: include test plan and log points
  • Document pending items when pivoting

Don't:

  • Propose code without architectural context
  • Hardcode values that might change
  • Skip multi-agent validation on structural changes
  • Write "quick & dirty" without tests
  • Make architectural decisions unilaterally

Acceptance Criteria

Will Accept

  • ✓ "Ugly" code WITH comprehensive tests
  • ✓ 80% features IF core case covered
  • ✓ Large refactors that increase flexibility
  • ✓ Extensive documentation if it teaches customization

Will Reject

  • ✗ "Ugly" code WITHOUT tests
  • ✗ Capability loss without explicit justification
  • ✗ Hardcoded mutable values
  • ✗ Deployment without core case working

Unknown Areas (For Future Refinement)

Areas not yet fully defined in the philosophy:

  • Hotfix philosophy (production emergencies)
  • Performance thresholds (latency/throughput minimums)
  • Code duplication tolerance (when to refactor)
  • Observability targets (log levels, correlation, tracing)

When encountering these areas, apply the core heuristics and document decisions for future refinement.

Resources

scripts/

Validation and automation scripts:

  • check_coupling.py - Validates zero-coupling principle
  • validate_risk_mitigation.py - Checks risk coverage
  • architecture_validator.py - Validates architectural completeness

references/

Detailed checklists and guides:

  • architecture-checklist.md - Complete architecture validation checklist
  • pre-implementation-checklist.md - Pre-coding validation
  • stop-rules-guide.md - Remediation guide when stop rules trigger
  • testing-strategy-guide.md - Test-driven development patterns

assets/

Templates for consistent outputs:

  • architecture-template.md - Standard architecture document template
  • config-template.yaml - Configuration externalization template
  • adr-template.md - Architecture Decision Record template

Quick Reference

Starting a new feature:

  1. Map current architecture (references/architecture-checklist.md)
  2. Design with A/B/C options
  3. Multi-agent validation
  4. Document architecture (assets/architecture-template.md)
  5. Define tests
  6. Implement with logging
  7. Validate and iterate

Making architectural changes:

  1. STOP - Do not code yet
  2. Document current state completely
  3. Present options with trade-offs
  4. Get PO/Architect/User validation
  5. Check coupling (scripts/check_coupling.py)
  6. Document decision (assets/adr-template.md)
  7. Now implement

Quick implementation (with safety net):

  1. Pre-implementation checklist
  2. Define test plan
  3. Add log points
  4. Implement (can be "ugly")
  5. Verify tests pass
  6. Inspect logs
  7. Refactor if needed

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.07%
按下载量换算34

Claude

29.64%
按下载量换算29

Cursor

21.22%
按下载量换算21

Gemini CLI

9.52%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills