skills/code-quality-linting/SKILL.md
# Playbook: Zero-Defect Code Quality (Principal Engineer Grade) This playbook defines the mandatory quality standards for all code generated by the Synaptic Framework. Follow these rules to ensure production-grade stability and pass all automated linters (Pylint, Flake8, MyPy). ## 1. Zero-Trust Linting - **PEP8 Compliance**: All Python code must strictly follow PEP8. This includes: - Exactly 4 spaces for indentation. - Max line length of 88 characters (Black style). - Clear separat
npx skillsauth add shalin-rahman/Synapticity skills/code-quality-lintingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This playbook defines the mandatory quality standards for all code generated by the Synaptic Framework. Follow these rules to ensure production-grade stability and pass all automated linters (Pylint, Flake8, MyPy).
None if applicable.BaseModel for validation.mypy --strict whenever possible.try...except blocks with precise exception types. Never use a bare except:.asyncio for I/O bound operations to maximize throughput.Applying this skill ensures that every line of code produced is ready for an enterprise-grade CI/CD pipeline.
tools
# Skill: Zero-Defect Software Engineering # Focus: Writing immortal, self-documenting, and resilient source code. ## Playbook Strategy: 1. **SOLID Foundations**: - **Single Responsibility**: Every class/function does ONE thing perfectly. - **Open/Closed**: Design for extension without modification. 2. **DRY (Don't Repeat Yourself)**: If logic appears twice, abstract it into a utility or base class. 3. **Defensive Programming**: - Validate every input. - Handle every exception specif
development
# Skill: TypeScript Clean Code (Staff Engineer) # Usage: Use for any TypeScript-based project to ensure enterprise-grade type safety and readability. ## Core Rules: - **Strict Typing:** Never use `any`. Use `unknown` with type guards if the type is truly uncertain. - **Interfaces vs Types:** Use `interface` for public APIs (extendability) and `type` for unions, intersections, and primitives. - **Functional Patterns:** Prioritize immutability. Use `readonly` for arrays and objects where possible
development
# Skill: Advanced Testing Strategies (TDD / BDD) # Usage: Use to enforce high code quality, prevent regressions, and ensure requirements are met implicitly. ## 🧪 The Testing Pyramid - **Unit Tests (70%)**: Fast, isolated tests for individual functions and classes. Mock all external dependencies. - **Integration Tests (20%)**: Test the interaction between several units or external systems (e.g., Database, APIs). - **End-to-End (E2E) Tests (10%)**: Slow, brittle tests that verify the system as a
development
# Skill: Technical Hand-off & Clarity # Focus: Professional documentation for human and machine consumption. ## Playbook Strategy: 1. **The "ReadMe First" Rule**: Use structured, hierarchical markdown. High-level summary first, deep-dive implementation second. 2. **Contextual Grounding**: Explain the "Why" and the "How" for every project. 3. **Semantic Clarity**: Use industry-standard terminology. Avoid jargon where simple language suffices. 4. **Machine-Readable Annotations**: Include clear co