Arckit customize

From tractorjuice/arckit-codex · View interactive version

Arckit customize is an AI agent skill from the GitHub repository tractorjuice/arckit-codex. Copy plugin templates to project for customization

How to use this skill

Skill file

You are helping a user customize ArcKit document templates for their project or organization.

User Input

$ARGUMENTS

Overview

ArcKit uses document templates to generate consistent architecture artifacts. Users can customize these templates by copying them to .arckit/templates-custom/. When a template exists in the custom directory, it takes precedence over the default template.

Template locations:

Scope. .arckit resolves to the core arckit plugin. Community overlays (arckit-uae, arckit-ca, arckit-uk-nhs, arckit-repo and the rest) are separate plugins installed beside it, and only the overlays the user has installed are on disk. Both halves are reachable, and where overlays are installed they are the larger half of the catalogue:

Whichever scope an action has, say which one you used. Never present a core-only result as the complete inventory.

Instructions

1. **Parse User Request**

The user may request:

2. **List Available Templates**

Glob both template trees, then strip the -template.md/.html suffix from each filename to get the short name:

  1. Core: .arckit/templates/*-template.md and .arckit/templates/*-template.html
  2. Overlays: installed overlays sit beside the core, and where depends on how the core was loaded. Glob all three and ignore any that match nothing:

For an overlay hit, the owning plugin is the name in the .claude-plugin/plugin.json beside that templates/ folder. The same template can match more than one glob (a cached older version, or the source repo's mirror): list it once, from the highest version.

State the totals first, in these words or close to them:

NN templates available: NN in the core arckit plugin, NN across NN community overlay plugins.

Then display the core templates as a table:

| Template | Command | Description |

|----------|---------|-------------|

| adr | $arckit-adr | Architecture Decision Records (MADR v4.0) |

| analysis-report | $arckit-analyze | Governance quality analysis report |

| architecture-diagram | $arckit-diagram | Mermaid architecture diagrams |

| architecture-principles | $arckit-principles | Enterprise architecture principles |

| architecture-strategy | $arckit-strategy | Executive-level strategy document |

| aws-research | $arckit-aws-research | AWS service research findings |

| azure-research | $arckit-azure-research | Azure service research findings |

| backlog | $arckit-backlog | Product backlog with user stories |

| competitors | $arckit-competitors | Competitor landscape and market share |

| conformance-assessment | $arckit-conformance | Architecture conformance assessment |

| data-mesh-contract | $arckit-data-mesh-contract | Data product contracts |

| data-model | $arckit-data-model | Data model with GDPR compliance |

| data-source-profile | $arckit-datascout | Per-source data profile (multi-instance) |

| datascout | $arckit-datascout | External data source discovery |

| devops | $arckit-devops | DevOps strategy and CI/CD |

| dfd | $arckit-dfd | Yourdon-DeMarco data flow diagrams |

| dld-review | $arckit-dld-review | Detailed design review |

| dos-requirements | $arckit-dos | Digital Outcomes & Specialists |

| dpia | $arckit-dpia | Data Protection Impact Assessment |

| evaluation-criteria | $arckit-evaluate | Vendor evaluation framework |

| finops | $arckit-finops | FinOps cloud cost management |

| framework-overview | $arckit-framework | Framework overview and executive guide |

| gcloud-clarify | $arckit-gcloud-clarify | G-Cloud clarification questions |

| gcloud-requirements | $arckit-gcloud-search | G-Cloud service requirements |

| gcp-research | $arckit-gcp-research | Google Cloud service research findings |

| glossary | $arckit-glossary | Consolidated project glossary |

| gov-code-search | $arckit-gov-code-search | UK government code search report |

| gov-landscape | $arckit-gov-landscape | UK government domain landscape |

| gov-reuse | $arckit-gov-reuse | Government code reuse assessment |

| grants | $arckit-grants | UK grants and funding research |

| hld-review | $arckit-hld-review | High-level design review |

| jsp-936 | $arckit-jsp-936 | MOD AI assurance (JSP 936) |

| maturity-model | $arckit-maturity-model | Capability maturity model |

| mlops | $arckit-mlops | MLOps strategy |

| mod-secure-by-design | $arckit-mod-secure | MOD Secure by Design |

| operationalize | $arckit-operationalize | Operational readiness pack |

| pages | $arckit-pages | GitHub Pages site (HTML/CSS/JS) |

| platform-design | $arckit-platform-design | Platform Design Toolkit |

| presentation | $arckit-presentation | MARP governance board slides |

| principles-compliance-assessment | $arckit-principles-compliance | Principles compliance scorecard |

| project-plan | $arckit-plan | Project plan with timeline |

| requirements | $arckit-requirements | Business & technical requirements |

| research-findings | $arckit-research | Technology research findings |

| risk-register | $arckit-risk | Risk register (Orange Book) |

| roadmap | $arckit-roadmap | Architecture roadmap |

| service-assessment-prep | $arckit-service-assessment | GDS Service Standard prep |

| servicenow-design | $arckit-servicenow | ServiceNow service design |

| sobc | $arckit-sobc | Strategic Outline Business Case |

| sow | $arckit-sow | Statement of Work / RFP |

| stakeholder-drivers | $arckit-stakeholders | Stakeholder analysis |

| story | $arckit-story | Project story with timeline |

| tcop-review | $arckit-tcop | Technology Code of Practice |

| tech-note | $arckit-research | Per-candidate technical note (multi-instance) |

| tenders | $arckit-tenders | Procurement market intelligence |

| traceability-matrix | $arckit-traceability | Requirements traceability |

| uk-gov-ai-playbook | $arckit-ai-playbook | AI Playbook compliance |

| uk-gov-atrs | $arckit-atrs | Algorithmic Transparency Record |

| ukgov-secure-by-design | $arckit-secure | UK Gov Secure by Design |

| vendor-profile | $arckit-research | Per-vendor profile (multi-instance) |

| vendor-scoring | $arckit-evaluate | Vendor scoring matrix |

| wardley-climate | $arckit-wardley-climate | Wardley climatic patterns assessment |

| wardley-doctrine | $arckit-wardley-doctrine | Wardley doctrine maturity assessment |

| wardley-gameplay | $arckit-wardley-gameplay | Wardley gameplay analysis |

| wardley-map | $arckit-wardley | Wardley Map documentation |

| wardley-value-chain | $arckit-wardley-value-chain | Wardley value chain decomposition |

Then list the overlay templates, grouped by owning plugin, ordered by descending count. Render these from the glob results, not from a hardcoded list, so a newly added overlay appears without this file changing:

| Plugin | Templates |

|--------|-----------|

| arckit-uae | uae-ai-charter, uae-classification, ... |

Close with the line that makes the two halves actionable:

Copy any of these by name, for example $arckit-customize uae-ai-charter. $arckit-customize all copies the core set only.

If the user asked to list a single plugin's templates (e.g. "list arckit-repo"), show only that group.

3. **Copy Template(s)**

Copy specific template:

  1. Map the user's short name to the full filename (e.g., "requirements" → requirements-template.md, "pages" → pages-template.html)
  2. Use the Read tool to read the source template from .arckit/templates/{name}-template.{ext}
  3. Update the origin banner: Before writing, change the Template Origin line from Official to Custom and add a Based On reference:
  1. Use the Write tool to save it to .arckit/templates-custom/{name}-template.{ext} (the directory will be created automatically)
  2. If the source template does not exist, do not stop at "not found". Glob .arckit/../../arckit-*/*/templates/{name}-template.*, .arckit/../**/templates/{name}-template.* and .arckit/plugins/**/templates/{name}-template.* before answering: if one matches, the template ships in an overlay plugin, so follow "Copy an overlay template" below. Only if both globs come back empty, tell the user it does not exist and suggest $arckit-customize list.

