You are helping an enterprise architect generate a comprehensive Statement of Work (SOW) that will be used as an RFP document for vendor procurement.
User Input
$ARGUMENTS
Instructions
Note: Before generating, scan projects/ for existing project directories. For each project, list all ARC-*.md artifacts, check external/ for reference documents, and check 000-global/ for cross-project policies. If no external docs exist but they would improve output, ask the user.
Identify the target project:
- Use the ArcKit Project Context (above) to find the project matching the user's input (by name or number)
- If no match, create a new project:
- Use Glob to list
projects/*/ directories and find the highest NNN-* number (or start at 001 if none exist)
- Calculate the next number (zero-padded to 3 digits, e.g.,
002)
- Slugify the project name (lowercase, replace non-alphanumeric with hyphens, trim)
- Use the Write tool to create
projects/{NNN}-{slug}/README.md with the project name, ID, and date — the Write tool will create all parent directories automatically
- Also create
projects/{NNN}-{slug}/external/README.md with a note to place external reference documents here
- Set
PROJECT_ID = the 3-digit number, PROJECT_PATH = the new directory path
Read existing artifacts from the project context:
MANDATORY (warn if missing):
- REQ (Requirements) in
projects/{project-dir}/
- Extract: BR/FR/NFR/INT/DR IDs, priorities, acceptance criteria — source of truth for the SOW
- If missing: warn user to run
$arckit-requirements first
- PRIN (Architecture Principles, in
projects/000-global/)
- Extract: Technology standards, constraints, compliance requirements for vendor alignment
- If missing: warn user to run
$arckit-principles first
RECOMMENDED (read if available, note if missing):
- RSCH / AWSR / AZUR (Technology Research) in
projects/{project-dir}/
- Extract: Vendor landscape, technology decisions, TCO estimates
- STKE (Stakeholder Analysis) in
projects/{project-dir}/
- Extract: Business drivers, success criteria, evaluation priorities
OPTIONAL (read if available, skip silently if missing):
- RISK (Risk Register) in
projects/{project-dir}/
- Extract: Risks requiring vendor mitigation, risk allocation
Read the template (with user override support):
- First, check if
.arckit/templates-custom/sow-template.md exists in the project root
- If found: Read the user's customized template (user override takes precedence)
- If not found: Read
.arckit/templates/sow-template.md (default)
- Then read
.arckit/templates/_partials/RENDERING.md and resolve the <!-- DOC-CONTROL-HEADER --> marker in the template before writing. Do not hand-write the Document Control table: the partial RENDERING.md selects is the only source of the 14 standard fields and of the classification ladder.
Tip: Users can customize templates with $arckit-customize sow
Read external documents and policies:
- Read any external documents listed in the project context (
external/ files) — extract previous procurement terms, evaluation criteria, contractual clauses, deliverable specifications
- Read any global policies listed in the project context (
000-global/policies/) — extract procurement thresholds, mandatory contractual terms, approved supplier lists, framework agreements
- Read any enterprise standards in
projects/000-global/external/ — extract enterprise procurement templates, contract frameworks, cross-project commercial benchmarks
- If no external docs exist but they would improve the SoW, ask: "Do you have any previous SoW templates, RFP/ITT documents, or procurement policies? I can read PDFs directly. Place them in
projects/{project-dir}/external/ and re-run, or skip."
- Citation traceability: When referencing content from external documents, follow the citation instructions in
.arckit/references/citation-instructions.md. Place inline citation markers (e.g., [PP-C1]) next to findings informed by source documents and populate the "External References" section in the template.
Interactive Configuration:
Before generating the SOW, ask the user for procurement preferences. Skip any question the user has already answered in their arguments.
Gathering rules — the one-message interview in .arckit/references/interview-pattern.md:
- Prefill from the arguments and the project context; say what you inferred.
- Ask every remaining question in one call. There is no second round.
- An unanswered question takes its (Recommended) option, listed as an assumption in your closing summary. With no question tool available, take every default and never block.
Question 1 — header: Contract, multiSelect: false
"What contract type should the SOW specify?"
- Fixed-price (Recommended): Vendor commits to delivering scope for agreed price — lower risk for buyer, requires well-defined requirements
- Time & Materials: Pay for actual effort — flexible scope, higher cost risk, suited for discovery/R&D
- Hybrid: Fixed-price for defined deliverables + T&M for change requests — balanced risk sharing
Question 2 — header: Weighting, multiSelect: false
"How should vendor proposals be evaluated?"
- 60% Technical / 40% Cost (Recommended): Standard weighting — prioritizes quality while maintaining cost discipline
- 70% Technical / 30% Cost: Quality-first — for complex or high-risk projects where technical excellence is critical
- 50% Technical / 50% Cost: Balanced — for commodity procurements with well-understood requirements
- 80% Technical / 20% Cost: Innovation-focused — for R&D, AI, or cutting-edge technology projects
Apply the user's selections: the contract type determines the pricing structure, payment terms, and risk allocation sections. The evaluation weighting is used in the Evaluation Criteria section and scoring framework.
Generate comprehensive SOW with these sections:
Executive Summary:
- Project overview and objectives
- Expected business outcomes
- Key success criteria
Scope of Work:
- What's in scope (explicitly list)
- What's out of scope (explicitly list)
- Assumptions and constraints
- Dependencies
Requirements:
- Import from ARC--REQ-.md
- Organise by Business, Functional, Non-Functional, Integration
- Clearly mark which are MUST vs SHOULD vs MAY
- Reference requirement IDs (BR-001, FR-001, etc.)
Deliverables:
- High-Level Design (HLD) document + diagrams
- Detailed Design (DLD) document
- Source code and documentation
- Test plans and test results
- Deployment runbooks
- Training materials
- Warranty and support terms
Timeline and Milestones:
- Suggested project phases
- Key milestones and decision gates
- Review and approval gates (HLD review, DLD review)
Vendor Qualifications:
- Required certifications
- Team experience requirements
- Reference requirements
- Financial stability requirements
Proposal Requirements:
- Technical approach and methodology
- Team composition and CVs
- Project timeline with milestones
- Pricing breakdown (fixed-price or T&M)
- Risk mitigation approach
- References
Evaluation Criteria:
- How proposals will be scored
- Weighting for technical vs cost
- Mandatory qualifications (pass/fail)
- Reference to evaluation-criteria-template.md
Contract Terms:
- Payment terms and milestones
- Acceptance criteria
- Change management process
- Intellectual property rights
- Warranties and support
- Termination clauses
Ensure alignment:
- Cross-reference architecture principles from any
ARC-000-PRIN-*.md file in projects/000-global/
- Ensure all requirements from the requirements document are included
- Add validation gates that align with principles
Make it RFP-ready:
- Use formal language appropriate for legal review
- Be specific and unambiguous
- Include submission instructions and deadline
- Specify format requirements (e.g., "proposals must be PDF")
Write the output:
- Write to
projects/{project-dir}/ARC-{PROJECT_ID}-SOW-v${VERSION}.md
- Use the exact template structure
CRITICAL - Auto-Populate Document Control Fields:
Before completing the document, populate ALL document control fields in the header:
Step 0: Detect Version
Before generating the document ID, check if a previous version exists:
- Look for existing
ARC-{PROJECT_ID}-SOW-v*.md files in the project directory
- If no existing file: Use VERSION="1.0"
- If existing file found:
- Read the existing document to understand its scope
- Compare against current inputs and requirements
- Minor increment (e.g., 1.0 → 1.1): Scope unchanged — refreshed content, updated requirements references, corrected details
- Major increment (e.g., 1.0 → 2.0): Scope materially changed — new requirement categories, fundamentally different procurement approach, significant scope changes
- Use the determined version for document ID, filename, Document Control, and Revision History
- For v1.1+/v2.0+: Add a Revision History entry describing what changed from the previous version
Step 1: Construct Document ID
- Document ID:
ARC-{PROJECT_ID}-SOW-v{VERSION} (e.g., ARC-001-SOW-v1.0)
Step 2: Populate Required Fields
Auto-populated fields (populate these automatically):
[PROJECT_ID] → Extract from project path (e.g., "001" from "projects/001-project-name")
[VERSION] → Determined version from Step 0
[DATE] / [YYYY-MM-DD] → Current date in YYYY-MM-DD format
[DOCUMENT_TYPE_NAME] → "Statement of Work"
ARC-[PROJECT_ID]-SOW-v[VERSION] → Construct using format from Step 1
[COMMAND] → "arckit.sow"
User-provided fields (extract from project metadata or user input):
[PROJECT_NAME] → Full project name from project metadata or user input
[OWNER_NAME_AND_ROLE] → Document owner (prompt user if not in metadata)
- Classification → comes from the resolved Document Control header, not from a placeholder.
_partials/RENDERING.md fixes the ladder from the artefact's own regime; ${default_classification} applies only where that regime falls through to user config.
Calculated fields:
[YYYY-MM-DD] for Next Review Date → Current date + 30 days (requirements, research, risks)
[YYYY-MM-DD] for Next Review Date → Phase gate dates (Alpha/Beta/Live for compliance docs)
Pending fields (leave as [PENDING] until manually updated):
[REVIEWER_NAME] → [PENDING]
[APPROVER_NAME] → [PENDING]
[DISTRIBUTION_LIST] → Default to "Project Team, Architecture Team" or [PENDING]
Step 3: Populate Revision History
| 1.0 | {DATE} | ArcKit AI | Initial creation from `$arckit-sow` command | [PENDING] | [PENDING] |
Step 4: Populate Generation Metadata Footer
The footer should be populated with:
**Generated by**: ArcKit `$arckit-sow` command
**Generated on**: {DATE} {TIME} GMT
**ArcKit Version**: {ARCKIT_VERSION}
**Project**: {PROJECT_NAME} (Project {PROJECT_ID})
**AI Model**: [Use actual model name, e.g., "Claude Sonnet 5 (session default)"]
**Generation Context**: [Brief note about source documents used]
Example Rendered Header and Revision History
## Document Control
<!-- DOC-CONTROL-HEADER -->
<!-- Resolved at command-execution time per _partials/RENDERING.md. -->
## Revision History
| Version | Date | Author | Changes | Approved By | Approval Date |
|---------|------|--------|---------|-------------|---------------|
| 1.0 | 2025-10-29 | ArcKit AI | Initial creation from `$arckit-sow` command | [PENDING] | [PENDING] |
- Summarize what you created:
- Key scope items
- Major deliverables
- Suggested timeline
- Next steps (e.g., "Now run
$arckit-evaluate to create vendor evaluation framework")
Example Usage
User: $arckit-sow Generate SOW for payment gateway modernization project
You should:
- Find project 001-payment-gateway-modernization
- Read ARC--REQ-.md from that project
- Read architecture principles
- Generate comprehensive SOW:
- Executive summary with business case
- Scope: Payment processing, fraud detection, reporting (IN); mobile app (OUT)
- All requirements from ARC--REQ-.md with IDs
- Deliverables: HLD, DLD, code, tests, runbooks
- Timeline: 16 weeks (4 weeks HLD, 4 weeks DLD approval, 8 weeks implementation)
- Vendor quals: PCI-DSS experience, financial services references
- Evaluation: 60% technical, 40% cost
- Contract: Milestone-based payments, 90-day warranty
- CRITICAL - Token Efficiency: Use the Write tool to create
projects/001-payment-gateway-modernization/ARC-001-SOW-v1.0.md
- DO NOT output the full document in your response (this exceeds 32K token limit!)
- Show summary only (see Output Instructions below)
Important Notes
UK Government procurement: The Sourcing Playbook expects outcome-based specifications, should-cost modelling, social value weighting (minimum 10%), and SME access. See docs/guides/codes-of-practice.md for the full Commercial Playbooks mapping.
This SOW becomes the legal basis for vendor contracts
Requirements MUST be complete before generating SOW
All "MUST" requirements are mandatory; vendors failing to meet them are disqualified
Include realistic timelines with review gates
Make acceptance criteria objective and measurable
Consider adding penalty clauses for SLA violations
Include provisions for IP ownership and source code escrow
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
Output Instructions
CRITICAL - Token Efficiency:
1. Generate SOW Document
Create the comprehensive Statement of Work following the template structure.
Before writing the file, read .arckit/references/quality-checklist.md and verify all Common Checks plus the SOW per-type checks pass. Fix any failures before proceeding.
2. Write Directly to File
Use the Write tool to create projects/[PROJECT]/ARC-{PROJECT_ID}-SOW-v${VERSION}.md with the complete SOW.
DO NOT output the full document in your response. This would exceed token limits.
3. Show Summary Only
After writing the file, show ONLY a concise summary:
## SOW Complete ✅
**Project**: [Project Name]
**File Created**: `projects/[PROJECT]/ARC-{PROJECT_ID}-SOW-v1.0.md`
### SOW Summary
**Scope**:
- In Scope: [List key deliverables in scope]
- Out of Scope: [List explicitly excluded items]
- Assumptions: [Number] key assumptions documented
**Requirements**:
- Total Requirements: [Number]
- Business Requirements: [Number]
- Functional Requirements: [Number]
- Non-Functional Requirements: [Number]
- Data Requirements: [Number]
- Integration Requirements: [Number]
- Compliance: [List: PCI-DSS, GDPR, HIPAA, etc.]
**Deliverables**:
- Architecture: [e.g., HLD, DLD, ERD]
- Code: [e.g., Source code, unit tests, integration tests]
- Documentation: [e.g., User guides, runbooks, API docs]
- Other: [e.g., Training, data migration]
**Timeline**:
- Total Duration: [Number] weeks
- Phase 1 (HLD): [Number] weeks
- Phase 2 (DLD): [Number] weeks
- Phase 3 (Implementation): [Number] weeks
- Phase 4 (Testing & UAT): [Number] weeks
**Vendor Qualifications**:
- Required Experience: [e.g., 5+ years in financial services]
- Required Certifications: [e.g., PCI-DSS, ISO 27001]
- Team Size: Minimum [Number] FTEs
- References: [Number] client references required
**Evaluation Criteria**:
- Technical Approach: [X]%
- Cost: [X]%
- Experience & References: [X]%
- Timeline & Delivery Plan: [X]%
**Contract Terms**:
- Payment: [e.g., Milestone-based, monthly]
- Warranty: [e.g., 90 days post-delivery]
- SLA Penalties: [Yes/No]
- IP Ownership: [e.g., Client owns all IP]
**UK Government Specific** (if applicable):
- Procurement Route: [e.g., Digital Marketplace, G-Cloud 14]
- Social Value Weighting: [X]%
- Security Clearance: [e.g., SC, DV required]
- Open Source Policy: [Compliance noted]
### What's in the Document
- Executive Summary (business case and objectives)
- Project Scope (in/out/assumptions/dependencies)
- Complete Requirements (all BR, FR, NFR, DR, INT with IDs)
- Deliverables & Acceptance Criteria
- Project Timeline with Review Gates
- Vendor Qualifications & Experience Requirements
- Proposal Evaluation Criteria with Weightings
- Contract Terms & Conditions
- Technical Environment & Constraints
- Appendices (glossary, references, architecture principles)
**Total Length**: [X] pages (ready for RFP release)
### Next Steps
- Review `ARC-{PROJECT_ID}-SOW-v1.0.md` for full SOW document
- Get legal review of contract terms
- Get procurement/finance approval
- Publish to Digital Marketplace (if UK Gov)
- Run `$arckit-evaluate` to create vendor evaluation framework
Statistics to Include:
- Total requirements
- Number of deliverables
- Timeline duration (weeks)
- Number of vendor qualifications
- Number of evaluation criteria
- Page count
Generate the SOW now, write to file using Write tool, and show only the summary above.
Suggested Next Steps
After completing this command, consider running:
$arckit-evaluate -- Create vendor evaluation framework
$arckit-dos -- Generate Digital Marketplace DOS opportunity
1---2name: arckit-sow3description: Generate Statement of Work (SOW) / RFP document for vendor procurement4---56You are helping an enterprise architect generate a comprehensive Statement of Work (SOW) that will be used as an RFP document for vendor procurement.78## User Input910```text11$ARGUMENTS12```1314## Instructions1516> **Note**: Before generating, scan `projects/` for existing project directories. For each project, list all `ARC-*.md` artifacts, check `external/` for reference documents, and check `000-global/` for cross-project policies. If no external docs exist but they would improve output, ask the user.17181. **Identify the target project**:19 - Use the **ArcKit Project Context** (above) to find the project matching the user's input (by name or number)20 - If no match, create a new project:21 1. Use Glob to list `projects/*/` directories and find the highest `NNN-*` number (or start at `001` if none exist)22 2. Calculate the next number (zero-padded to 3 digits, e.g., `002`)23 3. Slugify the project name (lowercase, replace non-alphanumeric with hyphens, trim)24 4. Use the Write tool to create `projects/{NNN}-{slug}/README.md` with the project name, ID, and date — the Write tool will create all parent directories automatically25 5. Also create `projects/{NNN}-{slug}/external/README.md` with a note to place external reference documents here26 6. Set `PROJECT_ID` = the 3-digit number, `PROJECT_PATH` = the new directory path27282. **Read existing artifacts from the project context:**2930 **MANDATORY** (warn if missing):31 - **REQ** (Requirements) in `projects/{project-dir}/`32 - Extract: BR/FR/NFR/INT/DR IDs, priorities, acceptance criteria — source of truth for the SOW33 - If missing: warn user to run `$arckit-requirements` first34 - **PRIN** (Architecture Principles, in `projects/000-global/`)35 - Extract: Technology standards, constraints, compliance requirements for vendor alignment36 - If missing: warn user to run `$arckit-principles` first3738 **RECOMMENDED** (read if available, note if missing):39 - **RSCH** / **AWSR** / **AZUR** (Technology Research) in `projects/{project-dir}/`40 - Extract: Vendor landscape, technology decisions, TCO estimates41 - **STKE** (Stakeholder Analysis) in `projects/{project-dir}/`42 - Extract: Business drivers, success criteria, evaluation priorities4344 **OPTIONAL** (read if available, skip silently if missing):45 - **RISK** (Risk Register) in `projects/{project-dir}/`46 - Extract: Risks requiring vendor mitigation, risk allocation47483. **Read the template** (with user override support):49 - **First**, check if `.arckit/templates-custom/sow-template.md` exists in the project root50 - **If found**: Read the user's customized template (user override takes precedence)51 - **If not found**: Read `.arckit/templates/sow-template.md` (default)52 - **Then read** `.arckit/templates/_partials/RENDERING.md` and resolve the `<!-- DOC-CONTROL-HEADER -->` marker in the template before writing. Do not hand-write the Document Control table: the partial `RENDERING.md` selects is the only source of the 14 standard fields and of the classification ladder.5354 > **Tip**: Users can customize templates with `$arckit-customize sow`55564. **Read external documents and policies**:57 - Read any **external documents** listed in the project context (`external/` files) — extract previous procurement terms, evaluation criteria, contractual clauses, deliverable specifications58 - Read any **global policies** listed in the project context (`000-global/policies/`) — extract procurement thresholds, mandatory contractual terms, approved supplier lists, framework agreements59 - Read any **enterprise standards** in `projects/000-global/external/` — extract enterprise procurement templates, contract frameworks, cross-project commercial benchmarks60 - If no external docs exist but they would improve the SoW, ask: "Do you have any previous SoW templates, RFP/ITT documents, or procurement policies? I can read PDFs directly. Place them in `projects/{project-dir}/external/` and re-run, or skip."61 - **Citation traceability**: When referencing content from external documents, follow the citation instructions in `.arckit/references/citation-instructions.md`. Place inline citation markers (e.g., `[PP-C1]`) next to findings informed by source documents and populate the "External References" section in the template.62635. **Interactive Configuration**:6465 Before generating the SOW, ask the user for procurement preferences. **Skip any question the user has already answered in their arguments.**6667 **Gathering rules** — the one-message interview in `.arckit/references/interview-pattern.md`:68 - Prefill from the arguments and the project context; say what you inferred.69 - Ask every remaining question in **one** call. There is no second round.70 - An unanswered question takes its **(Recommended)** option, listed as an assumption in your closing summary. With no question tool available, take every default and never block.7172 **Question 1** — header: `Contract`, multiSelect: false73 > "What contract type should the SOW specify?"74 - **Fixed-price (Recommended)**: Vendor commits to delivering scope for agreed price — lower risk for buyer, requires well-defined requirements75 - **Time & Materials**: Pay for actual effort — flexible scope, higher cost risk, suited for discovery/R&D76 - **Hybrid**: Fixed-price for defined deliverables + T&M for change requests — balanced risk sharing7778 **Question 2** — header: `Weighting`, multiSelect: false79 > "How should vendor proposals be evaluated?"80 - **60% Technical / 40% Cost (Recommended)**: Standard weighting — prioritizes quality while maintaining cost discipline81 - **70% Technical / 30% Cost**: Quality-first — for complex or high-risk projects where technical excellence is critical82 - **50% Technical / 50% Cost**: Balanced — for commodity procurements with well-understood requirements83 - **80% Technical / 20% Cost**: Innovation-focused — for R&D, AI, or cutting-edge technology projects8485 Apply the user's selections: the contract type determines the pricing structure, payment terms, and risk allocation sections. The evaluation weighting is used in the Evaluation Criteria section and scoring framework.86876. **Generate comprehensive SOW** with these sections:8889 **Executive Summary**:90 - Project overview and objectives91 - Expected business outcomes92 - Key success criteria9394 **Scope of Work**:95 - What's in scope (explicitly list)96 - What's out of scope (explicitly list)97 - Assumptions and constraints98 - Dependencies99100 **Requirements**:101 - Import from ARC-*-REQ-*.md102 - Organise by Business, Functional, Non-Functional, Integration103 - Clearly mark which are MUST vs SHOULD vs MAY104 - Reference requirement IDs (BR-001, FR-001, etc.)105106 **Deliverables**:107 - High-Level Design (HLD) document + diagrams108 - Detailed Design (DLD) document109 - Source code and documentation110 - Test plans and test results111 - Deployment runbooks112 - Training materials113 - Warranty and support terms114115 **Timeline and Milestones**:116 - Suggested project phases117 - Key milestones and decision gates118 - Review and approval gates (HLD review, DLD review)119120 **Vendor Qualifications**:121 - Required certifications122 - Team experience requirements123 - Reference requirements124 - Financial stability requirements125126 **Proposal Requirements**:127 - Technical approach and methodology128 - Team composition and CVs129 - Project timeline with milestones130 - Pricing breakdown (fixed-price or T&M)131 - Risk mitigation approach132 - References133134 **Evaluation Criteria**:135 - How proposals will be scored136 - Weighting for technical vs cost137 - Mandatory qualifications (pass/fail)138 - Reference to evaluation-criteria-template.md139140 **Contract Terms**:141 - Payment terms and milestones142 - Acceptance criteria143 - Change management process144 - Intellectual property rights145 - Warranties and support146 - Termination clauses1471487. **Ensure alignment**:149 - Cross-reference architecture principles from any `ARC-000-PRIN-*.md` file in `projects/000-global/`150 - Ensure all requirements from the requirements document are included151 - Add validation gates that align with principles1521538. **Make it RFP-ready**:154 - Use formal language appropriate for legal review155 - Be specific and unambiguous156 - Include submission instructions and deadline157 - Specify format requirements (e.g., "proposals must be PDF")1581599. **Write the output**:160 - Write to `projects/{project-dir}/ARC-{PROJECT_ID}-SOW-v${VERSION}.md`161 - Use the exact template structure162163**CRITICAL - Auto-Populate Document Control Fields**:164165Before completing the document, populate ALL document control fields in the header:166167### Step 0: Detect Version168169Before generating the document ID, check if a previous version exists:1701711. Look for existing `ARC-{PROJECT_ID}-SOW-v*.md` files in the project directory1722. **If no existing file**: Use VERSION="1.0"1733. **If existing file found**:174 - Read the existing document to understand its scope175 - Compare against current inputs and requirements176 - **Minor increment** (e.g., 1.0 → 1.1): Scope unchanged — refreshed content, updated requirements references, corrected details177 - **Major increment** (e.g., 1.0 → 2.0): Scope materially changed — new requirement categories, fundamentally different procurement approach, significant scope changes1784. Use the determined version for document ID, filename, Document Control, and Revision History1795. For v1.1+/v2.0+: Add a Revision History entry describing what changed from the previous version180181### Step 1: Construct Document ID182183- **Document ID**: `ARC-{PROJECT_ID}-SOW-v{VERSION}` (e.g., `ARC-001-SOW-v1.0`)184185### Step 2: Populate Required Fields186187**Auto-populated fields** (populate these automatically):188189- `[PROJECT_ID]` → Extract from project path (e.g., "001" from "projects/001-project-name")190- `[VERSION]` → Determined version from Step 0191- `[DATE]` / `[YYYY-MM-DD]` → Current date in YYYY-MM-DD format192- `[DOCUMENT_TYPE_NAME]` → "Statement of Work"193- `ARC-[PROJECT_ID]-SOW-v[VERSION]` → Construct using format from Step 1194- `[COMMAND]` → "arckit.sow"195196**User-provided fields** (extract from project metadata or user input):197198- `[PROJECT_NAME]` → Full project name from project metadata or user input199- `[OWNER_NAME_AND_ROLE]` → Document owner (prompt user if not in metadata)200- **Classification** → comes from the resolved Document Control header, not from a placeholder. `_partials/RENDERING.md` fixes the ladder from the artefact's own regime; `${default_classification}` applies only where that regime falls through to user config.201202**Calculated fields**:203204- `[YYYY-MM-DD]` for Next Review Date → Current date + 30 days (requirements, research, risks)205- `[YYYY-MM-DD]` for Next Review Date → Phase gate dates (Alpha/Beta/Live for compliance docs)206207**Pending fields** (leave as [PENDING] until manually updated):208209- `[REVIEWER_NAME]` → [PENDING]210- `[APPROVER_NAME]` → [PENDING]211- `[DISTRIBUTION_LIST]` → Default to "Project Team, Architecture Team" or [PENDING]212213### Step 3: Populate Revision History214215```markdown216| 1.0 | {DATE} | ArcKit AI | Initial creation from `$arckit-sow` command | [PENDING] | [PENDING] |217```218219### Step 4: Populate Generation Metadata Footer220221The footer should be populated with:222223```markdown224**Generated by**: ArcKit `$arckit-sow` command225**Generated on**: {DATE} {TIME} GMT226**ArcKit Version**: {ARCKIT_VERSION}227**Project**: {PROJECT_NAME} (Project {PROJECT_ID})228**AI Model**: [Use actual model name, e.g., "Claude Sonnet 5 (session default)"]229**Generation Context**: [Brief note about source documents used]230```231232### Example Rendered Header and Revision History233234```markdown235## Document Control236237<!-- DOC-CONTROL-HEADER -->238<!-- Resolved at command-execution time per _partials/RENDERING.md. -->239240## Revision History241242| Version | Date | Author | Changes | Approved By | Approval Date |243|---------|------|--------|---------|-------------|---------------|244| 1.0 | 2025-10-29 | ArcKit AI | Initial creation from `$arckit-sow` command | [PENDING] | [PENDING] |245```24624710. **Summarize what you created**:248249- Key scope items250- Major deliverables251- Suggested timeline252- Next steps (e.g., "Now run `$arckit-evaluate` to create vendor evaluation framework")253254## Example Usage255256User: `$arckit-sow Generate SOW for payment gateway modernization project`257258You should:259260- Find project 001-payment-gateway-modernization261- Read ARC-*-REQ-*.md from that project262- Read architecture principles263- Generate comprehensive SOW:264 - Executive summary with business case265 - Scope: Payment processing, fraud detection, reporting (IN); mobile app (OUT)266 - All requirements from ARC-*-REQ-*.md with IDs267 - Deliverables: HLD, DLD, code, tests, runbooks268 - Timeline: 16 weeks (4 weeks HLD, 4 weeks DLD approval, 8 weeks implementation)269 - Vendor quals: PCI-DSS experience, financial services references270 - Evaluation: 60% technical, 40% cost271 - Contract: Milestone-based payments, 90-day warranty272- **CRITICAL - Token Efficiency**: Use the **Write tool** to create `projects/001-payment-gateway-modernization/ARC-001-SOW-v1.0.md`273 - **DO NOT** output the full document in your response (this exceeds 32K token limit!)274- Show summary only (see Output Instructions below)275276## Important Notes277278- **UK Government procurement**: The [Sourcing Playbook](https://www.gov.uk/government/publications/the-sourcing-and-consultancy-playbooks) expects outcome-based specifications, should-cost modelling, social value weighting (minimum 10%), and SME access. See `docs/guides/codes-of-practice.md` for the full Commercial Playbooks mapping.279- This SOW becomes the legal basis for vendor contracts280- Requirements MUST be complete before generating SOW281- All "MUST" requirements are mandatory; vendors failing to meet them are disqualified282- Include realistic timelines with review gates283- Make acceptance criteria objective and measurable284- Consider adding penalty clauses for SLA violations285- Include provisions for IP ownership and source code escrow286287- **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 emoji288289## Output Instructions290291**CRITICAL - Token Efficiency**:292293### 1. Generate SOW Document294295Create the comprehensive Statement of Work following the template structure.296297Before writing the file, read `.arckit/references/quality-checklist.md` and verify all **Common Checks** plus the **SOW** per-type checks pass. Fix any failures before proceeding.298299### 2. Write Directly to File300301**Use the Write tool** to create `projects/[PROJECT]/ARC-{PROJECT_ID}-SOW-v${VERSION}.md` with the complete SOW.302303**DO NOT** output the full document in your response. This would exceed token limits.304305### 3. Show Summary Only306307After writing the file, show ONLY a concise summary:308309```markdown310## SOW Complete ✅311312**Project**: [Project Name]313**File Created**: `projects/[PROJECT]/ARC-{PROJECT_ID}-SOW-v1.0.md`314315### SOW Summary316317**Scope**:318- In Scope: [List key deliverables in scope]319- Out of Scope: [List explicitly excluded items]320- Assumptions: [Number] key assumptions documented321322**Requirements**:323- Total Requirements: [Number]324 - Business Requirements: [Number]325 - Functional Requirements: [Number]326 - Non-Functional Requirements: [Number]327 - Data Requirements: [Number]328 - Integration Requirements: [Number]329- Compliance: [List: PCI-DSS, GDPR, HIPAA, etc.]330331**Deliverables**:332- Architecture: [e.g., HLD, DLD, ERD]333- Code: [e.g., Source code, unit tests, integration tests]334- Documentation: [e.g., User guides, runbooks, API docs]335- Other: [e.g., Training, data migration]336337**Timeline**:338- Total Duration: [Number] weeks339- Phase 1 (HLD): [Number] weeks340- Phase 2 (DLD): [Number] weeks341- Phase 3 (Implementation): [Number] weeks342- Phase 4 (Testing & UAT): [Number] weeks343344**Vendor Qualifications**:345- Required Experience: [e.g., 5+ years in financial services]346- Required Certifications: [e.g., PCI-DSS, ISO 27001]347- Team Size: Minimum [Number] FTEs348- References: [Number] client references required349350**Evaluation Criteria**:351- Technical Approach: [X]%352- Cost: [X]%353- Experience & References: [X]%354- Timeline & Delivery Plan: [X]%355356**Contract Terms**:357- Payment: [e.g., Milestone-based, monthly]358- Warranty: [e.g., 90 days post-delivery]359- SLA Penalties: [Yes/No]360- IP Ownership: [e.g., Client owns all IP]361362**UK Government Specific** (if applicable):363- Procurement Route: [e.g., Digital Marketplace, G-Cloud 14]364- Social Value Weighting: [X]%365- Security Clearance: [e.g., SC, DV required]366- Open Source Policy: [Compliance noted]367368### What's in the Document369370- Executive Summary (business case and objectives)371- Project Scope (in/out/assumptions/dependencies)372- Complete Requirements (all BR, FR, NFR, DR, INT with IDs)373- Deliverables & Acceptance Criteria374- Project Timeline with Review Gates375- Vendor Qualifications & Experience Requirements376- Proposal Evaluation Criteria with Weightings377- Contract Terms & Conditions378- Technical Environment & Constraints379- Appendices (glossary, references, architecture principles)380381**Total Length**: [X] pages (ready for RFP release)382383### Next Steps384385- Review `ARC-{PROJECT_ID}-SOW-v1.0.md` for full SOW document386- Get legal review of contract terms387- Get procurement/finance approval388- Publish to Digital Marketplace (if UK Gov)389- Run `$arckit-evaluate` to create vendor evaluation framework390```391392**Statistics to Include**:393394- Total requirements395- Number of deliverables396- Timeline duration (weeks)397- Number of vendor qualifications398- Number of evaluation criteria399- Page count400401Generate the SOW now, write to file using Write tool, and show only the summary above.402403## Suggested Next Steps404405After completing this command, consider running:406407- `$arckit-evaluate` -- Create vendor evaluation framework408- `$arckit-dos` -- Generate Digital Marketplace DOS opportunity