home / skills / git-fg / thecattoolkit / applying-code-standards
This skill helps you apply universal code standards for TDD, security, and quality across debugging, review, and implementation tasks.
npx playbooks add skill git-fg/thecattoolkit --skill applying-code-standardsReview the files below or copy the command above to add this skill to your agents.
---
name: applying-code-standards
description: "Provides Universal Standard for TDD, Security, and Code Quality. PROACTIVELY Use when writing code, debugging errors, or reviewing PRs. Modes: debug, review, refactor, implement."
context: fork
agent: worker
allowed-tools: [Read, Write, Edit, Bash, Glob, Grep]
---
# Applying Code Standards Protocol
## Workflow Selection
### Mode: Debugging
**Trigger**: "Fix this error", "Why is this failing?", "Debug...", crashes, test failures
**Protocol**: Load and apply the Debugging Workflow section from [core-engineering.md](references/core-engineering.md)
### Mode: Code Review
**Trigger**: "Review this", "Check for bugs", "PR review", assessing code quality
**Protocol**: Load and apply [review-workflow.md](references/review-workflow.md)
### Mode: Static Analysis
**Trigger**: "Static analysis", "Security scan", "Code quality check", "SAST", "Analyze code"
**Protocol**: Load and apply [static-analysis-workflow.md](references/static-analysis-workflow.md)
### Mode: Implementation (TDD)
**Trigger**: "Implement feature", "Write code", "Build..."
**Protocol**: Load and apply [tdd-protocol.md](references/tdd-protocol.md)
### Mode: Refactoring
**Trigger**: "Refactor", "Clean up", "Improve structure"
**Protocol**: Load and apply [refactoring-patterns.md](references/refactoring-patterns.md)
## Engineering Standards
Consult [core-engineering.md](references/core-engineering.md) for Universal Standards including TDD Protocol, Security (OWASP), Testing, and Debugging workflows.
This skill provides a universal protocol for Test-Driven Development, security, and code quality applied proactively during coding, debugging, and PR review. It guides engineers across four modes—debug, review, refactor, implement—so work stays consistent with TDD, OWASP-informed security, and static analysis best practices. The guidance is tuned for Python but is broadly applicable to other languages.
Select one of four modes depending on the task: Debugging, Code Review, Static Analysis, Implementation (TDD), or Refactoring. For each mode the skill runs a checklist-style workflow: detect triggers, run targeted inspections, propose concrete fixes or tests, and produce an actionable summary. Outputs include failing test diagnosis, prioritized security findings, refactor suggestions, and minimal passing test-driven implementations.
Is this Python-specific?
The protocols are language-agnostic but include Python-focused examples and recommendations for tooling and tests.
Will it fix code automatically?
It provides concrete diffs and step-by-step instructions; automation depends on your CI/tooling to apply patches.