documentation-patterns

documentation-patterns is a skill for Claude Code from thalysjuvenal/advpl-specialist. It costs 136 tokens per session (422 once invoked), scanned A, original, MIT.

Documentation templates and a process for ADVPL and TLPP code in TOTVS Protheus. They cover function headers, full routine specifications, and REST API documentation.

In plain words
What is it for?
Write Protheus.doc headers, document complete routines, and describe REST endpoints with authentication, parameters, request bodies, and response formats.
Why use it?
It turns source code and available project history into consistent technical documentation. This makes dependencies, parameters, database tables, configuration values, and execution flow easier to understand.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the advpl-specialist plugin — 18 skills, 14 commands, 2 hooks shipped together

Good fit Write Protheus.doc headers, document complete routines, and describe REST endpoints with authentication, parameters, request bodies, and response formats.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thalysjuvenal/advpl-specialist/documentation-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add thalysjuvenal/advpl-specialist --skill documentation-patterns
Clone the repo
git clone --depth 1 https://github.com/thalysjuvenal/advpl-specialist

Made for: Claude Code.

Or install advpl-specialist, the plugin that ships this one along with the rest of its 18 skills, 14 commands, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for documentation-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/thalysjuvenal/advpl-specialist/documentation-patterns/github.svg)](https://agentmods.dev/skills/thalysjuvenal/advpl-specialist/documentation-patterns)
Your own site
<a href="https://agentmods.dev/skills/thalysjuvenal/advpl-specialist/documentation-patterns"><img src="https://agentmods.dev/badge/skills/thalysjuvenal/advpl-specialist/documentation-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for documentation-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/thalysjuvenal/advpl-specialist/documentation-patterns"><img src="https://agentmods.dev/badge/skills/thalysjuvenal/advpl-specialist/documentation-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 422 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00136 $0.00422
Opus 5 $0.00068 $0.00211
Sonnet 5 $0.00027 $0.00084
Haiku 4.5 $0.00014 $0.00042

Measured 9d ago against content hash 028cd755c86b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

documentation-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/documentation-patterns/SKILL.md · 17 lines

What it actually says

ADVPL/TLPP Documentation Patterns

This skill provides templates and a generation process for turning ADVPL/TLPP source code into Protheus-standard technical documentation. It covers three output types: a header Protheus.doc comment block for a single function/method, a full markdown routine specification (objective, module, tables read/written, MV_* parameters, entry points, execution flow, dependencies, change history), and an api REST endpoint document (authentication, path/query parameters, request body, response schemas).

Activate this skill when the user asks to generate or add documentation for existing code -- headers, full routine specs, or API docs -- following TOTVS conventions. The process reads the target file, extracts functions/parameters/tables/MV_* usage/entry points/dependencies from the code itself, cross-checks git history for author and change log when available, then fills the appropriate template.

It does not cover explaining code in plain conversational language for an audience (see code-explanation), looking up native function signatures to fill in documentation accurately (see protheus-reference), or documenting the semantics of embedded SQL macros used inside a routine (see embedded-sql).

Reference file Read when
reference.md Always -- the three documentation type templates (header/full/api) and the generation process
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 17 lines · 136 tokens per session scan A 028cd755c86b

Subscribe to this mod's changes

documentation-patterns is a skill published in the GitHub repository thalysjuvenal/advpl-specialist (186 stars, last pushed 18d ago), licensed MIT. It adds 136 tokens to every session and 422 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

advpl-dev

Especialista em desenvolvimento ADVPL/TLPP para o ecossistema TOTVS Protheus. Use esta skill para auxiliar com: escrita e revisão de código ADVPL e TLPP, criação de pontos de entrada (convencional e MVC), desenvolvimento de APIs REST, consultas SQL/Embedded SQL, acesso a tabelas do Protheus, criação de classes OO…

jaylson/claude-skill-advpl · 211 tokens

gestor-autonomos

Gestoría y contabilidad para autónomos en España. Usar cuando el usuario necesite calcular IVA trimestral (modelo 303), calcular pagos fraccionados de IRPF (modelo 130), gestionar libro de ingresos y gastos, verificar facturas emitidas o recibidas, calcular retenciones, preparar declaraciones trimestrales, estimar…

alexdcd/Mafia-Claude-Skills · 151 tokens

repo-first-defense

Auditoría defensiva para repositorios AI-native. Usar SIEMPRE que el usuario quiera revisar un repo antes de lanzar, mergear, actualizar dependencias, migrar package manager, configurar un agente IA, MCP, Claude/Cursor/Codex/OpenClaw, o cuando mencione supply chain, prompt injection, secretos, GitHub Actions…

alexdcd/Mafia-Claude-Skills · 133 tokens

landing-page-mastery

Sistema experto para crear y optimizar landing pages de alta conversión para productos digitales. Úsala para crear páginas desde cero (SaaS, cursos, ebooks, newsletters, Micro-SaaS), auditar páginas existentes para mejorar conversión, o generar copy persuasivo (PAS, AIDA). Incluye estructuras, copy, diseño, CTAs…

alexdcd/Mafia-Claude-Skills · 85 tokens

nombre-de-mi-skill

Descripción clara y completa de qué hace esta skill y cuándo debe activarse. Incluye los casos de uso principales y el contexto en el que Claude debe usar esta skill. Sé específico y detallado.

alexdcd/Mafia-Claude-Skills · 46 tokens

prompt-master

Generates optimized prompts for any AI tool. Use when writing, fixing, improving, or adapting a prompt for LLM, Cursor, Midjourney, image AI, video AI, coding agents, or any other AI tool.

alexdcd/Mafia-Claude-Skills · 49 tokens