Arckit application inventory

From tractorjuice/arckit-codex · View interactive version

Arckit application inventory is an AI agent skill from the GitHub repository tractorjuice/arckit-codex. Catalog existing applications with strategic fit scoring, dependencies, and lifecycle status

How to use this skill

Skill file

You are helping an enterprise architect create an Application Inventory — a comprehensive portfolio catalog that maps all existing applications, their strategic fit, dependencies, technology landscape, and lifecycle status. This is the foundation for TOGAF Phase C (Information Systems Architectures — Application Architecture) decisions and application rationalisation.

User Input

$ARGUMENTS

Prerequisites: Read Foundational Artifacts

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.

MANDATORY (warn if missing):

RECOMMENDED (read if available, note if missing):

Prerequisites 1b: Read external documents and policies

Instructions

1. Identify or Create Project

Identify the target project from the hook context. If the user specifies a project that doesn't exist yet, create a new project:

  1. Use Glob to list projects/*/ directories and find the highest NNN-* number (or start at 001 if none exist)
  2. Calculate the next number (zero-padded to 3 digits, e.g., 002)
  3. Slugify the project name (lowercase, replace non-alphanumeric with hyphens, trim)
  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 automatically
  5. Also create projects/{NNN}-{slug}/external/README.md with a note to place external reference documents here
  6. Set PROJECT_ID = the 3-digit number, PROJECT_PATH = the new directory path

2. Read Template

Read the template (with user override support):

Tip: Users can customise templates with $arckit-customize application-inventory

3. Clarify Scope with User

Unless the arguments or the project context already settle it, ask the user about the scope of this assessment.

Gathering rules — the one-message interview in .arckit/references/interview-pattern.md:

Question 1 — header: Coverage, multiSelect: false

"What is the scope of this application inventory?"

4. Gather Application Data

Collect application information from all available sources:

5. Load Mermaid Syntax References

Read the following Mermaid syntax references for diagrams:

6. Generate Application Inventory

Create the Application Inventory document following the template structure.

Application Register

For each application, determine and document:

| Strategic Fit Rating | Criteria | Action |

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

| Strategic | Core to business strategy, competitive differentiator, high business value | Invest & Grow |

| Critical | Essential for operations but not a differentiator, commodity functionality | Maintain & Optimise |

| Support | Supplementary functionality, low business value relative to cost | Rationalise |

| Replace | High technical debt, poor alignment with strategy, better alternatives exist | Plan Replacement |

Strategic Fit Matrix

Generate a Mermaid quadrant chart plotting applications on:

Quadrants:

  1. Keep & Invest (Low Debt, High Value) — Strategic apps
  2. Modernize (High Debt, High Value) — Critical apps needing refactoring
  3. Retire (High Debt, Low Value) — Replace candidates
  4. Monitor (Low Debt, Low Value) — Support apps to watch
Technology Landscape Heatmap

Generate a Mermaid pie chart showing technology distribution across the portfolio:

Also include a technology diversity analysis:

Application Dependencies

Generate a Mermaid flowchart showing:

Application-to-Capability Mapping

Map each application to the business capabilities it supports:

Application Lifecycle

For each application, document:

Risk Register

Identify application-level risks:

Traceability

7. UK Government Specifics

If the user indicates this is a UK Government project, include:

8. MOD Specifics

If this is a Ministry of Defence project, include:

9. Quality Gate

Before writing the file, read .arckit/references/quality-checklist.md and verify all Common Checks plus the APP per-type checks pass. Fix any failures before proceeding.

Additional quality checks for Application Inventory:

  1. Register Completeness: Application register must contain ≥3 applications with complete data (ID, name, category, owner, technology, lifecycle, status, strategic fit)
  2. Strategic Fit Scoring: Every application in the register must have a strategic fit rating assigned (Strategic/Critical/Support/Replace)
  3. Dependency Diagram: At least one Mermaid flowchart showing inter-application dependencies
  4. Capability Mapping: Every application must be mapped to at least one business capability
  5. Lifecycle Data: Every application must have lifecycle phase and status documented

10. Write the Output

IMPORTANT: The Application Inventory document will be a substantial document. You MUST use the Write tool to create the file, NOT output the full content in chat.

Create the file at:

projects/{P}/ARC-{P}-APP-v{VERSION}.md

Use the Write tool with the complete content following the template structure.

Auto-Populate Document Information Fields

Before completing the document, populate document information fields:

User-provided fields
Revision History
| 1.0 | {DATE} | ArcKit AI | Initial creation from `$arckit-application-inventory` command |
Generation Metadata Footer
**Generated by**: ArcKit `$arckit-application-inventory` command
**Generated on**: {DATE}
**ArcKit Version**: {ARCKIT_VERSION}
**Project**: {PROJECT_NAME} (Project {PROJECT_ID})
**AI Model**: [Actual model name]

11. Show Summary to User

After writing the file, show a concise summary (NOT the full document):

## Application Inventory Complete

**Document**: `projects/{P}/ARC-{P}-APP-v{VERSION}.md`
**Document ID**: ARC-{P}-APP-v{VERSION}

### Inventory Scope
- **Scope**: [All applications / Business Unit / Project-specific]
- **Applications catalogued**: [N]

### Strategic Fit Summary
| Rating | Count | Examples |
|--------|-------|----------|
| Strategic | [N] | [App names] |
| Critical | [N] | [App names] |
| Support | [N] | [App names] |
| Replace | [N] | [App names] |

### Technology Landscape
- **Cloud-Native**: [N]% of portfolio
- **Containerised**: [N]% of portfolio
- **Virtualised**: [N]% of portfolio
- **Physical**: [N]% of portfolio
- **Technology diversity**: [N] unique runtimes, [N] platforms

### Dependency Analysis
- **Applications with dependencies mapped**: [N]
- **Shared services identified**: [N]
- **Critical dependencies**: [N] (single points of failure)

### Capability Coverage
- **Capabilities covered**: [N] out of [N] (from BPCM)
- **Full coverage**: [N] capabilities
- **Partial coverage**: [N] capabilities
- **Gaps (no system)**: [N] capabilities
- **Overlaps**: [N] capabilities covered by multiple apps

### Lifecycle
- **Active**: [N] applications
- **Deprecated**: [N] applications
- **Planned**: [N] applications
- **Applications approaching EOL**: [N]

### Risk Summary
- **High risks**: [N]
- **Medium risks**: [N]
- **Low risks**: [N]

### Synthesised From
- ✅ Architecture Vision: ARC-{P}-ADMP-v[N].md
- [✅/⚠️] Business Capability Map: ARC-{P}-BPCM-v[N].md
- [✅/⚠️] Requirements: ARC-{P}-REQ-v[N].md
- [✅/⚠️] Architecture Principles: ARC-000-PRIN-v[N].md

### Next Steps
1. Review Application Inventory with technology board / architecture review panel
2. Run `$arckit-application-rationalization` to decide keep/merge/replace/retire
3. Run `$arckit-gap-analysis` to identify capability coverage gaps

### Traceability
- [N] applications mapped to [N] capabilities
- [N] dependencies documented
- [N] risks identified
- [N] lifecycle actions required

**File location**: `projects/{P}/ARC-{P}-APP-v{VERSION}.md`

Important Notes

  1. Strategic Fit is Subjective: The strategic fit rating requires business context. Always ground ratings in the Architecture Vision (ADMP) and stakeholder input. When uncertain, flag applications for architectural review.
  1. Dependencies Drive Risk: Application dependencies are critical risk factors. Document upstream/downstream relationships, protocol-level dependencies (API, database, file share), and data flow dependencies.
  1. Lifecycle Drives Investment: Application EOL dates directly impact investment planning. Flag any applications where the underlying technology reaches EOL within 18 months of the assessment date.
  1. Mandatory Prerequisites: ADMP is required as the application inventory must be scoped by the architecture vision. BPCM, REQ, and PRIN are recommended for full context.
  1. Version Management: If an Application Inventory already exists (ARC-*-APP-v*.md), create a new version (v2.0) rather than overwriting. Track portfolio evolution across ADM cycles.
  1. Integration with Other Commands:
  1. TOGAF Alignment: This document maps to TOGAF Phase C (Information Systems Architectures — Application Architecture) outputs: the Application Portfolio catalog, Interface catalog and baseline Application Architecture. Its technology-stack and vendor columns are inputs to Phase D (Technology Architecture), not Phase D outputs.
  1. 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.

Suggested Next Steps

After completing this command, consider running:

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.