โ† All skills
Tencent SkillHub ยท Productivity

Quality-Driven Development (QDD)

Quality-driven development with automatic TDD/DDD methodology selection and TRUST 5 quality framework. Use when building features, refactoring code, fixing b...

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Quality-driven development with automatic TDD/DDD methodology selection and TRUST 5 quality framework. Use when building features, refactoring code, fixing b...

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, references/ddd-patterns.md, references/tdd-patterns.md, references/trust5-checklist.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.1.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 14 sections Open source page

Quality-Driven Development

Structured development methodology inspired by MoAI-ADK's TRUST 5 framework. Automatically selects TDD or DDD based on project state, enforces quality gates, and produces tested, documented code.

Core Philosophy

"๋ฐ”์ด๋ธŒ ์ฝ”๋”ฉ์˜ ๋ชฉ์ ์€ ๋น ๋ฅธ ์ƒ์‚ฐ์„ฑ์ด ์•„๋‹ˆ๋ผ ์ฝ”๋“œ ํ’ˆ์งˆ์ด๋‹ค."

Logging Strategy

All code must include meaningful logs. Logs are the first line of defense for debugging production issues.

Log Levels

LevelPurposeExamples์šด์˜(PRD)๊ฐœ๋ฐœ(DEV)ERROR์˜ˆ์™ธ, ์‹คํŒจ, ๋ณต๊ตฌ ๋ถˆ๊ฐ€ ์ƒํ™ฉcatch ๋ธ”๋ก, DB ์—ฐ๊ฒฐ ์‹คํŒจ, ํ•„์ˆ˜๊ฐ’ ๋ˆ„๋ฝโœ…โœ…WARN์˜ˆ์ƒ ๋ฐ– ์ƒํ™ฉ, ๋ณต๊ตฌ ๊ฐ€๋Šฅfallback ์‚ฌ์šฉ, ์žฌ์‹œ๋„, deprecated ํ˜ธ์ถœโœ…โœ…INFOํ•ต์‹ฌ ํ๋ฆ„๋งŒ ๊ฐ„๊ฒฐํ•˜๊ฒŒAPI ํ˜ธ์ถœ/์‘๋‹ต, ์ƒํƒœ ๋ณ€๊ฒฝ, ํŠธ๋žœ์žญ์…˜ ์‹œ์ž‘/์™„๋ฃŒโœ…โœ…DEBUG์ƒ์„ธ ๋””๋ฒ„๊น…, ์ž์œ ๋กญ๊ฒŒํ•จ์ˆ˜ ์ง„์ž…/์ข…๋ฃŒ, ๋ณ€์ˆ˜๊ฐ’, ์กฐ๊ฑด ๋ถ„๊ธฐ, ์ฟผ๋ฆฌ ํŒŒ๋ผ๋ฏธํ„ฐโŒโœ…

Log Placement Rules

