A TASK.md file is a per feature spec placed alongside CLAUDE.md. It holds a single task's requirements, reference handling rules, UI states, logic edge cases, security checks, and acceptance criteria, giving an AI coding tool a structured brief to work through before writing code.