agentsclimarketplace

Standards documentation

Skill pecigonzalo/agent-skills/skills/standards-documentation

Use this skill when writing or reviewing READMEs, API references, setup guides, and code comments that need concise documentation conventions and templates. Use role-technical-writer instead when the task requires broader information architecture or audience strategy.From its SKILL.md

Install
npx -y skills add pecigonzalo/agent-skills --skill standards-documentation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.1 KB, 744 tokens by cl100k_base, as published. Nobody here has run it

Documentation Standards

Provides: README templates, API documentation patterns, code comment guidelines, and technical writing clarity principles.

Quick Reference

Golden Rule: If users ask the same question twice, document it

Document (✅ DO):

  • WHY decisions were made
  • Complex algorithms/logic
  • Public APIs, setup, common use cases

Don't Document (❌ DON'T):

  • Obvious code (i++ doesn't need comment)
  • What code does (should be self-explanatory)

Principles: Audience-focused, Show don't tell, Keep current


Principles

Audience-focused: Write for users (what/how), developers (why/when), contributors (setup/conventions) Show, don't tell: Code examples, real use cases, expected output Keep current: Update with code changes, remove outdated info, mark deprecations

README Structure

# Project Name
Brief description (1-2 sentences)

## Features
- Key feature 1
- Key feature 2

## Installation
```bash
npm install package-name

Quick Start

const result = doSomething();

Usage

[Detailed examples]

API Reference

[If applicable]

Contributing

[Link to CONTRIBUTING.md]

License

[License type]


## Function Documentation

```javascript
/**
 * Calculate total price including tax
 * 
 * @param {number} price - Base price
 * @param {number} taxRate - Tax rate (0-1)
 * @returns {number} Total with tax
 * 
 * @example
 * calculateTotal(100, 0.1) // 110
 */
function calculateTotal(price, taxRate) {
  return price * (1 + taxRate);
}

What to Document

✅ DO

  • WHY decisions were made
  • Complex algorithms/logic
  • Non-obvious behavior
  • Public APIs
  • Setup/installation
  • Common use cases
  • Known limitations
  • Workarounds (with explanation)

❌ DON'T

  • Obvious code (i++ doesn't need comment)
  • What code does (should be self-explanatory)
  • Redundant information
  • Outdated/incorrect info

Comments

Good

// Calculate discount by tier (Bronze: 5%, Silver: 10%, Gold: 15%)
const discount = getDiscountByTier(customer.tier);

// HACK: API returns null instead of [], normalize it
const items = response.items || [];

// TODO: Use async/await when Node 18+ is minimum

Bad

// Increment i
i++;

// Get user
const user = getUser();

API Documentation

### POST /api/users
Create a new user

**Request:**
```json
{ "name": "John", "email": "[email protected]" }

Response:

{ "id": "123", "name": "John", "email": "[email protected]" }

Errors:

  • 400 - Invalid input
  • 409 - Email exists

## Best Practices

✅ Explain WHY, not just WHAT
✅ Include working examples
✅ Show expected output
✅ Cover error handling
✅ Use consistent terminology
✅ Keep structure predictable
✅ Update when code changes

**Golden Rule**: If users ask the same question twice, document it.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,422. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.