auldsyababua/instructor-workflow/code-validation
Claude Code and agent skill by auldsyababua/instructor-workflow
- community
Checking that the SKILL.md file is still in the repository.
Automated code validation for diff review, change hygiene, and red flag detection. Use when reviewing git diffs, PRs, or changed files for test disabling patterns, secrets, path portability issues, security flags, and large deletions. Supports Python, TypeScript, JavaScript, HTML, and CSS.
Install
npx vskill@latest install auldsyababua/instructor-workflow/code-validationSKILL.md
Code Validation
Validates code changes through automated scanning and LLM-guided heuristics to detect:
- Test disabling patterns (skip, only, todo)
- Secret exposure (hardcoded credentials, API keys)
- Path portability issues (user-specific paths)
- Dangerous security flags
- Large deletions
- Dependency/import changes
- Broad exception handling
When to Use
Execute code-validation as part of QA validation protocol:
- After Action Agent completes implementation
- Before approving changes for merge
- When reviewing diffs for red flags
- During final validation phase
Validation Workflow
1. Automated Scanning (Scripts)
Run scripts first for deterministic, fast checks:
For Git Diffs (comparing branches):
For Static File Analysis (staged changes or specific files):
2. Interpret Scan Results
Parse JSON output and evaluate findings:
Finding Structure:
Severity Guidelines:
- CRITICAL: Secrets, user-specific paths in docs - BLOCK merge immediately
- HIGH: Test disabling, security flags, user-specific paths in code - Require Action Agent fixes
- MEDIUM: Large deletions, dependency changes, broad exceptions - Review and justify
- LOW: Minor issues - Optional fixes
3. LLM Heuristic Review (Context-Dependent)
After automated scanning, apply human judgment for:
Test Assertion Weakening
Scripts cannot detect semantic changes. Manually review:
- Reduced assertion count without clear reason
- Replaced specific assertions with generic checks
- Removed edge case validations
- Changed from behavior validation to mock validation only
Red Flags:
Broad Try/Catch Appropriateness
Evaluate if exception handling is justified:
- Top-level error boundaries: Often acceptable
- Business logic: Usually inappropriate
- Missing error logging/reporting: Red flag
- Swallowing errors without assertions in tests: Red flag
When Acceptable:
Red Flag:
Scope Creep vs Legitimate Refactoring
Assess if changes align with issue scope:
- Issue describes feature X, but changes include unrelated Y
- "While I was here" refactoring without issue reference
- Architecture changes not mentioned in acceptance criteria
Legitimate:
- Refactoring directly related to implementation
- Fixing bugs discovered during implementation (document in scratch notes)
- Updating tests to match new implementation
Scope Creep:
- Reformatting unrelated files
- Adding features not in issue
- Changing patterns/conventions beyond issue scope
Architecture Alignment
Verify changes match current production architecture:
- Check against ADRs referenced in
.project-context.md - Verify stack matches documented tech stack
- Confirm patterns follow project standards
- Ensure deprecated approaches aren't reintroduced
4. Generate Validation Report
Combine automated findings with heuristic review:
Script Output Format
Both scripts output JSON with this structure:
Red Flag Categories
Test Disabling (HIGH)
Patterns indicating tests were disabled rather than fixed:
.skip(),.only(),.todo()xit(),xdescribe(),fit(),fdescribe()@pytest.skip,@unittest.skip
Action: Require Action Agent to fix tests or justify with comment
Secret Exposure (CRITICAL)
Hardcoded credentials or API keys:
- API keys, tokens, passwords
- AWS credentials
- GitHub tokens
- Stripe keys
Action: BLOCK merge, require environment variables
Path Portability (CRITICAL in docs, HIGH in code)
User-specific paths that won't work for other developers:
/Users/username//home/username/C:\Users\username\~/Desktop,~/Documents
Action: BLOCK if in documentation, require repo-relative paths
Security Flags (HIGH)
Commands that weaken security:
--no-verify,--insecure,-kchmod 777StrictHostKeyChecking no--allow-root
Action: Require justification comment or removal
Large Deletions (MEDIUM)
Files with >100 lines removed:
- May indicate legitimate refactoring
- Could hide removed validation logic
- Might remove important error handling
Action: Manual review to verify deletions are intentional
Dependency Changes (MEDIUM)
New imports or package additions:
- Track new dependencies for security review
- Verify necessity for issue scope
- Check for unnecessary additions
Action: Verify in package.json/requirements.txt, run security audit
Integration with QA Protocol
Execute code-validation at Step 3: Change Review (Diff) in QA workflow:
- Switch to feature branch
- Run code-validation scripts
- Interpret automated findings
- Apply LLM heuristics
- Continue with Claude Code Review (MCP)
- Proceed with remaining QA steps
If CRITICAL or multiple HIGH findings:
- BLOCK validation
- Report to Traycer with specific file:line references
- Delegate to Action Agent for fixes
- Re-run validation after fixes
Resources
- Scripts:
scripts/diff_analyzer.py- Analyzes git diffs for red flagsscripts/static_analyzer.py- Scans files without git context
Notes
- Scripts are deterministic and fast; use them first
- LLM heuristics handle context-dependent evaluation
- Always provide file:line references in reports
- CRITICAL findings must block merge
- Document justified exceptions in code comments
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/code-validation/SKILL.md
Popularity
- Repository stars
- 5
- Repository forks
- 1
- 7-day trend score
- 9
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/auldsyababua/instructor-workflow/code-validation)