# ckorhonen/claude-skills architecture

> Architecture diagram of the GitHub repository ckorhonen/claude-skills, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ckorhonen/claude-skills
- Repository: https://github.com/ckorhonen/claude-skills

## Overview

#### Purpose and Distribution Model
This is a curated, file-based skill pack for Claude Code and Codex rather than an executable application. Each skill packages agent-facing instructions, optional references, templates, scripts, and occasionally tool-specific manifests. Primary consumer entry points are installation through `npx skills add`, or copying a skill directory into an agent’s skills location. Core catalog root: `skills/`, with repository overview in `README.md`.

#### Skill Contract and Catalog Boundary
A skill is independently installable and conventionally centered on a YAML-frontmatter Markdown contract. The canonical instruction entry point is `SKILL.md`; adjacent files are support material rather than globally invoked modules. This enables heterogeneous runtimes and domains without a shared application runtime.
- `skills/README.md`
- `skills/agent-browser/SKILL.md`
- `skills/prompt-factory/SKILL.md`

#### Agent Configuration and Repository Governance
The repository also carries a project-level Claude agent setup: behavior rules, reusable commands, lifecycle hooks, and settings. This is distinct from distributable skills: it governs contributors/agents modifying this repository. Hooks protect dangerous operations and enforce documentation/frontmatter quality at repository boundaries.
- `AGENTS.md`
- `.agents/rules/repo.md`
- `.agents/hooks/validate-frontmatter.sh`

#### Specialized-Agent Layer
Role definitions provide a delegation topology for engineering work—an orchestrator coordinates focused reviewer, debugger, documentation, refactoring, security, and test roles. These are Markdown agent specifications, not runtime services.
- `agents/orchestrator.md`
- `agents/security-auditor.md`
- `agents/code-reviewer.md`

#### Commands and Integration Metadata
Reusable command documents expose contributor workflows such as test creation, PR preparation, simplification, and Conductor installation. Plugin and conductor metadata support host-specific discovery/configuration, while the synchronization script imports updates from a global source.
- `commands/pr-create.md`
- `.claude-plugin/plugin.json`
- `conductor.json`
- `scripts/sync-from-global.sh`

#### Script-Backed Skill Execution
Where a skill performs work rather than supplying guidance, its `SKILL.md` directs an agent to local scripts. These span Python, shell, Node/TypeScript, and occasionally bundled package manifests/locks. Scripts are local adapters and generally establish the boundary to external CLIs or APIs; there is no shared scheduler, database, or server.
- `skills/autoresearch/scripts/run_experiment.py`
- `skills/cloudflare-manager/scripts/workers.ts`
- `skills/imagegen/scripts/image_gen.py`

#### External-Service and Runtime Boundaries
Skills integrate on demand with third-party CLIs/APIs: Claude Code/Codex hosts; GitHub (`gh`); Cloudflare; Google/Gemini; OpenAI image/Codex services; Freshdesk, Poplar, Poke, OpenSea, and Paperclip; plus specialized local tools such as ffmpeg and browser automation. Credentials, network calls, and external state belong at individual skill/script boundaries, not the repository core.
- `skills/babysit-pr/scripts/gh_pr_watch.py`
- `skills/google/SKILL.md`
- `skills/cloudflare-manager/package.json`