Copy all templates:

  1. Use Glob to find all .arckit/templates/*-template.md and .arckit/templates/*-template.html files
  2. For each template found, use Read to load it, update the origin banner (change Template Origin: Official to Template Origin: Custom | Based On: $arckit-{command}), and Write to save it to .arckit/templates-custom/
  3. Report the scope, not just the count. "all" here means all core templates. Say so explicitly, and say that overlay templates were not included:

> Copied NN core arckit templates. Community overlay plugins ship their own templates, which all does not cover.

Reporting "copied all templates" after a core-only pass is a wrong answer, not a terse one.

Copy an overlay template:

Templates belonging to a community overlay plugin are not in the core templates/ glob. Copy one from the installed overlay exactly as you would a core template:

  1. Locate {name}-template.*: glob .arckit/../../arckit-*/*/templates/ (marketplace install), then .arckit/../**/templates/ (a repo checkout, leaving out the core's own), then .arckit/plugins/**/templates/ (the source repo's mirror)
  2. Read it, update the origin banner as under "Copy specific template" above, and Write it to .arckit/templates-custom/{name}-template.{ext}
  3. Tell the user which overlay it came from. If no glob matches, the overlay that owns the template is not installed: say which plugin to install (/plugin install arckit-<overlay>@arckit-claude) instead of reporting that the template does not exist

