How saleemmbayed-sketch/saleems-ai-factory works
Purpose and Entry Points
Saleem’s AI Factory is a Markdown-first catalog of domain-specific AI-agent definitions, installable into multiple coding-agent runtimes. Primary user entry points are README.md, scripts/convert.sh, and scripts/install.sh. It is not a hosted application: its product is curated prompt/persona content plus shell/Python tooling that transforms and deploys it.
Canonical Agent Catalog
Each agent is a standalone Markdown specification, organized by business division. These files are the source of truth for identity, workflows, expected deliverables, and operating constraints. Major catalog domains include engineering/, design/, marketing/, security/, and specialized/; e.g., engineering/engineering-ai-engineer.md, security/security-architect.md, and specialized/agents-orchestrator.md. Directory location encodes the division, while filename conventions provide agent identifiers.
Metadata and Selection Model
divisions.json centrally defines division membership and supports division-based installation. tools.json defines supported target tool formats/capabilities. The installer accepts individual agent names or divisions, making these registries the boundary between the source catalog and user-selected deployment. scripts/agents-to-install.example provides a declarative selection input.
Conversion and Installation Pipeline
The normal flow is: canonical agent Markdown → conversion for a target runtime → installation into tool-specific user or project locations. scripts/convert.sh performs batch conversion; scripts/install.sh discovers/selects tools and agents, then installs them. Shared shell behavior is factored into scripts/lib.sh. This pipeline isolates source content from generated runtime representations and permits one catalog to target many consumers.
Runtime Adapters and External Tools
Integration documentation and target-specific conventions live under integrations/, including integrations/claude-code/README.md, integrations/cursor/README.md, and integrations/codex/README.md. Supported external runtimes include Claude Code, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Codex, Aider, Windsurf, Hermes, and others. Hermes has dedicated plugin build/validation logic in scripts/build-hermes-plugin.py and scripts/check-hermes-plugin.py; MCP memory integration includes setup and an augmented agent at integrations/mcp-memory/setup.sh and integrations/mcp-memory/backend-architect-with-memory.md.
Guided Multi-Agent Workflows
The strategy layer turns individual roles into coordinated delivery processes. strategy/nexus-strategy.md and strategy/QUICKSTART.md define the operating model; phased playbooks such as strategy/playbooks/phase-0-discovery.md and strategy/playbooks/phase-3-build.md sequence specialist activation. Scenario runbooks in strategy/runbooks.json and strategy/runbooks/ bind work types—such as startup MVPs or incident response—to those stages. Coordination artifacts in strategy/coordination/ define handoffs and activation prompts.
Content Quality and Repository Governance
Validation is CI-driven GitHub Actions, with workflows such as .github/workflows/lint-agents.yml, .github/workflows/check-divisions.yml, and .github/workflows/check-runbooks.yml. Corresponding scripts—scripts/lint-agents.sh, scripts/check-divisions.sh, and scripts/check-runbooks.sh—enforce catalog consistency, metadata alignment, and workflow integrity before changes merge. Chinese localization is a separate content pipeline under scripts/i18n/, preserving canonical agent definitions while enabling localized names.
Main entry points: engineering-ai-engineer.md Agent Specifications · install.sh Installer · lint-agents.sh Validation Scripts · convert.sh Batch Converter
Components 22
Canonical Catalog
Markdown agent definitions organized by division.
- Agent Specifications · Canonical identities, workflows, deliverables, and constraints.
engineering/engineering-ai-engineer.md - Design Division
design/design-ui-designer.md - Marketing Division
marketing/marketing-content-creator.md - Security Division
security/security-architect.md - Specialized Division
specialized/agents-orchestrator.md - Division Registry · Maps agents to installable divisions.
divisions.json
Conversion & Deployment
Transforms selected agents for coding-agent runtimes.
- Tool Registry · Defines supported target formats and capabilities.
tools.json - Selection Manifest · Declarative agent and division selection.
scripts/agents-to-install.example - Installer · Selects agents and tools, then deploys runtime files.
scripts/install.sh - Batch Converter · Converts canonical Markdown for a target runtime.
scripts/convert.sh - Shared Shell Library
scripts/lib.sh - Runtime Integrations · Target-specific conventions and installation guidance.
integrations/README.md - Hermes Plugin Tooling · Builds and validates the Hermes plugin.
scripts/build-hermes-plugin.py - MCP Memory Adapter · Setup plus a memory-augmented agent.
integrations/mcp-memory/setup.sh
Multi-Agent Strategy
Playbooks and runbooks coordinate specialist roles.
- Nexus Strategy · Defines coordinated multi-agent delivery.
strategy/nexus-strategy.md - Phased Playbooks · Sequence specialist activation through delivery phases.
strategy/playbooks/phase-0-discovery.md - Scenario Runbooks · Maps work scenarios to staged workflows.
strategy/runbooks.json - Coordination Artifacts · Defines handoffs and activation prompts.
strategy/coordination/agent-activation-prompts.md
Quality & Governance
CI validates catalog and strategy consistency.
- Validation CI · Runs consistency checks before merge.
.github/workflows/lint-agents.yml - Validation Scripts · Check agents, divisions, and runbooks.
scripts/lint-agents.sh - Chinese Localization · Localizes names while preserving canonical definitions.
scripts/i18n/README.md
Other components
- Repository Guide · Primary user entry point.
README.md
Connections 26
- Repository Guide → Agent Specifications: introduces
- Agent Specifications → Design Division: includes
- Agent Specifications → Marketing Division: includes
- Agent Specifications → Security Division: includes
- Agent Specifications → Specialized Division: includes
- Division Registry → Agent Specifications: indexes membership
- Selection Manifest → Installer: selects
- Division Registry → Installer: resolves divisions
- Tool Registry → Installer: defines targets
- Installer → Batch Converter: invokes
- Agent Specifications → Batch Converter: canonical input
- Shared Shell Library → Installer: shared behavior
- Shared Shell Library → Batch Converter: shared behavior
- Batch Converter → Runtime Integrations: generates for
- Tool Registry → Runtime Integrations: documents targets
- Hermes Plugin Tooling → Runtime Integrations: builds plugin
- MCP Memory Adapter → Runtime Integrations: extends
- Agent Specifications → Nexus Strategy: provides roles
- Nexus Strategy → Phased Playbooks: defines phases
- Scenario Runbooks → Phased Playbooks: binds scenarios
- Coordination Artifacts → Phased Playbooks: supports handoffs
- Validation CI → Validation Scripts: runs
- Validation Scripts → Agent Specifications: validates catalog
- Validation Scripts → Division Registry: checks alignment
- Validation Scripts → Scenario Runbooks: checks integrity
- Chinese Localization → Agent Specifications: localizes