| name | issue-management-agent-readme |
|---|---|
| description | Issue Management Agent Phase 2 infrastructure and roadmap |
The Issue Management Agent is a comprehensive automation system for orchestrating GitHub issue workflows across the LightSpeedWP organization. This system provides intelligent issue creation, validation, labeling, and lifecycle management capabilities.
Current Phase: Phase 2 — Infrastructure & Skill Implementation Status: 🚀 In Progress (Aug 20 Kickoff) Timeline: Aug 13–Sep 2, 2026 (3 weeks) Related: GitHub Project, GitHub Issues
The Phase 2 implementation consists of 7 skill modules that handle different aspects of issue management:
| # | Skill | Purpose | Status | Issue |
|---|---|---|---|---|
| 1 | issue-creation | Create new GitHub issues with validation | 🟡 Queued | #1786 |
| 2 | issue-validation | Validate issue fields against schema | 🟡 Queued | #1787 |
| 3 | label-orchestration | Smart label assignment based on context | 🟡 Queued | #1788 |
| 4 | milestone-mapping | Map issues to milestones automatically | 🟡 Queued | #1789 |
| 5 | assignee-routing | Route issues to appropriate team members | 🟡 Queued | #1790 |
| 6 | status-tracking | Update and track issue lifecycle | 🟡 Queued | #1791 |
| 7 | integration-orchestrator | Coordinate all skills in unified workflow | 🟡 Queued | #1792 |
Phase 2 infrastructure provides shared foundations for all 7 skills:
scripts/automation/issue-agent/shared/
├── github-client.js (4.2 KB, 50+ tests)
│ ├── Authenticated GitHub API client
│ ├── Retry logic with exponential backoff
│ ├── Rate limit handling
│ └── Request caching
├── utils.js (6.2 KB, 65+ tests)
│ ├── Template loader
│ ├── Label loader with caching
│ ├── Markdown formatter
│ └── Validators & parsers
└── __tests__/
├── fixtures/ (20.1 KB)
│ ├── issues.json (2.8 KB, 15+ realistic issues)
│ ├── labels.json (4.1 KB, 50+ canonical labels)
│ └── milestones.json (3.2 KB, 10+ milestones)
├── mocks/
│ └── github-api.js (5.6 KB, API mock helpers)
├── fixtures/README.md (4.2 KB, usage guide)
├── github-client.test.js (50+ unit tests)
├── utils.test.js (65+ unit tests)
└── integration.test.js (placeholder)
Total Infrastructure: 30.5 KB, 115+ tests, 90%+ coverage
config/
├── jest.config.js Jest configuration (Node environment)
├── vitest.config.js Vitest configuration (ES modules)
├── jest-setup.js Jest test initialization
└── vitest-setup.js Vitest test initialization
- Node.js: ≥18.0.0
- npm: ≥9.0.0
- GitHub Token: Set
GITHUB_TOKENenvironment variable for API access
# Install dependencies (from repo root)
npm install
# Verify Jest/Vitest are installed
npm list jest vitestAll test commands assume you're in the repository root.
# Run issue-agent tests with Vitest (recommended)
npm run test:issue-agent
# Run all unit tests with verbose output
npm run test:unit
# Run with coverage report
npm run test:coverage
# Run in watch mode (for development)
npm run test:watch
# Run all project tests (Jest + Vitest)
npm run testThe shared/ directory contains reusable code for all 7 skills:
shared/
├── github-client.js API wrapper for authenticated GitHub requests
├── utils.js Utilities for templates, labels, formatting
└── __tests__/ Unit tests, fixtures, and mocks for shared modules
Each skill will be a standalone module in skills/:
skills/
├── 01-issue-creation/ Skill 1: Create issues
├── 02-issue-validation/ Skill 2: Validate issues
├── 03-label-orchestration/ Skill 3: Assign labels
├── 04-milestone-mapping/ Skill 4: Map milestones
├── 05-assignee-routing/ Skill 5: Route assignees
├── 06-status-tracking/ Skill 6: Track status
└── 07-integration-orchestrator/ Skill 7: Coordinate all
Each skill module follows this structure:
skill-name/
├── index.js Implementation
├── __tests__/
│ ├── unit/ Unit tests
│ ├── integration/ Integration tests
│ └── fixtures.js Shared test data
├── validator.js Input validation
└── README.md Skill documentation
- Days 1–2: Skills 1 & 2 (issue creation & validation)
- Days 3–4: Skills 3 & 4 (labeling & milestone mapping)
- Day 5: Week 1 Integration testing
- Days 1–2: Skills 5 & 6 (assignee routing & status tracking)
- Days 3–4: Skill 7 (integration orchestrator)
- Day 5: Phase 2 completion testing, documentation, PR submission
- Unit Tests: 90%+ coverage on all shared modules and skills
- Integration Tests: End-to-end workflow validation
- Documentation: Inline comments + skill READMEs + usage guides
All skills should import shared modules for consistency:
// Template & label loading
const { loadTemplates, loadCanonicalLabels } = require('../shared/utils');
const templates = await loadTemplates();
const labels = await loadCanonicalLabels();
// GitHub API client
const { GitHubClient } = require('../shared/github-client');
const client = new GitHubClient(process.env.GITHUB_TOKEN);
const issue = await client.createIssue({ ...issueData });
// Testing fixtures
const fixtures = require('../shared/__tests__/fixtures');
const mockIssues = fixtures.issues;
const mockLabels = fixtures.labels;
// Mock API responses
const mocks = require('../shared/__tests__/mocks/github-api');
const mockCreateIssue = mocks.createIssueMock();- Test each function in isolation
- Mock external dependencies (GitHub API, file system)
- Aim for 90%+ line coverage
- Use
describe()blocks to organize related tests
- Test workflows combining multiple modules
- Use realistic fixtures from
shared/__tests__/fixtures/ - Validate error handling and edge cases
- Document expected behavior in test comments
Branches: ≥90%
Functions: ≥90%
Lines: ≥90%
Statements: ≥90%
Tests are automatically run on:
- Pull Requests: All tests must pass before merge
- Develop Merge: Full coverage validation
- Scheduled: Daily runs to detect regressions
- Epic: #1771
- Skills 1–7: Issues #1786–#1792
- Planning: Issue Management Agent Planning
- Linked Issues: PR #1916 (infrastructure merged)
When implementing a new skill:
- Create a new directory in
skills/following the naming convention - Implement the skill using shared modules from
shared/ - Add unit tests with ≥90% coverage
- Add integration tests demonstrating real-world usage
- Update this README with skill status and links
- Create a pull request with proper commit messages
- v0.1.0 (Aug 18, 2026): Phase 2 infrastructure complete
- 30.5 KB shared modules
- 115+ infrastructure tests
- Jest/Vitest configuration
- Ready for skill implementation
Last Updated: Aug 18, 2026 Maintainer: Issue Management Agent Team Status: Phase 2 Infrastructure Complete, Skills Implementation Pending
Please see CONTRIBUTING.md for details.
This page brought to you by the 🦄 Magic Automation Unicorns of LightSpeedWP. Automation Docs