Back to Skills

code-map-standard

verified

Gold standard for code-map feature documentation. Use when generating docs in docs/code-map/ or running /doc on CODING repositories.

View on GitHub

Marketplace

agentops-marketplace

boshu2/agentops

Plugin

docs-kit

productivity

Repository

boshu2/agentops
6stars

plugins/docs-kit/skills/code-map-standard/SKILL.md

Last Verified

January 24, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/boshu2/agentops/blob/main/plugins/docs-kit/skills/code-map-standard/SKILL.md -a claude-code --skill code-map-standard

Installation paths:

Claude
.claude/skills/code-map-standard/
Powered by add-skill CLI

Instructions

# Code-Map Documentation Standard

The authoritative standard for feature documentation in code-map format.

## When to Use

- Running `/doc gen` or `/doc all` on CODING repos
- Creating docs in `docs/code-map/`
- Updating existing code-map docs

**Do NOT use for:** Corpus docs, API reference, READMEs, ADRs.

---

## Required Sections Checklist

Every code-map doc MUST include ALL 16 sections:

| # | Section | Notes |
|---|---------|-------|
| 1 | **Current Status** | With validation date (see format below) |
| 2 | **Platform Parallel** | K8s/vCenter equivalent |
| 3 | **Inputs โ†’ Outputs** | Two tables |
| 4 | **Data Flow** | ASCII diagram |
| 5 | **State Machine** | If applicable |
| 6 | **API Endpoints** | Method, Path, Request, Response |
| 7 | **Code Signposts** | Function/class names (NEVER line numbers) |
| 8 | **Configuration** | Env vars + deployment config |
| 9 | **Prometheus Metrics** | Table + PromQL examples |
| 10 | **Unit Tests** | Separate section |
| 11 | **Integration Tests** | Separate from unit |
| 12 | **Dependencies** | Links to related docs |
| 13 | **Example - curl** | Complete with response |
| 14 | **Example - SDK** | TypeScript/Python |
| 15 | **What Worked Well** | 2-3 bullets |
| 16 | **What We'd Do Differently** | 1-2 bullets |

---

## Critical Rules

### Code Signposts

**NEVER use line numbers.** They drift after any edit.

| Valid | Invalid |
|-------|---------|
| `createMission()` | `lines 45-78` |
| `FleetStore` | `server/mission.ts:820` |

### Current Status Format (REQUIRED)

Every code-map doc MUST have a validated status with date and source:

```markdown
## Current Status: โœ… RUNNING
Validated: 2026-01-04 against ocppoc cluster

## Current Status: โŒ FAILED
Status: Accepted=False (CRD exists but not running)
Validated: 2026-01-04 against ocppoc cluster

## Current Status: ๐Ÿ“ PLANNED
Not yet deployed - template only
```

**Status Icons:**
| Icon | Meaning |
|------|---------|
| โœ… | Running and healthy |
| โŒ | Failed or errored |

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
3030 chars