ワンクリックで
arckit-architecture-repository
Build architecture repository — patterns library, standards register, reusable building blocks
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Build architecture repository — patterns library, standards register, reusable building blocks
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
[COMMUNITY] Generate a NHS DCB0129 manufacturer Clinical Safety Case Report and Hazard Log (Marcus Baw SAFETY.md 3-file spec) for a digital health product placed on the NHS market.
[COMMUNITY] Generate a NHS DCB0160 deployer Clinical Safety Case Report and deployment Hazard Log for an NHS organisation deploying or significantly configuring a health IT product into a specific clinical setting.
Document architectural decisions with options analysis and traceability
Design AI agent architecture — patterns, tool contracts, memory, orchestration, guardrails
Design AI agent governance — oversight models, approval workflows, audit requirements, compliance mapping
Assess AI agent program maturity across design, governance, security, integration, and operations
| name | arckit-architecture-repository |
| description | Build architecture repository — patterns library, standards register, reusable building blocks |
You are helping an enterprise architect create an Architecture Repository — the central knowledge store for the organisation's architecture artefacts including patterns, standards, reference architectures, lessons learned, and reusable building blocks. This is a global-scope artefact that synthesises learnings from all completed ADM cycles and projects into a living reference library.
$ARGUMENTS
Note: Before generating, scan
projects/for existing project directories. For each project, list allARC-*.mdartifacts, checkexternal/for reference documents, and check000-global/for cross-project policies. If no external docs exist but they would improve output, ask the user.
MANDATORY (warn if missing):
$arckit-principles first. The repository must be grounded in architecture principles.RECOMMENDED (read if available, note if missing):
OPTIONAL (read if available, skip silently if missing):
Scan all projects/*/ directories for the following artefact types:
ARC-*-ADR-v*.md, ARC-*-ADR-*-*-v*.md) — Architecture Decision RecordsARC-*-DIAG-v*.md) — Architecture diagrams and reference modelsARC-*-STORY-v*.md) — Project stories and narrativesARC-*-ANALYZE-v*.md) — Technical analysis documentsexternal/ files) — extract enterprise standards, technology standards catalogues, industry best practice guidelinesprojects/000-global/external/ — extract enterprise architecture standards, compliance frameworks, security standardsprojects/000-global/external/ and re-run, or skip.".arckit/references/citation-instructions.md. Place inline citation markers (e.g., [PP-C1]) next to findings informed by source documents.This command operates at global scope by default. The repository synthesises learnings from ALL projects.
projects/*/ directories for synthesisPROJECT_ID = 000 for global repository, or the user-specified project ID for project-scoped repositoryRead the template (with user override support):
.arckit/templates-custom/architecture-repository-template.md exists in the project root.arckit/templates/architecture-repository-template.md (default)Tip: Users can customise templates with
$arckit-customize architecture-repository
Read PRIN and scan all available project artefacts. Classify each artefact's content into repository categories:
Create the repository document following the template structure.
Extract and catalogue all standards from PRIN and ADR artefacts:
| Standard ID | Name | Domain | Status | Last Review | Source |
|---|
Minimum quality requirement: ≥5 standards with complete entries
Standards categories to extract:
For each standard:
Standard ID: STD-NNN formatName: Descriptive standard nameDomain: Primary domain (Security/Architecture/Data/Technology/Governance)Status: Active, Deprecated, Proposed, Under ReviewLast Review: Date of last review or adoptionSource: Originating PRIN or ADR artefactCatalogue reusable architectural patterns from ADR artefacts:
Pattern structure (for each pattern):
Minimum quality requirement: ≥3 patterns with full description
Pattern grouping:
Catalogue reference architectures from DIAG artefacts:
| Reference ID | Name | Domain | Diagram | Last Used |
|---|
Minimum quality requirement: ≥2 reference architectures
Reference architecture types:
Each reference architecture includes:
Reference ID: REF-NNN formatDiagram: Link to the source DIAG artefactLast Used: Most recent project where this architecture was appliedCatalogue lessons from STORY and ANALYZE artefacts:
| Lesson ID | Project | Lesson | Category | Impact |
|---|
Minimum quality requirement: ≥3 lessons learned
Lesson categories:
Each lesson includes:
Lesson ID: LL-NNN formatProject: Source project identifierImpact: High/Medium/Low — how significant was this lesson's impactCatalogue proven components and solutions:
| Block ID | Name | Type | Maturity | Documentation |
|---|
Minimum quality requirement: ≥3 building blocks
Building block types:
Maturity levels:
Create a keyword-based search index for quick artefact lookup:
| Keyword | Artefacts |
|---|
Create a traceability matrix showing the provenance of repository entries:
| Source Type | Source Artefact | Repository Entry | Relationship |
|---|
If the user indicates this is a UK Government project, include:
If this is a Ministry of Defence project, include:
Read .arckit/skills/mermaid-syntax/references/flowchart.md for official Mermaid syntax — node shapes, edge labels, and styling options for repository structure diagrams.
Include a repository structure diagram (Mermaid flowchart):
Syntax Rules:
<br/>, edge labels cannotBefore writing the file, read .arckit/references/quality-checklist.md and verify all Common Checks plus the REPO per-type checks pass. Fix any failures before proceeding.
Additional quality checks for Architecture Repository:
IMPORTANT: The Architecture Repository document will be a large document (typically 400-700 lines). You MUST use the Write tool to create the file, NOT output the full content in chat.
Create the file at:
projects/000-global/ARC-000-REPO-v1.0.md
For project-scoped repositories (when a specific project ID is provided):
projects/{P}/ARC-{P}-REPO-v1.0.md
Use the Write tool with the complete repository content following the template structure.
Before completing the document, populate ALL document control fields in the header:
Construct Document ID:
ARC-000-REPO-v{VERSION} (global) or ARC-{PROJECT_ID}-REPO-v{VERSION} (project-scoped)Populate Required Fields:
Auto-populated fields (populate these automatically):
[PROJECT_ID] → 000 for global, or extracted from project path[VERSION] → "1.0" (or increment if previous version exists)[DATE] / [YYYY-MM-DD] → Current date in YYYY-MM-DD format[DOCUMENT_TYPE_NAME] → "Architecture Repository"[COMMAND] → "arckit.architecture-repository"User-provided fields (extract from project metadata or user input):
[OWNER_NAME_AND_ROLE] → Document owner (prompt user if not in metadata)[CLASSIFICATION] → Default to ${default_classification}; if unavailable, use "OFFICIAL" for UK Gov, "PUBLIC" otherwise (or prompt user)Calculated fields:
[YYYY-MM-DD] for Review Date → Current date + 90 days (quarterly review cycle)Pending fields (leave as [PENDING] until manually updated):
[REVIEWER_NAME] → [PENDING][APPROVER_NAME] → [PENDING]Populate Revision History:
| 1.0 | {DATE} | ArcKit AI | Initial creation from `$arckit-architecture-repository` command | [PENDING] | [PENDING] |
Populate Generation Metadata Footer:
**Generated by**: ArcKit `$arckit-architecture-repository` command
**Generated on**: {DATE} {TIME} GMT
**ArcKit Version**: {ARCKIT_VERSION}
**Project**: Global Repository (Project 000)
**AI Model**: [Use actual model name, e.g., "Claude Sonnet 5 (session default)"]
**Generation Context**: [Brief note about source documents and projects synthesised]
After writing the file, show a concise summary (NOT the full document):
## Architecture Repository Created
**Document**: `projects/000-global/ARC-000-REPO-v1.0.md`
**Document ID**: ARC-000-REPO-v1.0
### Repository Contents
| Section | Count | Status |
|---------|-------|--------|
| Standards Register | [N] standards | ✅ [≥5 required] |
| Patterns Library | [N] patterns | ✅ [≥3 required] |
| Reference Architectures | [N] references | ✅ [≥2 required] |
| Lessons Learned | [N] lessons | ✅ [≥3 required] |
| Building Blocks | [N] blocks | ✅ [≥3 required] |
| Search Index | [N] keywords | ✅ Present |
### Standards Summary
| Domain | Count |
|--------|-------|
| Security | [N] |
| Architecture | [N] |
| Data | [N] |
| Technology | [N] |
| Governance | [N] |
### Patterns Summary
1. **[Pattern 1]**: [Brief description] — Source: [ARC-XXX-ADR]
2. **[Pattern 2]**: [Brief description] — Source: [ARC-XXX-ADR]
3. **[Pattern 3]**: [Brief description] — Source: [ARC-XXX-ADR]
### Reference Architectures Summary
1. **[REF-001]**: [Name] — [Domain] — Source: [ARC-XXX-DIAG]
2. **[REF-002]**: [Name] — [Domain] — Source: [ARC-XXX-DIAG]
### Top Lessons Learned
1. **[LL-001]**: [Lesson] — [Category] — [Impact]
2. **[LL-002]**: [Lesson] — [Category] — [Impact]
3. **[LL-003]**: [Lesson] — [Category] — [Impact]
### Building Blocks Summary
| Block | Type | Maturity |
|-------|------|----------|
| [BB-001] | [Type] | [Maturity] |
| [BB-002] | [Type] | [Maturity] |
| [BB-003] | [Type] | [Maturity] |
### Sources Synthesised
- ✅ Architecture Principles: ARC-000-PRIN-v[N].md
- ✅ ADR artefacts: [N] decisions across [N] projects
- ✅ DIAG artefacts: [N] diagrams across [N] projects
- ✅ STORY artefacts: [N] stories across [N] projects
- ✅ ANALYZE artefacts: [N] analyses across [N] projects
### Traceability
- [N] repository entries traced to source artefacts
- [N] standards derived from principles
- [N] patterns derived from decisions
- [N] reference architectures derived from diagrams
- [N] lessons derived from stories/analyses
### Next Steps
1. Review repository with Architecture Board / Enterprise Architecture team
2. Validate standards against current technology strategy
3. Feed repository standards into next ADM cycle: `$arckit-adm-preliminary`
4. Add new patterns as projects complete — re-run `$arckit-architecture-repository`
5. Maintain search index as new artefacts are added
### Usage
- Reference this repository when creating new architecture artefacts
- Use patterns library as design starting point for new projects
- Use standards register as compliance checklist
- Use lessons learned to avoid known pitfalls
- Use building blocks to accelerate delivery
**File location**: `projects/000-global/ARC-000-REPO-v1.0.md`
Synthesis, Not Generation: This command synthesises existing artefacts into a curated knowledge repository. It should NOT generate new information but rather consolidate and classify existing architectural decisions, patterns, and learnings.
Use Write Tool: The repository document is typically 400-700 lines. ALWAYS use the Write tool to create it. Never output the full content in chat.
Global Scope: By default, this command operates across all projects. Use the argument to scope to a specific project when creating project-specific repositories.
Quality Thresholds: The minimum quality requirements (≥5 standards, ≥3 patterns, ≥2 reference architectures, ≥3 lessons, ≥3 building blocks) ensure the repository provides genuine value. If thresholds cannot be met, note the gaps and suggest which artefacts would help fill them.
Living Document: The Architecture Repository is a living artefact. Schedule quarterly reviews ($arckit-architecture-repository) to incorporate learnings from new projects. Version management (v1.0 → v2.0) tracks evolution.
Traceability is Critical: Every repository entry must trace back to source artefacts. Orphan entries without provenance should be flagged and either sourced or removed.
Integration with Other Commands:
$arckit-adm-preliminary (standards inform scope), all future project artefacts (reference patterns and standards)TOGAF Alignment: This document maps to the TOGAF Architecture Repository content meta-model: Architecture Capability, Architecture Methods, Tools, Governance, Standards, Reference Architectures, Patterns, and Lessons Learned.
Search and Retrieval: The search index enables quick lookup of patterns, standards, and lessons. Maintain this index as the repository grows — it's the primary discovery mechanism for architects.
Markdown escaping: When writing less-than or greater-than comparisons, always include a space after < or > (e.g., < 3 seconds, > 99.9% uptime) to prevent markdown renderers from interpreting them as HTML tags or emoji.
After completing this command, consider running:
$arckit-adm-preliminary -- Feed repository standards back into next ADM cycle