Places and maintains waymarks across a codebase, focusing on TLDR coverage and accuracy. Delegates to the waymarker agent for systematic auditing and placement...
This skill guides systematic waymark placement and maintenance across a codebase. It delegates to the waymarker agent for execution. The agent loads the waymarks skill for grammar reference and search commands.
Check current TLDR coverage:
!.agents/skills/waymark-maintenance/scripts/coverage-report --stats
TLDRs are the foundation of waymark coverage. Every source file should have a TLDR describing what it does. Without TLDRs, codebase navigation is impaired for both humans and agents.
coverage-report --missing-tldr to find gapstldr ::: per fileTypeScript/JavaScript:
// tldr ::: handles user authentication and JWT token lifecycle
import { sign, verify } from 'jsonwebtoken';
Python:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# tldr ::: manages database migrations and schema versioning
import sqlite3
Markdown:
---
title: API Guide
---
<!-- tldr ::: REST API reference with authentication examples #docs -->
# API Guide
Shell:
#!/bin/bash
# tldr ::: deployment script for production Kubernetes cluster
set -euo pipefail
Write one sentence describing what the file delivers:
| Pattern | Template | Example |
|---|---|---|
| Action | [verb] [domain] [method] |
validates payment webhooks using Stripe signatures |
| Component | [component] [action] [scope] |
React hooks exposing authentication state |
| Purpose | [capability] for [purpose] |
rate limiting middleware for API endpoints |
| Integration | [integration] [domain] with [tech] |
Stripe webhook handler with signature verification |
Use active, specific verbs:
Use *tldr for critical files that must be read first:
// *tldr ::: main application entry wiring Express middleware
// *tldr ::: core authentication service all routes depend on
Reserve for: entry points, core infrastructure, security-critical modules.
Documentation files must include #docs tag:
<!-- tldr ::: API authentication guide using JWT tokens #docs/guide -->
<!-- tldr ::: database schema migration reference #docs/reference -->
about ::: markers describe the code section immediately following them.
Place directly above the construct (6-12 words):
// about ::: validates JWT tokens and extracts claims
export function validateToken(token: string): Claims {
| Construct | Pattern | Example |
|---|---|---|
| Class | encapsulates/manages [domain] [behavior] |
encapsulates session lifecycle state |
| Function | validates/transforms/fetches [input] [action] |
validates webhook signatures before processing |
| Component | renders [element] with [feature] |
renders account overview with metrics |
Focus on the section, not the file. Don't restate the TLDR:
// tldr ::: user authentication service
// about ::: validates password against security policy // ✓ Section-specific
function validatePassword(password: string) {}
// about ::: handles user authentication // ✗ Too broad, same as tldr
function validatePassword(password: string) {}
Waymarks become stale when code changes but waymarks don't. Look for:
todo ::: for work that's donefix ::: for bugs that are resolvedsee:#token pointing to removed codeBefore merging, check for items that should be cleared:
find-waymarks -F # Flagged items (must clear before merge)
find-waymarks -S # Starred items (should address)
find-waymarks -t wip # WIP markers
See the waymarks skill for full search options.
Don't add waymarks to:
*.d.ts, *.generated.*, @generated headerspackage-lock.json, bun.lockb, etc.dist/, build/, .next/Prioritize in this order:
index.ts, main.ts, app.ts#docs tag)// Bad: // tldr ::: utilities
// Good: // tldr ::: date parsing utilities with timezone normalization
// Bad: // tldr ::: this file contains the main authentication service that handles user login, registration, password reset, and session management using JWT tokens
// Good: // tldr ::: authentication service with login, registration, and JWT sessions
// Bad:
import { hash } from 'bcrypt';
// tldr ::: authentication service // Too late!
// Good:
// tldr ::: authentication service with bcrypt password hashing
import { hash } from 'bcrypt';
<!-- Bad: tldr ::: API documentation for user endpoints -->
<!-- Good: tldr ::: API documentation for user endpoints #docs/api -->
coverage-report # Files missing TLDRs
coverage-report --stats # Coverage percentage
coverage-report --all # All files with status
coverage-report --json # JSON output for tooling
coverage-report --help # All options
Script location: .agents/skills/waymark-maintenance/scripts/coverage-report
This skill delegates to the waymarker agent which operates in two modes:
Always start with conservative mode to review suggestions before bulk changes.