بنقرة واحدة
stub-scan
Use when reviewing code for incomplete implementations, placeholder stubs, or false-completion markers.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when reviewing code for incomplete implementations, placeholder stubs, or false-completion markers.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when: checking spec-vs-code fidelity, finding orphaned acceptance criteria, finding orphaned tests, detecting stale specifications, running sdd analyze drift, auditing traceability health
Distil a raw brief/brain-dump/ticket into a 5-field intent kernel ready to seed Phase 1 spec (Wave 27 §26
Author and tighten .sdd-modules/policy.yaml; resolve extends chains; choose allow/deny lists; verify with sdd doctor --policy-preflight (Wave 26 §25 #1).
Phase 3 (Architect) namespace meta-skill — REST, async messaging, ADR, hexagonal.
Diagnostic namespace meta-skill — module verify, drift, hidden Unicode, sizing.
Phase 4 (Implement) namespace meta-skill — TDD, hotspot review, commit hygiene.
| name | stub-scan |
| keyword-tags | ["stub","placeholder","todo","fixme","hack","incomplete","empty-handler","bare-return"] |
| description | Use when reviewing code for incomplete implementations, placeholder stubs, or false-completion markers. |
Purpose: detect stub/placeholder patterns that indicate incomplete implementation.
sdd doctor --stub-scan.These patterns indicate code that is not genuinely implemented:
| # | Pattern | Example |
|---|---|---|
| 1 | Empty catch/handler blocks | catch (e) {} or except Exception: pass |
| 2 | Single-line return with no logic | return; in a function that should compute |
| 3 | Hardcoded dummy returns | return "", return 0, return null, return [] |
| 4 | "TBD" / "PLACEHOLDER" string literals | const name = "TBD" |
These patterns may be legitimate if annotated with context:
| # | Pattern | Example |
|---|---|---|
| 5 | // TODO without ticket context | // TODO fix this later |
| 6 | // FIXME without ticket context | // FIXME broken edge case |
| 7 | // HACK without justification | // HACK works for now |
| 8 | // PLACEHOLDER marker | // PLACEHOLDER — replace with real logic |
A TODO is suppressed (downgraded to INFO) when it follows the format:
// TODO(TICKET-123): description of deferred work
The parenthesized ticket reference signals intentional deferral, not forgotten code.
| Condition | Severity |
|---|---|
| Empty handler or bare placeholder (patterns 1–4) | CRITICAL |
TODO/FIXME/HACK/PLACEHOLDER without ticket (5–8) | WARN |
TODO(ticket) with ticket reference | INFO (suppressed) |
**/examples/**, **/tutorials/**) are configurable in .sdd/config.