跳到正文
cccskills
免费在 GitHub 公开

vcsdd-language-python

Use this skill when applying VCSDD to Python projects. Provides hypothesis property testing patterns, mutmut mutation testing, and pytest integration for the VCSDD pipeline.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md1.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

VCSDD Language Profile: Python

Verification Toolset

TierToolInstallUse Case
1hypothesispip install hypothesisProperty-based testing
1mutmutpip install mutmutMutation testing
1pytest-covpip install pytest-covCoverage reporting

Hypothesis Pattern

from hypothesis import given, settings, strategies as st
from hypothesis import HealthCheck

@given(st.text(min_size=0, max_size=1000))
@settings(max_examples=500, suppress_health_check=[HealthCheck.too_slow])
def test_parse_never_raises_on_arbitrary_input(s: str):
    """Parse should never panic - it should return a Result."""
    try:
        result = parse(s)
        # If successful, roundtrip should hold
        if result is not None:
            assert serialize(result) == s
    except ParseError:
        pass  # Expected error types are ok

@given(st.from_regex(r'[a-z]{1,20}'))
def test_parse_valid_input(s: str):
    result = parse(s)
    assert result is not None
    assert serialize(result) == s

mutmut Setup

# Run mutation testing
mutmut run --paths-to-mutate src/

# Check results
mutmut results
mutmut show <mutation_id>  # See specific mutations

# Generate HTML report
mutmut html

Red Phase Evidence

# Run tests and capture output
pytest tests/ -v 2>&1 | tee .vcsdd/features/<name>/evidence/sprint-1-red-phase.log
# Verify failure
grep -q "FAILED" .vcsdd/features/<name>/evidence/sprint-1-red-phase.log

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use this skill when running or interpreting VCSDD adversarial reviews. Provides calibration guidance for the Adversary agent, finding severity classification, and anti-leniency enforcement patterns.

中文简介正在准备中。当前显示原文说明。

sc30gsw/vcsdd-claude-code272026年4月5日 更新

Run Phase 3 (adversarial review) for the active VCSDD feature. Spawns a fresh vcsdd-adversary agent with zero Builder context to review implementation against spec. Produces binary PASS/FAIL verdict per dimension.

中文简介正在准备中。当前显示原文说明。

sc30gsw/vcsdd-claude-code272026年4月5日 更新

Create a git commit for the current VCSDD phase. Auto-generates a conventional commit message from state.json including phase, sprint, gate verdict, and affected bead IDs. Tags with vcsdd/<feature>/phase-<id>.

中文简介正在准备中。当前显示原文说明。

sc30gsw/vcsdd-claude-code272026年4月5日 更新

Run the strict-mode sprint contract review after Phase 2c. Spawns a fresh vcsdd-adversary instance to review `contracts/sprint-N.md` and writes a PASS/FAIL verdict under `reviews/contracts/sprint-N/output/`.

中文简介正在准备中。当前显示原文说明。

sc30gsw/vcsdd-claude-code272026年4月5日 更新

Run Phase 6 (convergence check) for the active VCSDD feature. Validates four-dimensional convergence: finding diminishment, finding specificity, criteria coverage, and duplicate detection.

中文简介正在准备中。当前显示原文说明。

sc30gsw/vcsdd-claude-code272026年4月5日 更新

Use this skill during Phase 6 convergence checks. Provides four-dimensional convergence analysis, hallucination detection, and duplicate finding identification.

中文简介正在准备中。当前显示原文说明。

sc30gsw/vcsdd-claude-code272026年4月5日 更新

查看 sc30gsw 的全部技能

报告此技能的问题