๋ฐ˜๋“œ์‹œ ๋กœ๊ทธ๋ฅผ ๋„ฃ์–ด์•ผ ํ•˜๋Š” ๊ณณ: API ์—”๋“œํฌ์ธํŠธ ์ง„์ž… (INFO: ์š”์ฒญ ํŒŒ๋ผ๋ฏธํ„ฐ ์š”์•ฝ) ์™ธ๋ถ€ ์„œ๋น„์Šค ํ˜ธ์ถœ ์ „/ํ›„ (INFO: ํ˜ธ์ถœ ๋Œ€์ƒ, ์‘๋‹ต ์ƒํƒœ) ์—๋Ÿฌ/์˜ˆ์™ธ catch ๋ธ”๋ก (ERROR: ์—๋Ÿฌ ๋ฉ”์‹œ์ง€ + ์ปจํ…์ŠคํŠธ) ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง ๋ถ„๊ธฐ์  (DEBUG: ์–ด๋–ค ๋ถ„๊ธฐ๋กœ ๊ฐ”๋Š”์ง€) ์ƒํƒœ ๋ณ€๊ฒฝ (INFO: before โ†’ after) ๋ฐฐ์น˜/์Šค์ผ€์ค„๋Ÿฌ ์‹œ์ž‘/์™„๋ฃŒ (INFO: ์ฒ˜๋ฆฌ ๊ฑด์ˆ˜, ์†Œ์š” ์‹œ๊ฐ„) ๋กœ๊ทธ ์ž‘์„ฑ ์›์น™: ์šด์˜์—์„œ INFO๋งŒ์œผ๋กœ ํ๋ฆ„ ์ถ”์ ์ด ๊ฐ€๋Šฅํ•ด์•ผ ํ•œ๋‹ค DEBUG๋Š” ๋ถ€๋‹ด ์—†์ด ์ž์œ ๋กญ๊ฒŒ โ€” ์šด์˜์—์„  ์ถœ๋ ฅ ์•ˆ ๋จ ๋ฏผ๊ฐ ์ •๋ณด(๋น„๋ฐ€๋ฒˆํ˜ธ, ํ† ํฐ, ๊ฐœ์ธ์ •๋ณด) ์ ˆ๋Œ€ ๋กœ๊ทธ์— ํฌํ•จ ๊ธˆ์ง€ ๋กœ๊ทธ ๋ฉ”์‹œ์ง€์— ์ปจํ…์ŠคํŠธ ํฌํ•จ (ID, ํŒŒ๋ผ๋ฏธํ„ฐ ๋“ฑ) โ€” "์ฒ˜๋ฆฌ ์‹คํŒจ" โŒ โ†’ "์ฃผ๋ฌธ ์ฒ˜๋ฆฌ ์‹คํŒจ [orderId=123, reason=์žฌ๊ณ ๋ถ€์กฑ]" โœ…

Phase 0: Project Analysis

Before any coding, analyze the project: Check if test framework exists (jest, vitest, pytest, go test, etc.) Measure current test coverage (run coverage command if available) Detect language, framework, and project structure Identify logging framework (slf4j, winston, pino, logback, print/console.log etc.) โ€” if none exists, recommend and set up one Select methodology automatically: Coverage >= 10% OR new project โ†’ TDD (default) Coverage < 10% AND existing project โ†’ DDD Report the analysis result and selected methodology to the user before proceeding.

Phase 1: SPEC Document

  • Create a SPEC document before implementation:
  • # SPEC-{ID}: {Title}
  • ## Goal
  • One sentence describing what this change achieves.
  • ## Acceptance Criteria
  • [ ] Criterion 1 (testable)
  • [ ] Criterion 2 (testable)
  • [ ] Criterion 3 (testable)
  • ## Scope
  • **In scope:** What will be changed
  • **Out of scope:** What will NOT be changed
  • ## Technical Approach
  • Brief description of implementation strategy.
  • ## Log Points
  • Key locations where logs will be added (level + message summary).
  • ## TRUST 5 Checklist
  • [ ] **Tested:** All acceptance criteria have corresponding tests
  • [ ] **Readable:** Code is self-documenting with clear naming
  • [ ] **Unified:** Follows existing project conventions
  • [ ] **Secured:** No new vulnerabilities introduced
  • [ ] **Trackable:** Changes are documented and linked to this SPEC

Phase 2A: TDD Execution (New Projects / Coverage >= 10%)

Follow RED โ†’ GREEN โ†’ REFACTOR strictly: RED โ€” Write failing tests first Write test for first acceptance criterion Run test โ€” confirm it FAILS Report: "๐Ÿ”ด RED: Test written and failing as expected" GREEN โ€” Minimal implementation Write minimum code to pass the test Add appropriate logs at key points (API calls, error handling, state changes) Run test โ€” confirm it PASSES Report: "๐ŸŸข GREEN: Test passing" REFACTOR โ€” Clean up Improve code quality while keeping tests green Review log quality โ€” ensure levels are correct, messages are clear with context Run all tests โ€” confirm everything still passes Report: "โ™ป๏ธ REFACTOR: Code cleaned, all tests green" Repeat for each acceptance criterion.

