All skills
ntcoding avatar

/lightweight-implementation-analysis-protocol

@f9e68f5
by Nick Tunentcoding/claude-skillz351 stars
46

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.

Use this Skill: https://skilld.dev/gh/ntcoding/claude-skillz/lightweight-implementation-analysis-protocol

This session only. Nothing lands on disk.

SKILL.md

β‰ˆ139 tokens always: the name and description. β‰ˆ390 when used: this file. β‰ˆ328 more on demand in 1 file.

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?"

Source: SKILL.md on GitHub

No alerts6mo4 checks Β· Risk SAFE
  • Gen Agent Trust Hub7mo

    This skill is a purely instructional protocol designed to improve AI reasoning during code analysis and debugging. It contains no executable code, no network operations, and no data access. It is safe to use.

  • Socket6mo

    No alerts

  • Snyk7mo

    Risk: LOW Β· No issues

  • Runlayer7mo

    2 files scanned Β· No issues

Signed by skilld at f9e68f5. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 8 months ago
version
1.0.0

README badge

README badge for ntcoding/claude-skillz/lightweight-implementation-analysis-protocol