---
title: "Use code comments as prompts for Claude | Ian Nuttall"
description: "Use comment directives in code for contextual Claude prompts"
canonical: "https://ian.is/post/claude-comment-directives"
language: "en"
---

# Use code comments as prompts for Claude

Sep 2025 / 21,541 views / [via X](https://x.com/iannuttall/status/1967586619487367603)

Claude Code pro tip:

use comment directives in your code like mini-prompts Claude can use to find & act on

this is a nice way to have contextual prompts that keep you in your codebase so you know what's going on - but use AI to act on them!

via @giuseppegurgone (link below)

![Image from the original X post](https://ian.is/media/tweets/1967586619487367603/1967586619487367603/558a32377b68bbce4689f73f74e4aae997da749b68dfe756fb6de6d39bf12584.jpg)

[https://giuseppegurgone.com/comment-directives-claude-code](https://giuseppegurgone.com/comment-directives-claude-code)

## Ian's List

Join 15k\+ subscribers
