code-sentinel

Fix recurring anti-patterns detected by pytest and verify with test_code_patterns.py.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Mharbulous/SyncoPaid --skill code-sentinel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-sentinel
Source: https://github.com/Mharbulous/SyncoPaid/tree/main/.claude.backup-20241224/skills/code-sentinel
Command: npx skills add https://github.com/Mharbulous/SyncoPaid --skill code-sentinel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest.

What problem does it solve?

This Skill helps identify and fix recurring anti-patterns detected by test_code_patterns.py, documenting root causes and ensuring fixes address underlying issues rather than symptoms.

Core Features & Use Cases

  • Anti-pattern mapping: For each failing test, consult the anti-pattern documentation and apply a root-cause fix.
  • Deterministic fixes: Prioritize fixes that address root causes and prevent recurrence.
  • Verification: Re-run tests to confirm the issue is resolved and no new issues were introduced.

Quick Start

Invoke the code-sentinel when pytest tests fail due to known anti-patterns. It maps each failure to a documented anti-pattern, applies the documented remediation, and verifies the test suite passes.

Frequently Asked Questions about code-sentinel

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

FAQPage Schema
How do I fix anti-patterns detected by pytest in my test suite?

Anti-patterns are recurring code issues caught by tests. code-sentinel maps each failing test to documented anti-patterns—like grep exit code handling or git operations without staging—and applies root-cause fixes. Re-run pytest to verify the issue is resolved and no new problems appear.

What are common test anti-patterns and how do I prevent them?

Common anti-patterns include heredocs in GitHub Actions, non-deterministic file selection, fixed window geometry, PyInstaller hidden imports, path case sensitivity issues, and absolute imports for sibling modules. code-sentinel identifies these through pytest and applies documented solutions to address root causes, not just symptoms.

Can I automate anti-pattern detection and fixes in my CI/CD pipeline?

Yes. code-sentinel integrates with CI/CD pipelines using pytest to detect anti-patterns automatically. It maps failures to remediation steps, applies fixes deterministically, and re-runs tests to confirm resolution, preventing regressions without manual intervention.

How does code-sentinel differ from running pytest alone?

pytest identifies test failures; code-sentinel goes further by mapping failures to specific documented anti-patterns and applying targeted root-cause fixes rather than leaving failures unresolved. It ensures fixes are deterministic and verified through re-testing.

What dependencies do I need to use code-sentinel?

code-sentinel requires pytest. It works locally during development or in CI/CD pipelines to detect and remediate anti-patterns documented in mapped reference files, with no additional tool dependencies needed.