Skip to content
Development
Command

/todo

Add a TODO comment to code with optional priority and assignee

From plugin
claude-code-engineering
1.1k11 skills16 agents11 commands
Install
$ npx -y skills add huangjia2019/claude-code-engineering --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/todo

Context preview

What this command does when you run it.

Add a TODO comment to code with optional priority and assignee

Command definition

todo.md
name: todo
description: Add a TODO comment to code with optional priority and assignee

When the user runs `/todo [message]`, help them add a TODO comment.

Behavior

1. If a file is currently open or recently edited, add the TODO there 2. Format the TODO comment appropriately for the file's language:

  • JavaScript/TypeScript: `// TODO: message`
  • Python: `# TODO: message`
  • HTML/XML: `<!-- TODO: message -->`
  • CSS: `/* TODO: message */`

3. If the message includes priority markers, format accordingly:

  • `!` → HIGH priority
  • `?` → needs discussion
  • Default → normal priority

Examples

User: `/todo fix null check` Result: `// TODO: fix null check`

User: `/todo ! critical security fix` Result: `// TODO [HIGH]: critical security fix`

User: `/todo ? should we use async here` Result: `// TODO [DISCUSS]: should we use async here`

Guidelines

  • Insert the TODO at a logical location (near related code)
  • If no file context, ask the user where to add it
  • Keep TODO messages concise but descriptive
Ships withclaude-code-engineering

This repository demonstrates how to use Claude Code to do real engineering work, not just writing code. 本项目是极客时间专栏 《Claude Code 工程化实战》 的官方配套示例仓库,目标就是: 👉 把 Claude Code 从“对话式编码工具”,变成 可设计、可复用、可治理的工程系统。

Get the whole plugin, auto-invoked
Stats
1,050
Stars
0
Views
373
Forks
Active
Maintenance
JavaScript
Language
16d ago
Last commit
6mo ago
Created

Repo: huangjia2019/claude-code-engineering