Arckit glossary

From tractorjuice/arckit-codex · View interactive version

Arckit glossary is an AI agent skill from the GitHub repository tractorjuice/arckit-codex. Generate a consolidated project glossary of terms, acronyms, and definitions from existing artifacts

How to use this skill

Skill file

You are helping an enterprise architect create a Project Glossary document. This document extracts and consolidates all terminology, acronyms, abbreviations, and definitions from existing project artifacts into a single authoritative reference.

User Input

$ARGUMENTS

Prerequisites: Read 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.

RECOMMENDED (read if available, note if missing):

OPTIONAL (read if available, skip silently 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 Glossary Template

Load the glossary template structure:

Read the template (with user override support):

Tip: Users can customize templates with $arckit-customize glossary

3. Extract Terms from Artifacts

Systematically scan all available artifacts and extract:

For each term, record:

  1. Term — The word, phrase, or acronym
  2. Definition — Clear, concise definition (inferred from artifact context)
  3. Source — Which artifact(s) the term appears in (by Document ID)
  4. Category — One of: Business, Technical, Governance, Financial, Data, Security, or domain-specific

4. Generate Glossary

Populate the template with extracted terms, organized alphabetically within categories. Each entry should:

Include a separate Acronyms table for quick reference.

5. Auto-Populate Document Control

Generate Document ID: ARC-{PROJECT_ID}-GLOS-v{VERSION} (for filename: ARC-{PROJECT_ID}-GLOS-v{VERSION}.md)

6. Quality Check

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

7. Write the Glossary File

IMPORTANT: The glossary document can be a large document depending on the number of artifacts scanned. You MUST use the Write tool to create the file, NOT output the full content in chat.

Create the file at:

projects/{project-dir}/ARC-{PROJECT_ID}-GLOS-v{VERSION}.md

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

8. Show Summary to User

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

## Project Glossary Created

**Document**: `projects/{project-dir}/ARC-{PROJECT_ID}-GLOS-v{VERSION}.md`
**Document ID**: ARC-{PROJECT_ID}-GLOS-v{VERSION}

### Glossary Overview
- **Total Terms Defined**: [N]
- **Acronyms Catalogued**: [N]
- **Standards Referenced**: [N]
- **Source Artifacts Scanned**: [N]

### Terms by Category
- **Business**: [N] terms
- **Technical**: [N] terms
- **Governance**: [N] terms
- **Financial**: [N] terms
- **Data**: [N] terms
- **Security**: [N] terms

### Source Artifacts
- [List each artifact scanned with Document ID]

### Coverage Gaps
- [Note any missing artifacts that would add terminology]
- [Note any terms with ambiguous or missing definitions]
- [Note any inconsistencies found across artifacts]

### Next Steps
1. Review glossary with domain experts for accuracy
2. Validate acronym expansions with stakeholders
3. Add missing definitions for flagged terms
4. Review data model terminology: `$arckit-data-model`

**File location**: `projects/{project-dir}/ARC-{PROJECT_ID}-GLOS-v{VERSION}.md`

CRITICAL - Auto-Populate Document Information Fields:

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

Construct Document ID:

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):

Populate Revision History:

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

Populate Generation Metadata Footer:

The footer should be populated with:

**Generated by**: ArcKit `$arckit-glossary` 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]

Output Instructions

CRITICAL - Token Efficiency:

Important Notes

  1. Extraction, Not Invention: This command extracts and consolidates terminology from existing artifacts. It should NOT invent new terms or definitions not grounded in the project artifacts. If a definition must be inferred, note it as "Inferred from context".
  1. Use Write Tool: The glossary document can be large depending on the number of artifacts. ALWAYS use the Write tool to create it. Never output the full content in chat.
  1. Consistency Checking: If the same term is defined differently across artifacts, flag the inconsistency and use the most authoritative source (typically the artifact that introduced the term).
  1. Alphabetical Organization: Terms within each category must be sorted alphabetically for easy lookup.
  1. Cross-References: Where terms are related (e.g., "SRO" relates to "Senior Responsible Owner"), include cross-references to help readers navigate.
  1. Living Document: The glossary should be updated when new artifacts are created. Note this in the document's maintenance section.
  1. Integration with Other Commands:
  1. Version Management: If a glossary already exists (ARC--GLOS-v.md), write the next version beside it rather than overwriting it, as .arckit/references/version-detection.md describes: terms added or corrected is a minor increment, a restructured glossary a major one. Glossaries should be versioned to track terminology evolution.
  1. Scope: If the user specifies "all projects", scan artifacts across all project directories and create a consolidated glossary in projects/000-global/.

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.