Agent skill
lightweight-implementation-analysis-protocol
This skill should be used when fixing bugs, implementing features, debugging issues, or making code changes. Ensures understanding of code flow before implementation by: (1) Tracing execution path with specific file:line references, (2) Creating lightweight text diagrams showing class.method() flows, (3) Verifying understanding with user. Prevents wasted effort from assumptions or guessing. Triggers when users request: bug fixes, feature implementations, refactoring, TDD cycles, debugging, code analysis.
Install this agent skill to your Project
npx add-skill https://github.com/NTCoding/claude-skillz/tree/main/lightweight-implementation-analysis-protocol
SKILL.md
Lightweight Implementation Analysis Protocol
Quick understanding before implementation - just enough to guide TDD, no more.
When This Activates
Before creating implementation plans, fix plans, or TDD cycles for bugs/features.
The Protocol (3 Quick Steps)
1. Trace the Flow
Answer these:
- Which event/request triggers this?
- Which file:line handles it?
- Where does the error occur (file:line)?
2. Quick Diagram
Simple class.method() flow with relevant data:
Event: EventName
↓ (contains: relevant fields)
Class.method() [file:line]
↓ (what it does)
Class.method() [file:line] ← 💥 Error here
↓
Result: What happens
Keep it short - 5-10 lines max.
3. Verify
Ask: "Here's the flow: [diagram]. Correct?"
Wait for confirmation, then proceed.
Example
Problem: Email validation failing
Event: user.email.updated
↓ (email: "invalid@")
UpdateUserEmailHandler.execute() [line 281]
↓ (validates email format)
EmailValidator.parse() [line 289] ← 💥 Throws ValidationError
↓
Result: Error response
Current: Throws
Should: Use safeParse(), return validation error
Rules
- Keep it lightweight - This isn't detailed planning, just enough to know what to test
- Be specific - File:line, not abstractions
- Get confirmation - Don't proceed without it
- Skip for trivial changes - Typos, formatting, docs
Anti-Pattern
❌ WRONG: "I'll fix the validation. Here's my plan..." ✅ RIGHT: "Let me trace where the error occurs... [diagram]. Correct?"
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
fix-it-never-work-around-it
Stops execution and fixes root cause when commands, builds, scripts, or tools fail unexpectedly. Triggers on workaround language: 'directly', 'instead', 'alternatively', 'skip', 'fall back', 'work around', 'isn't working', 'broken', 'manually'. Activates on any unexpected non-zero exit code or process failure.
typescript-backend-project-setup
Sets up NX monorepo for TypeScript backend projects optimized for AI-assisted development. Delegates to NX commands where possible, patches configs as last resort. Triggers on: 'set up typescript backend project', 'create backend project', 'initialize typescript backend', 'create monorepo', or when working in an empty project folder.
critical-peer-personality
Professional, skeptical communication style. Never over-enthusiastic, verifies before agreeing, challenges constructively, proposes instead of asking preferences. Expert peer who coaches, not serves. Triggers on: composing responses, agreeing with user, making recommendations, giving feedback.
lightweight-task-workflow
FOLLOW THE STATE MACHINE IN SKILL.MD. When user says 'continue': (1) FIRST: Run pwd, (2) Announce STATE: CHECK_STATUS, (3) Read .claude/session.md to check Status field, (4) Route based on Status. NEVER auto-advance tasks. NEVER use TodoWrite. NEVER create git commits.
questions-are-not-instructions
Engage with what the user said before taking action. Triggers on: questions ('?'), feedback ('this is wrong', 'that doesn't look right', 'there are issues'), challenges ('why did you', 'have you considered'), criticism ('this isn't working', 'I don't like'), observations ('I notice', 'it seems like'), naming a skill or concept. STOP and respond to the user's actual words before doing anything.
lightweight-design-analysis
This skill analyzes code for design quality improvements across 8 dimensions: Naming, Object Calisthenics, Coupling & Cohesion, Immutability, Domain Integrity, Type System, Simplicity, and Performance. Ensures rigorous, evidence-based analysis by: (1) Understanding code flow first via implementation-analysis protocol, (2) Systematically evaluating each dimension with specific criteria, (3) Providing actionable findings with file:line references. Triggers when users request: code analysis, design review, refactoring opportunities, code quality assessment, architecture evaluation.
Didn't find tool you were looking for?