Architecture Overview
Repository Structure
The .github repository serves as the organization-wide control plane for governance, automation, and standards across all LightSpeedWP projects.
Directory Organization
.github/
├── workflows/ # GitHub Actions workflows
├── ISSUE_TEMPLATE/ # Issue templates
├── PULL_REQUEST_TEMPLATE/
├── SAVED_REPLIES/ # Canned responses
├── instructions/ # Repository-local instructions
└── projects/ # Active and archived projects
agents/ # Portable agent specifications
cookbook/ # Recipes and playbooks
hooks/ # Portable hooks and guardrails
instructions/ # Organization-wide instructions
plugins/ # Installable plugin bundles
skills/ # Self-contained skills
workflows/ # Portable agentic workflows
docs/ # Documentation
Layering
- GitHub Native (
.github/): Issues, PRs, workflows, templates - Portable Assets (top-level folders): Reusable across organization
- Documentation (
docs/): User-facing guides and references
Data Flow
Workflow Execution
GitHub Event (issue, PR, push)
→ GitHub Actions Workflow
→ Agent Processing (validation, labeling, etc.)
→ Policy Enforcement
→ Automated Actions (labels, comments, status)
Issue Lifecycle
Issue Created
→ Auto-labeled by labeler workflow
→ Checked against templates
→ Routed to appropriate team
→ Status tracked and monitored
→ Closed with documentation
Release Workflow
Feature Complete
→ PR Created
→ Automated Checks (tests, linting, security)
→ Code Review
→ Merge to Main
→ Release Workflow Triggered
→ Release Created
→ Announced
Key Components
Workflows (workflows/ and .github/workflows/)
- Labeling Workflow: Applies labels based on content analysis
- Release Workflow: Manages versioning and releases
- Validation Workflow: Checks code quality and standards
- Metrics Workflow: Gathers organization-wide metrics
Instructions (instructions/ and .github/instructions/)
- Coding Standards: Language and framework-specific standards
- Accessibility (A11y): WCAG 2.2 AA compliance
- Community Standards: Code of conduct and contribution guidelines
- Documentation Formats: Markdown, YAML, Mermaid standards
- Pull Requests: PR creation and review standards
- Issues: Issue creation and triage standards
Templates
- Issue Templates: Bug reports, features, documentation, support
- PR Templates: Standard PR structure and checklist
- Discussion Templates: For GitHub Discussions
- Saved Replies: Pre-written responses for common scenarios
Agent Architecture
Agent Types
- Labeling Agent: Applies organization labels
- Release Agent: Manages releases and versioning
- Metrics Agent: Gathers and reports metrics
- Review Agent: Automated code review
- Planning Agent: Task breakdown and estimation
Agent Integration Points
- GitHub API for issue/PR manipulation
- Workflow data for metrics
- Git history for analysis
- External APIs for integrations
Automation Patterns
Event-Driven
- Issue created → labeling workflow
- PR opened → checks workflow
- Push to main → release candidate evaluation
Scheduled
- Daily: Metrics collection
- Weekly: Governance sync
- Monthly: Dependency updates
Manual Triggers
- Release workflows (triggered by PR or tag)
- Manual project sync
- Metrics reports
Security Model
- No secrets stored in repository
- All credentials in GitHub organization secrets
- Encrypted data at rest
- Audit logging for all automation
- Code review required for workflow changes
Scalability Considerations
- Workflows use job matrices for parallel execution
- Caching for dependency management
- Batch processing for large datasets
- Incremental metrics collection
Future Architecture
- Multi-repository webhook coordination
- Cross-organization issue linking
- Advanced analytics and reporting
- ML-based issue classification
- Automated dependency management
Built by 🧱 LightSpeedWP with ☕, 🚀, and open-source spirit!