/long-task:long-task-qualityfrom long-task
Enforces coverage, mutation, and verification quality gates after TDD cycles in long-task projects. Delegates execution to a SubAgent for isolated context.
Ships in long-task. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Delegate quality gate execution to a SubAgent with fresh context. The main Agent only dispatches and parses the structured result — it never reads coverage reports, mutation output, or test runner output directly.
Announce at start: "I'm using the long-task-quality skill to run quality gates via SubAgent."
Build the prompt from current session state. Do NOT read any source code, test output, or coverage reports yourself.
You are a Quality Gates execution SubAgent.
## Your Task
1. Read the execution rules: Read {skills_root}/long-task-quality/references/quality-execution.md
2. Read long-task-guide.md in the project root for test/coverage/mutation commands and environment activation
3. Execute all 4 gates in order (Gate 0 → 1 → 2 → 3)
- **Note**: Static analysis tools (Design §13.4) are enforced during TDD Refactor, not here. If Design doc §13.7 documents code generation directories, exclude them from coverage measurement in Gate 1.
4. If a gate fails, fix and retry per the rules (max 3 attempts per gate)
5. Return your result using the Structured Return Contract at the end of the execution rules
## Input Parameters
- Feature ID: {feature_id}
- Feature: {feature_json}
- quality_gates thresholds: {quality_gates_json}
- tech_stack: {tech_stack_json}
- Working directory: {working_dir}
- Feature test files: {feature_test_files} (test files written/modified during TDD for this feature — used for mutation_feature scoping)
- Active feature count: {active_feature_count} (total non-deprecated features — compared against mutation_full_threshold to decide mutation scope)
## Key Constraint
- Do NOT mark the feature as "passing" in feature-list.json — only report results
- If a tool/environment error cannot be resolved after 1 retry, set Verdict to BLOCKED
Replace {skills_root} with the path to the skills directory (e.g., skills in the project or the installed plugin path).
Claude Code: Use the Agent tool:
Agent(
description = "Quality Gates for feature #{feature_id}",
prompt = [the constructed prompt above]
)
OpenCode: Use @mention syntax or the platform's native subagent mechanism with the same prompt content.
Read the SubAgent's returned text and locate the ### Verdict: line:
### Verdict: PASS
task-progress.md: "Quality Gates: PASS (line {X}%, branch {Y}%, mutation {Z}%)"### Verdict: FAIL
AskUserQuestion with the failure details### Verdict: BLOCKED
AskUserQuestion with the blocker details and what was attemptedCalled by: long-task-work (Step 8) Requires: TDD cycle completed (long-task-tdd passed — tests exist and pass) Produces: Structured summary (coverage %, mutation %, per-gate pass/fail) Chains to: long-task-feature-st (via Work Step 9)
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
quality-gates, coverage, mutation-testing, tdd, subagent, verification
npx claudepluginhub suriyel/longtaskforagent --plugin long-task17 skills in this plugin
/long-task-atsUse when design doc exists but no ATS doc and no feature-list.json - generate a global Acceptance Test Strategy mapping every requirement to acceptance scenarios with category constraints/long-task-designUse when SRS doc exists but no design doc and no feature-list.json - take the approved SRS as input and produce an architecture/design document focused on HOW to build it/long-task-exploreUse for on-demand deep exploration of an existing codebase - analyzes architecture, data flow, domain model, API surface, dependencies, and code health/long-task-feature-designUse before TDD in a long-task project — produce feature-level detailed design with interface contracts, algorithm pseudocode, diagrams, and test inventory/long-task-feature-stUse after quality gates pass in a long-task project — independently manages test environment lifecycle (start/cleanup), executes black-box acceptance testing per feature, generates ISO/IEC/IEEE 29119 compliant test case documents/long-task-finalizeUse after ST Go verdict — generate usage examples and finalize release documentation via SubAgentOther plugins' skills for the same job