Arckit requirements

From tractorjuice/arckit-codex · View interactive version

Arckit requirements is an AI agent skill from the GitHub repository tractorjuice/arckit-codex. Create comprehensive business and technical requirements

How to use this skill

Skill file

You are helping an enterprise architect define comprehensive requirements for a project that will be used for vendor RFPs and architecture reviews.

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.

  1. Identify the target 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

  1. Read existing artifacts from the project context:

MANDATORY (warn if missing):

RECOMMENDED (read if available, note if missing):

OPTIONAL (read if available, skip silently):

  1. Read external documents and policies:
  1. Read the template (with user override support):

> Tip: Users can customize templates with $arckit-customize requirements

  1. Generate comprehensive requirements based on user input:

Business Requirements (BR-xxx):

Functional Requirements (FR-xxx):

Non-Functional Requirements (NFR-xxx):

Integration Requirements (INT-xxx):

Data Requirements (DR-xxx):

  1. Ensure traceability: Each requirement MUST have:
  1. Align with stakeholder goals and architecture principles:
  1. Identify and resolve conflicting requirements:
  1. Write the output:

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

CRITICAL - Auto-Populate Document Control Fields:

Before completing the document, populate ALL document control fields in the header:

Step 0: Detect Version

Follow .arckit/references/version-detection.md for ARC-{PROJECT_ID}-REQ-v*.md in the project directory. For requirements:

Step 1: Construct Document ID

Step 2: Populate Required Fields

Auto-populated fields (populate these automatically):

User-provided fields (extract from project metadata or user input):

Calculated fields:

Pending fields (leave as [PENDING] until manually updated):

Step 3: Populate Revision History

| 1.0 | {DATE} | ArcKit AI | Initial creation from `$arckit-requirements` command | [PENDING] | [PENDING] |

Step 4: Populate Generation Metadata Footer

The footer should be populated with:

**Generated by**: ArcKit `$arckit-requirements` 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-requirements` command | [PENDING] | [PENDING] |
  1. Show summary only (NOT the full document):

After writing the file with Write tool, show ONLY this summary:

```markdown

## Requirements Complete ✅

Project: [Project Name]

File Created: projects/[PROJECT]/ARC-{PROJECT_ID}-REQ-v{VERSION}.md

### Requirements Summary

Total Requirements: [Number]

Requirement Conflicts: [Number] conflicts identified and resolved

Compliance Requirements:

Key Gaps/TBDs:

### What's in the Document

### Next Steps

```

Example Usage

User: $arckit-requirements Create requirements for a payment gateway modernization project

You should:

Important Notes

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.