4. **Show Template Info**

If user asks about a specific template (e.g., "info requirements"), read and summarize:

5. **Provide Customization Guidance**

After copying, explain:

## Template Customization Guide

Your template has been copied to `.arckit/templates-custom/`. You can now customize it.

### How It Works

When you run an ArcKit command (e.g., `$arckit-requirements`):

1. Command checks: Does `.arckit/templates-custom/requirements-template.md` exist?
2. **If YES** → Uses YOUR customized template
3. **If NO** → Uses default from `.arckit/templates/`

### Common Customizations

**Remove UK Government sections** (for non-UK Gov projects):
- Delete "UK Government Alignment" sections
- Remove TCoP, GDS Service Standard references
- Change classification from "OFFICIAL-SENSITIVE" to your scheme

**Change Document Control fields**:
- Add organization-specific fields (Cost Centre, Programme, etc.)
- Remove fields not relevant to your organization
- Change review cycle defaults

**Modify requirement prefixes**:
- Change BR/FR/NFR to your organization's taxonomy
- Update priority levels (MUST/SHOULD/MAY → P1/P2/P3)

**Add organization branding**:
- Add logo placeholder
- Include standard headers/footers
- Add disclaimer text

**Customize the Pages template** (`pages-template.html`):
- Replace GOV.UK Design System CSS with neutral or organization-specific styling
- Change the color palette (header, sidebar, accent colors)
- Remove or rename UK-specific guide categories (e.g., "UK Government" section)
- Adjust the governance dashboard checklist items to match your framework
- Add organization logo or branding to the header
- Modify the footer text and links

### Keeping Templates Updated

When ArcKit CLI updates with new template features:
- Default templates in `.arckit/templates/` are refreshed by `arckit init`
- Your customizations in `.arckit/templates-custom/` are **preserved**
- Compare your templates with defaults periodically to adopt new features

To see the current default template, use the Read tool on `.arckit/templates/{name}-template.md`.

To compare your customization with the default, read both files and compare the content.

### Reverting to Default

To stop using a custom template and revert to default, delete `.arckit/templates-custom/{name}-template.md`.

Output Summary

After completing the request, show:

## Template Customization Complete ✅

**Action**: [Listed templates / Copied X template(s)]

**Scope**: [Core + overlays ([N] templates) for `list` and copy-by-name / Core `arckit` plugin only ([N] templates) for `all`]

**Location**: `.arckit/templates-custom/`

**Files**:
- [List of files copied or available]

**Next Steps**:
1. Edit the template(s) in `.arckit/templates-custom/`
2. Run the corresponding `$arckit-*` command
3. Your customized template will be used automatically

**Tip**: Read both the default and your custom template to compare differences.

Example Usage

List all templates:

$arckit-customize list

Copy requirements template:

$arckit-customize requirements

Copy multiple templates:

$arckit-customize requirements risk adr

Copy all templates:

$arckit-customize all

Get info about a template:

$arckit-customize info requirements
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.