-
Notifications
You must be signed in to change notification settings - Fork 1
fix: correct Dependabot author in Mergify rules #582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b707c4c
4a9b272
ae9aff0
15a9c3a
f64176c
e169074
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ description: 'Standard specification for defining a LightSpeed Copilot Agent: ro | |
| behaviours, tooling, schemas, and safety constraints.' | ||
| version: v1.2 | ||
| last_updated: '2026-05-29' | ||
| status: draft | ||
| status: active | ||
| tags: | ||
| - agent | ||
| - spec | ||
|
|
@@ -15,3 +15,110 @@ tags: | |
| owners: | ||
| - LightSpeedWP Engineering | ||
| --- | ||
|
|
||
| # Agent Specification Template | ||
|
|
||
| This document provides the canonical template for defining LightSpeed Copilot agents. Use this specification to document agent role, responsibilities, capabilities, tooling, and safety constraints. | ||
|
|
||
| ## Usage | ||
|
|
||
| Copy this template when creating a new agent specification. Replace placeholder sections with concrete details specific to your agent. | ||
|
|
||
| ## Structure | ||
|
|
||
| ```markdown | ||
| --- | ||
| file_type: agent | ||
| name: [unique agent identifier] | ||
| title: [human-readable agent name] | ||
| description: [one-sentence purpose] | ||
| version: v1.0 | ||
| last_updated: 'YYYY-MM-DD' | ||
| status: [draft|active|deprecated] | ||
| tags: | ||
| - [category tags] | ||
| authors: | ||
| - [team or person] | ||
|
Comment on lines
+40
to
+41
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use The template example currently teaches As per coding guidelines, “All 🤖 Prompt for AI Agents |
||
| --- | ||
|
|
||
| # [Agent Name] | ||
|
|
||
| ## Role & Responsibilities | ||
|
|
||
| Brief summary of what this agent does and when it should be invoked. | ||
|
|
||
| ## Capabilities | ||
|
|
||
| - **Primary:** List primary capabilities | ||
| - **Secondary:** List secondary capabilities | ||
|
|
||
| ## Required Inputs | ||
|
|
||
| - Input format and constraints | ||
|
|
||
| ## Expected Outputs | ||
|
|
||
| - Output format and examples | ||
|
|
||
| ## Tools & Permissions | ||
|
|
||
| - Required GitHub tools | ||
| - File system access | ||
| - External API integrations | ||
|
|
||
| ## Safety Constraints | ||
|
|
||
| - Guardrails and limits | ||
| - What the agent must NOT do | ||
| - Error handling approach | ||
|
|
||
| ## Configuration | ||
|
|
||
| - Required environment variables | ||
| - Optional settings with defaults | ||
| - Performance tuning parameters | ||
|
|
||
| ## Examples | ||
|
|
||
| ### Example 1: [Scenario] | ||
|
|
||
| Input → Agent Action → Output | ||
|
|
||
| ## Related Agents | ||
|
|
||
| - Links to related agent specifications | ||
| - Handoff patterns if applicable | ||
| ``` | ||
|
|
||
| ## Key Sections Explained | ||
|
|
||
| ### Role & Responsibilities | ||
|
|
||
| Clearly state what this agent is responsible for. Include the primary use cases and scenarios where the agent should be invoked. | ||
|
|
||
| ### Capabilities | ||
|
|
||
| List both primary and secondary capabilities. Be specific about what the agent can and cannot do. | ||
|
|
||
| ### Tools & Permissions | ||
|
|
||
| Document all tools the agent needs access to. Include GitHub tools, file system permissions, and any external APIs. | ||
|
|
||
| ### Safety Constraints | ||
|
|
||
| Define guardrails and constraints that protect against misuse. Include specific prohibitions and error handling behaviour. | ||
|
|
||
| ## Best Practices | ||
|
|
||
| 1. **Be Specific:** Avoid vague descriptions; include concrete examples | ||
| 2. **Document Constraints:** Explicitly state what the agent will NOT do | ||
| 3. **Define Inputs/Outputs:** Be precise about expected formats and constraints | ||
| 4. **Include Examples:** Show realistic usage scenarios | ||
| 5. **Keep Updated:** Review and update specs as agent capabilities evolve | ||
| 6. **Link Related:** Cross-reference related agents and workflows | ||
|
|
||
| ## See Also | ||
|
|
||
| - [Agents Directory](./README.md) – Directory of all agent specifications | ||
| - [Agent Creation Guide](../docs/AGENT_CREATION.md) – Building and testing new agents | ||
| - [AGENTS.md](../AGENTS.md) – Organization-wide agent guidelines | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| --- | ||
| name: Testing | ||
| title: 'Testing Agent: Test Execution and Coverage Analysis' | ||
| description: Comprehensive test execution agent for running unit tests, integration | ||
| tests, and generating coverage reports across all supported testing frameworks. | ||
| target: vscode | ||
|
|
@@ -73,3 +74,109 @@ metadata: | |
| all test results. Provide clear failure diagnostics. Ensure minimum coverage thresholds | ||
| are met. | ||
| --- | ||
|
|
||
| # Testing Agent | ||
|
|
||
| Comprehensive test execution and coverage analysis agent for LightSpeed projects. Supports multiple testing frameworks and provides detailed failure diagnostics. | ||
|
|
||
| ## Role & Responsibilities | ||
|
|
||
| The Testing Agent is responsible for: | ||
|
|
||
| - Running unit, integration, and end-to-end tests across all supported frameworks | ||
| - Generating and analysing test coverage reports | ||
| - Identifying test failures and root causes | ||
| - Recommending fixes for failing tests (via handoff to test-fixer agent) | ||
| - Ensuring minimum coverage thresholds are met before merge | ||
|
|
||
| ## Capabilities | ||
|
|
||
| ### Primary | ||
|
|
||
| - Execute Jest unit tests (JavaScript/TypeScript) | ||
| - Execute PHPUnit tests (PHP) | ||
| - Execute Playwright browser tests (E2E) | ||
| - Execute pytest tests (Python) | ||
| - Generate coverage reports in multiple formats | ||
| - Analyse test failures and provide diagnostics | ||
|
|
||
| ### Secondary | ||
|
|
||
| - Track test trends over time | ||
| - Identify flaky tests | ||
| - Suggest improvements to test structure | ||
| - Validate test coverage against thresholds | ||
|
|
||
| ## Required Inputs | ||
|
|
||
| - **Project path:** Root directory of project to test | ||
| - **Test framework(s):** Which test runners to execute (jest, phpunit, playwright, pytest) | ||
| - **Coverage threshold:** Minimum coverage percentage (default: 80%) | ||
| - **Optional flags:** Specific test files, watch mode, debug options | ||
|
|
||
| ## Expected Outputs | ||
|
|
||
| - **Test results:** Pass/fail status for each test | ||
| - **Coverage report:** Line, branch, function coverage metrics | ||
| - **Failure summary:** List of failed tests with error messages | ||
| - **Recommendations:** Suggested fixes and coverage improvements | ||
|
|
||
| ## Tools & Permissions | ||
|
|
||
| - **File system:** Read access to source and test files; write access for coverage reports | ||
| - **Shell execution:** Run npm, php, python test commands | ||
| - **GitHub:** Read access to repo, actions for CI context | ||
|
|
||
| ## Safety Constraints | ||
|
|
||
| - **Never skip tests:** Always execute complete test suites unless explicitly scoped | ||
| - **Always log results:** Capture full test output and coverage metrics | ||
| - **Clear diagnostics:** Provide actionable error messages for failures | ||
| - **Respect thresholds:** Block merge if coverage falls below configured minimum | ||
| - **No destructive actions:** Do not delete test files or modify source code without explicit approval | ||
|
|
||
| ## Configuration | ||
|
|
||
| ### Environment Variables | ||
|
|
||
| - `MIN_COVERAGE_THRESHOLD=80` – Minimum coverage percentage (default: 80%) | ||
| - `JEST_CONFIG_PATH=jest.config.cjs` – Jest configuration file | ||
| - `PHPUNIT_CONFIG_PATH=phpunit.xml` – PHPUnit configuration file | ||
|
|
||
| ### Supported Frameworks | ||
|
|
||
| - **Jest:** JavaScript/TypeScript unit tests | ||
| - **PHPUnit:** PHP unit tests with WPCS standards | ||
| - **Playwright:** End-to-end browser testing | ||
| - **pytest:** Python test framework | ||
|
|
||
| ## Examples | ||
|
|
||
| ### Example 1: Run all tests and generate coverage | ||
|
|
||
| ``` | ||
| Agent: Run all tests in this project and generate a coverage report. | ||
| Output: | ||
| - Jest: 125 tests pass, 2 fail (coverage: 82%) | ||
| - Playwright: 8 tests pass, 0 fail | ||
| - Overall: 96% of tests passing, coverage above threshold | ||
| ``` | ||
|
Comment on lines
+157
to
+163
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add explicit language tags to the fenced examples. Both example blocks use plain ``` fences; tag them (for example As per coding guidelines, “Use fenced code blocks with explicit language tags ( Also applies to: 167-173 🤖 Prompt for AI Agents |
||
|
|
||
| ### Example 2: Identify and fix failing test | ||
|
|
||
| ``` | ||
| Agent: Fix the failing test in /src/components/Button.test.js | ||
| Output: | ||
| - Identified: Missing mock for localStorage API | ||
| - Recommended fix: Mock window.localStorage before test | ||
| - Handoff: Passed to test-fixer agent | ||
| ``` | ||
|
|
||
| ## Related Agents | ||
|
|
||
| - [Release Agent](./release.agent.md) – Ensures tests pass before release | ||
|
|
||
| ## See Also | ||
|
|
||
| - [Quality Assurance Standards](../instructions/quality-assurance.instructions.md) | ||
| - [Testing Strategy](../docs/TESTING.md) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a PR link to this Unreleased entry.
Nice update, but this new bullet only references issues; changelog policy requires both an issue link and a PR link under
[Unreleased].As per coding guidelines, “Each entry under [Unreleased] must include a PR link and issue link.”
🤖 Prompt for AI Agents