# ejtx16/claude-code-copilot-cli-agentic-coding-skill architecture

> Architecture diagram of the GitHub repository ejtx16/claude-code-copilot-cli-agentic-coding-skill, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill
- Repository: https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill

## Overview

agent-scaffold is a Claude Code and GitHub Copilot CLI plugin that prepares another repository for safer AI-assisted development. A user invokes the scaffold skill; it inspects the target project, then generates shared and tool-specific guidance, safety hooks, skill guides, and a git-conflict sub-agent. The generated hook configurations dispatch guard, prompt-reminder, and activity-logging scripts. The README documents these product capabilities; the sampled scaffold source is partial, so links for unsampled generation steps are based on that documentation rather than inspected implementation.

Main entry points: [`skills/agent-scaffold/scripts/scaffold.js`](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/scripts/scaffold.js) (Scaffold CLI), [`skills/agent-scaffold/assets/hooks`](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/tree/main/skills/agent-scaffold/assets/hooks) (Hook configurations), [`skills/agent-scaffold/SKILL.md`](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/SKILL.md) (Scaffold skill), [`skills/agent-scaffold/assets/hooks/guard.js`](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/assets/hooks/guard.js) (Command safety guard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Plugin entry"]
  node_plugin["Plugin manifest<br/>[plugin.json]"]
  node_skill["Scaffold skill<br/>[SKILL.md]"]
end

subgraph group_scaffold["Project scaffolding"]
  node_cli["Scaffold CLI<br/>[scaffold.js]"]
  node_templates["Generated-file templates"]
  node_references["Format references"]
end

subgraph group_guidance["Agent guidance"]
  node_generated["Agent configuration"]
  node_skillguides["Frontend/backend guides"]
  node_reconciler["Git reconciler agent<br/>[git-reconciler.md]"]
end

subgraph group_safety["Safety hooks"]
  node_hookconfig["Hook configurations"]
  node_guard["Command safety guard<br/>[guard.js]"]
  node_promptguard["Session reminder<br/>[prompt-guard.js]"]
  node_logger["Activity logger<br/>[activity-logger.js]"]
end

node_user(("Developer"))
node_assistants(("Claude / Copilot"))
node_project[("Target repository")]

node_user -->|"invokes plugin"| node_assistants
node_assistants -->|"runs skill"| node_skill
node_skill -->|"runs scaffold"| node_cli
node_cli -->|"inspects project"| node_project
node_cli -->|"reads templates"| node_templates
node_cli -->|"uses formats"| node_references
node_cli -->|"writes guidance"| node_generated
node_cli -->|"installs hooks"| node_hookconfig
node_cli -.->|"generates guides"| node_skillguides
node_cli -.->|"generates agent"| node_reconciler
node_hookconfig -->|"dispatches tool checks"| node_guard
node_hookconfig -->|"dispatches reminder"| node_promptguard
node_hookconfig -->|"dispatches logging"| node_logger
node_assistants -->|"submits tool actions"| node_guard
node_assistants -->|"starts sessions"| node_promptguard
node_assistants -->|"reports activity"| node_logger

click node_plugin "https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/plugin.json"
click node_skill "https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/SKILL.md"
click node_cli "https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/scripts/scaffold.js"
click node_templates "https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/tree/main/skills/agent-scaffold/assets/templates"
click node_references "https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/tree/main/skills/agent-scaffold/references"
click node_skillguides "https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/assets/templates/frontend-skills.SKILL.md.tpl"
click node_reconciler "https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/agents/git-reconciler.md"
click node_hookconfig "https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/tree/main/skills/agent-scaffold/assets/hooks"
click node_guard "https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/assets/hooks/guard.js"
click node_promptguard "https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/assets/hooks/prompt-guard.js"
click node_logger "https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/assets/hooks/activity-logger.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_plugin,node_skill toneBlue
class node_cli,node_templates,node_references,node_project toneAmber
class node_generated,node_skillguides,node_reconciler toneMint
class node_hookconfig,node_guard,node_promptguard,node_logger toneRose
class node_user,node_assistants toneIndigo
```

## Components

### Plugin entry

- [Plugin manifest](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/plugin.json): `plugin.json`
- [Scaffold skill](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/SKILL.md): `skills/agent-scaffold/SKILL.md`

### Project scaffolding

- [Scaffold CLI](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/scripts/scaffold.js): `skills/agent-scaffold/scripts/scaffold.js`
- [Generated-file templates](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/tree/main/skills/agent-scaffold/assets/templates): `skills/agent-scaffold/assets/templates`
- [Format references](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/tree/main/skills/agent-scaffold/references): `skills/agent-scaffold/references`

### Agent guidance

- **Agent configuration**
- [Frontend/backend guides](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/assets/templates/frontend-skills.SKILL.md.tpl): `skills/agent-scaffold/assets/templates/frontend-skills.SKILL.md.tpl`
- [Git reconciler agent](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/agents/git-reconciler.md): `agents/git-reconciler.md`

### Safety hooks

- [Hook configurations](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/tree/main/skills/agent-scaffold/assets/hooks): `skills/agent-scaffold/assets/hooks`
- [Command safety guard](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/assets/hooks/guard.js): `skills/agent-scaffold/assets/hooks/guard.js`
- [Session reminder](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/assets/hooks/prompt-guard.js): `skills/agent-scaffold/assets/hooks/prompt-guard.js`
- [Activity logger](https://github.com/ejtx16/claude-code-copilot-cli-agentic-coding-skill/blob/main/skills/agent-scaffold/assets/hooks/activity-logger.js): `skills/agent-scaffold/assets/hooks/activity-logger.js`

### Other components

- **Developer**
- **Claude / Copilot**
- **Target repository**

## Connections

- Developer → Claude / Copilot: invokes plugin
- Claude / Copilot → Scaffold skill: runs skill
- Scaffold skill → Scaffold CLI: runs scaffold
- Scaffold CLI → Target repository: inspects project
- Scaffold CLI → Generated-file templates: reads templates
- Scaffold CLI → Format references: uses formats
- Scaffold CLI → Agent configuration: writes guidance
- Scaffold CLI → Hook configurations: installs hooks
- Scaffold CLI → Frontend/backend guides: generates guides
- Scaffold CLI → Git reconciler agent: generates agent
- Hook configurations → Command safety guard: dispatches tool checks
- Hook configurations → Session reminder: dispatches reminder
- Hook configurations → Activity logger: dispatches logging
- Claude / Copilot → Command safety guard: submits tool actions
- Claude / Copilot → Session reminder: starts sessions
- Claude / Copilot → Activity logger: reports activity
