act-on-ai-comments

Scan unstaged git changes for AI-prefixed comments and execute their actions.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/swtch1/dotfiles --skill act-on-ai-comments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: act-on-ai-comments
Source: https://github.com/swtch1/dotfiles/tree/main/.claude/skills/act-on-ai-comments
Command: npx skills add https://github.com/swtch1/dotfiles --skill act-on-ai-comments

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps manage and act upon AI-generated comments within your codebase, ensuring that AI-driven instructions and questions are addressed efficiently.

Core Features & Use Cases

  • AI Comment Detection: Scans unstaged git changes for specific AI comment prefixes (AI? for questions, AI! for commands).
  • Automated Action Execution: Executes the actions specified in AI comments, streamlining development workflows.
  • Use Case: When you've left notes for an AI assistant in your code, like AI! Refactor this section for clarity or AI? Is this the correct approach?, this skill can find and act on them.

Quick Start

Check my unstaged git changes for any AI comments and act on them.

Frequently Asked Questions about act-on-ai-comments

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

FAQPage Schema
How do I automate actions for AI comments in my code?

You can automate actions for AI comments by scanning unstaged git changes for AI-prefixed markers like `AI!` for commands and `AI?` for questions, which the tool then executes automatically.

What are AI comment prefixes in git changes?

AI comment prefixes are specific markers like `AI?` for questions and `AI!` for commands left in code annotations, allowing an automated tool to detect and act upon them during git workflow.

How do I execute commands left as notes in my codebase?

To execute commands left as notes, the tool searches unstaged git changes for `AI!` command prefixes and automatically runs the requested actions, streamlining your development workflow.

Do I need staged files to process AI-generated comments?

No, you need unstaged git changes present for analysis, and the repository must have git initialized to detect and act on the AI-generated comments.

How does automated AI comment detection work with git?

Automated AI comment detection works by searching unstaged git changes for specific prefixes like `AI!` and `AI?`, then parsing the annotations to execute the requested developer actions.

Can this tool answer questions left in my code annotations?

Yes, the tool can act on questions left in code annotations by detecting `AI?` prefixes within unstaged git changes and executing the requested actions to address them.