360 Secure SkillHub
360 安全技能中心

Partial Implementation

该 Skill 描述“部分实现”失败模式:函数或模块被标记为完成,但函数体只有 pass、return None、TODO 等占位内容。它列出症状与应对方法,提醒在声明完成前重读改动、搜索 TODO/FIXME/NotImplementedError 等标记、端到端运行代码,并让实现与任务描述逐条对应。属于代码质量与评审类指导,不含自动化工具。

分类:开发
mvogt99
mvogt99
热度 23.42
最近更新 2026-05-11 17:46:01

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add mvogt99/partial-implementation
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
partial-implementation
description
Code returned as "done" is actually a stub — a placeholder body, a TODO comment, or a function that claims completion without real logic.
emoji
🚧
metadata
{"clawdis":{"os":["macos","linux","windows"]}}

partial-implementation

A function or module is declared complete, but the body is a stub. The most common form is a function with pass, return None, throw NotImplementedError, or a single TODO: comment in place of real logic.

Symptoms

  • Function signature exists but the body contains only a comment, pass, return, throw new Error("not implemented"), or similar.
  • Placeholder values returned (return 0, return {}, return null) where real computation was requested.
  • Tests pass only because the test is also a stub, or because the function always returns the fixture value.
  • The agent claims a change is "complete" or "implemented" but no meaningful lines of logic were added.

What to do

  • Before declaring a task done, re-read every function you added or modified. If the body is a placeholder, the task is not done.
  • Search the diff for TODO, FIXME, XXX, NotImplementedError, unimplemented!, pass, lone return or return null. Investigate each hit.
  • Run the code end-to-end, not just the type-checker. A stub satisfies the type checker but fails at runtime.
  • Compare the implementation against the task description: every bullet of the task should map to concrete lines of logic, not comments.
  • If part of the task is genuinely out of scope, say so explicitly rather than stubbing silently.