Phase 2B: DDD Execution (Existing Projects / Coverage < 10%)

Follow ANALYZE โ†’ PRESERVE โ†’ IMPROVE: ANALYZE โ€” Understand existing code Read existing code and identify dependencies Map domain boundaries and side effects Check existing logging โ€” identify gaps where logs are missing Report: "๐Ÿ” ANALYZE: Current behavior documented" PRESERVE โ€” Capture current behavior Write characterization tests for existing behavior Run tests โ€” confirm they pass against current code Report: "๐Ÿ›ก๏ธ PRESERVE: Characterization tests in place" IMPROVE โ€” Change under test protection Make changes incrementally Add/improve logs at changed code paths Run tests after each change Report: "๐Ÿ“ˆ IMPROVE: Changes verified by tests"

Phase 3: TRUST 5 Quality Gate

Before declaring work complete, verify all 5 principles: PrincipleCheckActionTestedRun full test suiteAll tests pass, coverage maintained or improvedReadableReview naming, comments, log messagesFix unclear names, ensure log messages have contextUnifiedCheck style consistency, log format consistencyMatch existing patterns (indent, naming, log format)SecuredSecurity review, log content reviewNo hardcoded secrets, no sensitive data in logsTrackableDocumentation, log coverageChanges described, key paths have appropriate logs Only proceed to completion when ALL 5 checks pass.

Phase 4: Completion Report

  • ## โœ… SPEC-{ID} Complete
  • ### Methodology: {TDD|DDD}
  • ### Changes:
  • {file1}: {what changed}
  • {file2}: {what changed}
  • ### Log Points Added:
  • {file1:line}: {level} - {description}
  • {file2:line}: {level} - {description}
  • ### Test Results:
  • Tests: {passed}/{total}
  • Coverage: {before}% โ†’ {after}%
  • ### TRUST 5:
  • โœ… Tested | โœ… Readable | โœ… Unified | โœ… Secured | โœ… Trackable

Agent Roles

When working on complex tasks, delegate to specialized perspectives: RoleFocusWhen to ActivateArchitectSystem design, API contractsNew feature, structural changeBackendAPI, DB, business logicServer-side workFrontendUI, UX, componentsClient-side workSecurityVulnerabilities, auth, input validationAuth features, data handlingTesterTest strategy, edge cases, coverageAlways (TRUST 5 - Tested)PerformanceOptimization, profilingLoad-sensitive features For each task, identify which roles are relevant and apply their perspective during review.

Reference Guides

TopicReferenceLoad WhenTDD Patternsreferences/tdd-patterns.mdTDD methodology selectedDDD Patternsreferences/ddd-patterns.mdDDD methodology selectedTRUST 5 Detailreferences/trust5-checklist.mdQuality gate phaseLanguage-specificreferences/lang-{language}.mdLanguage-specific patterns needed

Constraints

MUST DO: Always analyze project before choosing methodology Always create SPEC before coding Always write tests (TDD: before code, DDD: before changes) Always run TRUST 5 gate before completion Report progress at each phase transition Always add meaningful logs with appropriate levels at key code points Always ensure tests are actually executed (not just written) โ€” run the test suite and confirm results before proceeding MUST NOT: Skip test writing for any reason Write implementation before tests (TDD mode) Modify untested code without characterization tests first (DDD mode) Declare complete without all 5 TRUST checks passing Change code outside the SPEC scope Log sensitive data (passwords, tokens, personal info) Skip logging at error/catch blocks

Category context

Workflow acceleration for inboxes, docs, calendars, planning, and execution loops.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
4 Docs
  • SKILL.md Primary doc
  • references/ddd-patterns.md Docs
  • references/tdd-patterns.md Docs
  • references/trust5-checklist.md Docs