Back to list
medride

documentation

by medride

0🍴 0📅 Jan 21, 2026

SKILL.md


name: documentation description: Write clear documentation following team standards

Documentation Skill

Write clear, useful documentation that helps current and future developers.

Documentation Types

TypeLocationPurpose
API Docsdocs/api/Endpoint reference
Architecturedocs/architecture/System design
Guidesdocs/guides/How-to tutorials
ADRsdocs/decisions/Decision records
READMERoot/moduleQuick start

Writing Principles

1. Lead with the "Why"

Before diving into details, explain the purpose.

Bad:

## Installation
Run `npm install mylib`

Good:

## Installation
MyLib provides utilities for date manipulation used throughout the application.

Run `npm install mylib`

2. Show, Don't Just Tell

Include examples for everything.

Bad:

The `formatDate` function formats dates.

Good:

The `formatDate` function formats dates:

```javascript
formatDate(new Date())        // "January 20, 2026"
formatDate(new Date(), 'short') // "1/20/26"

### 3. Keep It Scannable
Use headers, lists, and tables liberally.

**Bad:**
```markdown
The API accepts several parameters. The first parameter is the user ID which
must be a string. The second parameter is optional and specifies the format...

Good:

### Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| userId | string | Yes | The user's unique identifier |
| format | string | No | Output format (default: 'json') |

4. Maintain It

Outdated documentation is worse than no documentation.

  • Update docs when code changes
  • Add "Last updated" timestamps
  • Review docs periodically

Document Templates

README Template

# Project Name

Brief description of what this project does.

## Quick Start

```bash
npm install
npm run dev

Usage

[Basic usage examples]

Configuration

[Environment variables and config options]

Development

[How to set up local development]

Contributing

[How to contribute]


### API Endpoint Template

```markdown
# [Endpoint Name]

[Brief description]

## Request

`[METHOD] /path/{param}`

### Parameters

| Name | Type | In | Required | Description |
|------|------|-----|----------|-------------|
| param | string | path | Yes | [Description] |

### Body

```json
{
  "field": "value"
}

Response

Success (200)

{
  "id": "123",
  "status": "success"
}

Errors

CodeDescription
400Invalid request
404Resource not found

Example

curl -X POST https://api.example.com/endpoint \
  -H "Authorization: Bearer token" \
  -d '{"field": "value"}'

### ADR Template

```markdown
# [Number]. [Title]

## Status
[Proposed | Accepted | Deprecated]

## Context
[Why we need to make this decision]

## Decision
[What we decided]

## Consequences
[What this means going forward]

Code Comments

When to Comment

Do CommentDon't Comment
Complex algorithmsObvious code
Business logic rationaleWhat the code does
Non-obvious gotchasEvery function
API contractsRedundant info

Comment Style

// BAD: Increment counter
counter++;

// GOOD: Rate limiting: allow 100 requests per minute per user
if (requestCount > 100) {
  throw new RateLimitError();
}

/**
 * Calculate the total price including discounts and tax.
 *
 * Note: Discounts are applied before tax, per accounting requirements.
 * See ADR-015 for the decision rationale.
 */
function calculateTotal(items, discountCode) {
  // ...
}

Best Practices

  1. Write for your audience - New developer? Expert? Adjust detail level.
  2. Use consistent terminology - Define terms and stick to them.
  3. Include troubleshooting - What can go wrong and how to fix it.
  4. Link to related docs - Don't duplicate, reference.
  5. Test your docs - Follow your own instructions to verify they work.

Documentation Review Checklist

  • Purpose is clear from the start
  • Examples are included and working
  • Structure is scannable
  • No broken links
  • Code snippets are correct
  • Last updated date is current

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon