7.4 KiB
name, description, version, author, license, metadata
| name | description | version | author | license | metadata | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| corp-v1-channel-architecture | Use when operating or synchronizing a Corp v1 project's architecture channel. Maintains C4-based architecture documentation, Draw.io diagrams, architecture decisions, and functional/non-functional requirement registries while correlating verified activity across the project's four channels. | 1.0.0 | Hermes Agent | MIT |
|
Corp v1 Architecture Channel
Overview
This skill owns architecture coherence for a Corp v1 project. It monitors the project's general, architecture, delivery, and releases channels, identifies architectural implications, and maintains the Architecture section of the project documentation.
The default architecture model is C4. Architecture diagrams must be authored and validated using the global drawio-main skill from:
https://gitea.lego-cloud.eu/home-v1-skills-code-agent/drawio-main
Do not duplicate drawio-main into each project by default. A project team may explicitly decide to adopt its own copy; that decision must also update the project's channel skills and steering record.
When to Use
Use this skill when:
- operating in
corp-v1-<code>-architecture; - running its recurring synchronization job;
- designing or reviewing project architecture;
- maintaining C4 views and Draw.io sources;
- recording architecture decisions;
- maintaining functional and non-functional requirement registries;
- detecting implementation or release activity that changes architectural truth.
Do not use it to approve architecture decisions without the team's authority, or to treat speculative discussion as an accepted design.
Approved Information Boundary
Inspect only:
corp-v1-<code>-general
corp-v1-<code>-architecture
corp-v1-<code>-delivery
corp-v1-<code>-releases
Use mapped-channel history to avoid duplicate work and new relevant activity from the other three channels. Never inspect another project's channels.
Architecture Documentation Contract
Maintain the project documentation's Architecture area with at least:
- Architecture overview — scope, goals, constraints, principles, and links to authoritative registries.
- C4 model — System Context, Container, Component where justified, and Code only when it adds durable value.
- Architecture decisions — indexed ADR registry and individual decisions.
- Functional requirements — uniquely identified, testable requirements with status and traceability.
- Non-functional requirements — measurable quality attributes, constraints, status, and verification method.
Documentation must reflect approved/current truth. Proposed designs and requirements must be visibly marked as proposed until approved.
C4 Model
Use C4 consistently:
- System Context: users, external systems, trust boundaries, and the system's role.
- Container: applications, services, data stores, queues, and major runtime responsibilities.
- Component: internal decomposition only for containers where it supports design or delivery.
- Code: exceptional; source code normally remains the authority for low-level structure.
Every diagram must include a title, scope, element names, responsibilities, relationships, technology where relevant, and legend/boundary conventions. Keep narrative and diagrams synchronized.
Draw.io Workflow
- Load the global
drawio-mainskill before creating or modifying a diagram. - Store editable
.drawiosource in the documentation repository. - Export the required review/publishing format according to
drawio-main. - Validate the source and exports.
- Link diagrams from the relevant C4 documentation page.
- Commit source and rendered output together when the project convention requires both.
- Record exact paths and commit evidence.
Do not hand-author substitutes when the global skill defines the required Draw.io shape or validation.
Architecture Decision Registry
Maintain a registry with stable IDs, for example ADR-0001, and at least:
- title;
- status: Proposed, Accepted, Superseded, Rejected, or Deprecated;
- date and decision owners;
- context/problem;
- considered options;
- decision and rationale;
- consequences and risks;
- affected requirements, C4 elements, repositories, and releases;
- superseding/superseded links.
A scheduled run may draft an ADR from verified context, but may not mark it Accepted without authoritative team approval.
Requirements Registries
Maintain separate functional and non-functional registries.
Functional requirement minimum fields:
ID | statement | rationale | status | owner | acceptance evidence | related ADR/C4 element
Non-functional requirement minimum fields:
ID | quality attribute/constraint | measurable target | scope | status | verification method | related ADR/C4 element
Use stable IDs such as FR-0001 and NFR-0001. Requirements must be unambiguous, testable, traceable, and preserved historically when superseded. Contradictions are raised for team resolution; they are not silently reconciled.
Synchronization Workflow
- Read new same-project activity and enough architecture history to avoid duplicates.
- Identify changed assumptions, requirements, interfaces, constraints, infrastructure, deployment topology, or runtime behavior.
- Compare evidence with C4 views, ADRs, and requirement registries.
- Safely update documentation for already-approved facts, or prepare clearly marked proposals/drafts.
- Use
drawio-mainfor every diagram change. - Run documentation, link, diagram, and repository validation.
- Post a concise architecture update with changed artifacts, implications, unresolved decisions, and exact evidence; otherwise stay silent.
Authority and Escalation
May autonomously:
- detect architecture drift;
- update documentation to match verified approved decisions;
- maintain registry mechanics and traceability;
- draft ADRs and requirements;
- run read-only and validation checks;
- repair clear non-semantic documentation defects.
Requires team approval for:
- accepting/rejecting ADRs or requirements;
- changing system boundaries, major technologies, security posture, data handling, or deployment topology;
- resolving genuine contradictions in product requirements;
- adopting a project-specific
drawio-maincopy; - irreversible or high-impact implementation/deployment work.
Common Pitfalls
- Drawing architecture without loading
drawio-main. - Duplicating the global Draw.io skill without a team decision.
- Treating every C4 level as mandatory regardless of value.
- Marking draft decisions or requirements as approved.
- Letting diagrams, ADRs, requirements, and implementation diverge.
- Writing non-measurable NFRs or non-testable FRs.
- Overwriting superseded history instead of linking it.
- Inspecting another project's channels.
Verification Checklist
- Only the four same-project channels were inspected.
- Architecture documentation reflects verified status.
- C4 scope and level are appropriate.
drawio-maingoverned every diagram change.- ADR, FR, and NFR entries have stable IDs and traceability.
- Proposed items remain visibly proposed.
- Documentation and diagram checks passed.
- Commit/message/run evidence is included.