Main entry points: [`skills/agent-browser/SKILL.md`](https://github.com/ckorhonen/claude-skills/blob/main/skills/agent-browser/SKILL.md) (Skill contracts), [`.agents/rules/repo.md`](https://github.com/ckorhonen/claude-skills/blob/main/.agents/rules/repo.md) (Repository rules), [`agents/orchestrator.md`](https://github.com/ckorhonen/claude-skills/blob/main/agents/orchestrator.md) (Orchestrator), [`skills/autoresearch/scripts/run_experiment.py`](https://github.com/ckorhonen/claude-skills/blob/main/skills/autoresearch/scripts/run_experiment.py) (Local skill scripts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Distributable Skill Catalog"]
  node_skills_root["Skills catalog<br/>catalog root"]
  node_catalog_readme["Catalog guide<br/>documentation<br/>[README.md]"]
  node_skill_contract["Skill contracts<br/>SKILL.md<br/>[SKILL.md]"]
  node_prompt_factory["Prompt Factory skill<br/>skill contract<br/>[SKILL.md]"]
end

subgraph group_governance["Repository Governance"]
  node_agent_setup["Agent setup<br/>project instructions<br/>[AGENTS.md]"]
  node_repo_rules["Repository rules<br/>agent rules<br/>[repo.md]"]
  node_frontmatter_hook{{"Frontmatter validator<br/>lifecycle hook"}}
end

subgraph group_contributor["Contributor Tooling"]
  node_orchestrator["Orchestrator<br/>agent role<br/>[orchestrator.md]"]
  node_review_roles["Reviewer roles<br/>agent specifications"]
  node_pr_command["PR workflow<br/>command<br/>[pr-create.md]"]
  node_plugin_metadata["Plugin metadata<br/>host discovery config<br/>[plugin.json]"]
  node_conductor_metadata["Conductor metadata<br/>host integration config<br/>[conductor.json]"]
  node_sync_script{{"Global-source sync<br/>synchronization script"}}
end

subgraph group_execution["Script-Backed Skills"]
  node_skill_scripts{{"Local skill scripts<br/>Python, shell, Node/TS adapters<br/>[run_experiment.py]"}}
  node_cloudflare_adapter{{"Cloudflare adapter<br/>TypeScript skill script<br/>[workers.ts]"}}
  node_imagegen_adapter{{"Image generation adapter<br/>Python skill script<br/>[image_gen.py]"}}
  node_github_adapter{{"GitHub PR watcher<br/>Python skill script<br/>[gh_pr_watch.py]"}}
end

subgraph group_external["External Boundaries"]
  node_hosts(("Agent hosts<br/>Claude Code and Codex"))
  node_external_services(("External CLIs and APIs<br/>third-party integrations"))
  node_local_tools(("Specialized local tools<br/>CLI tooling"))
end

node_readme["Repository overview<br/>documentation<br/>[README.md]"]

node_readme -->|"introduces"| node_skills_root
node_skills_root -->|"documents"| node_catalog_readme
node_skills_root -->|"contains"| node_skill_contract
node_skills_root -->|"contains"| node_prompt_factory
node_hosts -->|"installs or copies"| node_skills_root
node_skill_contract -->|"may direct agents to"| node_skill_scripts
node_skill_contract -->|"may invoke"| node_cloudflare_adapter
node_skill_contract -->|"may invoke"| node_imagegen_adapter
node_skill_contract -->|"may invoke"| node_github_adapter
node_cloudflare_adapter -->|"calls"| node_external_services
node_imagegen_adapter -->|"calls"| node_external_services
node_github_adapter -->|"uses gh/API"| node_external_services
node_skill_scripts -.->|"may invoke"| node_local_tools
node_agent_setup -->|"applies"| node_repo_rules
node_repo_rules -->|"enforced by"| node_frontmatter_hook
node_orchestrator -->|"delegates to"| node_review_roles
node_pr_command -.->|"supports contributor workflow"| node_orchestrator
node_plugin_metadata -->|"enables discovery"| node_hosts
node_conductor_metadata -->|"configures integration"| node_hosts
node_sync_script -->|"imports updates into"| node_skills_root

click node_readme "https://github.com/ckorhonen/claude-skills/blob/main/README.md"
click node_catalog_readme "https://github.com/ckorhonen/claude-skills/blob/main/skills/README.md"
click node_skill_contract "https://github.com/ckorhonen/claude-skills/blob/main/skills/agent-browser/SKILL.md"
click node_prompt_factory "https://github.com/ckorhonen/claude-skills/blob/main/skills/prompt-factory/SKILL.md"
click node_agent_setup "https://github.com/ckorhonen/claude-skills/blob/main/AGENTS.md"
click node_repo_rules "https://github.com/ckorhonen/claude-skills/blob/main/.agents/rules/repo.md"
click node_frontmatter_hook "https://github.com/ckorhonen/claude-skills/blob/main/.agents/hooks/validate-frontmatter.sh"
click node_orchestrator "https://github.com/ckorhonen/claude-skills/blob/main/agents/orchestrator.md"
click node_review_roles "https://github.com/ckorhonen/claude-skills/blob/main/agents/security-auditor.md"
click node_pr_command "https://github.com/ckorhonen/claude-skills/blob/main/commands/pr-create.md"
click node_plugin_metadata "https://github.com/ckorhonen/claude-skills/blob/main/.claude-plugin/plugin.json"
click node_conductor_metadata "https://github.com/ckorhonen/claude-skills/blob/main/conductor.json"
click node_sync_script "https://github.com/ckorhonen/claude-skills/blob/main/scripts/sync-from-global.sh"
click node_skill_scripts "https://github.com/ckorhonen/claude-skills/blob/main/skills/autoresearch/scripts/run_experiment.py"
click node_cloudflare_adapter "https://github.com/ckorhonen/claude-skills/blob/main/skills/cloudflare-manager/scripts/workers.ts"
click node_imagegen_adapter "https://github.com/ckorhonen/claude-skills/blob/main/skills/imagegen/scripts/image_gen.py"
click node_github_adapter "https://github.com/ckorhonen/claude-skills/blob/main/skills/babysit-pr/scripts/gh_pr_watch.py"

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_skills_root,node_catalog_readme,node_skill_contract,node_prompt_factory toneBlue
class node_agent_setup,node_repo_rules,node_frontmatter_hook toneAmber
class node_orchestrator,node_review_roles,node_pr_command,node_plugin_metadata,node_conductor_metadata,node_sync_script toneMint
class node_skill_scripts,node_cloudflare_adapter,node_imagegen_adapter,node_github_adapter toneRose
class node_hosts,node_external_services,node_local_tools toneIndigo
class node_readme toneNeutral
```

## Components

### Distributable Skill Catalog

Independently installable agent skill directories.

- **Skills catalog**: catalog root
- [Catalog guide](https://github.com/ckorhonen/claude-skills/blob/main/skills/README.md): documentation · `skills/README.md`
- [Skill contracts](https://github.com/ckorhonen/claude-skills/blob/main/skills/agent-browser/SKILL.md): SKILL.md · YAML-frontmatter instruction entry points for independently installed skills. · `skills/agent-browser/SKILL.md`
- [Prompt Factory skill](https://github.com/ckorhonen/claude-skills/blob/main/skills/prompt-factory/SKILL.md): skill contract · `skills/prompt-factory/SKILL.md`

### Repository Governance

Rules and automation for agents modifying this repository.

- [Agent setup](https://github.com/ckorhonen/claude-skills/blob/main/AGENTS.md): project instructions · `AGENTS.md`
- [Repository rules](https://github.com/ckorhonen/claude-skills/blob/main/.agents/rules/repo.md): agent rules · `.agents/rules/repo.md`
- [Frontmatter validator](https://github.com/ckorhonen/claude-skills/blob/main/.agents/hooks/validate-frontmatter.sh): lifecycle hook · Guards documentation and frontmatter quality at repository boundaries. · `.agents/hooks/validate-frontmatter.sh`

### Contributor Tooling

Delegation roles, commands, and host integration metadata.

- [Orchestrator](https://github.com/ckorhonen/claude-skills/blob/main/agents/orchestrator.md): agent role · Coordinates focused engineering roles. · `agents/orchestrator.md`
- [Reviewer roles](https://github.com/ckorhonen/claude-skills/blob/main/agents/security-auditor.md): agent specifications · Includes security auditing and code review roles. · `agents/security-auditor.md`
- [PR workflow](https://github.com/ckorhonen/claude-skills/blob/main/commands/pr-create.md): command · `commands/pr-create.md`
- [Plugin metadata](https://github.com/ckorhonen/claude-skills/blob/main/.claude-plugin/plugin.json): host discovery config · `.claude-plugin/plugin.json`
- [Conductor metadata](https://github.com/ckorhonen/claude-skills/blob/main/conductor.json): host integration config · `conductor.json`
- [Global-source sync](https://github.com/ckorhonen/claude-skills/blob/main/scripts/sync-from-global.sh): synchronization script · `scripts/sync-from-global.sh`

### Script-Backed Skills

Local adapters invoked by individual skill contracts.

- [Local skill scripts](https://github.com/ckorhonen/claude-skills/blob/main/skills/autoresearch/scripts/run_experiment.py): Python, shell, Node/TS adapters · Per-skill execution adapters with no shared scheduler or server. · `skills/autoresearch/scripts/run_experiment.py`
- [Cloudflare adapter](https://github.com/ckorhonen/claude-skills/blob/main/skills/cloudflare-manager/scripts/workers.ts): TypeScript skill script · `skills/cloudflare-manager/scripts/workers.ts`
- [Image generation adapter](https://github.com/ckorhonen/claude-skills/blob/main/skills/imagegen/scripts/image_gen.py): Python skill script · `skills/imagegen/scripts/image_gen.py`
- [GitHub PR watcher](https://github.com/ckorhonen/claude-skills/blob/main/skills/babysit-pr/scripts/gh_pr_watch.py): Python skill script · `skills/babysit-pr/scripts/gh_pr_watch.py`

### External Boundaries

On-demand hosts, CLIs, APIs, and remote state.

- **Agent hosts**: Claude Code and Codex · Install or load skills as agent-facing instruction packages.
- **External CLIs and APIs**: third-party integrations · GitHub, Cloudflare, Google, OpenAI, and domain-specific services hold credentials and remote state.
- **Specialized local tools**: CLI tooling · Includes ffmpeg and browser automation.

### Other components

- [Repository overview](https://github.com/ckorhonen/claude-skills/blob/main/README.md): documentation · `README.md`

## Connections

- Repository overview → Skills catalog: introduces
- Skills catalog → Catalog guide: documents
- Skills catalog → Skill contracts: contains
- Skills catalog → Prompt Factory skill: contains
- Agent hosts → Skills catalog: installs or copies
- Skill contracts → Local skill scripts: may direct agents to
- Skill contracts → Cloudflare adapter: may invoke
- Skill contracts → Image generation adapter: may invoke
- Skill contracts → GitHub PR watcher: may invoke
- Cloudflare adapter → External CLIs and APIs: calls
- Image generation adapter → External CLIs and APIs: calls
- GitHub PR watcher → External CLIs and APIs: uses gh/API
- Local skill scripts → Specialized local tools: may invoke
- Agent setup → Repository rules: applies
- Repository rules → Frontmatter validator: enforced by
- Orchestrator → Reviewer roles: delegates to
- PR workflow → Orchestrator: supports contributor workflow
- Plugin metadata → Agent hosts: enables discovery
- Conductor metadata → Agent hosts: configures integration
- Global-source sync → Skills catalog: imports updates into
