بنقرة واحدة
arckit-agent-design
Design AI agent architecture — patterns, tool contracts, memory, orchestration, guardrails
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Design AI agent architecture — patterns, tool contracts, memory, orchestration, guardrails
التثبيت باستخدام 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 governance — oversight models, approval workflows, audit requirements, compliance mapping
Assess AI agent program maturity across design, governance, security, integration, and operations
Design AI agent security — sandboxing, permissions, injection defences, output validation
| name | arckit-agent-design |
| description | Design AI agent architecture — patterns, tool contracts, memory, orchestration, guardrails |
You are helping an enterprise architect design an AI agent architecture specification following a structured, traceable framework.
$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-agent-inventory first$arckit-requirements firstRECOMMENDED (read if available, note if missing):
OPTIONAL (read if available, skip silently if missing):
projects/*/ directories and find the highest NNN-* number (or start at 001 if none exist)002)projects/{NNN}-{slug}/README.md with the project name, ID, and date — the Write tool will create all parent directories automaticallyprojects/{NNN}-{slug}/external/README.md with a note to place external reference documents herePROJECT_ID = the 3-digit number, PROJECT_PATH = the new directory pathBefore generating the agent design, ask the user for key parameters. Skip any question where the user has already provided a clear answer in their arguments.
Gathering rules (apply to all questions in this section):
Question 1 — header: Pattern, multiSelect: false
"What agent architecture pattern best describes this agent?"
Question 2 — header: Scope, multiSelect: false
"What is the primary scope of this agent?"
Read the template (with user override support):
.arckit/templates-custom/agent-design-template.md exists in the project root.arckit/templates/agent-design-template.md (default)Tip: Users can customize templates with
$arckit-customize agent-design
Agent identity and purpose:
Architecture decisions (from Questions or context):
Tool inventory (minimum 3 tools):
Extract from REQ artifacts or define new:
Memory design:
Guardrail requirements (minimum 2 guardrails):
Testing approach:
CRITICAL: To create a high-quality, integrated agent design, extract data from existing ArcKit artifacts:
If projects/{project_id}/ARC-*-REQ-*.md exists:
Read the file and extract:
If projects/{project_id}/ARC-*-RISK-*.md exists:
Read the risk register and extract:
If projects/{project_id}/ARC-*-STKE-*.md exists:
Read stakeholder analysis and extract:
Before generating the document ID, check if a previous version exists:
ARC-{PROJECT_ID}-AAGR-v*.md files in the project directoryARC-{PROJECT_ID}-AAGR-v{VERSION} (e.g., ARC-001-AAGR-v1.0)Populate document control fields:
document_id: Constructed from format aboveproject_id: From Step 2project_name: From Step 2version: Determined version from Step 7author: "ArcKit Agent Design Command"date_created: Current date (YYYY-MM-DD)date_updated: Current date (YYYY-MM-DD)generation_date: Current date and timeai_model: Your model nameCRITICAL INSTRUCTIONS FOR QUALITY:
This is a LARGE document (architecture diagram + tool matrix + orchestration design, 600-1200+ lines). You MUST use the Write tool to create the file. DO NOT output the full document to the user (you will exceed token limits).
Follow the template structure with all 7 sections:
Section 1: Agent Architecture Overview
Section 2: Tool Contracts (minimum 3 tools)
Section 3: Memory Architecture
Section 4: Orchestration Design
Section 5: Guardrail Configuration (minimum 2 guardrails)
Section 6: Testing Strategy
Section 7: Traceability
Auto-populate from artifacts (from Step 6):
Mermaid diagram requirements:
Person(), Component(), etc.Before writing the file, read .arckit/references/quality-checklist.md and verify all Common Checks plus the AAGR per-type checks pass. Fix any failures before proceeding.
AAGR-specific quality checks:
[Name], [Model], [MCP servers], or [Schema] tokensprojects/{PROJECT_ID}-{project-name}/ARC-{PROJECT_ID}-AAGR-v{VERSION}.mdCRITICAL - Auto-Populate Document Control Fields:
Before completing the document, populate ALL document control fields in the header following the same pattern as other ArcKit commands.
ADRs and agent designs follow the same version detection logic:
Creating a new document (default): Use VERSION="1.0"
Updating an existing document (user explicitly references an existing document):
ARC-{PROJECT_ID}-AAGR-v*.md files in projects/{project-dir}/| 1.0 | {DATE} | ArcKit AI | Initial creation from `$arckit-agent-design` command | [PENDING] | [PENDING] |
The footer should be populated with:
**Generated by**: ArcKit `$arckit-agent-design` command
**Generated on**: {DATE} {TIME} GMT
**ArcKit Version**: {ARCKIT_VERSION}
**Project**: {PROJECT_NAME} (Project {PROJECT_ID})
**AI Model**: [Use actual model name]
**Generation Context**: [Brief note about source documents used]
## Agent Architecture Specification Created
**Agent**: {agent_name}
**Document**: projects/{PROJECT_ID}-{project-name}/ARC-{PROJECT_ID}-AAGR-v1.0.md
**Document ID**: ARC-{PROJECT_ID}-AAGR-v1.0
### Architecture Pattern
**Pattern**: {Single Agent / Chain / Multi-Agent / Hierarchical}
**Justification**: {One-sentence rationale}
### Components
- **LLM Core**: {model} — {primary model}
- **Tool Layer**: {N} tools — {tool names}
- **Memory**: Session + Durable + Vector
- **Guardrails**: {N} guardrails — {guardrail names}
### Tool Contracts
| Tool ID | Name | Type |
|---------|------|------|
| T-001 | {name} | {type} |
| T-002 | {name} | {type} |
| T-003 | {name} | {type} |
### Memory Architecture
| Layer | Storage | Retention |
|-------|---------|-----------|
| Session | In-memory | Session only |
| Durable | {DB} | Indefinite |
| Vector | {Vector DB} | Configurable |
### Orchestration
- **Framework**: {LangGraph/CrewAI/etc}
- **Nodes**: {N} nodes in pipeline
- **Error handling**: {Strategy}
### Guardrails
| Guardrail | Type | Action |
|-----------|------|--------|
| {name} | {type} | {action} |
| {name} | {type} | {action} |
### Testing Strategy
| Test Type | Coverage | Tool |
|-----------|----------|------|
| Unit | Tool contracts | pytest |
| Integration | Agent flow | {framework} |
| Security | Prompt injection | {tool} |
### Traceability
- **AAGI**: {N} references
- **REQ**: {N} requirements traced
- **RISK**: {N} risks addressed
### Next Steps
- [ ] Review and validate architecture with stakeholders
- [ ] Create detailed designs for each component
- [ ] Set up tool contracts and MCP servers
- [ ] Implement guardrails and safety layer
- [ ] Develop testing framework
- [ ] Run `$arckit-agent-integration` for multi-agent coordination
- [ ] Run `$arckit-agent-security` for security review
### Files Created
📄 `projects/{PROJECT_ID}-{project-name}/ARC-{PROJECT_ID}-AAGR-v1.0.md` ({line_count} lines)
< or > (e.g., < 3 seconds, > 99.9% uptime) to prevent markdown renderers from interpreting them as HTML tags or emojiagent-design-template.md in .arckit/templates-custom/After completing this command, consider running:
$arckit-agent-integration -- Design integration contracts for multi-agent systems$arckit-agent-security -- Design security architecture for agents