with one click
quality-doctor-procedure-gate
Quality-doctor diagnosis procedure that gates artifact evidence and enforces the canonical cause-to-action contract before JSON output
Menu
Quality-doctor diagnosis procedure that gates artifact evidence and enforces the canonical cause-to-action contract before JSON output
Templates, checklists, and automated quality checks for blog posts, email campaigns, landing pages, and brand voice consistency.
Queue health dashboard — scans all role queue directories for a hive and produces a unified JSON health report with per-role metrics, dispatcher heartbeat, failure categorization, and stuck task detection
Transcribe audio files (e.g. Discord .ogg voice messages) using the OpenAI Whisper API. Use when: a voice message or audio attachment needs to be converted to text. NOT for: real-time streaming audio, files >25MB.
Mandatory ordered heartbeat gates for hive-supervisor runs
Use this skill to generate well-branded interfaces and assets for HiveWright, either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.
On-page SEO analysis — keyword density, meta tags, heading structure, content gaps, competitor comparison
| name | quality-doctor-procedure-gate |
| description | Quality-doctor diagnosis procedure that gates artifact evidence and enforces the canonical cause-to-action contract before JSON output |
Use this skill inside every quality-doctor task. A quality-doctor task is any doctor task spawned by createQualityDoctorTask with created_by='quality-doctor', or any task titled Quality diagnosis: ....
This skill is mandatory before emitting the final diagnosis JSON. It prevents two failure modes:
cause whose recommendation belongs to another remediation path.Follow these steps in order. Do not skip the consistency gate.
List artifact IDs in the brief.
not provided for that artifact type in your scratch notes.Retrieve or mark each artifact.
provided in brief.not retrieved and do not rely on its contents.Pick exactly one cause.
Write the mandated recommendation.
split_task, retry_with_doctor, retry, rerun, auto_install, and install_connector are not valid quality-doctor recommendation actions.Run the consistency gate.
(cause, recommendation) against the canonical table.| Cause | Use When | Mandatory Recommendation Form |
|---|---|---|
wrong_model | The assigned role had the needed brief, artifacts, tools, and skill, but the output was shallow, generic, low-reasoning, or below the required model capability. | Recommend a Tier 2 quality_doctor_recommendation decision routed through model-efficiency sweeper guardrails before any model swap. |
missing_skill | The role had access to needed artifacts and tools, but lacked a reusable procedure, domain workflow, or specialized operating pattern. | Recommend creating or sourcing a skill. State that the dispatcher must call createOrUpdateSkillCandidateFromSignal and emit a Tier 2 decision proposing skill generation or sourcing. |
missing_tool_connector_credential | The role lacked required data, connector access, credentials, API permission, or an installed/enabled tool, or it faked/skipped work because access was missing. | Recommend a Tier 2 decision for connector, credential, permission, or tool enablement remediation. Explicitly state that nothing should be auto-installed and no credential should be invented. |
wrong_role_or_brief | The task was assigned to the wrong role, the acceptance criteria were malformed, the scope was too broad, or the brief needs reroute, decomposition, or rewrite. | Recommend sending the issue to the supervisor for reroute, split, or brief rewrite. Keep the wording as a supervisor decision, not a direct doctor action. |
Emit exactly one fenced json block and nothing else. The parser accepts only a JSON object with these keys:
{"cause":"wrong_model|missing_skill|missing_tool_connector_credential|wrong_role_or_brief","details":"Evidence-grounded diagnosis.","recommendation":"Cause-matched Tier 2 recommendation."}
Rules for the JSON:
cause must be exactly one of the four canonical strings.details must include the retrieved evidence basis and must not mention unretrieved artifacts as facts.recommendation must match the mandatory recommendation form for the chosen cause.Good:
{"cause":"missing_tool_connector_credential","details":"The provided task log says the agent could not access the required Figma connector and no retrieved artifact shows an enabled credential. The failure is access-related, not a task-shape issue.","recommendation":"Emit a Tier 2 quality_doctor_recommendation decision for connector or credential remediation. Do not auto-install a connector, invent credentials, or split the task until the access decision is resolved."}
Bad:
{"cause":"missing_tool_connector_credential","details":"The agent could not access the required connector.","recommendation":"split_task"}
Why it fails: split_task is not the mandated action for missing_tool_connector_credential. Restart from step 3 and produce the Tier 2 connector or credential decision path.
Good:
{"cause":"wrong_role_or_brief","details":"The provided brief asks one role to resolve repository coordinates, map frontend files, verify scripts, write documentation, stage, and commit. The evidence points to over-broad task shape rather than missing credentials or a missing reusable skill.","recommendation":"Emit a Tier 2 quality_doctor_recommendation decision sending this to the supervisor for reroute, split, or brief rewrite."}