cn-refactor-plan-governance

Enforce TDD-based governance and verifiable completion criteria for Chinese refactor plans.

3|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/BaSui01/agentflow --skill cn-refactor-plan-governance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cn-refactor-plan-governance
Source: https://github.com/BaSui01/agentflow/tree/main/.codex/skills/cn-refactor-plan-governance
Command: npx skills add https://github.com/BaSui01/agentflow --skill cn-refactor-plan-governance

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enforces executable Chinese refactor plans to prevent premature closure and ensure every plan follows TDD, contains verifiable evidence, and only signals completion after strict gate verification.

Core Features & Use Cases

  • Format & Gate Enforcement: Validates that plan files include required checklist states and mandated sections, and prevents closure while any verification item remains unmet.
  • TDD-first Test Plans: Requires Red-Green-Refactor flow with explicit failing tests, minimal implementations to turn tests green, and defined regression scopes.
  • Progression & Acceptance: Integrates with the repository guard wrapper to lint, report progress, and run final gates that check verification commands and pass criteria before allowing stop/archival.
  • Use Case: Repository maintainers drafting, reviewing, or advancing Chinese-language refactor plans and CI pipelines enforcing strict DoD for safe refactors.

Quick Start

Run the project's guard wrapper with RequireTDD and RequireVerifiableCompletion against the target plan to lint, report, and gate its status.

Frequently Asked Questions about cn-refactor-plan-governance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce TDD compliance in a repository refactor plan?

To enforce TDD compliance in a repository refactor plan, validate that documents follow a strict Red-Green-Refactor flow with explicit failing tests, minimal implementations, and defined regression scopes. This ensures verifiable completion criteria are met before progression.

What is verifiable completion criteria in CI gate checks?

Verifiable completion criteria in CI gate checks are mandated validation steps that execute verification commands and check pass criteria. They prevent plan closure or archival while any verification item remains unmet, ensuring safe refactoring.

How do I stop premature closure of refactor plans during code review?

Stop premature closure of refactor plans during code review by applying a guard wrapper to lint, report progress, and run final gates. This enforces checklist states and blocks archival until all verification commands successfully pass.

Does Python support automated gate checks for Chinese refactor plans?

Yes, Python supports automated gate checks for Chinese refactor plans by running scripts that lint plan files, validate required sections, and enforce task checklist states. This integrates directly with CI pipelines and guard workflows.

Why does my refactor plan fail the progression gate check?

Your refactor plan fails the progression gate check because mandated sections are missing, checklist states are invalid, or verification commands have not successfully passed. The guard wrapper blocks progression to enforce strict Definition of Done.