| name | project-documentation |
| description | Standards for creating and maintaining project documentation including README files, inline comments, API documentation, and architectural decision records |
| version | 1.0.0 |
| author | mymarketingpro-vue Team |
| created | "2026-01-26T00:00:00.000Z" |
| updated | "2026-01-26T00:00:00.000Z" |
| tags | ["documentation","readme","api-docs","adr","comments"] |
| applies_to | ["**/*.md","**/README*","**/CHANGELOG*","**/docs/**"] |
Project Documentation Standards
Comprehensive guidelines for creating clear, consistent, and maintainable documentation across the project.
Documentation Hierarchy
Required Documentation
| File | Location | Purpose |
|---|
README.md | Project root | Project overview, setup, quick start |
AGENTS.md | Project root | AI agent context and patterns |
CHANGELOG.md | Project root | Version history and changes |
docs/ | Project root | Detailed documentation |
Documentation Types
mymarketingpro-vue/
├── README.md # Quick start, overview
├── AGENTS.md # AI context
├── CHANGELOG.md # Version history
├── CONTRIBUTING.md # Contribution guidelines
└── docs/
├── architecture/ # System design
│ ├── overview.md
│ └── decisions/ # ADRs
├── api/ # API documentation
├── guides/ # How-to guides
├── specs/ # Feature specifications
└── fixes/ # Bug fix documentation
README.md Standards
Required Sections
Every README.md should include:
# Project Name
Brief description of what this project does.
## Quick Start
\`\`\`bash
# Installation
npm install
# Development
npm run dev
# Testing
npm run test
\`\`\`
## Features
- Feature 1: Description
- Feature 2: Description
## Documentation
- [Full Documentation](./docs/)
- [API Reference](./docs/api/)
- [Contributing](./CONTRIBUTING.md)
## License
MIT
README Best Practices
✅ DO:
- Start with a clear one-line description
- Include badges (build status, version, license)
- Provide copy-paste ready commands
- Link to detailed documentation
- Include screenshots/GIFs for UI projects
- Keep the quick start under 5 commands
❌ DON'T:
- Include implementation details
- Document every configuration option
- Repeat information from other docs
- Use jargon without explanation
- Assume prior knowledge of the stack
Code Comments Standards
When to Comment
Comment WHY, not WHAT:
for (const user of users) {
if (user.isActive) { ... }
}
for (const user of users) {
if (user.isActive) { ... }
}
Comment Types
File Headers
Function Documentation
Inline Comments
await authenticate(request);
await checkRateLimit(request);
const legacyAdapter = createAdapter();
if (isSafari16) { ... }
const result = data.filter(...).map(...).reduce(...);
Comment Tags
| Tag | Usage |
|---|
TODO | Planned improvements |
FIXME | Known issues to address |
HACK | Temporary workarounds |
NOTE | Important context |
IMPORTANT | Critical information |
DEPRECATED | Code to be removed |
SECURITY | Security-sensitive code |
API Documentation
Endpoint Documentation
## POST /api/users
Create a new user account.
### Request
\`\`\`json
{
"email": "user@example.com",
"name": "John Doe",
"role": "member"
}
\`\`\`
### Response
**201 Created**
\`\`\`json
{
"id": "usr_123",
"email": "user@example.com",
"name": "John Doe",
"createdAt": "2026-01-26T10:00:00Z"
}
\`\`\`
**400 Bad Request**
\`\`\`json
{
"error": "VALIDATION_ERROR",
"message": "Email already exists"
}
\`\`\`
### Notes
- Requires authentication
- Rate limited: 10 requests/minute
Architectural Decision Records (ADRs)
ADR Template
# ADR-001: {{DECISION_TITLE}}
## Status
Accepted | Proposed | Deprecated | Superseded by ADR-XXX
## Context
What is the issue that we're seeing that is motivating this decision?
## Decision
What is the change that we're proposing and/or doing?
## Consequences
What becomes easier or more difficult to do because of this change?
### Positive
- Benefit 1
- Benefit 2
### Negative
- Tradeoff 1
- Tradeoff 2
## References
- [Related document](link)
- [Prior discussion](link)
When to Write ADRs
- Significant technology choices
- Architecture pattern decisions
- Breaking changes to APIs
- Security-related decisions
- Performance optimization approaches
Changelog Standards
Format (Keep a Changelog)
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
## [Unreleased]
### Added
- New feature description
### Changed
- Modified behavior description
### Deprecated
- Soon-to-be removed features
### Removed
- Removed features
### Fixed
- Bug fix descriptions
### Security
- Security vulnerability fixes
## [1.0.0] - 2026-01-26
### Added
- Initial release
Documentation Quality Checklist
Before Committing
Review Criteria
Related Skills
- See
.agents/skills/writing-skills/ for prompt writing guidelines
- See
.agents/skills/writing-plans/ for feature planning documentation