[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75J1KZK6PBP1XQFR5QF0GSX":3,"skill-same:01M75J1KZK6PBP1XQFR5QF0GSX":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M75J1KZK6PBP1XQFR5QF0GSX","code-qc",null,"Run a structured quality control audit on any codebase. Use when asked to QC, audit, review, or check code quality for a project. Supports Python, TypeScript, GDScript, and general projects. Produces a standardized report with PASS\u002FWARN\u002FFAIL verdict, covering tests, imports, type checking, static analysis, smoke tests, and documentation. Also use when asked to compare QC results over time.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fisonaei\u002Fcode-qc\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: code-qc\ndescription: Run a structured quality control audit on any codebase. Use when asked to QC, audit, review, or check code quality for a project. Supports Python, TypeScript, GDScript, and general projects. Produces a standardized report with PASS\u002FWARN\u002FFAIL verdict, covering tests, imports, type checking, static analysis, smoke tests, and documentation. Also use when asked to compare QC results over time.\n---\n\n# Code QC\n\nStructured quality control audit for codebases. Delegates static analysis to proper tools (ruff, eslint, gdlint) and focuses on what AI adds: semantic understanding, cross-module consistency, and dynamic smoke test generation.\n\n## Quick Start\n\n1. Detect project type (read the profile for that language)\n2. Load `.qc-config.yaml` if present (for custom thresholds\u002Fexclusions)\n3. Run the 8-phase audit (or subset with `--quick`)\n4. Generate report with verdict\n5. Save baseline for future comparison\n\n## Configuration (`.qc-config.yaml`)\n\nOptional project-level config for monorepos and custom settings:\n\n```yaml\n# .qc-config.yaml\nthresholds:\n  test_failure_rate: 0.05    # >5% = FAIL, 0-5% = WARN, 0% = PASS\n  lint_errors_max: 0         # Max lint errors before FAIL\n  lint_warnings_max: 50      # Max warnings before WARN\n  type_errors_max: 0         # Max type errors before FAIL (strict by default)\n\nexclude:\n  dirs: [vendor, third_party, generated]\n  files: [\"*_generated.py\", \"*.pb.go\"]\n\nchanged_only: false          # Only check git-changed files (CI mode)\nfail_fast: false             # Stop on first failure\nquick_mode: false            # Only run Phase 1, 3, 3.5, 6\n\nlanguages:\n  python:\n    min_coverage: 80\n    ignore_rules: [T201]     # Allow print in this project\n  typescript:\n    strict_mode: true        # Require tsconfig strict: true\n    ignore_rules: []         # eslint rules to ignore\n  gdscript:\n    godot_version: \"4.2\"\n```\n\n## Execution Modes\n\n| Mode | Phases Run | Use Case |\n|------|------------|----------|\n| Full (default) | All 8 phases | Thorough audit |\n| `--quick` | 1, 3, 3.5, 6 | Fast sanity check |\n| `--changed-only` | All, filtered | CI on pull requests |\n| `--fail-fast` | All, stops early | Find first issue fast |\n| `--fix` | 3 with autofix | Apply automatic fixes |\n\n## Phase Overview\n\n| # | Phase | What | Tools |\n|---|-------|------|-------|\n| 1 | Test Suite | Run existing tests + coverage | pytest --cov \u002F jest --coverage |\n| 2 | Import Integrity | Verify all modules load | `scripts\u002Fimport_check.py` |\n| 3 | Static Analysis | Lint with proper tools | ruff \u002F eslint \u002F gdlint |\n| 3.5 | Type Checking | Static type verification | mypy \u002F tsc --noEmit \u002F (N\u002FA for GDScript) |\n| 4 | Smoke Tests | Verify business logic works | AI-generated per project |\n| 5 | UI\u002FFrontend | Verify UI components load | Framework-specific |\n| 6 | File Consistency | Syntax + git state | `scripts\u002Fsyntax_check.py` + git |\n| 7 | Documentation | Docstrings + docs accuracy | `scripts\u002Fdocstring_check.py` |\n\n## Phase Details\n\n### Phase 1: Test Suite\n\nRun the project's test suite with coverage. Auto-detect the test runner:\n\n```\npytest.ini \u002F pyproject.toml [tool.pytest] → pytest --cov\npackage.json scripts.test → npm test (or npx vitest --coverage)\nCargo.toml → cargo test\nproject.godot → (GUT if present, else manual)\n```\n\n**Record:** total, passed, failed, errors, skipped, duration, coverage %.\n\n**Verdict contribution:**\n- No tests found → **SKIP** (not FAIL; project may be config-only)\n- Failure rate = 0% → **PASS**\n- Failure rate ≤ threshold (default 5%) → **WARN**\n- Failure rate > threshold → **FAIL**\n\n**Coverage reporting (Python):**\n```bash\npytest --cov=\u003Cpackage> --cov-report=term-missing --cov-report=json\n```\n\n### Phase 2: Import Integrity (Python\u002FGDScript)\n\n**Python:** Run `scripts\u002Fimport_check.py` against the project root.\n\n**GDScript:** Verify scene\u002Fpreload references are valid (see gdscript-profile.md).\n\n#### Critical vs Optional Import Classification\n\nUse these heuristics to classify import failures:\n\n| Pattern | Classification | Rationale |\n|---------|---------------|-----------|\n| `__init__.py`, `main.py`, `app.py`, `cli.py` | **Critical** | Core entry points |\n| Module in `src\u002F`, `lib\u002F`, or top-level package | **Critical** | Core functionality |\n| `*_test.py`, `test_*.py`, `conftest.py` | **Optional** | Test infrastructure |\n| Modules in `examples\u002F`, `scripts\u002F`, `tools\u002F` | **Optional** | Auxiliary code |\n| Import error mentions `cuml`, `triton`, `tensorrt` | **Optional** | Hardware-specific |\n| Import error mentions missing system lib | **Optional** | Environment-specific |\n| Dependency in `[project.optional-dependencies]` | **Optional** | Declared optional |\n\n### Phase 3: Static Analysis\n\n**Do NOT use grep.** Use the language's standard linter.\n\n#### Standard Mode\n```bash\n# Python\nruff check --select E722,T201,B006,F401,F841,UP,I --statistics \u003Cproject>\n\n# TypeScript  \nnpx eslint . --format json\n\n# GDScript\ngdlint \u003Cproject>\n```\n\n#### Fix Mode (`--fix`)\nWhen `--fix` is specified, apply automatic corrections:\n\n```bash\n# Python — safe auto-fixes\nruff check --fix --select E,F,I,UP \u003Cproject>\nruff format \u003Cproject>\n\n# TypeScript\nnpx eslint . --fix\n\n# GDScript\ngdformat \u003Cproject>\n```\n\n**Important:** After `--fix`, re-run the check to report remaining issues that couldn't be auto-fixed.\n\n### Phase 3.5: Type Checking (NEW)\n\nRun static type analysis before proceeding to runtime checks.\n\n**Python:**\n```bash\nmypy \u003Cpackage> --ignore-missing-imports --no-error-summary\n# or if pyproject.toml has [tool.pyright]:\npyright \u003Cpackage>\n```\n\n**TypeScript:**\n```bash\nnpx tsc --noEmit\n```\n\n**GDScript:** Godot 4 has built-in static typing but no standalone checker. Estimate type coverage manually:\n\n```bash\n# Find untyped declarations\ngrep -rn \"var \\w\\+ =\" --include=\"*.gd\" .       # Untyped variables\ngrep -rn \"func \\w\\+(\" --include=\"*.gd\" . | grep -v \":\"  # Untyped functions\n```\n\nUse the `estimate_type_coverage()` function from `gdscript-profile.md` to calculate coverage per file:\n```python\n# From gdscript-profile.md\ndef estimate_type_coverage(gd_file: str) -> float:\n    \"\"\"Count typed vs untyped declarations.\"\"\"\n    # See full implementation in gdscript-profile.md\n```\n\nAlso check for `@warning_ignore` annotations which may hide type issues.\n\n**Record:** Total errors, categorized by severity.\n\n### Phase 4: Smoke Tests (Business Logic)\n\nTest **backend\u002Fcore functionality** — NOT UI components (that's Phase 5).\n\n**API Discovery Heuristics:**\n\n1. **Entry points:** Look for `main()`, `cli()`, `app`, `create_app()`, `__main__.py`\n2. **Service layer:** Find classes\u002Fmodules named `*Service`, `*Manager`, `*Handler`  \n3. **Public API:** Check `__all__` exports in `__init__.py`\n4. **FastAPI\u002FFlask:** Find route decorators (`@app.get`, `@router.post`)\n5. **CLI:** Find typer\u002Fclick `@app.command()` decorators\n6. **SDK:** Look for client classes, public methods without `_` prefix\n\n**For each discovered API, generate a minimal test:**\n```python\ndef smoke_test_user_service():\n    \"\"\"Test UserService basic CRUD.\"\"\"\n    from myproject.services.user import UserService\n    svc = UserService(db=\":memory:\")\n    user = svc.create(name=\"test\")\n    assert user.id is not None\n    fetched = svc.get(user.id)\n    assert fetched.name == \"test\"\n    return \"PASS\"\n```\n\n**Guidelines:**\n- Import + instantiate + call one method with minimal valid input\n- Use in-memory\u002Ftemp resources (`:memory:`, `tempdir`)\n- Each test \u003C 5 seconds\n- Catch exceptions, report clearly\n\n### Phase 5: UI\u002FFrontend Verification\n\nTest **UI components** separately from business logic.\n\n| Framework | Test Method |\n|-----------|-------------|\n| **Gradio** | `from project.ui import create_ui` (no `launch()`) |\n| **Streamlit** | `streamlit run app.py --headless` exits cleanly |\n| **PyQt\u002FPySide** | Set `QT_QPA_PLATFORM=offscreen`, import widget modules |\n| **React** | `npm run build` succeeds |\n| **Vue** | `npm run build` succeeds |\n| **Godot** | Scene files parse without error, required scripts exist |\n| **CLI** | `--help` on all subcommands returns 0 |\n\n**Boundary:** Phase 4 tests \"does the logic work?\" Phase 5 tests \"does the UI render?\"\n\n### Phase 6: File Consistency\n\nRun `scripts\u002Fsyntax_check.py` — compiles all source files to verify no syntax errors.\n\n> **Note:** Phase 2 (Import Integrity) tests *runtime* import behavior including initialization code. Phase 6 tests *static* syntax correctness. Both are needed: a file can have valid syntax but fail to import (e.g., missing dependency), or vice versa (syntax error in a module that's never imported).\n\nCheck git state:\n```bash\ngit status --short      # Should be clean (or report uncommitted changes)\ngit diff --check        # No conflict markers\n```\n\n### Phase 7: Documentation\n\nRun `scripts\u002Fdocstring_check.py` (now checks `__init__.py` by default).\n\nAlso verify:\n- README exists and is non-empty\n- Key docs (CHANGELOG, CONTRIBUTING) exist if referenced\n- No stale TODO markers in docs claiming completion\n\n## Verdict Logic\n\n```\n# Calculate test failure rate\nfailure_rate = test_failures \u002F total_tests\n\n# Default thresholds (override in .qc-config.yaml)\nFAIL_THRESHOLD = 0.05  # 5%\nWARN_THRESHOLD = 0.00  # 0%\nTYPE_ERRORS_MAX = 0    # Default: strict (any type error = FAIL)\n\n# Verdict determination\nif any([\n    failure_rate > FAIL_THRESHOLD,\n    critical_import_failure,\n    type_check_errors > thresholds.type_errors_max,  # Configurable threshold\n    lint_errors > thresholds.lint_errors_max,\n]):\n    verdict = \"FAIL\"\nelif any([\n    0 \u003C failure_rate \u003C= FAIL_THRESHOLD,\n    optional_import_failures > 0,\n    lint_warnings > thresholds.lint_warnings_max,\n    missing_docstrings > 0,\n    smoke_test_failures > 0,\n]):\n    verdict = \"PASS WITH WARNINGS\"\nelse:\n    verdict = \"PASS\"\n```\n\n## Baseline Comparison\n\nSave results to `.qc-baseline.json`:\n\n```json\n{\n  \"timestamp\": \"2026-02-15T15:00:00Z\",\n  \"commit\": \"abc123\",\n  \"verdict\": \"PASS WITH WARNINGS\",\n  \"config\": {\n    \"mode\": \"full\",\n    \"thresholds\": {\"test_failure_rate\": 0.05}\n  },\n  \"phases\": {\n    \"tests\": {\"total\": 134, \"passed\": 134, \"failed\": 0, \"coverage\": 87.5},\n    \"imports\": {\"total\": 50, \"failed\": 0, \"optional_failed\": 1, \"critical_failed\": 0},\n    \"types\": {\"errors\": 0, \"warnings\": 5},\n    \"lint\": {\"errors\": 0, \"warnings\": 12, \"fixed\": 8},\n    \"smoke\": {\"total\": 14, \"passed\": 14},\n    \"docs\": {\"missing_docstrings\": 3}\n  }\n}\n```\n\nOn subsequent runs, report delta:\n```\nTests:      134 → 140 (+6 ✅)\nCoverage:   87% → 91% (+4% ✅)\nType errors: 0 → 0 (✅)\nLint warnings: 12 → 5 (-7 ✅)\n```\n\n## Report Output\n\nGenerate in 3 formats:\n1. **Markdown** (`qc-report.md`) — full detailed report for humans\n2. **JSON** (`.qc-baseline.json`) — machine-readable for CI\u002Fcomparison\n3. **Summary** (chat message) — 10-line digest for Discord\u002FSlack\n\n### Summary Format Example\n\n```\n📊 QC Report: my-project @ abc123\nVerdict: ✅ PASS WITH WARNINGS\n\nTests:    134\u002F134 passed (100%) | Coverage: 87%\nTypes:    0 errors\nLint:     0 errors, 12 warnings\nImports:  50\u002F50 (1 optional failed)\nSmoke:    14\u002F14 passed\n\n⚠️ Warnings:\n- 3 missing docstrings\n- 12 lint warnings (run with --fix)\n```\n\n## Language-Specific Profiles\n\nRead the appropriate profile before running:\n- **Python**: `references\u002Fpython-profile.md`\n- **TypeScript**: `references\u002Ftypescript-profile.md`\n- **GDScript**: `references\u002Fgdscript-profile.md`\n- **General** (any language): `references\u002Fgeneral-profile.md`\n","# Code QC\n\nStructured quality control audit for codebases. Delegates static analysis to proper tools (ruff, eslint, gdlint) and focuses on what AI adds: semantic understanding, cross-module consistency, and dynamic smoke test generation.\n\n## Quick Start\n\n1. Detect project type (read the profile for that language)\n2. Load `.qc-config.yaml` if present (for custom thresholds\u002Fexclusions)\n3. Run the 8-phase audit (or subset with `--quick`)\n4. Generate report with verdict\n5. Save baseline for future comparison\n\n## Configuration (`.qc-config.yaml`)\n\nOptional project-level config for monorepos and custom settings:\n\n```yaml\n# .qc-config.yaml\nthresholds:\n  test_failure_rate: 0.05    # >5% = FAIL, 0-5% = WARN, 0% = PASS\n  lint_errors_max: 0         # Max lint errors before FAIL\n  lint_warnings_max: 50      # Max warnings before WARN\n  type_errors_max: 0         # Max type errors before FAIL (strict by default)\n\nexclude:\n  dirs: [vendor, third_party, generated]\n  files: [\"*_generated.py\", \"*.pb.go\"]\n\nchanged_only: false          # Only check git-changed files (CI mode)\nfail_fast: false             # Stop on first failure\nquick_mode: false            # Only run Phase 1, 3, 3.5, 6\n\nlanguages:\n  python:\n    min_coverage: 80\n    ignore_rules: [T201]     # Allow print in this project\n  typescript:\n    strict_mode: true        # Require tsconfig strict: true\n    ignore_rules: []         # eslint rules to ignore\n  gdscript:\n    godot_version: \"4.2\"\n```\n\n## Execution Modes\n\n| Mode | Phases Run | Use Case |\n|------|------------|----------|\n| Full (default) | All 8 phases | Thorough audit |\n| `--quick` | 1, 3, 3.5, 6 | Fast sanity check |\n| `--changed-only` | All, filtered | CI on pull requests |\n| `--fail-fast` | All, stops early | Find first issue fast |\n| `--fix` | 3 with autofix | Apply automatic fixes |\n\n## Phase Overview\n\n| # | Phase | What | Tools |\n|---|-------|------|-------|\n| 1 | Test Suite | Run existing tests + coverage | pytest --cov \u002F jest --coverage |\n| 2 | Import Integrity | Verify all modules load | `scripts\u002Fimport_check.py` |\n| 3 | Static Analysis | Lint with proper tools | ruff \u002F eslint \u002F gdlint |\n| 3.5 | Type Checking | Static type verification | mypy \u002F tsc --noEmit \u002F (N\u002FA for GDScript) |\n| 4 | Smoke Tests | Verify business logic works | AI-generated per project |\n| 5 | UI\u002FFrontend | Verify UI components load | Framework-specific |\n| 6 | File Consistency | Syntax + git state | `scripts\u002Fsyntax_check.py` + git |\n| 7 | Documentation | Docstrings + docs accuracy | `scripts\u002Fdocstring_check.py` |\n\n## Phase Details\n\n### Phase 1: Test Suite\n\nRun the project's test suite with coverage. Auto-detect the test runner:\n\n```\npytest.ini \u002F pyproject.toml [tool.pytest] → pytest --cov\npackage.json scripts.test → npm test (or npx vitest --coverage)\nCargo.toml → cargo test\nproject.godot → (GUT if present, else manual)\n```\n\n**Record:** total, passed, failed, errors, skipped, duration, coverage %.\n\n**Verdict contribution:**\n- No tests found → **SKIP** (not FAIL; project may be config-only)\n- Failure rate = 0% → **PASS**\n- Failure rate ≤ threshold (default 5%) → **WARN**\n- Failure rate > threshold → **FAIL**\n\n**Coverage reporting (Python):**\n```bash\npytest --cov=\u003Cpackage> --cov-report=term-missing --cov-report=json\n```\n\n### Phase 2: Import Integrity (Python\u002FGDScript)\n\n**Python:** Run `scripts\u002Fimport_check.py` against the project root.\n\n**GDScript:** Verify scene\u002Fpreload references are valid (see gdscript-profile.md).\n\n#### Critical vs Optional Import Classification\n\nUse these heuristics to classify import failures:\n\n| Pattern | Classification | Rationale |\n|---------|---------------|-----------|\n| `__init__.py`, `main.py`, `app.py`, `cli.py` | **Critical** | Core entry points |\n| Module in `src\u002F`, `lib\u002F`, or top-level package | **Critical** | Core functionality |\n| `*_test.py`, `test_*.py`, `conftest.py` | **Optional** | Test infrastructure |\n| Modules in `examples\u002F`, `scripts\u002F`, `tools\u002F` | **Optional** | Auxiliary code |\n| Import error mentions `cuml`, `triton`, `tensorrt` | **Optional** | Hardware-specific |\n| Import error mentions missing system lib | **Optional** | Environment-specific |\n| Dependency in `[project.optional-dependencies]` | **Optional** | Declared optional |\n\n### Phase 3: Static Analysis\n\n**Do NOT use grep.** Use the language's standard linter.\n\n#### Standard Mode\n```bash\n# Python\nruff check --select E722,T201,B006,F401,F841,UP,I --statistics \u003Cproject>\n\n# TypeScript  \nnpx eslint . --format json\n\n# GDScript\ngdlint \u003Cproject>\n```\n\n#### Fix Mode (`--fix`)\nWhen `--fix` is specified, apply automatic corrections:\n\n```bash\n# Python — safe auto-fixes\nruff check --fix --select E,F,I,UP \u003Cproject>\nruff format \u003Cproject>\n\n# TypeScript\nnpx eslint . --fix\n\n# GDScript\ngdformat \u003Cproject>\n```\n\n**Important:** After `--fix`, re-run the check to report remaining issues that couldn't be auto-fixed.\n\n### Phase 3.5: Type Checking (NEW)\n\nRun static type analysis before proceeding to runtime checks.\n\n**Python:**\n```bash\nmypy \u003Cpackage> --ignore-missing-imports --no-error-summary\n# or if pyproject.toml has [tool.pyright]:\npyright \u003Cpackage>\n```\n\n**TypeScript:**\n```bash\nnpx tsc --noEmit\n```\n\n**GDScript:** Godot 4 has built-in static typing but no standalone checker. Estimate type coverage manually:\n\n```bash\n# Find untyped declarations\ngrep -rn \"var \\w\\+ =\" --include=\"*.gd\" .       # Untyped variables\ngrep -rn \"func \\w\\+(\" --include=\"*.gd\" . | grep -v \":\"  # Untyped functions\n```\n\nUse the `estimate_type_coverage()` function from `gdscript-profile.md` to calculate coverage per file:\n```python\n# From gdscript-profile.md\ndef estimate_type_coverage(gd_file: str) -> float:\n    \"\"\"Count typed vs untyped declarations.\"\"\"\n    # See full implementation in gdscript-profile.md\n```\n\nAlso check for `@warning_ignore` annotations which may hide type issues.\n\n**Record:** Total errors, categorized by severity.\n\n### Phase 4: Smoke Tests (Business Logic)\n\nTest **backend\u002Fcore functionality** — NOT UI components (that's Phase 5).\n\n**API Discovery Heuristics:**\n\n1. **Entry points:** Look for `main()`, `cli()`, `app`, `create_app()`, `__main__.py`\n2. **Service layer:** Find classes\u002Fmodules named `*Service`, `*Manager`, `*Handler`  \n3. **Public API:** Check `__all__` exports in `__init__.py`\n4. **FastAPI\u002FFlask:** Find route decorators (`@app.get`, `@router.post`)\n5. **CLI:** Find typer\u002Fclick `@app.command()` decorators\n6. **SDK:** Look for client classes, public methods without `_` prefix\n\n**For each discovered API, generate a minimal test:**\n```python\ndef smoke_test_user_service():\n    \"\"\"Test UserService basic CRUD.\"\"\"\n    from myproject.services.user import UserService\n    svc = UserService(db=\":memory:\")\n    user = svc.create(name=\"test\")\n    assert user.id is not None\n    fetched = svc.get(user.id)\n    assert fetched.name == \"test\"\n    return \"PASS\"\n```\n\n**Guidelines:**\n- Import + instantiate + call one method with minimal valid input\n- Use in-memory\u002Ftemp resources (`:memory:`, `tempdir`)\n- Each test \u003C 5 seconds\n- Catch exceptions, report clearly\n\n### Phase 5: UI\u002FFrontend Verification\n\nTest **UI components** separately from business logic.\n\n| Framework | Test Method |\n|-----------|-------------|\n| **Gradio** | `from project.ui import create_ui` (no `launch()`) |\n| **Streamlit** | `streamlit run app.py --headless` exits cleanly |\n| **PyQt\u002FPySide** | Set `QT_QPA_PLATFORM=offscreen`, import widget modules |\n| **React** | `npm run build` succeeds |\n| **Vue** | `npm run build` succeeds |\n| **Godot** | Scene files parse without error, required scripts exist |\n| **CLI** | `--help` on all subcommands returns 0 |\n\n**Boundary:** Phase 4 tests \"does the logic work?\" Phase 5 tests \"does the UI render?\"\n\n### Phase 6: File Consistency\n\nRun `scripts\u002Fsyntax_check.py` — compiles all source files to verify no syntax errors.\n\n> **Note:** Phase 2 (Import Integrity) tests *runtime* import behavior including initialization code. Phase 6 tests *static* syntax correctness. Both are needed: a file can have valid syntax but fail to import (e.g., missing dependency), or vice versa (syntax error in a module that's never imported).\n\nCheck git state:\n```bash\ngit status --short      # Should be clean (or report uncommitted changes)\ngit diff --check        # No conflict markers\n```\n\n### Phase 7: Documentation\n\nRun `scripts\u002Fdocstring_check.py` (now checks `__init__.py` by default).\n\nAlso verify:\n- README exists and is non-empty\n- Key docs (CHANGELOG, CONTRIBUTING) exist if referenced\n- No stale TODO markers in docs claiming completion\n\n## Verdict Logic\n\n```\n# Calculate test failure rate\nfailure_rate = test_failures \u002F total_tests\n\n# Default thresholds (override in .qc-config.yaml)\nFAIL_THRESHOLD = 0.05  # 5%\nWARN_THRESHOLD = 0.00  # 0%\nTYPE_ERRORS_MAX = 0    # Default: strict (any type error = FAIL)\n\n# Verdict determination\nif any([\n    failure_rate > FAIL_THRESHOLD,\n    critical_import_failure,\n    type_check_errors > thresholds.type_errors_max,  # Configurable threshold\n    lint_errors > thresholds.lint_errors_max,\n]):\n    verdict = \"FAIL\"\nelif any([\n    0 \u003C failure_rate \u003C= FAIL_THRESHOLD,\n    optional_import_failures > 0,\n    lint_warnings > thresholds.lint_warnings_max,\n    missing_docstrings > 0,\n    smoke_test_failures > 0,\n]):\n    verdict = \"PASS WITH WARNINGS\"\nelse:\n    verdict = \"PASS\"\n```\n\n## Baseline Comparison\n\nSave results to `.qc-baseline.json`:\n\n```json\n{\n  \"timestamp\": \"2026-02-15T15:00:00Z\",\n  \"commit\": \"abc123\",\n  \"verdict\": \"PASS WITH WARNINGS\",\n  \"config\": {\n    \"mode\": \"full\",\n    \"thresholds\": {\"test_failure_rate\": 0.05}\n  },\n  \"phases\": {\n    \"tests\": {\"total\": 134, \"passed\": 134, \"failed\": 0, \"coverage\": 87.5},\n    \"imports\": {\"total\": 50, \"failed\": 0, \"optional_failed\": 1, \"critical_failed\": 0},\n    \"types\": {\"errors\": 0, \"warnings\": 5},\n    \"lint\": {\"errors\": 0, \"warnings\": 12, \"fixed\": 8},\n    \"smoke\": {\"total\": 14, \"passed\": 14},\n    \"docs\": {\"missing_docstrings\": 3}\n  }\n}\n```\n\nOn subsequent runs, report delta:\n```\nTests:      134 → 140 (+6 ✅)\nCoverage:   87% → 91% (+4% ✅)\nType errors: 0 → 0 (✅)\nLint warnings: 12 → 5 (-7 ✅)\n```\n\n## Report Output\n\nGenerate in 3 formats:\n1. **Markdown** (`qc-report.md`) — full detailed report for humans\n2. **JSON** (`.qc-baseline.json`) — machine-readable for CI\u002Fcomparison\n3. **Summary** (chat message) — 10-line digest for Discord\u002FSlack\n\n### Summary Format Example\n\n```\n📊 QC Report: my-project @ abc123\nVerdict: ✅ PASS WITH WARNINGS\n\nTests:    134\u002F134 passed (100%) | Coverage: 87%\nTypes:    0 errors\nLint:     0 errors, 12 warnings\nImports:  50\u002F50 (1 optional failed)\nSmoke:    14\u002F14 passed\n\n⚠️ Warnings:\n- 3 missing docstrings\n- 12 lint warnings (run with --fix)\n```\n\n## Language-Specific Profiles\n\nRead the appropriate profile before running:\n- **Python**: `references\u002Fpython-profile.md`\n- **TypeScript**: `references\u002Ftypescript-profile.md`\n- **GDScript**: `references\u002Fgdscript-profile.md`\n- **General** (any language): `references\u002Fgeneral-profile.md`\n",{"name":5,"description":7},"main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fisonaei\u002Fcode-qc",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill code-qc",{"tool":39,"command":40},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill code-qc",{"tool":42,"command":43},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill code-qc","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fisonaei\u002Fcode-qc\u002FSKILL.md",true,[],[48,56,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":55},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":55},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":55},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":55},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":55},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":55},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]