agents-md-writing

Define CLAUDE.md and AGENTS.md instruction files with structure, memory patterns, and workflow rules.

10|1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/dongzhuoyao/tao-research-skills --skill agents-md-writing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-md-writing
Source: https://github.com/dongzhuoyao/tao-research-skills/tree/main/agents-md-writing
Command: npx skills add https://github.com/dongzhuoyao/tao-research-skills --skill agents-md-writing

SYSTEM DOCUMENTATION & REQUIREMENTS

## What problem does it solve? Writing CLAUDE.md/AGENTS.md instruction files consistently is challenging without a proven template; this Skill provides a canonical structure, memory patterns, workflow rules, and anti-pattern guidance to standardize AI development workflows.

## Core Features & Use Cases

  • Provides a repeatable template covering commands, architecture, gotchas, style, and memory guidelines for CLAUDE.md and AGENTS.md.
  • Helps create or improve project instruction files and establish cross-session memory strategies.
  • Use cases include starting a new project with a complete instruction file or refining an existing one for better agent alignment and efficiency.

### Quick Start Follow this guide to draft a CLAUDE.md or AGENTS.md for your project using the recommended sections and patterns.

Frequently Asked Questions about agents-md-writing

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

FAQPage Schema
How do I write a CLAUDE.md file to maintain AI agent context across sessions?

Writing a CLAUDE.md file requires defining structured instruction sections like Commands, Architecture, and Memory guidelines to maintain consistent AI agent context across sessions. This skill provides a canonical template with memory patterns and workflow rules to standardize that behavior.

What should I include in an AGENTS.md instruction file for repeatable agent behavior?

An AGENTS.md instruction file should include sections for Commands, Architecture, Gotchas, Style, and Memory guidelines to ensure repeatable agent behavior. It must also define frontmatter with a name and description, plus anti-pattern guidance to prevent common errors.

When do I need to define memory patterns and anti-patterns in my instruction files?

You need to define memory patterns and anti-patterns in instruction files when your project requires clear, repeatable AI agent behavior across multiple sessions. Memory patterns establish cross-session context strategies, while anti-patterns prevent the agent from repeating known mistakes.

What is the best way to structure workflow rules for AI development using CLAUDE.md?

The best way to structure workflow rules in CLAUDE.md is using a canonical template that separates commands, architecture, and style guidelines. This skill helps you apply these structured workflow rules and memory sections to achieve better agent alignment and efficiency.

Can I use this approach to improve an existing instruction file rather than starting from scratch?

Yes, you can refine an existing instruction file by applying the provided memory patterns, workflow rules, and anti-pattern guidance. This skill helps improve current projects by introducing missing sections like Gotchas and Memory guidelines for better agent alignment.

Why does my AI agent forget project architecture and style rules between sessions?

AI agents forget project architecture and style rules between sessions when instruction files lack proper memory patterns and structured sections. Establishing cross-session memory strategies and canonical templates in files like CLAUDE.md solves this context loss.