stub-warn

Block unimplemented stub idioms in code during PostToolUse Edit|Write.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/youssefKadaouiAbbassi/yka-code --skill stub-warn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stub-warn
Source: https://github.com/youssefKadaouiAbbassi/yka-code/tree/main/forge/plugin/skills/stub-warn
Command: npx skills add https://github.com/youssefKadaouiAbbassi/yka-code --skill stub-warn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Prevents unimplemented stubs from reaching the shipping codebase, maintaining code quality and ensuring features are implemented.

Core Features & Use Cases

  • Blocking Unimplemented Stubs: Automatically identify and block unimplemented stubs, ensuring that all stubs eventually lead to real functionality.
  • PostToolUse Edit|Write: Triggered on every PostToolUse Edit|Write to ensure the codebase is always progressing.
  • Language-Specific Checks: Recognizes specific idioms for unimplemented code in different programming languages (e.g., throw new Error("TODO") in TS/JS, todo!() in Rust).

Quick Start

Activate the stub-warn hook to begin automatically blocking unimplemented stubs in your codebase.

Frequently Asked Questions about stub-warn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I block unimplemented stubs from being committed to my codebase?

You can block unimplemented stubs by activating a PostToolUse Edit|Write hook that automatically monitors codebase changes. This prevents stub idioms from being committed, ensuring code quality and continuous progress in collaborative environments.

What are common stub idioms in different programming languages?

Common stub idioms include `throw new Error("TODO")` in TypeScript and JavaScript, or `todo!()` in Rust. Language-specific checks recognize these patterns to automatically block unimplemented code across multi-language projects.

How do I prevent TODO comments and placeholder code from reaching production?

Prevent placeholder code from reaching production by enforcing a PostToolUse Edit|Write hook that blocks stub idioms. This ensures all placeholder markers are replaced with real functionality before code progresses further in the development pipeline.

Does stub blocking work for multi-language development environments?

Yes, stub blocking works for multi-language development environments by applying language-specific checks. It recognizes distinct unimplemented code idioms across various programming languages to enforce a clean codebase across the entire project.

When should I use automated codebase monitoring for stub blocking?

Use automated codebase monitoring for stub blocking in collaborative development environments where maintaining code quality is critical. It ensures continuous code progress by automatically catching unimplemented stubs during every Edit or Write operation.